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 | <file_sep>const gulp = require('gulp');
const sass = require('gulp-sass');
const browserify = require("browserify");
const source = require('vinyl-source-stream');
const tsify = require("tsify");
const gulpShell = require("gulp-shell");
const gulpUtil = require('gulp-util');
const sources = {
html: ['src/html/*'],... | 8842b572b3c593e2a7617f179fae4f537b21091c | [
"JavaScript",
"TypeScript",
"HTML",
"Markdown"
] | 10 | JavaScript | teunw/Authentication_method_list | f5c13181f08e5ddf5adfb6fc961705278793d540 | cc99da50320e71e756f88a9dad4f7570f267d693 |
refs/heads/master | <repo_name>PascalReinhardt-dev/DailyCoding<file_sep>/readme.md
#README
##DailyCoding<file_sep>/code/372.py
# Good morning! Here's your coding interview problem for today.
# This problem was asked by Amazon.
# Write a function that takes a natural number as input and returns the number of digits the input has.
# Cons... | 14004e5501320de43c3e4aeb7aa22d35981f2ee8 | [
"Markdown",
"Python"
] | 4 | Markdown | PascalReinhardt-dev/DailyCoding | 310a8b83607cabb49d8c24a0c5da6354f3d337df | 1d91d52f9960e30981a11cc3e82937a857a4fcf0 |
refs/heads/master | <repo_name>gragib/Adafruit_IS31FL3731<file_sep>/examples/swirldemo/swirldemo.ino
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_IS31FL3731.h>
Adafruit_IS31FL3731 ledmatrix = Adafruit_IS31FL3731();
// The lookup table to make the brightness changes be more visible
uint8_t sweep[] = {1, 2, 3, 4, 6, 8, 1... | 2b7acafce7345be9e475023e15fa2ebe83aebb56 | [
"C++"
] | 1 | C++ | gragib/Adafruit_IS31FL3731 | 090a0fa54036922278933ebc1ed7a16046942b3b | 872f9acb65d1cd80540d430fcaf605979376b8b1 |
refs/heads/master | <file_sep>#include "APScan.h"
APScan::APScan() {
}
bool APScan::start() {
if (debug) {
Serial.println("starting AP scan...");
Serial.println("MAC - Ch - RSSI - Encrypt. - SSID - Hidden");// - Vendor");
}
aps._clear();
results = 0;
for (int i = 0; i < maxAPScanResults; i++){
selected[i] = false;... | 9a1fcd93926e241940741b71a935583da7e94326 | [
"C++"
] | 2 | C++ | CJXABCJX/esp2866_wifi | b611e068742d8e878b821a9a4200f25466a293f0 | 0e3d2f289dcda4f7c38b8912fdbc561e4b6b5f6c |
refs/heads/master | <file_sep>var click_count = 0;
function swap_colour() {
click_count+=1;
console.log(click_count);
var main_content = document.getElementById("main_content");
if (click_count == 13) {
window.location.assign("arme001.html");
} else {
main_content.classList.toggle("contentonclick");
}
... | aaae646d6be6207ecdc7bc640a9ad57313138340 | [
"JavaScript"
] | 1 | JavaScript | aritmie/aritmie.github.io | d648a13900c50f8deea56248764d0d95a06af7ec | 93a3b3adfe662c0df83ec0fe433520dd9c58608a |
refs/heads/master | <repo_name>ssw940521/STL<file_sep>/Friend/match.cpp
#include "match.h"
void Match::print_time(time & t)
{
}
<file_sep>/Friend/match.h
#pragma once
#ifndef STUDENT_H
#define STUDENT_H
#include"time.h"
class Match
{
public:
void print_time(time &t);
};
#endif // !STUDENT_H
<file_sep>/Friend/demo.cpp
#include<iostream>... | 97adc36d986c757989ad1c8d424f32cbe12c3ce2 | [
"C++"
] | 3 | C++ | ssw940521/STL | 7fbd16d1f39e13a525c0c0e6c69bfb4360e64895 | aaeeb437365aa84f0548c45a9c70c58620e30197 |
refs/heads/main | <repo_name>rahulraj6026/Multithreading<file_sep>/src/com/threads/semaphore/App.java
package com.threads.semaphore;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class App {
public static void main(String[] args) throws InterruptedExce... | 91ea5e688916d0f25ed1dc1210408b5e73004c05 | [
"Java"
] | 9 | Java | rahulraj6026/Multithreading | 1f4de45a96e9919f829fd89a719a8a65275ac70b | 8335bc556e8f87b0d69fb3b6f80130ca6e601a4b |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IceEventListener : MonoBehaviour {
DryIcePlaceholder IcePalletsList;
void Start()
{
IcePalletsList = GetComponentInParent<DryIcePlaceholder>();
}
// Update is called once per frame
... | b1a68cdee892110e65f584dd293f23c9f4e75257 | [
"C#"
] | 26 | C# | Gustorvo/Dry-Ice-Loading-Leap-Motion | 80a42ed076b6c5b3dad0ed18b6691585f4c65008 | 45d4a28eb5c4b769569f1c9f253c64092bebfc52 |
refs/heads/master | <repo_name>DiscoveryInstitute/haplo<file_sep>/core/AncestralChromosomes.cpp
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "AncestralChromosomes.h"
#include "HaploBlockVariants.h"
using namespace std;
AncestralChromosomes& AncestralChromosomes::initialiseFoundingGeneration() {
... | 0d140563fedc0a466102eadd7c08e090b397d00e | [
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 50 | C++ | DiscoveryInstitute/haplo | c2b49bc0920aaf68f4364646a30ef2614329b103 | c7f8709216b07b297d311dd0f8f0c38a9776fc95 |
refs/heads/master | <file_sep>/* The four principles of "this";
* in your own words. explain the four principle for the "this" keyword below.
*
* 1. calling this in the global scope you the window/console object or 'the whole code'
* 2. implicit binding, in a function called with a dot preceding 'this' refers to the object to the left of ... | 29a50d5e6d4149632e78841795942841f22f891d | [
"JavaScript"
] | 1 | JavaScript | BlakeAnd/JavaScript-III | cf7c3fb723c5860ab07ed33c52e103230eee00e9 | 68b07046dd46e47337922cfcefff113399b8bdf0 |
refs/heads/master | <file_sep>$(document).ready(function(){
$(".r1").buttonset();
$('#keyword').tagEditor({initialTags:[],delimiter:',',maxLength:10,placeholder:'文章关键字...'});
});
//保存文章
function saveadd(){
//改变提交按钮为disabled状态,防止重复提交
$('#savebtn').attr("disabled",true).find("i").removeClass("icon-save").addClass("icon-spinner icon-spin... | 6b1c5c79c042987a662a8779b32343c141086a48 | [
"JavaScript",
"C++",
"Markdown",
"INI"
] | 6 | JavaScript | HugoChen1024/asp | 28dae7803e16a868755024a7bfb1414e98b2a746 | cbd102ec657a7160aaeb71a63df4d88ec02ce405 |
refs/heads/master | <file_sep># python's equivalent of
# javascript object spread. python >= 3.5
def hello(a: int, b: str, c: float):
print('a:', a)
print('b:', b)
print('c:', c)
obj = {'a': 10, 'b': 'jack', 'c': 1.32}
# this will no work.
# TypeError: hello() missing 2 required positional arguments: 'b' and 'c'
# print(h... | 92adab7f98dc2e694739558e925dc4a408aa7da8 | [
"SQL",
"Ruby",
"Markdown",
"JavaScript",
"Makefile",
"Python",
"PHP",
"C",
"Go",
"C++",
"Shell"
] | 216 | Python | wzulfikar/lab | 2ef21c16150a88a15bfb7bf4ef0014fbee262ed3 | a5c29d54baa111526032741a7850ebf9457148a3 |
refs/heads/master | <repo_name>BW-Team-Eagle/FE<file_sep>/README.md
# CS Build Week - Team Eagle
<file_sep>/frontend/src/components/forms.js
import React from 'react';
import { Box, Flex, Button } from 'rebass';
import { H1 } from './headings';
import { Label, Input } from '@rebass/forms';
import { Formik, Form, Field } from 'formik';
co... | 62f376203f89d49442a4cf9730de7b2597387e32 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | BW-Team-Eagle/FE | 648e362452af2d6e00cc0ec79aaf10993525bc01 | 8bb4432b6c24cd7541ad5ed46cd5999743907952 |
refs/heads/master | <repo_name>deadjoker/llsif-cheater<file_sep>/plugins/cheater.py
def proxy_mangle_request(req):
print req
return req
<file_sep>/README.md
# llsif-cheater
It's a proxy server to modify request sent from client to sdo server. It won't change anything except song's result.
original project link: https://code.goo... | 4ebef1b38a1b3af812f5bef3802f14c6942c4955 | [
"Markdown",
"Python"
] | 2 | Python | deadjoker/llsif-cheater | 99c13f0d2db7d433e68ecc3dee6dcf9bb3259bb7 | 92b9da89d9775c7ae30b34729b072cf4b93e0d27 |
refs/heads/master | <file_sep># Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "vibes-bj"
s.version = "1.2.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :requir... | e32b6dab414d9ab02cb8d1be7b972a5af1243ddf | [
"Ruby"
] | 1 | Ruby | vibes/bj | 6099145a3936703cfc2549aa93e60256567415ad | 3c3b5f682a86f6ade411474269655af873657df8 |
refs/heads/master | <file_sep>using Design_Patterns_Behavioral_Command_06.Command;
using Design_Patterns_Behavioral_Command_06.Command.ConcreteCommands;
using Design_Patterns_Behavioral_Command_06.Invoker;
using Design_Patterns_Behavioral_Command_06.Receiver;
using System;
using System.Collections.Generic;
using System.Linq;
using System... | e6805bf1f6e1550f238eecbdad7d028afab52434 | [
"C#"
] | 42 | C# | ransfordw/CSharp-Library | de55e15d46232964918540bae428faa841da57ec | 4b7c86183dd3d7ae565786df34edcdd81117dcbf |
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 DataTier;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import jav... | a9053b7e4f9183cf296aef13851e2016cd92d13b | [
"Markdown",
"Java"
] | 6 | Java | LucaSarge4/DatabaseProject | f0697b5920d5fbea194e62c898d0ae14cb528200 | 0167f8dcaae534fda18f47a0929666620492dc5e |
refs/heads/master | <repo_name>CianteJones/muddhacks2018<file_sep>/README.md
This is our 2018 muddhacks project.<file_sep>/app.py
from flask import Flask, request, jsonify
from motorshield import Motor
app =Flask(__name__)
leftm = None
ritem = None
def initial():
global leftm,ritem
leftm = Motor("MOTOR2",1)
ritem = Motor("MOT... | 146fa3a3919462b062e8022f9575d43ce87254dc | [
"Markdown",
"Python"
] | 2 | Markdown | CianteJones/muddhacks2018 | e1560876ca2b34dc354fb3f6a812b49c5df14957 | 75a49b857610be611d06dd04319aceaf665e4d60 |
refs/heads/master | <file_sep><?php
$Estado = 0;
$Dep = $_POST['centro'];
$Tipo = $_POST['Tipo'];
$idEmp = $_POST['idEmp'];
/*$file = fopen("datos/DepOsup.txt", "w");
if(fwrite($file, $Tipo)){
$Estado++;
}
fclose($file);*/
$bd1 = new ConexionM();
$bd1->__constructM();
if($Tipo == 9){
$InsertarCP = "UPDATE config SET IDEmpresa = '$id... | 091d4f8d0d7f97b246dc527bb0e19db238d5b523 | [
"JavaScript",
"SQL",
"PHP"
] | 23 | PHP | adicto969/PrenominaWeb | 9082db4439a21eb4d96c114c7959d01abe8e855d | eb4c5e1bafcc849105851f9ae75260f1f0a86241 |
refs/heads/main | <repo_name>wany0530/Programmers_Algorithm<file_sep>/src/main/java/K번째수/K_number.java
package main.java.K번째수;
import java.util.ArrayList;
public class K_number {
int array[] = { 1, 5, 2, 6, 3, 7, 4 };
int commands[][] = { { 2, 5, 3 }, { 4, 4, 1 }, { 1, 7, 3 } };
public static void main(String[] args) {
K_number ... | 8223dbd5f0ba2dd7d12589aa4a1456f874df94dd | [
"Markdown",
"Java"
] | 2 | Java | wany0530/Programmers_Algorithm | 5ae4660cb721219be0e415afd1972d67c49b2ce4 | ed5ccdc6d454a2b5385fa0dbf21c216af19f8271 |
refs/heads/master | <repo_name>peizhouyu/twchat<file_sep>/src/main/java/cn/mrpei/App.java
package cn.mrpei;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.c... | e0cdf150956fede4998205f8197974b9e27383c6 | [
"Java"
] | 1 | Java | peizhouyu/twchat | f4cd20fcaff1ec277dc192c2d710f3073657f374 | e942ddb69caf61a185b00f1375fc551749b827d9 |
refs/heads/master | <repo_name>beemfx/Beem.Media<file_sep>/games/Explor2002/Source_Old/ExplorED DOS/dosexplored/Readme.txt
=====================================================
=== ExplorED: Copyright (c) 2001, <NAME> ===
=====================================================
This folder contains:
Binread.exe: Dumps a copy of Binary... | bd16a338966828c767093713b3f060c8673af8f9 | [
"Markdown",
"INI",
"Java",
"Text",
"PHP",
"C",
"C++"
] | 550 | Text | beemfx/Beem.Media | a1a87e7c82dd9fb9c6e82a5f5cf3caa0be02ee7f | 9aff548da389e7bdeff0f1925aa9a38aa0e09490 |
refs/heads/master | <file_sep># Instagram-Bot
It will Increase the follower and can extract the data of specific hashtag. Auto Liker
A bot that automatically opens a browser, logs in, searches for trending based on a particular hashtag given and likes all of them.
Used Selenium and Gecko driver to automate this cool stuff! Note : Use Moz... | 34d8adc2662d63e81063eb6834702a47b2a414fa | [
"Markdown",
"Python"
] | 2 | Markdown | NANDISHSHAH/Instagram-Bot | 15bbd3be98e635722ee51f56fbb7a5f7e66046a5 | cbd167ada2145f0fd2e87abfe2c49dd56d0c82fd |
refs/heads/main | <repo_name>mccurcio/mccurcio.github.io<file_sep>/_draft/2021-12-17-Count-words-in-file.md
---
title: "Python: Count words in file"
tags:
- "one liners"
- "count words"
---
### Count words in file
Returns the number of words in a text file,
- `open('test.txt', 'r').read()` gets us the text of the file.
- We get the... | 51570489de13f2a07cbb9101703217ce114788bc | [
"Ruby",
"HTML",
"Markdown",
"R",
"RMarkdown"
] | 63 | Markdown | mccurcio/mccurcio.github.io | 5a3d71f883de7dd74917f8a1c0315a2fb8d333f4 | 601019e21d871b9446da4f04e4bfeac6f027ef07 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace OfficeOnline.Demo_DSOframer
{
public partial class webtest4 : System.Web.UI.Page
{
protected string DocUrl
{
get { return "... | 8b4cef32466cf234451aefa523aef193c9e685cb | [
"C#"
] | 1 | C# | xaccc/OfficeTools.OnlineEditWord | 0ab7b0e3009625800bf01a165852b508068202f4 | 79d76892b0682f9916b89774b61b97ebddbc8098 |
refs/heads/master | <repo_name>prozz/nested<file_sep>/nested.go
package nested
// Resolve allows for easy lookups in deeply nested structs.
// In case of any unwanted nil, it just returns defaultValue.
func Resolve(defaultValue interface{}, accessFunc func() interface{}) (v interface{}) {
defer func() {
recover()
}()
v = defaultValu... | 4e65f40eb8e8fcb7c8ec058f6d1a1f268af99788 | [
"Go"
] | 2 | Go | prozz/nested | fc453774c98f408ede20bc66ac439c078927d1ff | 74152ca1d0117b033cf9da22cf8ed4710edf768f |
refs/heads/main | <repo_name>a252937166/spring-boot-hystrix-demo<file_sep>/src/test/java/com/ouyanglol/hytrixdemo/HystrixTest.java
package com.ouyanglol.hytrixdemo;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author ouyangduning
* @date 2... | 79019e22ff89c67d306af64502036db94c512e92 | [
"Markdown",
"Java"
] | 3 | Java | a252937166/spring-boot-hystrix-demo | ca934d152aae1ec3cabf2f9fb7d28211867b0abd | c1522f3bb13dde56cb3f9f34cd9678d49dcbe32a |
refs/heads/master | <repo_name>omoman/To-be-named<file_sep>/www/js/services.js
function map () {
var map;
var curLoc;
var markers = [];
function initialize () {
navigator.geolocation.getCurrentPosition(function(pos){
var latlng = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude);
var myOpti... | dca1cdea649e04500196e270b9cc6e366a7b4ee4 | [
"JavaScript",
"HTML"
] | 4 | JavaScript | omoman/To-be-named | aa965097362e7d468e5dabc9097b4e655bbad08a | 239278225708cd8185b12cfee7faee229fe6a12d |
refs/heads/master | <file_sep><?php
namespace Home\Controller;
Class AliController extends BaseController
{
/**
* 绑定列表
* @return [type] [description]
*/
public function index()
{
$map['uid'] = $this->mid;
$map['is_del'] = 0;
$res = D('userAlipay') -> field('ali_name, ali_num') -> where($map) -> find();
$this->return['dat... | 6a796b08c1158bbee9529b3e3336a96b9b5121cb | [
"PHP"
] | 26 | PHP | a349944418/yuban | 5d2d4f4e8d0d9f5b0b600f4a30c1b487c69a9190 | 621f603d52048b5fbedbc5629c2e8eb4afa622bf |
refs/heads/master | <repo_name>karopeter/series-library<file_sep>/src/app/graphy/graphy.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-graphy',
templateUrl: './graphy.component.html',
styleUrls: ['./graphy.component.scss']
})
export class GraphyComponent implements OnInit {
constructo... | 2a38879edd479a4922921768ed0285163deb4cef | [
"TypeScript",
"HTML"
] | 2 | TypeScript | karopeter/series-library | d404cf5e99861bfc330481631b8a12e2fb99d9c0 | ea85474cd85e5703f5ffcade5090cf6379b49470 |
refs/heads/master | <repo_name>Naveenkota55/selenium_testsuite<file_sep>/testsuite/package1/TC_LoginTest.py
import unittest
class LoginTest(unittest.TestCase):
def test_twitter(self):
print("This is login by twitter")
self.assertTrue(True)
def test_facebook(self):
print("this is login by facebook")
... | abb0363e867cf9b5783d27f096ff6310ea6645e4 | [
"Python"
] | 28 | Python | Naveenkota55/selenium_testsuite | e144eb4ad0036e021beabf37fba869814326ba8a | e00b263e5db6d7da4b1e319a82e73d4e619f84f9 |
refs/heads/master | <repo_name>KevinOlvera/ARP_Scan<file_sep>/ARP_Scan.c
#include "comnet.c"
int main(int argc, char const *argv[])
{
int packet_socket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
BD_MySQL_Connect();
BD_MySQL_Reset_Data();
if(packet_socket == -1) {
perror("Error al abrir el socket.");
exit... | de273e85819a49e1a7d03b7cf051391ff29ce2ce | [
"C",
"SQL"
] | 3 | C | KevinOlvera/ARP_Scan | 4f8d9f32ad7dc7fad75338a977219ba624aa0a41 | 2fc9dbaac5a8ed7765f36817699235006afc2fbd |
refs/heads/master | <file_sep>const nameCampus = require('./information.js');
let cowsay = require("cowsay")
console.log(cowsay.say({
text : `My name is ${nameCampus.name} and I'm in ${nameCampus.campus}`,
e : "oO",
T : "U"
}))<file_sep>let nameCampus = {
name : "Malo",
campus : "Biarritz",
}
module.exports = nameCam... | 4ef595443633bd62bd445748a3d5abbda472eeb6 | [
"JavaScript"
] | 2 | JavaScript | 00FuNkY/Node01 | e0131b7c9a22534534257f9572f31544adee1afb | 731e761fd7b888d63d51a408f407bcd7bbffdd3e |
refs/heads/master | <repo_name>jackylee1/InfoCountries<file_sep>/app/presentationLogic.py
from app.businessLogic import *
from app.wikidataInterface import *
from app.inferences import *
# Get all the metrics and values of one country
# Returned in the format: ({"uri": uri of predicate, "url": url of predicate, "label": name of predicate... | e671e9bfb6f27c284829d8310479990862008bf8 | [
"Markdown",
"Python",
"HTML"
] | 10 | Python | jackylee1/InfoCountries | 57c04cec80e174ae62d5be71ebaf387898ffdbb5 | 0ff583714c6b3e7c84c42a6290df4721e4878d91 |
refs/heads/master | <file_sep>import time
import sys
import csv
import aerospike
def test_db():
config = {
'hosts': [ ('127.0.0.1', 3000) ]
}
client = aerospike.client(config).connect()
t0 = time.time()
global rec
rec = {}
with open('skunkworks.csv', 'r') as f:
reader = csv.reader(f)
... | 16d149b448452ad0432bd5982812226165a2a50f | [
"Python"
] | 3 | Python | benjcabalona1029/Skunkworks | 4b4882ad78ce2c065ba400a9beca22ecdb787ca6 | 4105b3837858f1c9e9d8a5ffa4ab90e5071f491a |
refs/heads/master | <repo_name>RadamHussein/CS362-004-SP17<file_sep>/projects/smithada/dominion/cardtest3.c
#include "dominion.h"
#include "dominion_helpers.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void buildHand(struct gameState *G){
G->hand[0][0] = estate;
G->hand[0][1] = copper;
G->hand[0][2] = smithy;
G->hand... | 0bf1a9cc11ed964dedb78782309f161592d78dd8 | [
"C"
] | 12 | C | RadamHussein/CS362-004-SP17 | 67f9882f01a387f34fd9bb2f41386cf72b838366 | 513772b92c8f3f071baff6913ba67055600f4ce1 |
refs/heads/main | <repo_name>steveoh/logo-lightroom<file_sep>/vite.config.js
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
export default defineConfig({
plugins: [reactRefresh()],
server: {
port: 1337
},
base: 'https://steveoh.github.io/logo-lightroom/'
})
<file_sep>/src/App.jsx... | 47c7b06cb653e66749f89e5c5b8663b7a8a01f33 | [
"JavaScript"
] | 2 | JavaScript | steveoh/logo-lightroom | e231c02ed6e209f9bda0ae2cad359d0a7a3ab30e | add6c8b8f44b04863d01bc6bb7197aebf8750536 |
refs/heads/master | <repo_name>gobiiv/A3csci3130<file_sep>/app/src/androidTest/java/com/acme/a3csci3130/CRUDEspressoTest.java
/*
This is the espresso UI test for the CRUD methods.
*/
package com.acme.a3csci3130;
public class CRUDEspressoTest {
}
| aeebe6953c8a0064c8d42837b56f9686c93cd36b | [
"Java"
] | 1 | Java | gobiiv/A3csci3130 | 192b8e8e33601fa8daaf14ce60b99c4357e88293 | 4de74b82296845298ed8cee54419e0e66ed28238 |
refs/heads/master | <file_sep># encoding: utf-8
require 'em-http-request'
require 'when'
require 'logger'
require './http-handler'
class TwitchAdaptor
include HttpHandler
class StreamInfo
def initialize(raw_data)
@raw_data = raw_data
end
def live?
!@raw_data['stream'].nil? && !@raw_data['stream']['is_playl... | fc744453a109eee6306b86358ed1c783614de507 | [
"Ruby"
] | 6 | Ruby | cdanis/kumite-twitch | e7ee1ab0f4b184df86f7592c1023c3e77a7fb3f2 | f118820d36bf1d628bfe5958dbcd90ed341ab43e |
refs/heads/main | <repo_name>adrianchan94/Movie-Browser<file_sep>/src/components/AboutView.js
import React from 'react'
import Hero from './Hero'
const AboutView = () => {
return (
<>
<Hero text="About Us"/>
<div className="container">
<div className="row">
<div className="col-lg-8 offset-lg-2 my-5">... | 540d63384dcb33d2f438bd188e3be9b3e8031873 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | adrianchan94/Movie-Browser | 2b75929507f19c8bc2ad82110255a8a8ffa97843 | 2c9d8adcb25b89879e22c3b103bcd5c083911a72 |
refs/heads/master | <file_sep>import asyncRoutes from "@/router/asyncRoutes";
import curlToParams from "curl-to-params";
const reg = /\/:[A-Za-z]*/g;
export const matchRoutes = role => {
let len = role.length;
if (len <= 0) {
return [];
}
const ROUTE_MODE = process.env.VUE_APP_ROUTE;
let accessRoutes = [];
console.log(role... | 6a6ef72ed883bc48fb682f4164a64d7183a564e0 | [
"JavaScript"
] | 11 | JavaScript | kaitochen/vue-admin-next | 9d9401e27ad864385e90cf74730fc7c610a941f3 | a78d155aec4753656622509e537aff6031ccbee6 |
refs/heads/master | <file_sep><?php
namespace App\Models;
use PDO;
class Post extends \Core\Model
{
public static function getAll()
{
$db = static::getDB();
$stmt = $db->query('SELECT id, title, body, photo FROM posts');
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}
}
<file_sep><?php
namespace App\Con... | 2a1cd88e4e2ccbaf471adc0d4c1af66a7c9b85a8 | [
"Markdown",
"HTML",
"PHP"
] | 6 | PHP | warleyerocha/basic-mvc | 1abb9fa597c1e791afa52da63f7f893e7b67b283 | af052826cd235ab6481a3f0c69d4a93b79584f27 |
refs/heads/master | <file_sep>package com.soupcan.aquapulse.model.entity;
import org.newdawn.slick.geom.Rectangle;
import org.newdawn.slick.geom.Vector2f;
public class Entity
{
public Vector2f position;
public Rectangle bounds;
public Entity(Vector2f position, float width, float height)
{
this.position = positio... | 8a3fc42e034dccbdd2d9d7f30f3af6a603c0d0aa | [
"Java"
] | 5 | Java | soup-can/aquapulse | 632a55451d120c8de5336e808506c23501c9ab11 | 7d9f0ab5ee5c89f9a749c8dd1bac36d9019c9ff5 |
refs/heads/master | <file_sep># screenshot-paste-and-upload-django
Sample Application that uploads the screenshot copied in the clipboard to the server.

####How to ?
copy screenshot to clipboard using Ctrl-V in Windows or Cmd... | d70d4cf3b7023e524fe178e91ba1079e28ce3333 | [
"Markdown",
"Python"
] | 5 | Markdown | jithin-c/screenshot-paste-upload-django | 5984945bb8fa1670f1a5084b45354c1b3ab3c110 | 2cbdcaa3e40b267dad64e4a60f756da9b13cba3c |
refs/heads/master | <repo_name>igelbox/thermostat<file_sep>/timer.cpp
#include "timer.hpp"
namespace timer {
Time::Time(uint8_t hour, uint8_t minute)
:value(hour) {
value = value * 60 + minute;
}
Time::Time(uint16_t total_minutes)
:value(total_minutes) {
}
uint8_t Time::hour() const {
return value / 60;
}
... | 6d8732c3acf98516215508465ad1f8fc9c294133 | [
"C++"
] | 11 | C++ | igelbox/thermostat | 67c3a1a80777ce63e95c0e7a450fa67ec783661e | dc46f6cb046a8ebacc4f2c98fa152f0e275df2b8 |
refs/heads/main | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main(void) {
setlocale(LC_ALL,"");
float raio,area;
printf("qual é o raio da circurferência?");
scanf("%f",&raio);
area=2*3.14*raio;
printf("com o raio de %f a circurferência terá:%.2f de area",raio,area);
return 0;
}
... | 0f12a47b37cf4dda1953a5d5695582e0d390835b | [
"C"
] | 1 | C | albertoneto03/TED-05-c | 6d0353c7af5291c3e29e671e008790aaa80860fb | afa062efee7399f55ea8e12139b3bab98aeb60f3 |
refs/heads/master | <repo_name>alginokursoy/test-repo<file_sep>/hello_world.py
import os
import sys
import requests
def say_something(sentences):
for i in sentences.split(" "):
os.system("say %s" % i)
r = requests.get("https://coreyms.com")
print(r.status_code)
name = input("Your Name? ")
say_something("merhaba %s" % na... | 3103c67aa33bcdd279baf8bbfc558cea8b4961e6 | [
"Python"
] | 1 | Python | alginokursoy/test-repo | ec810d3a3ca6f1a81f5b65bf79da0e78bd080d48 | 398777fa0477fd0ddddcc222491d6348087fe176 |
refs/heads/master | <file_sep>const express = require('express');
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const cors = require('./cors')
const Favorites = require('../models/favorites');
const favoriteRouter = express.Router();
favoriteRouter.use(bodyParser.json());
var authenticate ... | 5b45f1959b9e5330d8112c3e471fe2f537b6459e | [
"JavaScript"
] | 1 | JavaScript | KorsakovSemen/rest-API | f01e36e0e035f8f85734449f0e0c184c78aa48d7 | 7fd9424da657ca065a1f9ee69b528598fdce306c |
refs/heads/master | <repo_name>JosefWalls/CarzSeller<file_sep>/server/routes/Users.js
const cars = require("../models/Cars");
const Router = require("express").Router();
const User = require("../models/User");
Router.route("/SaveCar/:carId").post((req, res) => {
const userId = (req.session.user.userId);
const carId = req.params.... | 296d6c5782b63dfd6293abac8e68e5388470901a | [
"JavaScript"
] | 14 | JavaScript | JosefWalls/CarzSeller | 9a22bd44d9497f3d43ad8669fbe3af707ce0522f | 787c89b335cc7755839edf42e99e4b88aade01f8 |
refs/heads/master | <file_sep>import React, {useState, useEffect} from 'react';
import logo from './logo.svg';
import './App.css';
import Saludar from './components/Saludar';
import { Button, Accordion, Card } from 'react-bootstrap';
import { ReactComponent as ReactIcon } from './logo.svg';
import { BrowserRouter as Router, Switch, Route,... | 5497432380ea046501c4d417fccece334d4f0a9a | [
"JavaScript"
] | 2 | JavaScript | LuigisDev/mi-primera-app-react | ab752ee8f2b84798bab8d3023c753e5037aaef94 | 48e520b97d9017cc7cad042c92f9d9a703867f99 |
refs/heads/master | <file_sep>算法
时间复杂度:
<file_sep>package com.latico.algorithm.sort;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class BubbleSortUtilsTest {
@Test
public void sort() {
int[] arr = new int[]{2,1,3,5,7,2,7,0,8,4};
BubbleSortUtils.sortA... | e4918213ec6e60216b73df74bbc78bd1442c5e60 | [
"Markdown",
"Java"
] | 15 | Markdown | latico/latico-algorithm | ca836d97de629b7d4b2fd6a9d5cca5881294c455 | 8c65f76911edcd67f75bad3d3b8ddbebb21f0b93 |
refs/heads/master | <file_sep>module.exports = {
'Cintas US SSL Homepage' : function(browser){
browser
.url('http://www.cintas.com')
browser.waitForElementVisible('body', 3000, false);
browser.verify.urlEquals('https://www.cintas.com/', 'SSL Test1 Homepage');
},
'Verify US SSL Uniform Work Apparel' : function (brows... | e7ce89cc2e9c5c301a79918858e3b0b1e965f6d8 | [
"JavaScript"
] | 6 | JavaScript | julius2427/Nightwatchtest | 3b98ebc65c1b0ac58b3dfbd96a8750a93dd111c4 | 8abea57894b933998381d8e88db6c9a3cb06947e |
refs/heads/master | <file_sep># import base64
# import json
import datetime
import os
from google.cloud import bigquery
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
def process_storage_event(data, context):
# data_buffer = base64.b64decode(data['data'])
# event_entry = json.loads(data_buffer)['pro... | c4be7fe1cf3bc0a36040c1ac0825370a51c3d327 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | elatovg/bq-cf-demo | 048fe130910904d5ad65e69d647443e6791460ac | 3332b5313debaca3a6935491620c9333873b1be2 |
refs/heads/main | <file_sep>import changeTheme from "./js/changeTheme";
import template from "./js/template";
import "./styles.css" | 29659be3b3799eb1c94a6fbe90410ab78ad94df3 | [
"JavaScript"
] | 1 | JavaScript | Anastasia-A-2020/goit-js-hw-10-food-service | 19e2d4d2ee536ba7e437de4c13b5b18f6320e4f9 | 001d818f9897178d99d1eac962d2a1f2a9cf04be |
refs/heads/master | <repo_name>Akilimali003/Traffic-light<file_sep>/Feu_Rouge/Feu_Rouge.ino
//Creation of variables
//and put each variables to his pinBreach
int const led_vert1 = 2;
int const led_jaune1 = 3;
int const led_rouge1 = 4;
int const led_vert2 = 5;
int const led_jaune2 = 6;
int const led_rouge2 = 7;
void setup() {
// Initial... | 598e8cfd98e5a832b42b4cc79a7d49f1f88384b2 | [
"C++"
] | 2 | C++ | Akilimali003/Traffic-light | b658a2aafe0b57ff707d38ab66e63efac6a848e0 | 3cb7b9d0a46b4d84372b448fa22de2343c3b4e33 |
refs/heads/master | <file_sep>const doctorsData = require('../../../data/doctor-data.js')
const createDoctor = (knex, doctor) => {
return knex('doctors').insert({
name: doctor.name,
specialization: doctor.specialization,
phone: doctor.phone
}, 'id')
.then(doctorId => {
let patientPromises = [];
doctor.patients.... | 014b2eada4cea37dcb742245e51a0c0fb8129f58 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | andreeahanson/byob | c17b513f8dc3e32ed520e3af9ca3766e5ffbb360 | 8153ace67b9a0610e39ba66ba423fc081d45ecc0 |
refs/heads/master | <file_sep>class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.rootViewController = TableViewController.new
@window.makeKeyAndVisible
end
end
class TableViewController < UITableViewControll... | 925230fb7034267c5a19ee82fb4de4f4908ec32e | [
"Ruby"
] | 1 | Ruby | sxross/constraint_based_table_cell | 75d1ad1d70b1f5daf63afa2497af63c6b0edfed2 | ce1a05d9fe1dffef4483592b061f39de7dbb5e42 |
refs/heads/master | <file_sep>using System;
namespace Serpis.Ed
{
public class MyArray
{
public static void Main (string[] args)
{
//int[] v = new int[]{5, 15, 12, 7, 3, 9};
//SelectionSort<int>(v);
//show<int>(v);
Persona[] personas = new Persona[] {
new Persona("Dani", new DateTime(1969, 2, 25)),
... | 2f1893affb9ab6fad8bb098e6919d67ece689b5b | [
"Markdown",
"C#"
] | 8 | C# | ivives/EDcs | bc4822a0c55d92a10a8c2d19cb984325b025de06 | af5b0be30821cb958b9979c99496c09480568b72 |
refs/heads/master | <repo_name>andreyyv/grin-pool<file_sep>/scripts/build-docker-images.sh
#!/bin/bash
# Build containers
docker build -t localhost:32000/splunk splunk -f ./splunk/Dockerfile.splunk
docker build -t localhost:32000/universalforwarder splunk -f ./splunk/Dockerfile.universalforwarder
docker build -t localhost:32000/rmq rmq -... | 96f486d01a5cd7a2d98fdbc81eb91319448a36c8 | [
"Shell"
] | 1 | Shell | andreyyv/grin-pool | a2b916969e76d9a19654d7e954c1b28e739d3c5a | 359b0cd35fe44205abac90fc8e942c2b7902491b |
refs/heads/main | <file_sep>package com.mycompany.server;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.CacheControl;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springfram... | 4aac74c01119471decf3c28d9f18791e1336d481 | [
"SQL",
"Markdown",
"INI",
"Gradle",
"Java"
] | 6 | Java | MacLin123/EmployeeGwtSpring | 3426c999bdf501d5aed2f850a80f0a7790ee30f3 | 07250b9a135f22ae85efb2ea54081da3accfe108 |
refs/heads/master | <repo_name>lazynessmind/srt2vtt<file_sep>/README.md
# srt2vtt
*.srt converter to *.vtt written in python
<file_sep>/index.py
import sys
import re
from pathlib import Path
def convertType(srtFile):
subtitlefile = open(srtFile, "r", encoding='utf8')
convertedFile = open(Path(srtFile).stem + '.vtt', "w", encodi... | 648b31721e438fd9f24621c53ba9bc708607a8f9 | [
"Markdown",
"Python"
] | 2 | Markdown | lazynessmind/srt2vtt | 4205e820b71a7e362c933744ad69dfae81768fee | f4f2036e7bc46e77b6447df5222b5d220bc3a81c |
refs/heads/master | <repo_name>sebakocz/Little_Amy-Discord_Bot<file_sep>/bot.py
####IDEAS##############
# DONE randomize every action - 1/4 chance that Amy ignores you or goes "Grrrrr" -> random_cat_behaviour
# DONE >friends - show cat photos
# DONE >futter - daily check in
# DONE list of commands
# kotz_behaviour -> -> try to kotz in a ... | d95ce3731d7b80d8cf007fd398b6f81349a73af3 | [
"Markdown",
"Python"
] | 5 | Python | sebakocz/Little_Amy-Discord_Bot | bfbfefe31613feefcfbd57b508f1005fa44de7a6 | e84078048cd75c94e970284e6d1faa08f3aecee3 |
refs/heads/master | <file_sep>Git Sample on Create Project App.# git-sample
<file_sep><?php
echo "example on vscode connected.";
?> | 3d7e55eddcdc5bb2decc4a1e561dbb72b1a58238 | [
"Markdown",
"PHP"
] | 2 | Markdown | jay-supakorn/git-sample | fbc912429723dcdf500c6f50c9481a21b80f97d4 | b9a73c5ade05a077e4759eb653af8dfc1e0eef70 |
refs/heads/master | <file_sep>package drtetris;
import java.io.FileNotFoundException;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.Music;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.GameState;... | 1f6d97a3854c086a5f0b46b97201760e10409c30 | [
"Java"
] | 8 | Java | RHSBPASoftwareDevelopment2014/DrTetris | b0a0002d68f4fa6d02fafaf90f2d23da3ac9bc4e | 2e2c8416baeec5ba05c99af054b52fa4e8f872b9 |
refs/heads/master | <repo_name>crowdfavorite/wp-cf-links<file_sep>/views/import.php
<div class="wrap">
<?php echo cflk_nav('import'); ?>
<table class="widefat" style="margin-bottom:10px;">
<thead>
<tr>
<th scope="col"><?php _e('Export Link Data','cf-links'); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<select id... | 8cdf2f45bfbabbfce06207a84d497a896e3f8f79 | [
"JavaScript",
"Text",
"PHP"
] | 16 | PHP | crowdfavorite/wp-cf-links | fbabee31af04ad338c9f063d57a51dfa0521150f | dc6a38dfff070a4d4ea43112751174b0bb7a35a3 |
refs/heads/master | <file_sep>const Color = {
primary: "#84EAC0",
secondary: {
light: "#FFE7E2",
main: "#F6D2E3",
dark: "#D21D3A",
},
white: "#f4f4f4",
};
export default Color;
<file_sep>import { createContext, useCallback, useState } from 'react';
// set context type
export type AlignContext = {
align: boolean;
... | 0180e1d8405bb0321725775480e8fbb2909577fc | [
"TypeScript"
] | 7 | TypeScript | ragnar1904/conceptnet | 9c56a0880a03e840aa47a2ed73f25ee6c9505575 | 5dbb72fa9445711e2b7749e0d5ebc9edf03c819a |
refs/heads/master | <file_sep>
class TimerDashboard extends React.Component{
constructor(props){
super(props)
this.state = {
timers:[]
};
}
handleCreateFormSubmit = (timer) =>{
this.createTimer(timer);
}
createTimer = (timer) => {
const t = helpers.newTimer(timer);
client.createTimer(t)
... | 10aec832513756d292c52f133af4fb32728dcc49 | [
"JavaScript"
] | 1 | JavaScript | kraju3/React-TimerApp | 8f63e6fa4b3e1198ce6e2e090582ad070af6b55f | a2c12e99a1e4090fa499f3c0ea1c301d08c2c97a |
refs/heads/master | <file_sep>
const Discord = require("discord.js");
const fs = require("fs");
const botconfig = require("./botconfig.json");
const bot = new Discord.Client({disableEveryone: true});
bot.commands = new Discord.Collection();
let cooldown = new Set();
let cdseconds = 5;
fs.readdir("./commands/", (err, files) => {
... | a7223bcd0a59ca1496167e83a0b18a1291b79698 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | t64x/Birb | 5ece2bfcecc72d8efc916fa893c0f0602be82063 | 5c21d8648c14b6e7591bd5bb49fe58d816dadb29 |
refs/heads/master | <repo_name>Sanaqamar123/empWageComputation<file_sep>/empWageComputation.sh
#!/bin/bash -x
echo "Welcome to Employee Wage Computation Program"
#Checking of employee attendance
num=$((RANDOM%2))
if [ $num -eq 1 ]
then
echo "Employee is present"
else
echo "Employee is absent"
fi
#Calulate daily wage of employee
Wage... | d564a5895239bdd056aa540bc768d82d069033f5 | [
"Shell"
] | 1 | Shell | Sanaqamar123/empWageComputation | ceaa1762c3aa724354da986495a58fd2e82ae613 | 55501e75e24adbba061f841a7b80f54e36d0862e |
refs/heads/master | <repo_name>CraztTy/myhome<file_sep>/src/main/java/com/zzp/myhome/MyhomeApplication.java
package com.zzp.myhome;
import org.apache.catalina.Context;
import org.apache.catalina.connector.Connector;
import org.apache.coyote.http11.AbstractHttp11Protocol;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
im... | 9155316dd7fa08081a2cfdb5b18ed829e3d0c6e5 | [
"Markdown",
"Java"
] | 6 | Java | CraztTy/myhome | d1239fcb9081351336f8a460c55050485853580e | d49b647a96c2ff93c100ac331ed3e9c0a93f3a2c |
refs/heads/master | <repo_name>br0xen/user-config<file_sep>/cfgedit/main.go
package main
import (
"fmt"
"os"
userConfig "github.com/br0xen/user-config"
)
const AppName = "cfgedit"
func main() {
if len(os.Args) < 2 {
printHelp()
os.Exit(1)
}
whichConfig := os.Args[1]
cfg, err := userConfig.NewConfig(whichConfig)
if err != n... | 340f47f0e01ccf35e68f47053cf13be2a48d63f3 | [
"Markdown",
"Go"
] | 6 | Go | br0xen/user-config | 16e743ec93a27e510b5f5ff2acdb9ea8947e0ccf | ee0df9eee632514ae2f0e76193187690b535866b |
refs/heads/master | <file_sep>package com.example.webview;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.NotificationManager;
import android.app.Noti... | 5c36f4142e378a25216777c103458d116cc8f26d | [
"Java"
] | 1 | Java | m22pi7/ConXAppAndroid | 4c27f18d2f2f4a2b1c479809b74c9bda1a757e7e | cd8493197aba7c3e268bab9cd8182f220dbf0a2b |
refs/heads/master | <repo_name>ConnorDCrawford/Homify<file_sep>/src/model/Homeowner/Validate.java
package model.Homeowner;
/**
* Validate.java
* Homify
*
* Created by <NAME> on 3/5/16.
* Copyright © 2016 <NAME>. All rights reserved.
*/
public class Validate {
public StringData errorMessages;
private Boolean success = fals... | 36191babf75b076da68064f833d2ce7261bb58f4 | [
"JavaScript",
"Java"
] | 14 | Java | ConnorDCrawford/Homify | 34b944d28dd1f68af8fbbe2ca60881c6ecc2a8a7 | 476c556e7fbb68dcf3cefcb9558660c1fc8de83e |
refs/heads/master | <file_sep>package com.insidethemindofgio.toasty;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.TimerTask;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w... | 3faf5742218c31410456c6323378cd5f6f2203af | [
"Java"
] | 2 | Java | Tim-R/Toasty | cb423893bba1603837eaf464a363edb32d98bbe9 | 5dbe4bbcfa4cd049f4fee418867acc84dae2084c |
refs/heads/master | <repo_name>luis-cmrodrigues/bdDataBaseAppExample<file_sep>/src/class4dbapp/Departamento.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 class4dbapp;
/**
*
* @... | 07ffddc2ccef59f574273e28f08604dc202d3725 | [
"Java"
] | 1 | Java | luis-cmrodrigues/bdDataBaseAppExample | 2f5cb4f9347d9879ff7e8a131b0946320efd7b6d | 9eee5b21228bb0e8a030c3ae6c9c841c096567e2 |
refs/heads/master | <repo_name>kannanraghupathy/spingboot-flyway<file_sep>/src/main/resources/db/migration/V2__Add_country_field_to_athletes_table.sql
ALTER TABLE athletes ADD COLUMN country VARCHAR(200);<file_sep>/src/main/resources/db/migration/V3__Create_index_first_name_in_athletes_table.sql
CREATE INDEX first_name_idx ON athletes (fi... | c9f98c9aae4b0556052bf2063500eb34e27dcd04 | [
"SQL",
"YAML",
"Markdown",
"Java",
"Dockerfile"
] | 10 | SQL | kannanraghupathy/spingboot-flyway | 1e2fd9b0ba95b5ed19ef07e0bac43ae757df17b7 | d7d030f2d1b71af821ebe6975654c00a768c369f |
refs/heads/master | <repo_name>Smiley98/mod2<file_sep>/mod2/m2WeightedTimer.cpp
#include "m2WeightedTimer.h"
m2WeightedTimer::m2WeightedTimer(size_t sampleCount)
{
m_samples.resize(sampleCount);
}
void m2WeightedTimer::sample(float duration)
{
if (m_index > m_samples.size() - 1) {
m_index = 0;
float total = 0.0f;
for (float i : ... | 61c71184c974f36b48b0ff49ed0cd4e56ae3db40 | [
"C",
"C++"
] | 39 | C++ | Smiley98/mod2 | f7b4e4b558f77e4c2acad0c51dbba0d8f0d38f32 | 0f4c896fe05621c6cddae0013b8948307e4f2230 |
refs/heads/master | <repo_name>SaneelDaniel/quiz-app-back-end<file_sep>/README.md
# Server - Full-Stack Quiz App
The back-end REST-API for the quiz app, built with node.js and express.js, it has end points to fetch the QuizdData from a Mongo Database
( App live with gh-pages at https://saneeldaniel.github.io/quiz-app-deploy/ )
This is ... | c362b05e5c869d83c2b66cb0e930630757d201eb | [
"Markdown",
"JavaScript"
] | 5 | Markdown | SaneelDaniel/quiz-app-back-end | ad6a55d9b136efa97054659a9d77855b47fdfcf4 | 24ade5983445afb4990453446c8e7ae57e734796 |
refs/heads/main | <file_sep>//
// MainListView.swift
// Pryaniky.com
//
// Created by <NAME> on 21.03.2021.
//
import UIKit
protocol IMainListViewType: class {
var tableView: UITableView { get }
}
final class MainListView: UIView {
private weak var viewController: MainListViewController?
private var listItems = UITableView()
... | e1416fbcc01b8906b7d77cf59c8ae73242d61098 | [
"Swift",
"Ruby"
] | 11 | Swift | Vasiliy-70/Pryaniky.com | f5ceef79aa77b9e45ce4b0fad6a2f04496b1de2f | a2658eef70f1e7a702a387f5aadbf09c0ebdf76e |
refs/heads/master | <repo_name>jackey90/machine_learning<file_sep>/collective_intelligence/chapter2/recommendations.py
# A dictionary of movie critics and their ratings of a small
# set of movies
critics = {
"<NAME>": {
"Lady in the Water": 2.5,
"Snakes on a Plane": 3.5,
"Just My Luck": 3,
"Superman Ret... | 99041784e3d035defd57af271de6a8db23b453fc | [
"Python"
] | 2 | Python | jackey90/machine_learning | e36cdd42a0b811896b77ec83ff3960ecc370a4b4 | 594d6553cc3790e00977b8c856f2c4c82d591e78 |
refs/heads/master | <repo_name>diegolfavero/bakend-challenge-acme<file_sep>/README.md
# bakend-challenge-acme
Invillia Avaliation
# URL Git da Avaliação:
https://github.com/diegolfavero/bakend-challenge-acme.git
# Simulando uma possível V0 deste Challenge:
A tarefa foi dividida em 4 projetos, e visa mudar a arquitetura do sistema mon... | 4490051b062350e5e2c7be91ea5cdd9e732dc058 | [
"Markdown",
"Java",
"SQL",
"INI"
] | 13 | Markdown | diegolfavero/bakend-challenge-acme | 526217c12e5c01754f5c5b447f75283f93d15242 | 47bc17e29a75277aefb0fdc382400014b4f4bbb5 |
refs/heads/master | <file_sep>
class Quotes
attr_accessor :string, :author
def initialize(string, author)
@string = string
@author = author
end
def quote_str
return "#{string} - #{author}."
end
end
Quotes_list = [
Quotes.new("Act as if what you do makes a difference. It does.", "<NAME>"),
Quo... | 5883280d3110e9d2ed43c24b68d35a84e53b5115 | [
"Markdown",
"Ruby"
] | 3 | Ruby | mmolloy88/terminal-app1 | c744b504895e43f9cb569bff00b740de676e02a8 | 7f157edb33c999f143c7be6eb571f46d6d0ce25b |
refs/heads/master | <repo_name>tyebu/parentStar<file_sep>/README.md
# cloud_demo
springCloud的demo
<file_sep>/feign/src/main/java/com/star/feign/FeignService.java
package com.star.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bin... | c368c03e15667ffc50dbe5825a6f4250949bfc05 | [
"Markdown",
"Java"
] | 2 | Markdown | tyebu/parentStar | dc309fd38f672f2001779214cacddad2caf33780 | b7108eda6ed289b9116068ea39cb1fa0792a683a |
refs/heads/master | <repo_name>hirasaki1985/selenium_testcodes<file_sep>/requirements.txt
selenium==3.7.0
python-box==3.1.1
<file_sep>/README.md
selenium_testcodes
====
## pyenv, anacondaのインストール(mac)
```
### install pyenv anaconda
$ brew update
$ brew upgrade
$ brew install pyenv
$ pyenv --version
$ pyenv install anaconda3-5.0.0
$ pyenv... | 00bb7628cfde98f3a6e6d63ae4886b490a8495fe | [
"Markdown",
"Python",
"Text"
] | 4 | Text | hirasaki1985/selenium_testcodes | c547b592f2761104ffe62ffbbadd26ed72dc04f2 | 47b9933295e2cab8bb7082eb14d4d36487b080f6 |
refs/heads/master | <repo_name>0pd/intellij-rust<file_sep>/src/main/kotlin/org/rust/ide/annotator/cargoCheck/RsCargoCheckAnnotatorPass.kt
/*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.annotator.cargoCheck
import com.intellij.codeHighlighting.DirtyScopeTrac... | 8b13135cbbe760b76a680995529dae3da1b10cef | [
"Kotlin"
] | 3 | Kotlin | 0pd/intellij-rust | d1cf2b902c6d49764df0908efbf33ab7030e2272 | 2ca29a604127dbd7af931e639117b8ee581aa3b7 |
refs/heads/master | <file_sep>const { protocol } = require('electron');
const path = require('path');
const fs = require('fs-extra');
const SCHEMES = [ 'twlv' ];
function setup () {
protocol.registerFileProtocol('twlv', async (req, cb) => {
let filePath = path.resolve(__dirname, '../app', req.url.slice(7));
let stat = await fs... | 353c45850e9a441e52b44e0a6fd236a15e85e0f5 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | twlv/twlv-ui | bef6197f20d887f15c0c76c8ac1e0f310c664375 | 3a4ea8e45ca649323186e5ce8552ac8ca0b090fe |
refs/heads/master | <repo_name>OscarSandell/AVL_Tree<file_sep>/labb_1/avl_tree-test.cpp
/*
* avl_tree-test.cc (c) <NAME>, IDA, 2007-05-02
*/
// Få svenska tecken att fungera på Windows.
// Måste vara innan #include "avl_tree.h", pga bugg i Windows-SDK:
// https://developercommunity.visualstudio.com/content/problem/93889/error-c2872-... | 52af583c1317c1eb8821842f06ba7ce98d658a2d | [
"Makefile",
"C++"
] | 5 | C++ | OscarSandell/AVL_Tree | 9790d5eb041a829ed5295ac8c462641dc0011a8c | 288720c4f768f9254274256e9cff5b950f72435c |
refs/heads/master | <repo_name>Pradeep-CG/CoreDataRelation<file_sep>/CoreDataRelation/Controller/College/CollegeFormViewController.swift
//
// CollegeFormViewController.swift
// CoreDataRelation
//
// Created by Pradeep on 25/12/19.
// Copyright © 2019 Pradeep. All rights reserved.
//
import UIKit
class CollegeFormViewController: UI... | 896e3a5b7facdef62493537ee62ed5be37608ed0 | [
"Swift"
] | 7 | Swift | Pradeep-CG/CoreDataRelation | 837c7349e13b159623f84d02d2c6033f07c6dcca | 1592f8eb38209357983a7841dcdfa3e64681857f |
refs/heads/master | <file_sep>using Datos;
using Entidades;
using System;
using System.Collections.Generic;
namespace Logica
{
public class MensajeLN
{
public List<Mensaje> MostrarMensajeFitro(string busqueda)
{
List<Mensaje> Lista = new List<Mensaje>();
Mensaje oc;
try
... | b8903bb2b65b314f16950ca654739cfcc24d9d06 | [
"Markdown",
"C#"
] | 22 | C# | GustavitoH/Softpiebm | e704adfed4664ce8f5fa4b89cba0fe108ade1f83 | cccb70c578cda8d21f9014d5fab440aed4709ab0 |
refs/heads/master | <repo_name>M2odrigo/keras_metrics<file_sep>/Keras_sonar_dataset/perceptron_sonar.py
import numpy as np
import csv
from matplotlib import pyplot as plt
dataset = np.loadtxt('hidden_0_activations.csv', delimiter=",")
cant_input=30
# split into input (X) and output (Y) variables
X = dataset[:,0:cant_input]
#add the bias ... | 61d15b613846ca3b55cc7a837114d133cc7fabe7 | [
"Python"
] | 12 | Python | M2odrigo/keras_metrics | 8457d8ef96cf5e12efbbadc40f26fbf5b4c77904 | 129ec56de3ec35d8a3f2a520f62b9cd918533a86 |
refs/heads/master | <repo_name>jjjohncedeno/ExCedenoJohnSum<file_sep>/src/test/java/SumadoraTest.java
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import org.junit.Test;
public class SumadoraTest {
Convertidor c = mock(Convertidor.class);
@Test
public... | f64396d63ef91033fef478da06a07e29d49b75d5 | [
"Java"
] | 3 | Java | jjjohncedeno/ExCedenoJohnSum | 060350f0fa710fd1733db65775a76052448cb506 | e121b9e6348ece4065114eb531c92ef505490e1e |
refs/heads/master | <file_sep># Layer Names
When fetching recipe content, the selected text layers must be named according to the Spoonacular API response fields, *case sensitive.* Here's a listing of common and not-so-common recipe fields.
### Common fields
|Layer name |Description |
|:--------... | 8dee0dec2da8fcf9f1fbe8898cca48fde876bc2e | [
"Markdown",
"JavaScript"
] | 4 | Markdown | ktomasso/sketch-foodreau | a3f3fcb00550d24ee197ec4dfb675887351e0f7a | 8d9d46f404767bb4a02edb0b54399ec587c538a8 |
refs/heads/develop | <file_sep>import { makeStyles, Theme } from '@material-ui/core/styles';
export const useStyles = makeStyles((theme: Theme) => ({
root: {
...theme.mixins.gutters(),
paddingTop: theme.spacing(2),
paddingBottom: theme.spacing(2),
},
footer: {
backgroundColor: '#100774',
marginTop: theme.spacing(... | 293e3fe15fae52d68c59c84e26f536de27f17179 | [
"TypeScript"
] | 15 | TypeScript | magerrrr/Travel-App-FE | ce85bc353ba6f1841dbd89954075cbe2bd8bc14e | 57dcc398b0bf018c3de3e9dfd1cddba37e04b685 |
refs/heads/master | <repo_name>DonatoClun/symbolicautomata-for-learning<file_sep>/SVPAlib/src/mysvpalearning/MySvpaPlayground.java
package mysvpalearning;
import automata.sfa.SFA;
import automata.sfa.SFAInputMove;
import automata.sfa.SFAMove;
import automata.svpa.Internal;
import automata.svpa.Return;
import automata.svpa.SVPA;
import au... | 99f9666b2f4d525187caccefbe3d1402cca33f6b | [
"Java"
] | 2 | Java | DonatoClun/symbolicautomata-for-learning | 2b3e2fd9fef54b1337373efd0ee26b076c22c793 | df7853bfa70f9ae8155f01ed51be1cc3cf1c356f |
refs/heads/master | <file_sep>let button = document.getElementById("send");
let textInput = document.getElementById("textInput");
let list = document.getElementById("list");
button.addEventListener("click", () => {
if (checkLength())
addItem(textInput.value);
})
function checkLength() {
if (textInput.value.length > 0)
return tru... | 1995bdebf4d2084b955b3abbbbf3cb842d47684a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mvkdev/githubtest | 95ff1b5778497729eec484938997fc34ee00f75a | 154eb5188068da155537dafce6400da071c31eb6 |
refs/heads/master | <file_sep>[](https://www.emulsify.info/)
<p align="center"><img src="https://raw.githubusercontent.com/emulsify-ds/documentation/master/.gitbook/assets/logo.png" width="400"/></p>
Emulsify is ... | 3b9f1a9bf1c5f7ff6d20236d7405bd83d02542b0 | [
"Markdown",
"JavaScript",
"PHP",
"Shell"
] | 43 | Markdown | fourkitchens/fourkitchens-karaoke | 7bd6a1d8ebd46e4f1a1c33dba916321d3d06a413 | c2714cf0d8ebff3d9f578a44e146e5453205846e |
refs/heads/master | <file_sep><?php
namespace Tests\Feature;
use App\Http\Livewire\SearchDropdown;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Http;
use Livewire\Livewire;
use Tests\TestCase;
class SearchDropdownTest extends TestCase
{
/** @test */
... | 8e81056259922d2dc53cc8d0ea459451683b497d | [
"PHP"
] | 2 | PHP | gsmofgsm/LCVideoGameAggregtor | b4f3897adbe4a37b355e567ff2d750c51de0db96 | c9bf7e06edd2b634a708617bc947ea8d0307233a |
refs/heads/master | <file_sep>import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import processing.sound.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
i... | 04f29818191dbb64aad83ff6022cdebf91a72454 | [
"Markdown",
"Java"
] | 2 | Java | SapphireLion/hw1.49.Torres | 9fbf7439ba8021ebbf143eac478a968e868fb750 | f288e5a2dc6be91ea9aa3213953cacd87b85d5cc |
refs/heads/master | <file_sep>package com.matteo.pipitone.strategyPattern.worker;
import org.springframework.stereotype.Component;
@Component
public class Developer implements IWorker{
@Override
public String Work() {
return "Developing new features";
}
@Override
public String HoursOfWork() {
return... | 30af2b2895112d5bc3cebc4c71f50737135a5413 | [
"Markdown",
"Java"
] | 2 | Java | crakdelpol/StrategyPattern | c97f454b234930bb20c5afbf06b50e8257b5c4b1 | 448d504f3c9055d4cfb6115fc32faca4bbc6eb4f |
refs/heads/master | <file_sep>from collections import Counter
from sklearn.datasets import load_files
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import make_pipeline
from sklearn.metrics import accuracy_sco... | 2441750dc08dcfc4e04c76e09f9ee54e57db2b0d | [
"Python"
] | 4 | Python | ThanhHieuDang0706/BasicML | e8a14a98883bbe87e66e2b6cafee8d1672438db9 | d38eae6012b8c4aca029311593c79a65f78b904d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.