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>KosmosKosmos/october-simplenavigation<file_sep>/classes/filesystem.php
<?php namespace Zollerboy\Navigation\Classes;
/**
* Filesystem helper class
*/
class Filesystem {
/**
* Create a new File at the given path with the given content.
* @param string $filePath The path, where the file will be sa... | fe93b448ae58737de3396c253e31b3fc4c19c576 | [
"PHP"
] | 5 | PHP | KosmosKosmos/october-simplenavigation | ed433b1fcb468e8c932edc37afdd8ceb4b609443 | f2e1d0dc940f5118183c3a9c693d938369ac8539 |
refs/heads/master | <file_sep>#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
======================================================
Qustions
======================================================
"""
import re
def question_two():
"""
reference to inner array duplicated 3 times
"""
# [[][][]]
x = [[]]*3
#[[a],[... | b0ce80029500b2691d5915c19d02dab9885d6ce6 | [
"Markdown",
"Python"
] | 3 | Python | maxim-popkov/EntryTasks | 9b316434909eb4be5fdd3dffddf376e7207dd1a6 | 473616799d4f735ba01620574512c844a5171344 |
refs/heads/main | <repo_name>eyjohn/scratch-binary-compat<file_sep>/windll/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(windll VERSION 1.0.0 DESCRIPTION "Windows dynamic loading test libraries and applications.")
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(liba SHARED liba.c)
set_target_properties(liba PROPERT... | 0f35d3e1fa4407dd70a41d8453a27420db6635c1 | [
"Markdown",
"C",
"CMake",
"C++"
] | 19 | CMake | eyjohn/scratch-binary-compat | 5867819a287a219229c7294d1b443d781b7ade45 | 439dadebbbc9250ef92236404a1ba0dbdfa23889 |
refs/heads/main | <file_sep>#Loading the required Packages
install.packages("caTools")
library("caTools")
library(readxl)
#Setting the working directory
setwd("D:/GRIP")
#Importing the Data
studentsData <- read_xlsx("StudentGradesandScores.xlsx")
#Check if data is imported correct
View(studentsData)
str(studentsData)
he... | 0df25b038ac0a1e8afe980e4365e47795ec056cc | [
"R"
] | 1 | R | suneethag/SparksFoundation-DSTask1-StudentScore | 9d8f69edba2fa681f9e56fa0a0414856a920b45d | a76e29d2211b7bc0ed16f5f9904f9338ca75e965 |
refs/heads/master | <file_sep>import React from 'react';
import styled from 'styled-components';
const Container = styled.div``;
const Label = styled.label`
font-size: var(--small-size);
color: var(--snow-color);
margin: 0;
`;
const Input = styled.input`
font-family: 'Roboto';
font-weight: bold;
font-size: var(--xlarge-size);
width: 10... | 4e65935dd4abaa8fc333c1626d3ce66fbdf596cd | [
"JavaScript"
] | 11 | JavaScript | izanf/teste-xpi | e0399d2ef4b0e9556f28795a7ab5a37a056d6d04 | 6dba7172303fc06a0e5671acf7bd12b4e5e743b5 |
refs/heads/master | <repo_name>hvctgr/SeoCV<file_sep>/README.md
# SEO CV
Modificación de [fantastiCV](https://github.com/hvctgr/fantastiCV) para optimizarla de cara al SEO.
## Consideraciones en el maquetado
- El title se ha cambiado a el nombre del personaje, la etiqueta alternativa es otro nombre que puede tener el personaje.
- Se ... | f84bf826fae7e6389a7799e09dd41ae6541fbefc | [
"Markdown",
"JavaScript"
] | 2 | Markdown | hvctgr/SeoCV | 2442fdfc01e2ec6bad53785a68872fac82562445 | d643042b400927d04840d437c7a7eb5ef8348b44 |
refs/heads/master | <repo_name>jackbicknell14/surftone<file_sep>/README.md
# Surftone
Streaming music for fans.
## How to use
+ Activate a python3 [virtualenvironment](https://www.geeksforgeeks.org/python-virtual-environment/).
+ `pip -r install requirements.txt`
+ `python manage.py runserver`
## Report bugs
If you have any problem i... | a71f04bc5560537fbdf4bcea3fcc7805db89a709 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 7 | Markdown | jackbicknell14/surftone | 007c3c143e88f60ad4cf6a87e07fa1d2d65f969d | 07fc5a92e919122edd0e57ed4143ae0d352c5079 |
refs/heads/master | <repo_name>CiarlantiniD/Estatalaizer<file_sep>/variable.js
var questions =
[
{
"question": "¿Es azul?",
"name": "q1",
"goodAnswer": 1,
"badAnswer": 3,
"points": 20,
"options": [
"Rojo",
"Violeta",
"Naranja",
"Azul",
"Ve... | d6b51f4a7bd51f8435f4621eb9f454f9f829ce71 | [
"JavaScript"
] | 2 | JavaScript | CiarlantiniD/Estatalaizer | e2744f8173b5ce3cf118bfd51fab44cf88f6ceb0 | d2984e7bc755307040b447a0fcbc6bb9d06f03b3 |
refs/heads/1.12 | <repo_name>TeamAvion/Tesla-Powered-Thingies<file_sep>/src/main/kotlin/net/ndrei/teslapoweredthingies/config/Config.kt
package net.ndrei.teslapoweredthingies.config
import net.ndrei.teslapoweredthingies.MOD_ID
import java.io.File
object Config {
lateinit var configFolder: File private set
fun init(modConfigur... | 5582186b9f9525d0016ad201a8e1ce36e56192a2 | [
"Markdown",
"Kotlin"
] | 14 | Kotlin | TeamAvion/Tesla-Powered-Thingies | 702e0b3a2a2759d2affc0f27b80adddb3df53686 | 66a0b2584ed31409c06aff786bd19bda513f4a31 |
refs/heads/master | <file_sep>#pragma once
#include "BinaryNode.h"
#include <queue>
class BinaryTree
{
private:
BinaryNode* m_root;
public:
BinaryTree(int data);
~BinaryTree();
BinaryNode* GetRoot();
void push(int data);
std::queue<int> BFExplore();
BinaryNode* RecursiveSearch(int value, BinaryNode* start);
};<file_sep>#include <i... | 6449867a9902b05084380ff5d3fbd180a673d233 | [
"C++"
] | 9 | C++ | MyNamesRaph/Algorithms | 5dbc40edcc43c87c0e167b5ac69763d6651c4a71 | 5fc7f8c95cdac7fc18922fc04c30ccc0d7a9fda0 |
refs/heads/master | <file_sep>const video = document.querySelector("#video");
//var remoteControl = new RemoteControl(video);
var recognition = new webkitSpeechRecognition();
const Http = new XMLHttpRequest();
recognition.continuous = true;
recognition.interimResults = true;
recognition.lang = "en-US";
recognition.continuous = true;
reco... | e632716fe9fe0af4c66e5630d7ac5af9ea0b2a5e | [
"JavaScript"
] | 2 | JavaScript | aliasosx/letterp-voice | 91d3ba6dae3addaf519a150cbc8c7ba2ab19f1b2 | 5910f84d7bb2698c8c07b2fae70440c14ae65752 |
refs/heads/main | <repo_name>Montasir-Rishad/Software-Project-I--20201009<file_sep>/Software Project(I)/Telephone Bill.c
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include<windows.h>
#include<process.h>
#define LEN 20
int r,q;
void gotoxy(int x,int y){
COORD coord;
... | 30ecdc7afeb8802d38be4e078ddff5b33048f56a | [
"C"
] | 1 | C | Montasir-Rishad/Software-Project-I--20201009 | a9051a5245658cce910109af276ae53121df9491 | 9b1346bcf8b38466a25b2d4526ef3ff3fd08e05c |
refs/heads/main | <repo_name>Aarmaaa/Book-Donation-93<file_sep>/Donate.js
import React from 'react';
import { StyleSheet, Text, View , FlatList, TouchableOpacity} from 'react-native';
import {ListItem} from "react-native-elements";
import firebase from "firebase";
import db from '../config';
export default class Donate extends ... | fce567690bdb0cd12bd5a591320150de7e842adb | [
"JavaScript"
] | 5 | JavaScript | Aarmaaa/Book-Donation-93 | 1c80ec1dda02382e1fdbfd6e936b50a0fe14cfd5 | 3e41f1d6cab859e006eef38f1f8beb4275288424 |
refs/heads/master | <repo_name>dupontdenis/update-courses-mongodb<file_sep>/app_api/controllers/courses.js
const mongoose = require('mongoose');
const Courses = require('../models/courses');
mongoose.connect('mongodb://localhost/my_courses', { useUnifiedTopology: true, useNewUrlParser: true });
const debug = require('debug')('app_api');
... | 10924d9e22743f54f276f0d1a856f6347dca24f9 | [
"JavaScript"
] | 3 | JavaScript | dupontdenis/update-courses-mongodb | 295dc3ca8957cc8030ffd60da0478cecccd13fdb | 2edfaaf0de2a4f060bc6425a628e704ab98eccb3 |
refs/heads/master | <repo_name>r2dev/fakejira<file_sep>/src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
// import firebase from 'firebase';
// const config = {
// apiKey: '',
// databaseURL: 'https://tracking... | 762a6c8d9209cdc7e79ab9648f6de0dfcbce8898 | [
"JavaScript"
] | 2 | JavaScript | r2dev/fakejira | 8fb74d00baab85ce8f50b473f7898bc1f221ce9c | 045beb42e50a3f717eba8266eb6447b1730abc45 |
refs/heads/master | <file_sep><?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Pet extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'subscripti... | 1b234403b15042c453c8a694242bb1a96e416117 | [
"Markdown",
"Dockerfile",
"YAML",
"PHP"
] | 22 | PHP | ggwebdev/barkyn-gabriel | 3b17313fd2fd0b4dcb2e3218df7798d4e2b407e0 | b40cfdd4604b398f44e193af7e326e8e547de753 |
refs/heads/main | <repo_name>drGarbinsky/dactylmanu-ball<file_sep>/i2c.ino
#include <Arduino.h>
#include <i2c_driver.h>
#include <i2c_driver_wire.h>
#define SECONDARY_ADDR 8
void kbReadBytes();
void setupI2c(bool isPrimary) {
if (isPrimary) {
Wire.setClock(100000);
println("Primary i2c initialized.");
Wire.begin();
... | f3a4203aaab8dff3086da53d89f2afd9504d7ad0 | [
"C++"
] | 8 | C++ | drGarbinsky/dactylmanu-ball | 8fabea97620cbd3f61014730b842abe8e43f2103 | 5b74f80862d3f5bf92f510b33c4ef586ae83264a |
refs/heads/lru_cache | <file_sep>Step by Step Guide
Create a repo, with the README.md initialized on GitHub. Name the repo as toy-problems. Add your mentor to this repo as a collaborator. Any practice problems that you practice can be part of this repo.
Now create a branch lru-cache in the toy-problems repo. Start developing python code for ... | deb6f6fed403956294b098522238859a32b44c3a | [
"Markdown",
"Python"
] | 3 | Markdown | vamsikrishnanunna-1998/Toy_problem | 9682a6e2036dc7723f3fc545109e9394aab44675 | 2ecee88723a5c1a364693fef78296c31964be12b |
refs/heads/master | <repo_name>qt314cumslut/discord-gif-bot<file_sep>/README.md
# discord-gif-bot
A simple discord bot template which posts gifs you have saved to a directory.
## NodeJs & Discord.js
Literally just a bare bones template for posting a gif via a discord bot.
<file_sep>/config.js
module.exports = {
discordAPI: 'Ur Bot API... | 8228c9282d5848814a69378c7e2b46f3cec366ff | [
"Markdown",
"JavaScript"
] | 3 | Markdown | qt314cumslut/discord-gif-bot | 1d2f09521e1e3fc42f161227f0f5483c8ecf0f1d | 5ae9379c99625fecfa67f9d9a4382ab8baba1f75 |
refs/heads/master | <file_sep>from django.contrib import admin
from django.urls import path
from lists import views
from django.conf.urls import url
urlpatterns = [
url(r'^$', views.home_page, name='home')
]
<file_sep>from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import unittest
class NewVisitorTes... | 3706577e4b4e81c72d53959156e5ab5ffe54f15a | [
"Python"
] | 2 | Python | swiderrr/tdd_python | 389a4e4c1a7087a406d4e6475ca2acd2c9fef3ca | b25af95e6aeb7f49499554a2d9a6c8dff67029ea |
refs/heads/master | <repo_name>brooks/narabe<file_sep>/app/controllers/index.rb
get '/' do
puts session.inspect
if signed_in?
@games = Game.all_active
@player = current_player
erb :lobby
else
erb :login
end
end<file_sep>/TODO.md
TODO
----
* Handle session messages, displaying and clearing
* Add multi-player suppor... | 57e22fc00d4924bf595f1b23c1918c47844b400c | [
"Markdown",
"JavaScript",
"Ruby"
] | 10 | Ruby | brooks/narabe | b3870eeae5d89b87c721201f0cc37fd5f7ab8332 | f93fcbc5257a142c50d9c918111094b3b743c6e1 |
refs/heads/main | <file_sep>// Asignar nombre y version de la caché
const CACHE_NAME = 'v1_cache_ruben_terre_pwa';
// Ficheros a cachear en la aplicación
var urlsToCache = [
'./',
'./css/styles.css',
'./images/Favicom/favicon.png',
'./images/Favicom/favicon_512x512.png',
'./images/Favicom/favicon_152x152.png',
... | 6eeff82cb60935651882be990ad77ea5c3ac6643 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rubenterre/Convierte-tu-Web-en-una-PWA | 8c2435637db9b11d015b7625d36468c6fc75e0b4 | 4c13dc31d3b8ef435f1ab9d3b763949986a2c752 |
refs/heads/master | <repo_name>lzlzlz911/AKKA4NET<file_sep>/Akka4Net/Program.cs
namespace Akka4Net{
using System;
using Akka.Actor;
internal class Program{
private static void Main(string[] args){
ActorSystem actorsystem = ActorSystem.Create("MySystem");
IActorRef actorref = actorsystem.Act... | f37fed551f3d2eafe2e2bb4163383707d76570dd | [
"C#"
] | 8 | C# | lzlzlz911/AKKA4NET | cbcc4bbfbd28b1dc26bbca0099513d61cdf53665 | c8999dfd1965cb3a605792d7f0f76e5d5ce51559 |
refs/heads/master | <file_sep>#-*- coding: utf-8 -*-
import Crypto.Cipher.AES as AES
import os
import random
import string
import shutil
import time
# 是的,这里99.99%代码都是Ctrl+c和Ctrl+v
# msfvenom -p windows/meterpreter/reverse_tcp_rc4 RC4PASSWORD=<PASSWORD> LHOST=172.16.31.10 LPORT=82 -f c -i 4 -e x86/shikata_ga_nai
shellcode=("\xbb\x14\x4a... | 3e29b6102590d241b0d55bc99f19cc7e65b5633c | [
"Markdown",
"Python"
] | 2 | Python | c0ll3cti0n/calc0 | f302b8771c362cbe22f085a03a40577283bc1ee7 | 204cd821ca2cb9d31ae9df6fd8ce0f343eb7fb08 |
refs/heads/dev | <file_sep>#!/bin/bash
user=""
host=""
# user="root"
# host="localhost"
dbname="SyncServer_SharedImages"
sqlScript="7.sql"
echo "Migrating $dbname on $host"
result=$(mysql -P 3306 -p --user="$user" --host="$host" --database="$dbname" < "$sqlScript" 2>&1 )
# I've embedded "ERROR999" to be output from the sql script... | 493602d073a45af4bc85dbc53fe9d4260ac55930 | [
"SQL",
"Ruby",
"Swift",
"Markdown",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 150 | Shell | crspybits/SyncServerII | 448ca46325c315e4b556c4a16a18e9aa94ea5db0 | a563b87e25ef13b533a5297d8a056f6a754caf10 |
refs/heads/master | <file_sep>struct Solution;
impl Solution {
fn is_palindrome(x: i32) -> bool {
if x < 0 {
return false;
}
let mut reversed = 0;
let mut number = x;
while number > 0 {
reversed = reversed * 10 + number % 10;
number /= 10;
}
x... | 39425a080a7c70e2a8787bca6485a476a87b309b | [
"Rust"
] | 2 | Rust | lexafaxine/rustgym | 9f3f7993b3b7f6c4b0de4bb934e9b2180439995e | 15c185dff7b363788986fe868c5b418e5f8f38a3 |
refs/heads/master | <file_sep><?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
use App\Notifications\VerifyEmail;
use Spatie\Permission\Traits\HasRoles;
use Laravel\Cashier\... | 706bac226b47f4528847157a0ad6b265e4d28567 | [
"Markdown",
"PHP"
] | 11 | PHP | innerview47/cms-backend | dbb81042bf347c8826016b8d06a334c2b171f0b4 | 06a3fb98baacff57efbd8a185e14911f74d0aa13 |
refs/heads/master | <repo_name>haoqianglyu/haoqianglyu.github.io<file_sep>/dist/music.js
const ap = new APlayer({
container: document.getElementById('aplayer'),
fixed: true,
autoplay: false,
loop: 'all',
volume: 0.7,
listFolded: true,
listMaxHeight: 60,
audio: [
{
name: '春风十里',
... | 500ed9918aa8aaf5c8a2383f5c388bfde33593eb | [
"JavaScript"
] | 1 | JavaScript | haoqianglyu/haoqianglyu.github.io | a0de3000111709d70c475983fc9a06e4963d70e4 | d80b61d3f4c9fcde91e78fe59a08d97a7e68089f |
refs/heads/master | <file_sep>package com.nat.test.pages;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
* Base class for all pages
*/
public abstract class Page {
protected WebDriver driver;
... | 78b74a830609beb4b665fe62ea92e5ea8d215e0c | [
"Java"
] | 1 | Java | marishkavasiuk/Java-Selenium-TestNG | fa5a570d17a563dd64179ee865834226ed357b5b | a023a9101a1dea3026557d87659e9446989363b4 |
refs/heads/master | <repo_name>yasminbraga/biblioteca<file_sep>/app/controllers/books.py
from app import app, db
from flask import render_template, request, redirect, url_for
from app.models.models import Book
from app.forms.book import BookForm
@app.route('/books')
def index_books():
books = Book.query.all()
return render_templ... | 778b22b63099a181f0ebb56847d52a392f7fb364 | [
"Python"
] | 9 | Python | yasminbraga/biblioteca | 46ddb70d040f2c2a6e1439603a35c2fd88a93fd3 | 65dc985cb8f8ad8b6349407a48d1c1962853cb4c |
refs/heads/master | <file_sep>$(function () {
var basket = $('#basket')
, container = $('#container')
, hen = $('.hen')
, eggs = $('.egg')
, egg1 = $('#egg1')
, egg2 = $('#egg2')
, egg3 = $('#egg3')
, restart = $('#restart')
, score_span = $('#score')
, score_1 = ... | d2e9e6a06ca53724c0f52471a83362c1b04693dc | [
"JavaScript"
] | 1 | JavaScript | GermanKingYT/arshadasgar.github.io | b9c63776ec63ffaba60f488cee41f9cc70de1311 | 8d10b3f8b18a316b87a44afabb7e5cba90c90433 |
refs/heads/master | <repo_name>f3r/electron-app<file_sep>/app/controls/utils.js
var config = require('./../config.js')
var multiaddr = require('multiaddr')
exports = module.exports
exports.apiAddrToUrl = function apiAddrToUrl (apiAddr) {
var parts = multiaddr(apiAddr).nodeAddress()
var url = 'http://' + parts.address + ':' + parts.p... | ce8d526536b4f23545bb90cffaa7465eb709a42f | [
"JavaScript",
"Markdown",
"Shell"
] | 8 | JavaScript | f3r/electron-app | b350f7ac8e74737082cbfd65aea631bfc4e72a61 | e692043a8d72e704e9c372f3c9ee55273986f7ec |
refs/heads/main | <repo_name>ash14545/discord.js-bot-with-multiple-instances<file_sep>/README.md
# discord.js-bot-with-multiple-instances
A discord.js bot that supports logging into multiple tokens with their own unique prefixes.
<file_sep>/index.js
const { Discord, Collection } = require('discord.js');
const config = require('./config... | b07b490a40ed53160dc41570c5795740f8d7c1b5 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | ash14545/discord.js-bot-with-multiple-instances | 48368a0c22a6fe18aec537054740f25e9e347591 | cfe7a7462a88e953e5631deaab22d4e7ac80f5bd |
refs/heads/master | <repo_name>itsal-tsalko/WeatherStationTask<file_sep>/src/main/java/com/epam/study/store/customer/CustomerNotificationService.java
package com.epam.study.store.customer;
import com.epam.study.store.Item;
import java.util.List;
/**
* @author <NAME>
*/
public interface CustomerNotificationService {
void notifyCus... | 0248d4f428c6be35aa08c071732564f1f3d6b780 | [
"Java"
] | 10 | Java | itsal-tsalko/WeatherStationTask | 32e29b44cbbb0e21dc2d47be84b28712d6b424e0 | f586538d808e34472c6161da381450a40b895412 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it shoul... | e184987ff0a4d2f023766bbea9b378ef023aeb2e | [
"PHP"
] | 1 | PHP | deseloperem/blog | db58099c1c3128541da47b07c5240878be1fc015 | c8a924d9006b1475ed2df8e39ebc9ed7dd795815 |
refs/heads/master | <file_sep>
/**
* which basically creates a instance of bxSlider and handles all its functionalities here
*/
define([
'js/lib/jquery.bxslider',
'js/lib/jquery.fitvids'
],
function(){
/**
* @Class slider
*
* which creates a instance of bx slider and handles all the events relate... | d9c1d2a9041dac37718b0f93e57ac5b9d84ef3bb | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jagadeeshaby/Studio-Wall | ed49619a96329390e8dba305b4f869154325a479 | a89eec167eef4c0debf741bc8b17d27dd357255a |
refs/heads/main | <file_sep>const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var paper;
var tc1, tc2, tc3;
var ground
var trashcan, tcIMG;
function preload(){
tcIMG = loadImage("Trashcan.png");
}
function setup() {
createCanvas(800, 400);
engine = Engine.create(... | 09937d18dbb5526f08b276a90fcf17a72f58c963 | [
"JavaScript"
] | 1 | JavaScript | TheCoder215/Dont_Litter_Final | d3b6fdb52b9f775e92aea88cb1d4625d8dbfe935 | b312608472912664f4eaee4e079d07924250b066 |
refs/heads/master | <repo_name>fefochico/async<file_sep>/src/route/async.js
const express = require('express')
var router = express.Router()
var controller= require('../controller/async')
router.get('/promisecallback/:iter', function(req, res, next){
controller.myasyncA(req, res, next);
})
router.get('/promiseawait/:iter', function(... | 2c0f146bad4375f99accb35fe83b73aa1e8b89a2 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | fefochico/async | 11c6c4e0ba2e720290238cc0bd50e53bc9f8a30e | 4e0c0522b4766a8ec8b2a9b75b255b3628613927 |
refs/heads/master | <repo_name>Yansongsongsong/financial-calculator<file_sep>/src/main/java/com/lanyu/miniprogram/repository/ReportRepository.java
package com.lanyu.miniprogram.repository;
import com.lanyu.miniprogram.bean.Report;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* @Author yanson... | 5c0213a607950b5839952c94b30aee34ca891404 | [
"Java",
"Shell"
] | 12 | Java | Yansongsongsong/financial-calculator | 837a984815aef24b75456c00db97e36a10179229 | 43e5cbdb54b98fe0e3df87b2c2ba508f14597c53 |
refs/heads/master | <repo_name>BLKOPL/python-challenge<file_sep>/PyBank/main.py
import os
import csv
#establish root, data, and output
root_path = os.path.join(os.getcwd(), ".")
data_path = os.path.join(root_path, "raw_data")
output_path = os.path.join(root_path, "output")
#iterate through all csv to apply standard code
#This allows th... | 40de1a8ef97e2979c5440847e816be514d032444 | [
"Python"
] | 2 | Python | BLKOPL/python-challenge | c92092968b17719e85eecefba42459097ed06fce | 82d7bd03e542bea82f9260792069bf2192980227 |
refs/heads/master | <repo_name>siddhuphp/laravel<file_sep>/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are load... | afcfa7c2545e4d8618067ee34081dd470be9c0cf | [
"Markdown",
"PHP"
] | 3 | PHP | siddhuphp/laravel | 2596f916e025de22250f2b90fb9d5e2ed1b085db | 4e12bb0905b93987df514624c59c9f5d9484db6a |
refs/heads/master | <repo_name>wangyeee/MiniGCS<file_sep>/src/gcs/waypoint.py
from pymavlink.mavutil import mavlink
from PyQt5.QtCore import QObject, QPoint, QRect, Qt, QVariant, pyqtSignal
from PyQt5.QtGui import (QCursor, QDoubleValidator, QIntValidator, QPalette,
QValidator)
from PyQt5.QtPositioning import ... | bc19819771863e0e682c25bf29e018bbd80c902e | [
"Markdown",
"Python",
"Text"
] | 25 | Python | wangyeee/MiniGCS | 70458734591a56bd3918b347a729c3c201320142 | 3933d6bbdec7fd6ecd7ac677903087cd3925d903 |
refs/heads/master | <file_sep>function investmentHistoryData() {
var investmentHistory = [
{
invested_at: "2020-1-07 12:03pm",
amount: "45000",
paid: "20000",
details: "View More",
},
{
invested_at: "2020-02-07 8:00am",
amount: "10000",
paid: "5000",
details: "View More",
}... | a5e022c02817036311bb68af6722833e83345a32 | [
"JavaScript"
] | 1 | JavaScript | Ezehchibuogwu/getrich | d2f734b1549f43cefcbddbf7e4ef1850a5a6ff66 | b5b85b794f2d8b65022599e52248662a09c9be66 |
refs/heads/master | <repo_name>sophdubs/FEND-restaurant-review-app<file_sep>/sw.js
//these are all the files and images that we need to cache in order to render a functioning page offline
const filesToCache = [
'/css/styles.css',
'/data/restaurants.json',
'/img/1.jpg',
'/img/2.jpg',
'/img/3.jpg',
'/img/4.jpg',
... | f8a80b8b64aafd02d10fa70ea56169d2f63517c8 | [
"JavaScript"
] | 1 | JavaScript | sophdubs/FEND-restaurant-review-app | 8b52b8adce58285c8b0c94efa03d888495fe696e | 2047957057ef574bba0868fcee810974580d1096 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import Button from '@material... | 1f83682977d9729f82f9e5bc56c5071b46e304ca | [
"JavaScript"
] | 8 | JavaScript | CamiloAranzazu/camilo | 0c213851b056ae582ff34a84d0e08309cd8701e0 | b8437185d51bf7792aa5f6a639b91f49704032ed |
refs/heads/master | <file_sep>#!/usr/bin/env bash
ssh -i ~/Google\ Drive/facebook_search.pem ec2-user@ec2-52-36-247-104.us-west-2.compute.amazonaws.com
| 32616bf09f0d0b7328b0ebfd07d6754cff0ca317 | [
"Shell"
] | 1 | Shell | djdavies/fbSearch | 7efaf4c77627cbcbc0f4f42d1fd1dea44f40b536 | 13cb5406be12a3b36a812aa5b99e8da9dcdc1dc9 |
refs/heads/master | <repo_name>suryatejaswi89/Event-Manager-APIs<file_sep>/src/main/java/com/events/model/Event.java
package com.events.model;
import java.util.Date;
import org.springframework.data.annotation.Id;
public class Event {
@Id
private String eventID;
private String customerName;
//private Date date;
pri... | efb25e3dacda7c2f5501a388b8904a0955553994 | [
"Java"
] | 1 | Java | suryatejaswi89/Event-Manager-APIs | 8d59656aa32f8b062fbb49e5efbdc1410e7f990c | 144cdc6b4bdd3d82452e9f58dc1b0c6ecae72a9d |
refs/heads/master | <repo_name>kubekbreha/MyPortfolio<file_sep>/js/common/settings.js
//size of articles on one page
var articlesForPage=5;
var commentsForPage=20;
//Domain name of server with articles
var server="wt.kpi.fei.tuke.sk";
//var server="192.168.56.101";
<file_sep>/js/firebase/firebase_register.js
firebase.auth().onAuthStateCh... | 6873a38022c6bd590a59431c86722f3eacbe77dd | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | kubekbreha/MyPortfolio | 531cbfe009b75f0292af9188e8ba1d8e97acb4f7 | 460aa50024fcd43d03e745f3db66d2c2963de662 |
refs/heads/master | <repo_name>macedo123/TrabalhoPOOA2<file_sep>/TrabalhoOOA2/src/java/model/Rotapronta.java
/*
* 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 model;
import dao.model.PontoP... | 2ccaa5b08c1bea64f595da9142a3a51100668be3 | [
"Markdown",
"Java"
] | 8 | Java | macedo123/TrabalhoPOOA2 | 14738bc49f3bbf6bd47f9abb91901827c72b785b | 29c105a9f84c1d19bab4ffeb2b17535106570e46 |
refs/heads/master | <repo_name>nithinpariyaran08/task-manager<file_sep>/src/main/java/fsd/taskmanager/config/TaskManagerController.java
package fsd.taskmanager.config;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.bea... | 0368bd88e5c531149102570bd4bc5a7ba278ad87 | [
"JavaScript",
"Java",
"INI"
] | 10 | Java | nithinpariyaran08/task-manager | 48d944f4e20d5f60f9fce239e057913a99c6d98c | 56bee86081255c4c1fe084ba175ee79f8c7f0f50 |
refs/heads/master | <repo_name>jccarcia/Ejer2Recover_Linq<file_sep>/Ejer3LinqPractice_SecondTry/Program.cs
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ejer3LinqPractice_SecondTry
{
public class Program
{
... | ba75e54e70b0759dcaaed130e2f5baa04b416145 | [
"C#"
] | 2 | C# | jccarcia/Ejer2Recover_Linq | 3964dcf063a6fe13a1d122eb5b95d4004d5ad355 | 936637ef5ba6247cdc2461c8d5539a0ef6c26be3 |
refs/heads/master | <repo_name>taragurung/survey<file_sep>/application/views/welcome_message.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</title>
<link href="<?php echo base_url('css/bootstrap.css'); ?>">
<scri... | 2508d8afb8a09345a24780c6a5127d95e607f1a9 | [
"PHP"
] | 1 | PHP | taragurung/survey | 26956fa75683653c9a4bc1e18878d6f8dc671439 | 1c7bb7199f4270404fb7dbc97c1e3003308d53a3 |
refs/heads/main | <repo_name>fangh528/test<file_sep>/php1.php
<?php
phpinof();
1111
| e4eb4e8dd9ac942a6c791542d6582323141f6377 | [
"PHP"
] | 1 | PHP | fangh528/test | d09466efc914772e369e861424fe313e4144fbf3 | 3a43c9daed6dfca5f5d897adde48d0331b07df9d |
refs/heads/master | <file_sep>package com.doublyLinkedList;
/**
* Created by RV on 6/26/2015.
*/
public class Main {
public static void main(String[] args) {
DoublyLinkedList lst = new DoublyLinkedList();
lst.add("hello!");
lst.add("hi!");
lst.add(3456);
lst.add(45665);
lst.add("we... | e4efc51c884b8ca5aae21b652a17f485dfdbcd96 | [
"Java"
] | 1 | Java | varshneyanmol/doubly-linkedList-made-from-home | 7a2fc72391a5177ea2f62009b2db826c43057441 | 0d3a63651fde42c3d379123cbbbba6acba3f5c76 |
refs/heads/master | <repo_name>VNextCorp/VNextOS<file_sep>/README.md
## NextOS
A **fast**, **simple**, colored terminal **OS** for **ComputerCraft**
## Installation
```pastebin run w410DuNi```
#Log in
>There is **no password** in default, but you can set password , typing in the shell "cpass"
<file_sep>/init.lua
--== APIS ==--
os.loadAP... | 0362c5ae5863837a9d7fcbd83cc04c5279d67f3f | [
"Markdown",
"Shell",
"Lua"
] | 4 | Markdown | VNextCorp/VNextOS | ed9667331d030b8517934015a6c2a53168577247 | e016250989e9e7828679ef19cfb93cf01d9bd749 |
refs/heads/master | <file_sep># Samples for Groovy Training
## Setup
### Tools
* install GGTS or Eclipse with Groovy Plugin
### Setup project
* clone repository
* import project
### Database
* database sample uses hsqldb
* start scripts (server, console) provided in folder db
* setup database using application.sql
#... | 6a6f180f0492b5d29611d1aa48555f7128f168a2 | [
"Markdown",
"SQL",
"INI"
] | 4 | Markdown | Javacream/org.javacream.training.groovy | e7eb63f94a0e8643f1398afd8bbef270fa90cfcb | 09c234a336289ce305cb37264e67bc09ba4bf720 |
refs/heads/master | <file_sep>from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Document on recapping applying various ML models on MittOS dataset',
author='<NAME>',
license='MIT',
)
| 0d42b156ca1f2dd9bfb52c1f16407dfbebb2a2d5 | [
"Python"
] | 1 | Python | adylanrff/mittos-ml-recap | fe2ad92df22c44c0a1b3f2dd5fab83f1c394ac77 | 50a9510102aa3d40fefcc78c1000ba16bf575e66 |
refs/heads/master | <file_sep><?php
/**
* A class to load them all.
*
* @author <NAME>
*/
class ClassLoader
{
private $folders = array();
const EXT = '.php';
/**
* Observes several folders.
*
* @param array $folders
*/
public function folders(array $folders)
{
foreach ($folders as $fo... | 9f12f5b7c87916cfc759ba975a5b3ca95d45df47 | [
"Markdown",
"PHP"
] | 2 | PHP | Aenyhm/ClassLoader | 5a0cb9f2726e8d4d691d7d92dabe42288784ab30 | 2a011e6a049d64e6419c46ef9eef74c596597863 |
refs/heads/master | <repo_name>NEkate/furniture<file_sep>/scss.sh
cd $1
node-sass --source-comments=map $2 $3
<file_sep>/js/main.js
jQuery(function($) {
var carousel= $('#carousel');
carousel
.jcarousel({
wrap: 'circular'
})
.jcarouselAutoscroll({
interval: 3000,
target: ... | 418e411996f7b23eb3f6a2fdc6757f26f0633a59 | [
"JavaScript",
"Shell"
] | 2 | Shell | NEkate/furniture | 17647b9c12b65c8b190359d0787ae9bd2434760a | 56aedbe2d4af0eebcf454de1d5c542b678b25a2e |
refs/heads/master | <repo_name>zhaoyuanfang12138/Recyclerview<file_sep>/app/src/main/java/com/example/lenovo/recyclerviewweek3/mvp/view/MainActivity.java
package com.example.lenovo.recyclerviewweek3.mvp.view;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
i... | 85ba97e52e5a7b0e3d95ae2216db07d6a8538f02 | [
"Java"
] | 2 | Java | zhaoyuanfang12138/Recyclerview | be4cd3f297345cf2f098c6cd81ea1c0a36724686 | 9fbb539fd037027d1026f60fcc5eb03851a5425f |
refs/heads/master | <file_sep>Opengl codes/Boundaryfill algorithm

<file_sep>#include<GL/gl.h>
#include<GL/glut.h>
#include<stdio.h>
struct point2D {
GLint x;
GLint y;
}
p1, p2; //structure of point
struct colorPixel {
GLfl... | 951ee23079cd054d36bcc95c74baa804c9ac5521 | [
"Markdown",
"C++"
] | 2 | Markdown | sushilchaudhary627/openGL-codes | 112628c58ddf67715d8b110b72a2f7e043032380 | 6931a1c01035abe2840acc364cbdbbf1e2445f8a |
refs/heads/main | <repo_name>MyakishHentai/HotelService<file_sep>/HotelService/Models/Base/Service.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
#nullable disable
namespace HotelService.Models.Base
{
public class Service
{
public Service()
{
CostCha... | e3628f526bd884f9c1d851679df09edb2b80e4c5 | [
"Markdown",
"C#",
"Text"
] | 44 | C# | MyakishHentai/HotelService | 726b10eab76124abc194c3525e24e367455484b0 | 4a5d1a192ac865501a65d6d6e1128f58e2620277 |
refs/heads/master | <repo_name>gsguglielmo/Teleprompter-2.0<file_sep>/src/AtemController.js
const { Atem } = require('atem-connection');
const Jimp = require('jimp');
const PATH = require("path");
const fs = require("fs");
class AtemController{
#atem;
connected;
onConnectedCallbacks;
constructor() {
this.#atem ... | 84d6a79fbe2ae82db15ebbd10d83b62e33f2e03e | [
"JavaScript"
] | 6 | JavaScript | gsguglielmo/Teleprompter-2.0 | f1664af6e9e16dcb16ead82505a3b6a778e2b330 | 51097474d35d47a3e577427e741a662d05d2bfca |
refs/heads/main | <repo_name>alvartur34/alvartur34.github.io<file_sep>/js/my_scripts.js
//?-----------------------//
//?---- User language ----//
//?-----------------------//
let userLang = navigator.userLanguage || navigator.language;
let lang = userLang.split("-", 1);
document.getElementById("userLang").innerHTML = lang;
//?---------... | 9983c6b31abeaca57cd3baf0843817ca1657491c | [
"JavaScript"
] | 1 | JavaScript | alvartur34/alvartur34.github.io | 1f1e113313f46606a5613ee3c7d0ec71c9aa4ef3 | ed27ecc044d9a745420d0152202c650b8aefbb48 |
refs/heads/main | <repo_name>Laplace-Studios/MetricsCalculator.Worker<file_sep>/README.md
# MetricsCalculator.Worker
Ejecutar con python3 main.py REDIARIO_Consulta_Periodo_010221_30061.xlsx
Se general dos archivos CSV de salida con las metricas calculadas
<file_sep>/main.py
import sys
import pandas as pd
dataset = pd.read_excel(str(... | ca0f90df91161039f4899c44b46a119b8c9bd757 | [
"Markdown",
"Python"
] | 2 | Markdown | Laplace-Studios/MetricsCalculator.Worker | cada28f6a41166d0769eb14e81118a788321b048 | 376258be920186a088101957a22f6678e63ae045 |
refs/heads/master | <repo_name>vdjango/Blessing<file_sep>/Blessing/src/net/mcshsz/event/PlayerQuitEvents.java
package net.mcshsz.event;
import org.bukkit.entity.Player;
/**
* 登出系统操作对象
* @author Dream
*
*/
public class PlayerQuitEvents {
public PlayerQuitEvents() {
// TODO 自动生成的构造函数存根
}
public void PlayerQuitEve... | a16c23947dbf662a6d89231fe2a3959808cdb181 | [
"Java"
] | 5 | Java | vdjango/Blessing | cc200f9b2e33b333504ca2553a7dcbd372791a58 | f5a1df3ff1976873f03ea58b1599c92bc9cde6ff |
refs/heads/master | <file_sep>var express=require("express");
var bodyParser=require("body-parser");
var path = require('path');
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/gfg');
var db=mongoose.connection;
db.on('error', console.log.bind(console, "connection error"));
db.once('open', ... | 8f842b7feb0f2219ca05ce92de8d9b012c5d34a5 | [
"JavaScript"
] | 1 | JavaScript | aartisharma-pa/E-Commerce-Project | 3401eb6a3e93722ca11d9da225a48d2d62cf4514 | 699a37475e12cd1ece5d6156ed479c446221173d |
refs/heads/master | <repo_name>Forif-PythonClass/Assignments<file_sep>/Bojung/2강/예제2_coffee machine.py
# coffee machine
coffee = 5
while coffee != 0 :
print 'Hello! How much do you have?'
money = raw_input()
if int(money) == 300 :
print 'Here is your coffee.'
coffee = coffee -1
el... | b2c480f843501b16aa04d0a13b3a866e8cf089d8 | [
"Markdown",
"Python"
] | 47 | Python | Forif-PythonClass/Assignments | 2dd7750abc40109e9fb04d1e136d0a87848ed887 | 31dec7ccf2314ad8474c364b43ceabe8127db462 |
refs/heads/master | <file_sep>using SingletonTest.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace SingletonTest.Controllers
{
public class MessageController : Controller
{
Message CurrentMessage = Message.Instance;
// GET: Message
... | 8251a5912541d112e393bcbd560d8630497519eb | [
"C#"
] | 2 | C# | p3cet/GitIntegrationTest | 588be95ec5e3bf1cfaca3b0bf13c20de832c6ec1 | f40a9eeeba065279a59d30d354dd4b810e3e99f3 |
refs/heads/master | <file_sep>
<div class="page-content page-content--privacy">
<h1 class="page-content__main-title"><span>Privacy Policy</span></h1>
<h2 class=""><span>How do we process data?</span></h2>
<p>We use an ATS (Applicant Tracking System) called Bullhorn to manage all information (including salary details) as well as a se... | e8245fa2f239f7be8c6be002c50e193075f88921 | [
"JavaScript",
"PHP",
"HTML",
"Markdown"
] | 12 | HTML | slaywell/talent_atelier | cd17a6ff7cc85efc48dbd5c25f81f05153ef5dac | af154f1dcfbdc1def0b60fe20a0ccddee6d01c93 |
refs/heads/master | <file_sep>class User < ApplicationRecord
belongs_to :message
has_one :role
end
<file_sep>class MessageController < ApplicationController
end<file_sep>class Message < ApplicationRecord
has_one :user
end
<file_sep>class RoleController < ApplicationController
end
| a7f7a654275d7af89257443c6eae97a5c4a79c3e | [
"Ruby"
] | 4 | Ruby | DanPetrov1/FirstRailsProject | 31a68ed071d279e086ec0bbc86673b7619b8d129 | 7e9312e74b3c35f627f098644d99ffdf6c73050b |
refs/heads/master | <file_sep>print("Hello world.")
print("Joop")
x = "5.23"
x = float(x)
print(type(x), x+5)
| 78fd934a7b01390cd930d28114650b977567f2f4 | [
"Python"
] | 1 | Python | Kanomjang/Learning-Python | 2164aeceb7b4bf4394d3760b5f223b95d7272191 | f3b3cb3864fb053bfb409f5e1d5c9094ceb68680 |
refs/heads/master | <repo_name>asuishi/myeslint<file_sep>/test/brace-style.test.js
/**
* Tests for brace-style rule.
*/
//------------------------------------------------------------------------------
// Constants
//------------------------------------------------------------------------------
const RULE_ID = "brace-style"
const myesl... | 6bf2dc28cb96b2a6824149b38664d2d90a3e5378 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | asuishi/myeslint | 79e91d7edb60a89a1a93033a074d4258417b3b6c | b82e8904e218ce4ba11b459fab8262cb5b1b017c |
refs/heads/master | <file_sep>from math import radians, cos, sin, asin, sqrt
# Membaca text dari file, mengembalikan multi dimentional array persis seperti file.txt
def bacaTextFile(x):
f = open(x,'r')
file = f.readlines()
operand = []
#melakukan replace beberapa character seperti koma, titik, dan newline
for lines in... | 4a17bd15a5db34be728b812e082bffa4ecf5c2bc | [
"JavaScript",
"Python",
"Markdown"
] | 8 | Python | haikallf/Tucil3Stima | 7ae5eba0fee5e5b7fb726388071f7394d5cacb9a | 18546559f997617f1e8c2dedef6b235349331de4 |
refs/heads/main | <repo_name>Kennedy747/Embedded-Project<file_sep>/src/boardSupport.c
/**********************************************************
* STM32F439 Board Support Package *
* Developed for the STM32 *
* Author: Dr. <NAME> *
* Source File *
******************... | 99b3ac404739dd2d4b9c6639746d269edc65e1c0 | [
"Markdown",
"C"
] | 3 | C | Kennedy747/Embedded-Project | 925193a86f194bdc39ab63cca4ceecfd72326da9 | c58f30e113bcec6ab48ef8908c5aaf5405cec1a7 |
refs/heads/master | <repo_name>rohandudam/bash-tutor<file_sep>/README.md
# Interactive Tutorial For The Linux Command Line Interface (with Bash!)
## Intro
After see how effective interactive tutorials have been for every other interpereted language I decided it's finally time for Bash to have it's turn. Why shouldn't there be an interact... | 82754258245aeba4fea2db972587f03de069e537 | [
"Markdown",
"Shell"
] | 3 | Markdown | rohandudam/bash-tutor | 8cb5fb708a03b998f8ae8b74b769ab3dc6261648 | d4c35c62c6c6f9fd6d625295c284ebff2b1e0769 |
refs/heads/master | <file_sep># test
test仓库
<file_sep>//
// ViewController.swift
// gitHubTest项目
//
// Created by jinh on 2019/7/8.
// Copyright © 2019 renjian. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional set... | bddc5d421caf50dfbab4badfa23a591a0c946c4a | [
"Markdown",
"Swift"
] | 2 | Markdown | customAny/test | 4f39ff69f64586f4e44c0b725c03224b1eda9403 | cc32cca5872bd5c22218cf001fe9247babebdbc6 |
refs/heads/master | <repo_name>tkm603018/todo-app<file_sep>/src/components/Todo/ToDoCountItem.js
import React from 'react';
import './ToDoCountItem.css';
class ToDoCountItem extends React.Component {
render() {
const count = localStorage.getItem("DoneCount");
return (
<div className="ToDoCountItem">
... | 381bf5682103d04184856c2700554c6d30d4f1d2 | [
"JavaScript",
"HTML"
] | 8 | JavaScript | tkm603018/todo-app | cf08898c2818d04c38c07af87b16cb0d57fd1dd1 | 61bea3ac0b930779501d662d167fc3bc3de26e13 |
refs/heads/master | <file_sep>'use strict';
module.exports = (sequelize, DataTypes) => {
var Website = sequelize.define('Website', {
title: DataTypes.STRING,
description: DataTypes.STRING,
copyright: DataTypes.STRING,
company: DataTypes.STRING,
email: DataTypes.STRING,
phone: DataTypes.STRING
}, {
freezeTab... | 8a2b675b95f2b991a74eab6ac8aeb0527c6557a0 | [
"JavaScript"
] | 5 | JavaScript | imzhangliang/MyBlog | 769fb5240e16ed61e28249db51934e70e0c7981e | d6466900d04f7cc7f36dfabb5a970b63a29650a9 |
refs/heads/master | <repo_name>Henda88/JEE-TIMESHEET-CRUD-<file_sep>/timesheetBi-ejb/src/main/java/webapp/timesheetBi/entities/Role.java
package webapp.timesheetBi.entities;
public enum Role {
chefDepartement, administrateur, ingénieur, technicien
}
<file_sep>/timesheetBiClient/src/main/java/timesheetBiClient/ManageEmployeandCon... | e778f66ca2d3d6b7eae2f7f7960cc80f13278b3c | [
"Java"
] | 3 | Java | Henda88/JEE-TIMESHEET-CRUD- | 349f15ce2416608f2d82f7ec11c1f4df9d6e3e94 | 684916cf245f34dc487786abd1273330a7ce8bb0 |
refs/heads/master | <file_sep>import subprocess
def main():
print(subprocess.check_output(['make check']))
if __name__ == "__main__":
main()
<file_sep>flake:
flake8 makehook
check: flake
<file_sep>from setuptools import setup
setup(
name='makehook',
version='0.1.0',
entry_points={
'console_scripts': [
... | ceeb2bbbaef04cc35c3a1177ffea22d89810fcad | [
"Python",
"Makefile"
] | 3 | Python | koaning/makehook | d6c056596c58f5420c1935a6c19dab89dabcb17d | 03044d086fe227b5aa051fbf01fddae77df6ae99 |
refs/heads/master | <file_sep>document.addEventListener("DOMContentLoaded",function(){
const secondHand = document.querySelector('.second-hand');
const minHand = document.querySelector('.min-hand');
const hourHand = document.querySelector('.hour-hand');
function setDate(){
const now = new Date();
const se... | 117ad280c3b9eca6112839fa2ba48cf3d2f50939 | [
"JavaScript"
] | 1 | JavaScript | Muli94/JavaScript30 | 67acb99ce2c074a04daa244cd70bf4943bbe171e | 7b5d8de41b8fb2ce0bb25005fb5dddfef03e4480 |
refs/heads/master | <file_sep>startnumber = 0
lastnumber = 0
continueCount = ""
looper = "y"
while looper != "n":
integercheck = True
while(integercheck):
try:
prompt = int(input("How many numbers do you want to chain? "))
integercheck = False
except:
print("Invalid Selection")
... | 3b3045988a01f01032f2e71c000049e86d07ed0f | [
"Markdown",
"Python"
] | 5 | Python | tdstark/TDS-GWU-Python1 | 34b38dd5646afce40a2055a65175d92e102713b6 | 3f808507b5a650bf3b6bf64f26c3500a39ec94b1 |
refs/heads/master | <file_sep># homework1-another-coverage-
[](https://travis-ci.org/mayufo/homework1-another-coverage-)
[](https://coveralls.... | 2d58d8a8cc72ac8d3f693e3935577a7149926bae | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mayufo/homework1-another-coverage- | b84d52703c7ee8c3b1a3e94989ffce04eedc6192 | 2f10232562a1436458342e2aa971d63cabac8368 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class portalToggle : MonoBehaviour
{
void Update()
{
Vector3 localForward = Vector3.zero - transform.position;
float vectorDot = Vector3.Dot((Camera.main.transform.position - this.transform.position).norm... | ecd1390238423fbf14355ee874feb6a45447f37c | [
"Markdown",
"C#"
] | 8 | C# | LeithBA/LeithBA.com | fe8958ffdf6b8d5f253618cea8d007f65b144a5c | 62ec0dd60d8750430c30ce733817f5e6d8e42935 |
refs/heads/master | <repo_name>vijaysaimutyala/AbbrevSearch<file_sep>/app/src/main/java/com/studioemvs/abbrevsearch/RecyclerViewAdapter.java
package com.studioemvs.abbrevsearch;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.... | 31b5684a7b80a2ef4bf47bc983c224ec743209aa | [
"Java"
] | 4 | Java | vijaysaimutyala/AbbrevSearch | 8b2ac91c301a80acd7964da101877b6a7247b4e7 | 8ea801f30d9b5edfa08967a3ad49b25448f70505 |
refs/heads/master | <repo_name>Reagan1947/Noise_Reduction_hearing_aid_DL<file_sep>/spectrogram_part.py
# coding = utf-8
import wave
import struct
from scipy import *
from pylab import *
# 读取wav文件,我这儿读了个自己用python写的音阶的wav
wavefile = wave.open('D:/Noise_Reduction_hearing_aid_DL/wav_file/zted170919_4626690iTb.wav', 'r') # open for writing
... | 209fb54f18d9dd94bee3482b3ee3de281ca27b71 | [
"Markdown",
"Python"
] | 6 | Python | Reagan1947/Noise_Reduction_hearing_aid_DL | 858d8caeacf42c72d2fd792f104f6fa06b3b632d | 375b6c38545a456e4ce0869650460e4ee461d450 |
refs/heads/master | <file_sep>INSERT INTO order_items (orderid, productid) VALUES ( $1, $2);<file_sep>function getProducts(req, res, next) {
req.app
.get("db")
.getProducts()
.then(response => {
return res.status(200).json(response);
})
.catch(err => console.log(err));
}
function getProductsByCategory(req, res,... | 6f7ba3e6d054ddb6e5c6b57b662d387519c2a766 | [
"JavaScript",
"SQL"
] | 22 | SQL | garmeil/dm11-personal-project | b32d0c896deb41931ac00e41c7ee8a58063ecce1 | f9c4643b03f4aa898e6f1d849e0d8b9305854533 |
refs/heads/master | <repo_name>HOllarves/Etherum-Github-Donations<file_sep>/src/App.js
import React, { Component } from 'react'
import GithubRegister from '../build/contracts/GithubRegister.json'
import getWeb3 from './utils/getWeb3'
import './css/oswald.css'
import './css/open-sans.css'
import './css/pure-min.css'
import './alert.css'
i... | c607a93d1176e69c034a3b35b322ba47129ff6dd | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | HOllarves/Etherum-Github-Donations | 7efcb0e9212995623f008c0cb5c48f78d4aeedaf | fcf0e03006d5bd864dcb37c2ab0a686fd2427c61 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace MIProject
{
#if WINDOWS || XBOX
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
System.IO.StreamReader fil... | d34006a447ba686ecca8932a9ed9543898dd9d0c | [
"C#"
] | 14 | C# | OumarYehia/MIProject | 07357af9d94b7ce0b04f8821b7b60731eaa32cde | e7a4b1fb9b2079bcf16c861ca121bbbca21c8fed |
refs/heads/master | <repo_name>nathanbuchar/raven<file_sep>/gulp/tasks/watch.js
/**
* @fileoverview Watch Gulp task.
* @author <NAME>
*/
'use strict';
let gulp = require('gulp');
let plugins = require('gulp-load-plugins')({
camelize: true
});
let config = require('../utils/config');
/**
* @name watch
* @description Watches for... | 9cadc73b8fc74abba9bd4651d259c3eb5b40a93d | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | nathanbuchar/raven | e4c95c7870f95da943a1913da368c284c8f9b228 | 3f987c270df93f14095c110a22562a1fbb6ab5b5 |
refs/heads/master | <file_sep># CameraHelper
If you want to customize your camera on Android, it will be very simple and friendly to you
<file_sep>package com.lwj.camera;
import android.content.Context;
import android.graphics.ImageFormat;
import android.hardware.Camera;
import android.util.Log;
import android.view.SurfaceHolder;
import ... | 23f2aede7553e966ef09fd0eee02d0a4e4a85372 | [
"Markdown",
"Java"
] | 3 | Markdown | lwjfork/CameraHelper | 9d02b96033e327fd0c3fe98c29d7155a4c8aea00 | 44083e5cac90a288f77e722aa373e17c7aa601d2 |
refs/heads/master | <file_sep>#
# Be sure to run `pod lib lint BlindsidedStoryboard.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.ne... | 5e2bcb32a487f3bc8e501cafcf0ad959f27db820 | [
"Markdown",
"Ruby"
] | 4 | Ruby | pivotal-brian-croom/BlindsidedStoryboard | bae63cd00133bbe243ce01ee265e8589e99b59e0 | 0708d89b5a816e7c09c3eaa612b4017e17e2e794 |
refs/heads/master | <file_sep>package com.hqj.account.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import java.util.Map;
/**
* Created by hqj on 2018/1/24 0024.
*/
public class SharedHelper {
private static final String sharedName = "datas";
//保存数据通用方法
publi... | 9bde5e480046e62bc897f0c3ab330c90670c30da | [
"Java"
] | 5 | Java | Heqj/account-app | 6bd8f5f1093e7cf24b6bb9d93a639c0b847d102c | 6b41c673ee3132cd08cdcaa7d5b7013242ae409d |
refs/heads/main | <file_sep>from bs4 import BeautifulSoup
import requests
import pandas as pd
from datetime import datetime
## PARAMETERS SET ##
FROM_YEAR = 2009
TO_YEAR = 2018
FROM_MONTH = 1
TO_MONTH = 12
END_DATE = 28
## Dataframe with column names ##
df = pd.DataFrame(columns=['Average temperature (°F)', 'Average humidity (%)',
... | 4f07cb3dbf1fc6902521f6b6b1d3e791d91262d1 | [
"Markdown",
"Python"
] | 3 | Python | Tanishk-Sharma/Web-Scraping-Mini-Projects | aac70413224eb41affa655d65761b6b69daa924a | c936bef396c2bd0d1af89134078d124fe6bc5909 |
refs/heads/master | <repo_name>1753033/AnnoyingAlarm<file_sep>/app/src/main/java/com/example/annoyingalarm/MainActivity.java
package com.example.annoyingalarm;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransacti... | f69e37ac802ab3729749775ece95639ec34e7069 | [
"Markdown",
"Java",
"Gradle"
] | 11 | Java | 1753033/AnnoyingAlarm | 8f512986f752370b29929970a755ba95d3358352 | 7227ab461c9390e2adfc9c0023207fc95eba668b |
refs/heads/master | <repo_name>Mihail-Kostov/env<file_sep>/lib/py/xonshlib/__init__.py
import os
try:
ENV = __xonsh_env__
except NameError:
ENV = os.environ
<file_sep>/img/jql/types/time.go
package types
import (
"fmt"
"time"
"github.com/ulmenhaus/env/img/jql/storage"
)
// A Date denotes a specifc day in history by modeling... | e9b30b9289dd3e2aa030b04e8462e47a97d16e6f | [
"Python",
"Go"
] | 6 | Python | Mihail-Kostov/env | 630a41a306798d6b36bcc235823305675028f87a | 8392c00b6808fc6b5ec963c8ded04858a15548ab |
refs/heads/main | <file_sep>import fetch from 'node-fetch'
import {URL} from 'url'
import {IFeatureCollection, TCoordinate} from '../types/omsApiServiceTypes'
/**
* Получение содержимое GeoJSON для города по названию
* @param name Название города
* @returns TCoordinate - координаты границ города в системе OSM
*/
export default asyn... | 5686010400a31dbe4b6f6213e9bca742ce76980d | [
"Markdown",
"TypeScript",
"Makefile",
"Dockerfile"
] | 11 | TypeScript | Tom-Challenger/ciry-boundries | 3a7d7fbaefd7dd3bdb8330eaf6538dd5a9ee3474 | 587b49ac979103253d3fdfe7b725fc1ac3549e9a |
refs/heads/main | <file_sep>from flight_data import FlightData
import requests
from datetime import date, timedelta
from dateutil.relativedelta import relativedelta
FLIGHT_KEY = "YOUR FLIGHT KEY"
FLIGHT_API = "https://tequila-api.kiwi.com"
FLIGHT_IATA = "/locations/query"
FLIGHT_SEARCH = "/v2/search"
FLIGHT_HEADER = {
"apikey": FL... | 71c2cc3912f63272a5f4b814d8f5fdf048a6fbff | [
"Markdown",
"Python"
] | 5 | Python | B-Benja/Flight_Deal_Finder | 98b1f04aff828d0388d8b6281b9868e9fd3e447c | 572b08503a1b010f8e325ea39e73ccfe65c0f31d |
refs/heads/master | <file_sep># TicTacToeDemo
Play tic tac toe game with device
<a href="https://imgflip.com/gif/318nli"><img src="https://i.imgflip.com/318nli.gif" title="made at imgflip.com"/></a>
<file_sep>package com.example.talha.tictactoedemo
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppC... | 351deb6aa21cc7ce2460f1587053292f5b3d3b4a | [
"Markdown",
"Kotlin"
] | 2 | Markdown | talharizvi/TicTacToeDemo | e20dd3549a8f4aa553cc078f83d46a5d5fa89f3e | b0347c97351bf105a5d554bde7aea5972c3d449d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.