branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>JerryBluesnow/PythonLearning<file_sep>/multi_process_thread/multi_thread_2.py
#!/usr/bin/python
#-*- coding: utf-8 -*-
#-------------------------------------------------------------------------------------------#
# 多线程 -
# 死锁
# mutex = threading.Lock()
# mutex.acquire([timeout])
# mutex.release()
... | fa801dffb8a923daabac81ec09b605778bb1a64c | [
"Markdown",
"Python",
"Text"
] | 71 | Python | JerryBluesnow/PythonLearning | f8c8ccd613ab70cd16e823c4ec3d81293b753f94 | 2d03c5d9c56c4d694e9596c5461dfb4df1850f95 |
refs/heads/main | <file_sep> **PROGETTO MOVIDA**
**A.A 2019/2020**
**CORSO DI ALGORITMI E STRUTTURE DATI**
#Presentato da:
<NAME>
<NAME>
**Implementazione:**
Inizialmente è stata fatta un’implementazione base delle strutture dati in cui è stato provato a prendere dimistichezza con le funzioni, inserisci, ca... | 4678e0d3fd7b6cd3d954663d1227aa6bb27178bd | [
"Markdown",
"Java"
] | 5 | Markdown | user0x7419553/PROGETTO-ALGORITMI | 61ea4ec6ef4ac7423c4f4ff101d37000975c4c0f | bc88b8e1365600f6b041b6bfb8b8dfd5fd143ebb |
refs/heads/master | <repo_name>anthnd/libgdx-tetris<file_sep>/core/src/com/anthnd/tetris/Tetris.java
package com.anthnd.tetris;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.grap... | d496a6a5be5b086a32ca96d24660187b3256fc6c | [
"Java"
] | 1 | Java | anthnd/libgdx-tetris | 2faed91e2574b53024851962cf2c7a7d22a6966c | 4471c9df8da1072966a1645d9954a07efff06a43 |
refs/heads/master | <repo_name>darchevert/weatherapp-api<file_sep>/server.js
var express = require('express');
var app = express();
app.set('view engine', 'ejs');
app.use(express.static('static'));
var request = require('request');
var ville = [
];
app.get('/', function (req, res) {
res.render('home', {
list : ville,
});
});
ap... | 24a899b3d7348c2c576582c4428ff460f905e0b3 | [
"JavaScript"
] | 1 | JavaScript | darchevert/weatherapp-api | 4a23f4d5c6ba2dc783c9d05dffdc1c91bd8d5bf2 | 5b7c0261b5522e288305c1f9a7b7331cb5757b93 |
refs/heads/master | <repo_name>rushabhshah95/frontend<file_sep>/src/app/module/moment/moment.routes.ts
/* Moment Feature Module Routes */
import { AddMomentComponent } from '../moment/add-moment/add-moment.component';
import { ListMomentComponent } from '../moment/list-moment/list-moment.component';
export const momentRoutes = [
{pa... | b745b379fb48eda9a6c9bf6c39ee7f3807ca9e5d | [
"TypeScript"
] | 10 | TypeScript | rushabhshah95/frontend | 468be3b97e3bd3bf74f79bc763194e2536952f0a | fa5a7b6a1adc388a21c718c059b7494ca8a921d0 |
refs/heads/master | <file_sep>"""An SQLite3 to PostgreSQL database migration tool."""
import os
import typing
from pathlib import Path
if os.name == "nt":
HOME_CONFIG = Path.home() / ".sqlite2pg"
LOG_CONFIG = HOME_CONFIG / "logs"
else:
HOME_CONFIG = Path.home() / ".config/sqlite2pg"
LOG_CONFIG = HOME_CONFIG / "logs"
DEV_... | 4f9929e46b2f0a52fd0effd902d541abf9b72155 | [
"TOML",
"Python",
"Markdown"
] | 14 | Python | parafoxia/sqlite2pg | efbbc31e82aaac7fd470091c6a30fc1315d499c4 | 6a95ee5551d08c013b9f00e7e0a11bd78d542b98 |
refs/heads/master | <file_sep>using IdentityServer4.Core;
using IdentityServer4.Core.Models;
using IdentityServer4.Core.Services.InMemory;
using System.Collections.Generic;
using System.Security.Claims;
namespace PLM.Authorization
{
public class InMemoryManager
{
public List<InMemoryUser> GetUsers()
{
... | d2a6a955e4cb68589fa34b697d09cb8485365774 | [
"JavaScript",
"C#",
"Markdown"
] | 16 | C# | akajains/plm-poc | 0af98e00b4efb745b6d475c7a39763930fd9195b | 27fda190f66670cfe4e3ca6633a461f63aee5e80 |
refs/heads/master | <repo_name>anuloo/crud-react-redux-app<file_sep>/app/components/Home.js
import React from 'react';
import Navbar from './Navbar';
const Home = React.createClass({
render() {
return (
<div className="container-fluid">
<div className="page-header">
<h2>React Redux Contacts</h2>
</... | 43cf2d1cc4736443ae6410397464223480bb7fcb | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | anuloo/crud-react-redux-app | f4e76951be2fcc9e11d026513a71805ba3d7bafc | f3acef321911247e4bba30396ab4fc005fc7570b |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import {HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class InformationsMondialesService {
private key = '&apiKey=cb61f5e046d7449dadec5c4c58e1c981';
private country = 'fr';
private url = 'https://newsapi.org/v2/top-he... | 0c45eb14badcc9beb262e2cf249473658851bc4d | [
"TypeScript"
] | 15 | TypeScript | isoume/information | 21569a715b9142bdd041b7e8eea74377253914d0 | de87725652c5fb22b2a6e561dce59243ab28471c |
refs/heads/master | <repo_name>haoSeven/copy_requests<file_sep>/requests/main.py
# -*- coding: utf-8 -*-
"""
学习requests
"""
import urllib
import urllib2
AUTOAUTHS = []
class _Request(urllib2.Request):
def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False, method=None):
urllib2.Request... | 4a47ae38498194aa37986043f4c355d2d410b28c | [
"Python"
] | 1 | Python | haoSeven/copy_requests | 35b3130e3405730dbbcc8094fe198051717715ba | 19ac8f00764196f774274710b3732410e0b81bac |
refs/heads/master | <repo_name>alenad/killbill-paypal-express-plugin<file_sep>/spec/paypal_express/base_plugin_spec.rb
require 'spec_helper'
describe Killbill::PaypalExpress::PaymentPlugin do
include ::Killbill::Plugin::ActiveMerchant::RSpec
before(:each) do
Dir.mktmpdir do |dir|
file = File.new(File.join(dir, 'paypal_exp... | 0a6cee973bfd5eda5917a062c42b5bb67688cdea | [
"Markdown",
"Ruby"
] | 12 | Ruby | alenad/killbill-paypal-express-plugin | 2e3980e75b74720bd9e41552b36e12ddc1e7c4ba | 5a438a3e6269c4a472e2dfd1139a38527b5cca96 |
refs/heads/master | <file_sep>class NoExamples(Exception):
def __str__(self):
return 'No examples provided'
class MissingContent(Exception):
description = 'Expected content missing on the page'
def __init__(self, description=None):
if not description:
self.description = description
def __str... | cf931a82575d1308da9ec800c9315664f04a38c9 | [
"JavaScript",
"Python"
] | 6 | Python | abdusco/german-helper | 7b71029aa27e56e21420da07598da2ace168c65a | 1d6d833aaf9c112460fe3fc0329e8316e140b959 |
refs/heads/master | <repo_name>KLS-Gogte-Institute-of-Technology-bgm/sd-lab-project-5thsem_sd_lab_incognito<file_sep>/README.md
[](https://classroom.github.com/online_ide?assignment_repo_id=293093&assi... | 25d1eea1b9f1d8fa40e5d329b0ef521185193112 | [
"Markdown",
"PHP"
] | 2 | Markdown | KLS-Gogte-Institute-of-Technology-bgm/sd-lab-project-5thsem_sd_lab_incognito | b14c5b6430cc607822b1e8322aa33758e238e83b | 4bec59a9addc62ef5e2116f4aadb99cf1d632eae |
refs/heads/master | <repo_name>yoovin/OhMyPolice<file_sep>/README.md
## 군대가요...
대한민국 남성 화이팅...<file_sep>/src/App.js
import React, { Component } from 'react'
import './App.css'
import Main from './components/Main'
// import seafrog from './Img/seafrog.png'
// import seafrog from './Img/wseafrog.png'
export default class App extends Compon... | e28a7a2ac7cd6729f5626ab7fce784e7271d8329 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | yoovin/OhMyPolice | 1c15eff92cf3e4c2bd237f70236dfa8b4e9b2e61 | 012eff35943a24d34e74305a7769b92e7a8d8449 |
refs/heads/master | <file_sep>def ask_age
puts "age?"
age gets.to_i
end
def ticket_price(age:)
if age < 17
puts "10kr"
elsif age > 64
puts "15kr"
else puts "20kr"
end
end
| 45e028cb8aa3eb73189985eeeea7401ebd5f5dc6 | [
"Ruby"
] | 1 | Ruby | itgsod-Alexander-Iglebk/Biljettautomat-1 | 858a3f806c6917440f0bae9706dfaad25ddeaa15 | be5240e0a3ef1977f2d91dc7468e78bb2187d23b |
refs/heads/main | <file_sep># Calorie-Tracker-BE
Solo Project 2 (Backend)
## Calorie Tracker App
**Calorie tracker is an app that helps users to keep track of their daily calorie intake.**
## About this app
How much you eat matters more than what you eat when it comes to losing weight or building muscles. It is vital to keep track of ... | ae93b3c93bfb47cb8195391f63312ee3ab40efec | [
"Markdown",
"JavaScript"
] | 5 | Markdown | Chul0/Calorie-Tracker-BE | 39fe0cdf5c299b40fbf0a5c1704052445c661491 | 939ab7b0ea351e668f0266dc34747f9c22deb5e6 |
refs/heads/master | <file_sep>package exercises;
import java.util.ArrayList;
import java.util.Scanner;
import jdk.nashorn.api.tree.WhileLoopTree;
public class Prezzi {
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Double> al = new ArrayList<>();
int z = 0;
do {
System.out.println... | 4bd323812079e443182cd9b426ba1c54985ae730 | [
"Java"
] | 1 | Java | Andreolo69/Varios | 6845b93960c53794d68abd3a5bfa8330d7a9abde | be0246c5f4228e91a22a46eb6cdeab4f0a91989c |
refs/heads/master | <repo_name>justinhschaaf/JusaonvsCraftingTweaks<file_sep>/src/main/java/net/jusanov/jusanovscraftingtweaks/common/Reference.java
package net.jusanov.jusanovscraftingtweaks.common;
public class Reference {
public static final String MODID = "dmscraftingtweaks";
public static final String NAME = "DragonMouth's Crafti... | 23b39a2674222aae2b4502c0f7c63548df2e253b | [
"Markdown",
"Java"
] | 6 | Java | justinhschaaf/JusaonvsCraftingTweaks | 297f7478bc8731b1acb41c59bbd1c12bad43fda5 | dfdee58495a42dc516eab5b5a53a3a266fe7b286 |
refs/heads/master | <repo_name>harmannd/TestWebsite24<file_sep>/TestWebsite24/Startup.cs
using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(TestWebsite24.Startup))]
namespace TestWebsite24
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth... | efad4cc4a13850d6b5a78b564dbc9e67cc5a4ebb | [
"C#"
] | 1 | C# | harmannd/TestWebsite24 | 599027c0857a5168791763b43cfb2c36c2269ac3 | ab677e9f374182d1b0b98138627f86465265cdd2 |
refs/heads/master | <repo_name>Galadrielz/Inori-LineBot<file_sep>/README.md
# Inori-LineBot
Inori line chat bot
<file_sep>/server.js
const fs = require('fs'); //read or write or even it can append(update) file hehe
const util = require('util'); // setTimeout ,etc check documentation nodejs
const upfile = require('formidable'); //upload fi... | 45791d0b57784daa9acbfbdb9040fb102dd3c6f7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Galadrielz/Inori-LineBot | 0abf2e006745a3c64bea8f96fcc24805a9baed24 | ccedf17220283bcc1fb32f8d7737a98f5f87e589 |
refs/heads/master | <file_sep>/**
* Visualize data
*
* @module data-visualizer
*/
;(function () {
'use strict'
/* imports */
var typeCheck = require('type-check').typeCheck
var barChart = require('./js/chart')
/* exports */
module.exports = visualize
/**
*
* @function visualize
*
* @param {Object} options ... | d164f267711414ea93c63b26c4e2f8e32ce37311 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | bagrounds/data-visualizer | fd0af19f794fc88e9182018b3b34c4fa110c8358 | a69b06c1a7aaf1d3bb83e0d12aaf07efd9a191d3 |
refs/heads/master | <file_sep>package com.company;
import javafx.beans.binding.DoubleExpression;
import java.util.Scanner;
public class Main {
int userHeight, userWeight;
public static void main(String[] args) {
// write your code here
//p1
Scanner keyboard;
keyboard = new Scanner(System.in);
String feet;
D... | 4ff5a5c46d6a3e265fdd2864838ad50b6567a918 | [
"Java"
] | 1 | Java | Dominicthedon/BMIProject | 844ec6fda3c1b9515e56498dd6a74f09ba492967 | a3164a91616833a834389b666274db3f93e87d49 |
refs/heads/master | <repo_name>tocisz/git_bomb<file_sep>/src/main.rs
use git2::{Error, Repository, Signature};
fn doit() -> Result<(), Error> {
let repo = Repository::init("tmp")?;
let mut b = repo.treebuilder(None)?;
let mut t = b.write()?;
println!("tree is {}", t.to_string());
for _ in 0..10 {
let mut b = ... | c957c7d232773c5c723f31844e843ab2a10186ec | [
"Rust"
] | 1 | Rust | tocisz/git_bomb | b8ecf8fa25e103edeb4e29bbad5875220cf4dab5 | 2d49e88d427d1242e58c03f824a09f08b98261a1 |
refs/heads/master | <file_sep>FROM ubuntu:latest
MAINTAINER <NAME> "<EMAIL>"
RUN apt-get update -y
RUN apt-get install -y python-pip python-dev build-essential
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python"]
CMD ["myorg/common/sample/run.py"]<file_sep>import codecs
from setuptools import setup, find_pack... | a119c56efc7c5500d0f3eb4e3fb323d0f0b6c095 | [
"Markdown",
"Python",
"Makefile",
"Dockerfile"
] | 5 | Dockerfile | sillyfatcat/python-skeleton | cc5659decabfd083f34c504212319c96f4a51c98 | afa1f07a70bff3689b25f66f4a069dbf77255578 |
refs/heads/master | <repo_name>lazystitan/actix_practice<file_sep>/src/main.rs
use actix_web::{HttpResponse, Responder, HttpServer, App, web};
fn index1() -> impl Responder {
HttpResponse::Ok().body("Hello world")
}
fn index2() -> impl Responder {
HttpResponse::Ok().body("Hello world again")
}
fn main() {
HttpServer::new(||... | 36dd2190a3fc16eefdebc35aed1aac9b6e2050e0 | [
"Rust"
] | 1 | Rust | lazystitan/actix_practice | 3d8c375ffbf9cb97f6f5d3cb1591b63fb1c7b448 | 2fb3ca700af8944c0c730535dd00c0259dedde8a |
refs/heads/master | <file_sep>NewsPublisher Extra for MODx Revolution
=======================================
**Original Author:** <NAME>
**Revolution Author:** <NAME> [Bob's Guides](http://bobsguides.com)
**Major Contributor** <NAME> -Invaluable fixes, improvements, and feature additions were created and tested by Markus
... | f922d2a437b822d779e04a63a4cb17be07b114e5 | [
"Markdown",
"PHP"
] | 3 | Markdown | donShakespeare/newspublisher | c4bdd72017f6e275fbb748e49d9b26ce6aa663e9 | a504fe9478d11ff91447b87e231aea0922121a0f |
refs/heads/master | <file_sep>class Hotel:
def __init__(self, start, rooms, room_bats):
self._estrella = start #atributo
self._cuartos = rooms
self._cuartos_bano = room_bats
self._CUARTOS_MAX = rooms #datofijo
self._CUARTOS_BANO_MAX = room_bats #dato fijo
def _actualizar_datos(self, ac... | d083aaad9c4f732185d6ee369296c3002c0eda5a | [
"Python"
] | 4 | Python | obemauricio/Prog_Orientada_Objetos_2021 | 60474371c70c0dcff0a465dda2957f0e0c578ac7 | 66895c4a8455f5091c2dbec493c0f1814910fcbd |
refs/heads/master | <file_sep>require 'net/ssh'
host = 'beret.cs.brandeis.edu'
user = 'hadoop07'
password = '<PASSWORD>'
Net::SSH.start(host, user, :password => password) do |ssh|
output = ssh.exec!("ls")
puts output
end
<file_sep>
class Document
attr_accessor :id
attr_accessor :score
attr_accessor :positions
attr_accessor :... | 00860272fc08575a64ae20a972002e4a47ad7244 | [
"JavaScript",
"Ruby",
"Markdown"
] | 14 | Ruby | hongjic/wikipedia | 50bc3abbff23fe1813d9f8e3cbb5aa0310504eb6 | 2637be216bd20aecdf0ca54790bd33c9ef96b202 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
root 'home#index'
get 'home/index'
get 'home/budderorder'
get 'home/kellykustom'
get 'home/membership'
get 'home/survey'
resources :charges
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
| 433bd834a789bf4457d1602b1482b36493916cc7 | [
"Ruby"
] | 1 | Ruby | vedabrat/jerzjane | 23cc3ca2b41ab5d31c9e43809030db561d2971da | 1d6989136271a5a556b5ca38f786ed2062fb5476 |
refs/heads/master | <file_sep>1.Install python
2.Install ffmpeg
3.Create a file called .env inside the same folder as BenzBot V2.py, copy the following inside and get the token from #coding
# .env
DISCORD_TOKEN=Token Comes Here!
4.Install the chromium webdriver with sudo apt-get install chromium-chromedriver
5.pip install al... | 395da5993f7bde0f5d7387914325eef5fe1a6484 | [
"Python",
"Text"
] | 13 | Text | FastGiove/Benz-Bot | 1822e5f0070a75c258be491fe7148815fbb54106 | 0c5ee850789f97f192c65f60d004558ad719c0e0 |
refs/heads/master | <repo_name>karnkm/NT203_62130500010_groupwork_5<file_sep>/62130500010_groupwork_5/Components/PhotoView.js
app.component('photo-view', {
props : {
zoom : Object,
},
template:
/*html*/
`
<div id="bigPicture" class="h-96 max-w-xl bg-black flex justify-center" >
<img :src="zoom.big... | 716b7c56b3b1e8ff3a23703100e8286b6e271bbb | [
"JavaScript"
] | 3 | JavaScript | karnkm/NT203_62130500010_groupwork_5 | 04c400c380605043e452cb58bc32bb8f4b115638 | 3d0069e77886710af4256dd3c0a4720b63cdff72 |
refs/heads/main | <repo_name>luism3861/Recyclerlistview-with-RNN<file_sep>/README.md
Example call API with Recycler List View and React Native Navigation
install App:
- npm install or yarn install
<file_sep>/src/utils/LayoutUtil.js
import { LayoutProvider } from 'recyclerlistview';
import { Dimensions } from 'react-native';
expor... | a9411e088639dc9a250d9c6104bd7b07fa975c18 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | luism3861/Recyclerlistview-with-RNN | dbc083627c8e551d44d1f000de03c4c6a870399b | de8bc2300df9aa558e2c861962bc3d09b9e5b43f |
refs/heads/main | <repo_name>by777/Pytorch--<file_sep>/CH04_两阶段经典检测器FasterRCNN/RCNN系列发展历程.md
> RCNN(Regions with CNN Features)
# 开山之作:RCNN3
+ 发表于:CVPR 2014
+ 检测率(PASCAL VOC):从35.1% 提升到了 53.7%
具体流程:
1. **候选区域生成**。采用Region Proposal提取候选区域,例如Selective Search。先将候选区域分割成小区域,然后合并包含同一物体可能性高的区域,并输出。这一步需要提取约2000个候选区域。在提取完后,还需要对每一个区域归一化。得到固定大小的... | 57522d5837105a9c6d27a8a3cf32711c9e8dc2f8 | [
"Markdown",
"Python"
] | 24 | Markdown | by777/Pytorch-- | aaf8c64cba2661587b2a23e75a0fe17e21a525ce | 0d2583efe3ff5a6e3c80d9a07c3a13bf9593b487 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ConditionController : MonoBehaviour
{
void Start()
{
// a の値によって異なる処理をする
int a = 10;
Debug.Log("a の中身は " + a.ToString());
if (a == 5)
{
Debug.Log("a は 5 で... | 2cf170b71af19583da6f9222907601e2566c8025 | [
"C#"
] | 9 | C# | dsuz/unity-programming-exercise-1st-term-2020 | a4a9aa525dceebd5d0a3a7405006c8ac7575efee | 7bad2a1e12bdd652afb700eb11e208e58bd8cea6 |
refs/heads/master | <file_sep># python_convenience_functions
[](https://zenodo.org/badge/latestdoi/106049281)
Some tools of the trade.
<file_sep>import numpy as np
def lat_lon_to_position_angle(latitude, longitude):
"""Function to translate heliocentric coordinates (latitude, longitude... | ba9de88db4b4757cbe259f616e53e021cf1c42c8 | [
"Markdown",
"Python"
] | 3 | Markdown | jmason86/python_convenience_functions | 809bc562d01df5b5655bdc12f65d873d3eb7977b | 01d6456bd669c4eacfbaba843155df43802fb032 |
refs/heads/master | <repo_name>Padmanabha18/Face_detection_project<file_sep>/Face_detection.py
import cv2 as cv
#Reading image
img = cv.imread('/Users/padmanab/Desktop/Pycharm/Face_detection_project/group 1.jpg.jpg')
#cv.imshow('Padmanab', img)
#Covertig to gray image
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
#cv.imshow('Gray', gray)
... | 376d8f896e26bc3209ada22e8be69052e866e843 | [
"Markdown",
"Python"
] | 2 | Python | Padmanabha18/Face_detection_project | 4147d6655880b28d63c774ca7f50b04937f949bb | 6bfe7ea5b7dc55b44f9c42662d270251836818ce |
refs/heads/master | <repo_name>zYoma/demo_aiohttp<file_sep>/demo/static/js/ws.js
var sock = new WebSocket('ws://' + window.location.host + WS_URL);
const header = document.querySelector('#header')
const main = document.querySelector('#main')
function showMessage(message) {
/* Append message to chat area */
var data = ... | fc0529fcae7dba07415106a16b2fabadc42a274b | [
"JavaScript",
"Python",
"Markdown"
] | 12 | JavaScript | zYoma/demo_aiohttp | 3661026de2a7e4efa583cb87cb3343dda557765d | c7bc8192c6b0823989fe89a344f70f43db9b7964 |
refs/heads/master | <file_sep>import store from '@/store/index'
import axios from 'axios'
import jquery from "jquery"
import { Message, MessageBox } from 'element-ui'
// 创建一个axios实例
const service = axios.create({
baseURL: process.env.BASE_API, // api的base_url,在config下的dev.evn.js和prod.env.js中配置
timeout: 60000
})
service.defaults.heade... | 4700165be6dfa64f312ea59bdc867f3a7e28aa4b | [
"JavaScript"
] | 9 | JavaScript | songzhikai/prismx | a461ac4041643a8d9b7b138e345054285823f170 | e5cf821b53346b2d0c9f064dc0854257af64c0ef |
refs/heads/master | <file_sep>
void setup(){
Serial.begin(9600);
}
void loop(){
if (Serial.available()) {
byte nr = Serial.read();
Serial.print("Folgender char wurde empfangen: ");
Serial.println(nr, DEC);
}
}
<file_sep>from tkinter import *
import tkinter as tk
import serial
import cv2
import time
v... | 6cd76ac7d469f10afae95a44ff430c60b0db5c4d | [
"Python",
"C++"
] | 3 | C++ | christianburkard/ArduinoControl | 3f33c54c22fd296d883b938a12886462bd951cf6 | b9ab450cba8974267a84c63d4c3b95cbea79f19b |
refs/heads/master | <file_sep>#!/usr/bin/python
# -*- coding: UTF-8 -*-
counter = 100 # 赋值整型变量
miles = 1000.0 # 浮点型
name = "John" # 字符串
print(counter);
print(miles);
print(name);
list = ['runoob', 786, 2.23, 'john', 70.2]
tinylist = [123, 'john']
print (list); # 输出完整列表
print (list[0]); # 输出列表的第一个元素
print(list[1:3]); # 输出第二个至第三个的元素
p... | e095f9f5980795a738296c929e11892038723299 | [
"Markdown",
"Python"
] | 2 | Python | huihui4045/PythonWorkSpace | 298da60b479d8321defb740f84270823dcb0d285 | 9b45ba54055ece90f9f6fa259dc222f5e38ef141 |
refs/heads/master | <file_sep>/**
* ActionPlacement, utilisé dans le patron stratégie
*
*/
package bataillenavale;
import bataillenavale.AbstractPartieLive.ExceptionCoupImpossible;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logge... | 4cda67eaa4aa379ba179b35ebd0706caeb818c76 | [
"Java",
"Text",
"SQL"
] | 21 | Java | ngnnpgn/battleship | 65046fd9c6f963de286ff6c5d612df7a0168b492 | 55d5393151698bf26e5d95d081ec8ec77a3f4618 |
refs/heads/master | <file_sep>import fetch from 'isomorphic-fetch';
import { HOST_URL } from './';
import { playerPeers } from '../reducers';
const url = (playerId, numPeers) => `/api/players/${playerId}/peers${numPeers ? `?limit=${numPeers}` : ''}`;
const REQUEST = 'yasp/playerPeers/REQUEST';
const OK = 'yasp/playerPeers/OK';
const ERR... | e62b1396e1a5703d2281ed0c26803cdcc1720dee | [
"JavaScript"
] | 5 | JavaScript | pcollinsmusic/ui | aee8982b5ac8332dc3c028161a10d0f36832f01e | 0fb5e6e69064e127cd42d17ebe72d4353adf76f4 |
refs/heads/master | <file_sep>import discord
client = discord.Client()
f = open("tokenfile.txt", 'r')
token = f.read()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message: discord.Message):
if message.author == client.user:
return
if ... | 3a1468af4c3ffb6c6ea458d13f370cc9bb720abb | [
"Markdown",
"Python"
] | 2 | Python | jmalexan/DiscordBotExample | b6b66b592fbd7c701b6642206a36276f6084d942 | ee97dea5d460ebe8bb4ccfe2a1c0a9468f02d001 |
refs/heads/main | <file_sep>import { MnistData } from './data.js';
let model;
let data;
let isModelTrained = false;
let ctx;
const canvasSize = 200;
// Last position of the mouse
let lastPosition = { x: 0, y: 0 };
let drawing = false;
// Image size is [28, 28]
const IMAGE_SIZE = 28;
// 1 because it is a grayscale image
const IMAGE_CH... | bebdbbb17e7e6b046dc3ad34c895168915560938 | [
"JavaScript"
] | 1 | JavaScript | rhaymisonbetini/CNN-Numbers-Javascript | 7f97a66f2bf1bec604f218a9d5d34a4ba5e7908b | 44c9240c62cca0965a528a682c416f8e1978065d |
refs/heads/master | <file_sep>import { ActionKey } from './actions/action-keys.enum';
import { MainBoard } from './main-board.class';
import { Player } from './player.class';
import { ResourceType } from './resource-type.enum';
describe('Player Class', () => {
it('should create', () => {
const mainBoard = new MainBoard(4);
con... | cee09bfbb9ec95818ec877a23e210df8cdd59530 | [
"TypeScript"
] | 26 | TypeScript | pedrus16/agricola | fc375b490bfb965fb6881656c139db77c493d70b | b20ccdc682cfb2333f5fc5e6d22b64e5c044654e |
refs/heads/master | <repo_name>1085437068/hello_world<file_sep>/change_format.py
#!/usr/bin/env python3
#--coding:utf-8--
#出现IOError可能与图片保存的新路径有关,换个路径试试
#出现Keyeeror由于fmt_output处多加了双引号
#在调试过程中发现os.path下的函数引用路径必须要有双引号,此程序在函数get_imlist中返回的数列已带有双引号!
from PIL import Image
import os
def get_imlist(path1,fmt_input):
return[os.path.join(path1,f)... | e6f46db96b8d6408dd447a48ac9963a05d42f906 | [
"Markdown",
"Python",
"C++"
] | 3 | Python | 1085437068/hello_world | e7472b01a44403c1a5a0765a04d2080d454decd4 | c6e95e1b9f0a44370446a07c57244688a30322a9 |
refs/heads/master | <repo_name>guorant/hexo-sup-footnote<file_sep>/index.js
var renderFootnotes = require('./src/footnotes');
util = require('hexo-util');
var hexo = hexo || {};
var config = hexo.config || {};
var footnoteConfig = config.sup_footnote || {};
// Register footnotes filter
hexo.extend.filter.register('before_post_render... | dbfd2fc5ca6975bcf730c1ab8d3a7a0b18f50af8 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | guorant/hexo-sup-footnote | 3b15a153fc4b474084536317c9fef966035fe35c | 032d66a97f6aa64578f9c2ba978c455b99562be9 |
refs/heads/master | <repo_name>drafe1/bathroom<file_sep>/js.js
function closeAndOpen(elem){
var a,b;
if (elem.id == "cross1") {
a = document.getElementById('work1');
b = getComputedStyle(a,null);
if (b.visibility== 'visible') {
a.style.visibility = 'hidden';
elem.style.marginLeft = 0;
} else {
a.style.visibility = 'visib... | 7712390dd5a4f60fc9acb6a61a88b6bd18fa835a | [
"JavaScript"
] | 1 | JavaScript | drafe1/bathroom | 6b3794fdd326723c583378c91f3c969e90a47a32 | b02ff2614e8d5ff8224fc9b40b8c5c26c767060a |
refs/heads/master | <repo_name>jonathan-kalechstain/shap<file_sep>/tests/maskers/test_fixed_composite.py
""" This file contains tests for the FixedComposite masker.
"""
import pytest
import numpy as np
import shap
@pytest.mark.skip(reason="fails on travis and I don't know why yet...Ryan might need to take a look since this API will chan... | 41a980563cb32b3f804ca34cf671f6c7cd89db68 | [
"Python"
] | 1 | Python | jonathan-kalechstain/shap | c99631bb0b0888ce9ca0c5c3c97a4288d24e4dd7 | 243344fbb149ba451c62e60822f7dd0a74e21ffc |
refs/heads/master | <file_sep><?php
//this function creates links to rss feeds
function rssfeed_links($items_array) {
$rsslinks = "";
for ($item = 0; $item < count($items_array); $item++) {
$item_name = $items_array[$item];
$item_name_url = urlencode($item_name);
$rsslinks .= "<... | 10f8fec9105644a8f15217fd5657fa1e58647ab3 | [
"Markdown",
"PHP"
] | 14 | PHP | jhhsu8/classic-vehicles-website | 19bcca5aa5357348e734a8750d46884b480a009f | 96b186a081a778293b19103fdb6c1c23ffdf4cf0 |
refs/heads/master | <file_sep>require 'sinatra/base'
require 'data_mapper'
require 'rack-flash'
require 'byebug'
class ChitterWeb < Sinatra::Base
enable :sessions
set :session_secret, 'super secret'
use Rack::Flash
#This will allow us to use a new method in our server file, 'delete'
use Rack::MethodOverride
#tells you where your views... | 49ecbdce0d435e30bb6a84151bb54e7c871f9b6f | [
"Ruby"
] | 6 | Ruby | timoxman/chitter-challenge | 1ae2f6f0c8288e2c56813648d9c5662daafa3c36 | c5b682f8cb82502b2d7012e2f72bb07b1e20c83d |
refs/heads/master | <repo_name>ilyaborodin/GitHomework<file_sep>/main.py
print('Enter your name:')
x = input()
print("Hello brave new " + x)
print('How is the weather today?')
| b20674382b062335e7781056cd13dcd46113f0dd | [
"Python"
] | 1 | Python | ilyaborodin/GitHomework | 0ea98e31608d5a6b62be065a1044348bee5410d4 | 02ad0fe6502448fc70ac06f6ac1bf4dce8619fca |
refs/heads/main | <file_sep>package mehmethy.todo.data
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
object DataBaseInfo {
const val NAME = "tododb"
const val VERSION = 1
const val TODO_GROUP_TABLE_NAME = "todo_group"
const val TODO_GROUP_... | 79546a35d1b0e5dfeaf4169ce11e19a090c975c4 | [
"Markdown",
"Kotlin"
] | 11 | Kotlin | MehmetHY/AndroidToDoApp | 2ba02e828c5531bf744bda1c12e02e703a73301c | 62ab1ca0462668d5b00085157d630331af84493d |
refs/heads/main | <file_sep>{
console.log('10.1.Rozgrzewka');
{
console.log('Ćwiczenie 1.1');
{
const names = ['Kasia', 'Tomek', 'Amanda', 'Maja'];
const newNames = [];
for (const singlNameId in names) {
const singlNameLastLetter = names[singlNameId].charAt((nam... | 4904a4dd3f9babe5c6856bd27e5504b877100ae8 | [
"JavaScript"
] | 1 | JavaScript | MarcinZajecki/JS-Exercises | 9cfd33b974041f6ac9474b56f336be512f215c50 | ea6c197a4c17566c77151adc3cb49a31ebdad157 |
refs/heads/master | <repo_name>Michal-Atlas/DawnStorm-TextAdventure<file_sep>/dawnstorm-textfront/src/parser/sysexec.rs
use dawnstorm_core::{entity::Entity, syscall::SysCall, world::World};
pub fn sys_exec(call: SysCall, _player: &mut Entity, world: &mut World, current_node: &mut String) {
println!("{:?}", call);
match call {
... | cee5b09f879d345d908529f53fdb4fbf67c8c28e | [
"TOML",
"Rust"
] | 17 | Rust | Michal-Atlas/DawnStorm-TextAdventure | f18adab2efabd7ed9d957a3f4def16ef2ef4b0e3 | b5e46349610e3a351638dabb9937281d64abd438 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace UIApp.Models
{
public class VehicleVM
{
private string _lat;
public string lat
{
get { return _lat; }
set { _lat = value; }
}
private strin... | a1617b7bc4a09579ee760b8aae6f2b73fdf7a16b | [
"C#"
] | 3 | C# | Saravanagopi/UIApp | 8ada5bd9a713f54fa9dbd68170d57e1d0953ac14 | 35a8137a969eb4fcba88301d804981a742913fea |
refs/heads/main | <file_sep>import React from "react";
import { useSelector } from "react-redux";
import FlightCard from "../FlightCards/FlightCard";
import styles from "./InfoBox.module.css";
const InfoBox = ({ flightData }) => {
const { data, isLoading } = useSelector((state) => state.search);
console.log(data);
return (
<d... | 7dd37170bea937a849e6fd8069a656eddf04f152 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | Vinesh3124/Metta_Social_Assignment | 8964150e81d4c59484fa29490f8c02ff389e2c08 | 67758f102bad46f5c88eefaf89e459065d670d7f |
refs/heads/master | <file_sep>import pickle
from collections import Counter
from petapp.data_preprocess_util import dataArrange
from petapp import decision_tree_scratch, db
from petapp.models_db import Disease
def prediction(X_raw):
sympfile = open('symp_model','rb')
symp_list = pickle.load(sympfile)
infile = open('model','r... | f5b2dbf99a2692fdf19ba6d1627878f58496cca4 | [
"Python"
] | 5 | Python | petify-inout/petify-backend | 1fe96600ac426f46192ef32ad9f4cbf8788b3cea | 75859e85b77def5ae243a8b4ced0dfa43cf0c4ce |
refs/heads/main | <repo_name>AleksandrButakov/ip-calculator<file_sep>/src/ipcalcul/DecToBin.java
package ipcalcul;
// получим двоичный массив BitOrder байта DD0
public class DecToBin {
public boolean[] BitOrder = new boolean[8];
public int[] Degree = new int[]{1,2,4,8,16,32,64,128};
public DecToBin (int iByte0) {
... | 5e84e7f655494126adc7f72d4f14421fe4a64e01 | [
"Markdown",
"Java"
] | 3 | Java | AleksandrButakov/ip-calculator | f1a861447cf0306a42a904414931b8d595110e75 | a0500f7b3f77aefdfeeb86392f0d81ce4fdac940 |
refs/heads/master | <file_sep>using System.Collections.Generic;
namespace HitsTesterWeb.ViewModels
{
public class TestPageViewModel
{
public TestPageViewModel(string text, string translatedText, List<string> hits)
{
Text = text;
TranslatedText = translatedText;
Hits = hits;
}
public string Text { get; }
public strin... | 986dc7dc2de799475957a2281ee584cc4ab4da51 | [
"Markdown",
"C#"
] | 5 | C# | Q42/HaagsTranslator | ff3e9aaa1b72be050e49997ec485a4e2b2703ebf | 1d85ec225d3f9333282511fe8d5eadc819c77cac |
refs/heads/master | <repo_name>apullenb/myBudget-api<file_sep>/Services/Bills/billsService.js
const BillServices = {
addNewBill(knex, newEntry){
return knex
.insert(newEntry)
.into('bills')
.returning('*')
.then(rows => {
return rows[0];
});
},
getById(knex, id) {
return knex
.... | 46ba475df68273b63fce77b5d2970924f1bc1da2 | [
"JavaScript",
"SQL",
"Markdown"
] | 13 | JavaScript | apullenb/myBudget-api | 1505cd1b331c8bc88399b54fcf1b92c457be1a7b | 5f6a0cded3f65316dc6a26adb3651817bd2f6d31 |
refs/heads/main | <repo_name>gitsans/Tic-Tac-Toe<file_sep>/src/Board.java
import java.util.*;
public class Board {
String userState;
String jvmState;
boolean winnerFlag;
int size = 0;
// Index VS Character
// X -> 1 && O -> 0
// false -> Player
HashMap<Integer, String> map = new HashMap<>();
public ... | af178eb0544b6e6d50c1c746a234d504d357e9cd | [
"Markdown",
"Java"
] | 3 | Java | gitsans/Tic-Tac-Toe | 861ae1e1c023ded94c2e50e683379ec492131a6c | fd3d1b6b32597a40dcde6bf9a3bc115a37549452 |
refs/heads/master | <repo_name>kelseyzzz/PlugIn-Homework<file_sep>/assets/js/main.js
console.log("Hello World from main.js!");
$.jInvertScroll(['.wedding']);
(function($) {
$.jInvertScroll(['.wedding'], // an array containing the selector(s) for the elements you want to animate
{
height: 9000, ... | 44761aef48851c4c82ab56ed2251ce76192d49c4 | [
"JavaScript"
] | 1 | JavaScript | kelseyzzz/PlugIn-Homework | 0a1aab4ac16d30f3ed6227da9fbe113cbe07d040 | b9edfd2f5e7beff9e57e01fa19e81d641ca6b63e |
refs/heads/master | <repo_name>ArchimediaZerogroup/alchemy-ajax-form<file_sep>/config/initializer/assets.rb
Rails.application.config.assets.precompile << 'alchemy_ajax_form_manifest.js'<file_sep>/test/alchemy/ajax/form_test.rb
require 'test_helper'
class Alchemy::Ajax::Form::Test < ActiveSupport::TestCase
test "truth" do
assert_kin... | 9b1391730431fe49986a3019b581c82330ee62ad | [
"Markdown",
"Ruby"
] | 16 | Ruby | ArchimediaZerogroup/alchemy-ajax-form | bfa89fdff47c67a67b6881c848b4f03e63936fac | bdc7cfedfe157684f02ad5f58ffddee0345c3ba4 |
refs/heads/master | <file_sep>var MONGODB_URI = process.env.MONGODB_URI;
if (!MONGODB_URI) {
console.error('Missing MONGODB_URI environment variable.');
process.exit(1);
}
// Require express and mongoose
var express = require("express");
var mongoose = require("mongoose");
//require all models
var db = require("./models");
// Set ... | 9dc8bbc0199ce07a32db1f6873a1ba9a0936e683 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | tlacy1000/all-the-news | a346fa8fe1ca17cf8220232d2b29107aa019e9ec | b993b46d8b5f03adfbb491b3900305cb3772e57b |
refs/heads/main | <file_sep># AAP1
Primer Proyecto del curso Análisis de Algoritmos
<file_sep>from Generator.dominoes import *
from timeit import default_timer as timer
import matplotlib.pyplot as plt
from math import log
#######################################################################
## Solucion del proyec... | 02601600544e1c913060e3465fc94c8649f73d3c | [
"Markdown",
"Python"
] | 4 | Markdown | CNNunez/AAP1 | c5611319b2131228e74ae3b3717beafdc6ae03dd | 763a844f5f20300b68a375752ede2f296e76cf81 |
refs/heads/master | <file_sep><?php
namespace App\Modules\Transaksi\Controllers;
use App\Controllers\BaseController;
class Transaksi extends BaseController
{
protected $path = 'pages/transaksi/';
public function masuk()
{
$data = [
'user' => 'Tri',
'page_title' => 'Transaksi Masuk',
... | 03b77b831ecbdc4b961feede1e70213371feaa7b | [
"JavaScript",
"Makefile",
"PHP"
] | 14 | PHP | boombaw/parahiyanganstore | 920ffc9d1fb711fd6314b8b24ae8c323a607cfc9 | 7247ecda069aa427a186363259a68cc5735777ca |
refs/heads/master | <repo_name>dsilvers/Milwaukee-Alternative-Radio-Station-Spotify-Playlist-Creator<file_sep>/requirements.txt
certifi==2018.4.16
chardet==3.0.4
future==0.16.0
idna==2.6
oauthlib==2.1.0
python-twitter==3.4.1
requests==2.18.4
requests-oauthlib==0.8.0
spotipy==2.4.4
urllib3==1.22
wheel==0.26.0
<file_sep>/README.md
# Milwauk... | 6b194a9c08bc814660a4943e7797e1e1b0a0fef5 | [
"Markdown",
"Python",
"Text"
] | 5 | Text | dsilvers/Milwaukee-Alternative-Radio-Station-Spotify-Playlist-Creator | 0a93f998d8124b79c277efd04a0be76812490ffd | 6c14115569fa361ecc470e2b3934e5d515dd3c6a |
refs/heads/master | <file_sep># Generate forest plot for odds ratio.
# http://www.metafor-project.org/doku.php/plots:forest_plot_with_subgroups
library(metafor)
#library(forestplot)
# *************
# A simi-auto plot for forest plot.
# @<NAME>, <EMAIL>
# *************
#http://www.cookbook-r.com/Graphs/Output_to_a_file/
pdf("plots.pdf"... | 9cdbf4ca555f58f37a9ddc9f4affb222a1010fdb | [
"Python",
"R",
"Shell"
] | 7 | R | kbsssu/WallaceBroad | 72f36d24850e485ff5c5ef6e29742d7d39708e4d | 996de84c7d65cc15b58467f6d75f6d9c3acd0330 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Cliente;
import java.io.DataInputStream;
import java.io.PrintStream;
import java.net.Socket;
import Servidor.server;... | 88bffebbaf58f7eb1e90dafa9483306726c10dfd | [
"Java"
] | 1 | Java | merinomerino/messenger | d75f5f27dd8a6315a0177bca37cd54d0493cf551 | 41f9bbaaef02c1d48fb92d6fd9014d419428267a |
refs/heads/master | <repo_name>youssefmohamed552/infinite-runner<file_sep>/src/gnd/Ground.java
package gnd;
import java.awt.Graphics;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Random;
import game.Canvas;
import game.Game;
import game.GameObject;
public class Ground {
private int _x;
private int _y;... | a8d859fbbe796b529e1bebf6a6f96af33a1c12d2 | [
"Java"
] | 1 | Java | youssefmohamed552/infinite-runner | 3f760c7abd48d339affd2a2bbc3d6122850ae98a | a8eb57de1fd69f1a26418171c8d74a748e812955 |
refs/heads/master | <file_sep>package algorithms.search;
import java.util.*;
public class DepthFirstSearch extends ASearchingAlgorithm {
private Stack<AState> stack;
public DepthFirstSearch() {
this.queue = new LinkedList<AState>();
this.visitedNodes = 0;
this.stack = new Stack<AState>();
}
@Ov... | 08347890e972f31f0e739f7b307458d1a7aa6a45 | [
"Java"
] | 2 | Java | oribena/Maze | f29b5ac6ded1eb1de9fc2f2ceadebd8603c1aee1 | 97cd12cb8d15453bf7c7776b131ed69817f9a1d4 |
refs/heads/main | <repo_name>QuentinAndre11/lecture-spring-2021<file_sep>/test_core.py
from core import *
def test_add():
"""Check that `add()` works as expected"""
assert add(2, 3) == 5
def test_add_z():
"""Check that `add()` works as expected"""
assert add(2, 3, 1) == 6
def test_add_2():
"""Check that `add(... | 383eb397dfe04e24910013fc581d9b4b771d5069 | [
"Python"
] | 2 | Python | QuentinAndre11/lecture-spring-2021 | 2f2b563e91ea6e18fe6cd3e9087f2fd0b2e2beee | 3f58eba6ce123eb6dbd5dc5d52a3a5bbf7639923 |
refs/heads/master | <file_sep>package com.rzierfiz.peinit.Pein;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorManager;
import android.hardware.TriggerEventListener;
import android.util.Log;
import android.widget.TextView;
import com.rzierfiz.pein.SensorAPI.Sensors;
import com.... | 0262294ba2807674b96c669824390792a52915f0 | [
"Markdown",
"Java"
] | 3 | Java | rmhg/Pein | 3f8863b14cb1caf5bb572590f1f30572a7a69622 | c1df31b4532e2f4be1d4e353f2f789116f4b5b6b |
refs/heads/master | <repo_name>doulos76/Python_Study<file_sep>/python_basic/section04-1.py
# Data Type
v_str1 = "Niceman"
v_bool = True
v_str2 = "Goodboy"
v_float = 10.3
v_int = 7
v_dict = {
"name" : "Kim",
"age" : 25
}
v_list = [3, 5, 7]
v_tuple = 3, 5, 7
v_set = {7, 8, 9}
print(type(v_tuple))
print(type(v_set))
print(type(v_fl... | 6727f6f02ef8bf1403f02b0fc11c98f364a621b5 | [
"Markdown",
"Python"
] | 8 | Python | doulos76/Python_Study | cd978ec0f60fe16de575122f1dcf37bc5895aac6 | fdd73012ce9f1d61d1805e992a1c2893c5b77a45 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link } from "react-router-dom"
import {
Home,
Login,
Topic
} from 'view'
// const Topics = ({ match }) => (
// <div>
// <h2>Topics</h2>
// <ul>
// <li>
// <Link to={`${match.url}/rendering`}>Rendering w... | f735fafe706334bfc81a550d420e2b289adeead0 | [
"JavaScript"
] | 9 | JavaScript | yxbgithub1/react-cnode | d08e197c9a20725a4bb97df2f9e7afd8bead3590 | df5a0cef60e264cdb7faa56f71cd80d5b68b7eb0 |
refs/heads/master | <repo_name>kisaragui/Alkemy-React-Challenge<file_sep>/src/components/utils/useApiHeroes.js
import { useEffect, useState } from "react";
import apiHeroes from "./Api";
const useApiHeroes = (response) => {
const [state, setState] = useState({data: [], empty: true, response:"" });
useEffect(() => {
... | da2261c1b46b47552e523caee344517615f51ff6 | [
"JavaScript"
] | 6 | JavaScript | kisaragui/Alkemy-React-Challenge | 420e24bdb9d8152aeef941f8ce5e979e2bfce33f | 1a77a008c29337d4f0460212441e117f64b7f68a |
refs/heads/master | <file_sep>//! An experimental
//! [OSCORE](https://tools.ietf.org/html/rfc8613)
//! implementation with
//! [EDHOC](https://tools.ietf.org/html/draft-selander-ace-cose-ecdhe-14)
//! key exchange, intended for embedded devices.
//!
//! The EDHOC implementation is based on
//! [draft 14](https://tools.ietf.org/html/draft... | f0efd64c421148cdb7a63222a656689655faf061 | [
"Rust"
] | 1 | Rust | mcr/oscore | bfc184a1ba37c719358dfe0fac405724cf9cf3fe | 8dbd9a62f479cd419caae3baa00f8b9a3c3e68a9 |
refs/heads/master | <repo_name>os6sense/ruby-micro-benchmarks<file_sep>/spec/bm_record_spec.rb
require_relative '../bmstore'
describe BMRecord do
it "add_tms adds a tms record to the db" do
TMS = Struct.new(:user, :system, :total, :real)
tms = TMS.new(1.0, 2.0, 3.0, 4.0)
bm = BMRecord.new.add_tms("test", DateTime.now, tms)
... | ffe397096a0c5b153a6c5435a385bae4df0c7e24 | [
"Markdown",
"Ruby"
] | 17 | Ruby | os6sense/ruby-micro-benchmarks | b5c18c9b23d5936f50b5c57de4fc1d3f128fa1bf | 1576908906ea7b560733796b9cd2f25e4d0166f0 |
refs/heads/main | <file_sep>import $ from 'jquery';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import './css/styles.css';
import convertToRoman from './scripts.js';
// UI Logic
$(document).ready(function () {
$("form#convert").submit(function (event) {
event.preventDefault();
const value = $("#number")... | 43d92a0a6ccbdf28a44d338758b4b0c4dce6ea5e | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | paigetiedeman/Roman-Numerals | 818da6e38b1e372fb97a531dcf8592d5d417c22e | da932becf389b88ac51c2501ed44b72ef792988f |
refs/heads/master | <repo_name>franela/watch-docker<file_sep>/timeline/timeline.go
package timeline
import (
"fmt"
"os"
"time"
"github.com/google/go-github/github"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
var mongoSession *mgo.Session
func init() {
mongoUrl := "mongo"
if url, exists := os.LookupEnv("MONGO_URL"); exists {... | 9d70552fcbd9ca51ca8f414163c49d581f83397d | [
"JavaScript",
"Go",
"Dockerfile"
] | 8 | Go | franela/watch-docker | 6e5f806a3743af8453cd717243ff71491401c757 | 6ae5d09dcd2886c66966d0c77bd1c277b33cf52f |
refs/heads/main | <file_sep>myNumber = 3
print(myNumber)
myNumber2 = 4.5
print(myNumber2)
myNumber ="hello world"
print(myNumber)
| d4573d349b69227f8a494f3dbddbf63bc7d8254e | [
"Python"
] | 1 | Python | LGHAR/hello | 7674430ca8cb33e825909934f47312d6d0d4633f | 7cf2f77cfa4b69307157e592d3b1d3e6aeb9f0da |
refs/heads/master | <repo_name>tommasoscocciolini/php-snacks-b1<file_sep>/snack1/index.php
<?php
$giornataX = [
[
'casa' => 'Cantù',
'punti_casa' => rand(50, 120),
'ospite' => 'Milano',
'punti_ospite' => rand(50, 120),
],
[
'casa' => 'Bari',
'punti_casa' => rand(50, 120),
'ospite' =>... | 02c0baa75daf05ff980bd9b8817fd308ae36c2b1 | [
"PHP"
] | 4 | PHP | tommasoscocciolini/php-snacks-b1 | 673c4ef88fd993b2db873a8558370517f74e367d | d52c9113e9ec0faaed1247a1a4f6160b703b5cc1 |
refs/heads/main | <file_sep>using UnityEngine;
using Zenject;
namespace Input
{
public class KeyInputInstaller : MonoInstaller
{
public override void InstallBindings()
{
Container.Bind<IInputEvent>()
.To<KeyInput>()
.FromNewComponentOnNewGameObject()
... | dc58f50b11a261ccd1e9a99aacc0599378de3e51 | [
"Markdown",
"C#"
] | 9 | C# | YanaPIIDXer/PUN2NPCTest | 44a2b4cad4322772c66a91f8409475fa2c598abf | 7f8abaa5ba17074a0b7aff97fe9f886efe39a4fd |
refs/heads/master | <file_sep>from __future__ import unicode_literals
from django.apps import AppConfig
class FazbazConfig(AppConfig):
name = 'fazbaz'
<file_sep>from celery import shared_task
@shared_task
def say_hello(name):
print 'Hello, %s' % name<file_sep>amqp==2.1.4
appnope==0.1.0
backports.shutil-get-terminal-size==1.0.0... | 6550f9f0d9d77ad7193eac4040f4368e05ae03c0 | [
"Python",
"Text"
] | 3 | Python | thongly/scaling-test-foobar | 8974eca466c3b4aba48956a630aba16b0732cbaa | 8957c4337706d9af332f1dfa536d20cb00f71d18 |
refs/heads/main | <repo_name>AlexCollin/goRangeDownloader<file_sep>/main.go
package main
import (
"flag"
"fmt"
"github.com/AlexCollin/goRangeDownloader/internal/downloader"
. "github.com/AlexCollin/goRangeDownloader/internal/errutil"
"github.com/AlexCollin/goRangeDownloader/internal/urlutil"
"log"
"time"
)
func main() {
var w... | 1d0891a864646e25894a5cdcbda2ede5115b59b6 | [
"Markdown",
"Go Module",
"Go"
] | 8 | Go | AlexCollin/goRangeDownloader | 8271db36ab6a7156c3c12849ee994c5481444211 | 03b60059b625baeb3f57e3963ee6b16000cebeab |
refs/heads/master | <file_sep>'use strict'
const express = require('express')
const SocketServer = require('ws').Server
const path = require('path')
const R = require('ramda')
var users = {}
const PORT = process.env.PORT || 8080
const INDEX = path.join(__dirname, 'index.html')
const server = express()
.use((req, res) => res.sendFile... | dc86990c9efca4dc5608b34b5000ae9150973cd6 | [
"JavaScript"
] | 1 | JavaScript | amiraliweblite/voicelite | 8243a88fc92f52f7dca24694044d47ae81bf9a7e | 2a1e8e6f048c2c0fd99aace99749d8eac1cf1e76 |
refs/heads/master | <repo_name>HaDaanCraft/mylovelifefamily<file_sep>/viewLists.php
<?php
include('private/DB.php');
if(isset($_POST['listItem'])) {
$listItem = $_POST['listItem'];
DB::query('INSERT INTO list'.$_GET['id'].' VALUES (0, :value, 0)', array(':value'=>$listItem));
}
$items = DB::query('SELECT * FROM list'.$_GET['id'].' O... | 716ec5636ff060237a4c392fba6e2c1fff5ef676 | [
"JavaScript",
"PHP"
] | 15 | PHP | HaDaanCraft/mylovelifefamily | cae1cdda2b552478ad5a069fba89102b63378643 | 70937e78198fed55af383cc7e62577cc9ca16bc2 |
refs/heads/master | <repo_name>kabragaurav/Blockchain-With-Js<file_sep>/README.md
# Blockchain-With-Js
Very basic functions of Blockchain, implemented in Typescript
# Author
> <NAME>
# Installation
In VS Code, open terminal and type : <br>
```
npm install --save crypto-js
```
This will provide cryptographic libraries.
# Running
In VS ... | f7bf4e9b01a93a4532716d400cefdd3d8089069f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kabragaurav/Blockchain-With-Js | 535919180526c275f42c6d733b161751da91c66d | 86c4cbead43a09636e7a2ff338ecfc174f649939 |
refs/heads/master | <repo_name>RenatoSanchez006/Todo-List<file_sep>/js/index.js
//Add new elements
document.getElementById("submitButton").addEventListener("click", function () {
var input = document.createElement("input");
input.type = "checkbox";
var label = document.createElement("label");
label.textContent = document.getElementByI... | 6c386dc4ab55aae092a436237a3df0622b0e5f0c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | RenatoSanchez006/Todo-List | 5d249f23cb6480a19b1d5d423d9af74383848409 | 5c385642311b9827033f9ae041064d1f4dcb3ab6 |
refs/heads/master | <repo_name>sabinpark/ECE382_Lab8<file_sep>/code/18_lab8_imp.c
//-------------------------------------------------------------------------------
// Name: <NAME>
// Term: Fall 2014
// MCU: MSP430G2553
// Date: 10 December 2014
// Note: Lab 8: implementation file for the robot maze lab
//-----------------------------... | ca8a6a8df87c72bf25a5eefa1462fa8d9e476eab | [
"Markdown",
"C"
] | 4 | C | sabinpark/ECE382_Lab8 | bf641bb857c5dc53d3ee29246654b58097d4aeae | 38ef4199f04833bc37ba6db8ba397f4e0e883dec |
refs/heads/master | <repo_name>marciobahia/Letmeask<file_sep>/README.md
<div align="center">
<img src="https://github.com/marciobahia/Letmeask/blob/master/src/assets/images/logo.svg">
</div>
## Let Me Ask
[](https://github.com/josepholiveira)
[![Lang... | d3bc5f66baca218d6dfcca327b71b5581fc76ebf | [
"Markdown",
"TypeScript"
] | 2 | Markdown | marciobahia/Letmeask | e48a04e81892072cd724a2fe06e1706071789383 | eccf64af67b3493d28535a244596ce05f9fc4900 |
refs/heads/master | <file_sep>/**
* Given a string, return its encoding version.
*
* @param {String} str
* @return {String}
*
* @example
* For aabbbc should return 2a3bc
*
*/
function encodeLine(str) {
const arr = [...str];
const answer = [];
let current = [0, ''];
arr.push('');
arr.forEach((e) => {
if (e !== curren... | 48022f89c66ed7b281960ae51f8fd31420225074 | [
"JavaScript"
] | 6 | JavaScript | 4ebula/rs-school-short-track-2021 | a376f4a715a988b6ab139d4ef6b919dd2001b1e8 | 7e320c1f8664780058aae393040c4cf591af7c18 |
refs/heads/master | <file_sep>#pragma once
#include <SDL.h>
#include "EngineModule/Actor.h"
namespace GameModule {
enum class SceneState;
class Button;
class Menu : public EngineModule::Actor{
public:
Menu(std::string nodeName);
void init();
void render() override;
void OnExit() override;
void setState(SceneState val);
... | bf4a5fbcfbb5ed473adfabba0e7f1557a3623153 | [
"Markdown",
"C++"
] | 19 | C++ | nselyavin/Weigher-SDL | f5dc8862f68c01127fe678ff631bb817b35cdb32 | 0209e9192c3747718a0e9116d65475b11ad2b847 |
refs/heads/master | <repo_name>msdlt/canvas<file_sep>/ebmprimer/ebmprimer.js
/*
* JS to resize H5P in a frame
*/
/*var h5pScript = document.createElement('script');
h5pScript.setAttribute('charset', 'UTF-8');
h5pScript.setAttribute('src', 'https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js');
document.body.appendChild(h5pSc... | 45356f8a3b55335d96f1efc486831f3946eb570e | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | msdlt/canvas | 5c20f32c07e35868ff354bc358f79f597e22c945 | 0addc5851e5727930f83bf23010659be3a860cc7 |
refs/heads/master | <repo_name>WHTaylor/home<file_sep>/bin/follower.py
import time
import curses
# Add an option to pattern match against lines
# For now, just removing this many chars from the beginning
CUT_OFF_THEIR_HEADS = 14
def get_tail_lines(filename, catch_up_N=15):
'''
Create a generator that yields any lines written to ... | a275f508b545ea4b1e07e06c1b8ba308fc4b919f | [
"Python",
"Shell"
] | 6 | Python | WHTaylor/home | 7556457f87bca3052088c2067a3870b9c6cf0c3d | f1942ab25ff853f56838899db196b93722445e4f |
refs/heads/master | <repo_name>SIW22/Kaleidos<file_sep>/README.md
# Kaleidos
## Wireframes





 {
super();
this.bind(this);
}
bind(element) {
element.attachEvents = element.attachEvent... | 19a6b21eed0d7274e78807aa948ff105b76c912a | [
"JavaScript",
"Text",
"Markdown"
] | 21 | JavaScript | Somnid/svg-pad | 92f21a8593bdf02f98b1d1dd5cac4f45355662ab | 8e1cc1b03cc3587c4f62b57ae46f1098bfa8517f |
refs/heads/master | <repo_name>anandvarkeyphilips/PackageTrack<file_sep>/src/main/java/com/jits/shipping/constants/AppConstants.java
package com.jits.shipping.constants;
/**
* Created by <NAME> on 6/1/2018.
*/
public class AppConstants {
public static final String[] validShipMethods = {"GRD","AIR","RAL"};
}
<file_sep>/src/main/java... | c5e14028d18e5f247aebf0e9fd2bdd94356ef262 | [
"Java"
] | 4 | Java | anandvarkeyphilips/PackageTrack | 694f99d9225b26c683c36433a4db67081660b853 | b741d6dad8b6ffa7e903f159a05f006ec33e9549 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.