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># TicTacToe
A simple Android Tic Tac Toe app built for CIS195 - concepts include recylcler views and shared preferences
<file_sep>package cis195.tictactoe;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import a... | 9709a953203f5704ca45b6f72a5536898a7c65e9 | [
"Markdown",
"Java"
] | 3 | Markdown | relisher/TicTacToe | 5b081d1ff8c87b50060e3cd998482d9541797bd8 | 3861d610669a707d05e1b913123802ad333980be |
refs/heads/master | <file_sep># Práctica 5 Pruebas(Mocha , Tai, Sinon, Blanket) Con Karma y Travis
Este repositorio aloja la práctica de conversión de tipos, realizada con html, css y javascript, usando POO y haciendo uso de la herencia en javascript.
**_Travis:_**
[ => {
const dispatch = useDispatch();
const { repos, isFetching, error } = useSelector((state) => state.repos);
useEffect(() => {
d... | 321b5e13180e97068a3fce70265ea1d58a8b4554 | [
"JavaScript"
] | 5 | JavaScript | brunorcajo/boilerplate-observable-rxjs | a0d819686ce85cdda861c6c9bfdb41044e9b7e7a | cb0abbd5ac4cd50f50ae2984a73054e0f79c93cd |
refs/heads/master | <file_sep>'use strict';
/**
* Module dependencies.
*/
process.env.NODE_ENV = 'development';
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
chalk = require('chalk');
//console.log(config);
//process.exit();
/**
* Main applicatio... | f923f7adfc7d4924de4bc4e0355dc323b7402e70 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | kavitsoni/LogMyAsset | f00e36ccee8bbe9862279eb351d8bfa59925d37a | 2581a35b04ad54e2744baa4f64f3fe88aed975f4 |
refs/heads/master | <file_sep>#
# This script is the server-side of the XML-RPC defined for gef
# It must be run from inside IDA
#
# If you edit HOST/PORT, use `gef config` command to edit them
#
# Ref:
# - https://docs.python.org/2/library/simplexmlrpcserver.html
# - https://pymotw.com/2/SimpleXMLRPCServer/
#
# @_hugsy_
#
from __future_... | 2bcf72e37755bf721c22eaeafa8f31211351c2fe | [
"Python"
] | 1 | Python | wambiri/stuff | 1acf0cf527f8541d288263c9e65e9676263bd36b | c8cd4f1593b4c8e6b6571203ffcfdc480d5ca370 |
refs/heads/master | <repo_name>skydive-project/dede<file_sep>/dede/asciinema.go
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... | 391ce52c19c9c9f43e4c63118bbcde4930c21ad9 | [
"Makefile",
"Python",
"Go",
"JavaScript"
] | 14 | Go | skydive-project/dede | b1b74a5bb85696105128e95454a32cd82e6d3937 | 2e3ac2b1c0039e124415fd759a199c8d1cd74dbf |
refs/heads/master | <repo_name>markisus/ssbm-labeler<file_sep>/video_seeker_image_provider.h
// VideoSeekerImageProvider wraps a VideoSeeker as a QImageProvider
#include <video_seeker.h>
#include <QQuickImageProvider>
#include <QDebug>
class VideoSeekerImageProvider : public QQuickImageProvider {
public:
VideoSeekerImageProvider(const... | 4488a5a09c873d765b31bcc3ded3a492e99abe49 | [
"C++"
] | 4 | C++ | markisus/ssbm-labeler | d2a99c7c95a10e668da36e615d81421b46649570 | 782b4f55505c3b53f8a4a84fb1be49b84ba081f2 |
refs/heads/main | <file_sep>import React from "react";
import firebase from "../fire";
import {BrowserRouter as Router, Link, Switch, Route } from 'react-router-dom' //De importerer behövs för att Routing ska fungera
import manne from '../profileicons/manne.svg';
import sonny from '../profileicons/sonny.svg';
import rocky from '../profi... | 53a208c80d6a01ec2e66a64d544c50b0ece0b6e2 | [
"JavaScript"
] | 13 | JavaScript | JavaJonte/HeYov3 | 6e64d3041ae554e97d7663e818032f9e6cd1326a | f5b4402509a1d12d8fa68b006fae351981149503 |
refs/heads/master | <repo_name>markuspalme/cropimage-xamarin<file_sep>/README.md
cropimage
=========
Easy to use library for image cropping on Android apps built with Xamarin.
Android does not offer a built-in activity for image cropping (there
is no guarantee that "com.android.camera.action.CROP" is present) so
you have to build your o... | f82f9f421960312f239725326e7a0afec5872e29 | [
"Markdown",
"C#"
] | 2 | Markdown | markuspalme/cropimage-xamarin | 389106a24a5b9a5148cba14e3a5d2888f08b69ef | 76c3ccea1d1fe3541446eee42c40e48897011566 |
refs/heads/master | <repo_name>aliToha/QRScaner<file_sep>/app/src/main/java/com/gagalcoding/qrscaner/ApiInterface.java
package com.gagalcoding.qrscaner;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
/**
* Created by Ali on 3/11/2018.
*/
public interface ApiInterf... | 602f7ca014d649838a7ae25620c1ebaed57368f1 | [
"Java"
] | 1 | Java | aliToha/QRScaner | 1febe43eae509a1002898757f8ea7d542cccda45 | 09b1150e57c9c4d1959ed2dd0d8b1a037b5955f5 |
refs/heads/master | <repo_name>redhog/numjs<file_sep>/test.py
import bitstring, random, numpy
def float2bits(x):
F = numpy.float32
x = F(x)
sign = F(0.0)
exp = F(0.0)
frac = [F(0.0), F(0.0), F(0.0)]
if x < F(0.0):
sign = F(1.0)
x = -x
if numpy.isnan(x):
exp = F(255.0)
frac = [... | f5c86c64a6f11423a24cd0f1436454c1f171e3fd | [
"Python"
] | 1 | Python | redhog/numjs | 90de3502bd3ba2531b1355431dbba277e8d132cb | ec78fbc715b729ba57165279b351ed1f99ca80e1 |
refs/heads/master | <file_sep>/// <reference path="../global_js/phantomjs.d.ts" />
/// <reference path="../global_js/require.d.ts" />
module printer {
var phantom;
export class Server {
public static start() {
var system = require('system')
var address, output, size, ms
var page = requ... | 2535240d79f50f7a7a84042110a19e98a7864bf3 | [
"Markdown",
"C#",
"TypeScript",
"JavaScript"
] | 174 | TypeScript | brunskillage/Tekphoria-Web | 0f56bbc0e4da5ca865f0bf3f6a22b439a492b2b5 | d870f2028409c298f71a835e97227f30329cea1d |
refs/heads/main | <repo_name>dannfirefight322/password-generator<file_sep>/README.md
# password-generator
### This is my password generator.
### [This is the link](https://dannfirefight322.github.io/password-generator/)
<file_sep>/script.js
// Assignment Code
var generateBtn = document.querySelector("... | fe039a9bb2ee68865901a1061e076c4b1a7750ea | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dannfirefight322/password-generator | 4bc40b27f07d5c10d61c90b8d6656970d35725cd | 733e6a015116d41af3eb449a0fae6e056afb692e |
refs/heads/master | <repo_name>MibinGit/Algorithms-Assignments<file_sep>/README.md
# Algorithms-Assignments
Northeastern University - INFO6205 - Program Structure & Algorithms
<file_sep>/QUIZ/Sec2_Quiz2/Sec2_Quiz2_Coding.java
public class Solution {
public int binarySearch(int array[], int key) {
//TODO:: implement binary... | 5281de5fef841c60b4e9cee1e9cda9ebfc415306 | [
"Markdown",
"Java"
] | 2 | Markdown | MibinGit/Algorithms-Assignments | e824e70e851286278c95125eafb48bd22694806c | 4ea4f95afe4875a0abf0c187b455e14aaa3bc670 |
refs/heads/main | <repo_name>Rconat/code-quiz<file_sep>/script.js
// DOM elements
var startQuiz = document.getElementById('startQuizBtn')
var countdownTimer = document.getElementById('countdownTimer')
var restartQuiz = document.getElementById('restartQuizBtn')
var answerResult = document.getElementById('answerResult')
var count = 75;
... | 9ef63113928db1589e365026800323d8fa973b46 | [
"JavaScript"
] | 1 | JavaScript | Rconat/code-quiz | 2d17ba45b0942a5f012bf936e55186e4dffaedd8 | bbb461928341fcd0b0cb090b5089d3637fe75ab8 |
refs/heads/master | <file_sep>package com.jojoldu.book.springboot.lol.api;
import com.jojoldu.book.springboot.lol.config.ApiKey;
import com.jojoldu.book.springboot.lol.dto.SummonerDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
@RequiredArgsCo... | 54030403b0f2403f7c90e400e68e0e0b60a7fae3 | [
"Markdown",
"Java",
"Shell",
"Gradle"
] | 13 | Java | 93TEI/freelec-springboot2-webservice | 0c50c30decd494370be2c732d8224ef33aa40fba | 80cd454211e02eaedb0351e8ca309ab93c885277 |
refs/heads/main | <repo_name>eng-EslamEzzat/simpleTodoApp<file_sep>/App.js
import React, {Component} from 'react';
import {Alert, FlatList, StyleSheet, Text, View,TouchableWithoutFeedback, Keyboard, Button} from 'react-native';
import AddTodo from './components/addTodo';
import Header from './components/header'
import TodoItem from './c... | 4196b93e07c7f0ac13b487908386e5f79c7bc79e | [
"JavaScript"
] | 2 | JavaScript | eng-EslamEzzat/simpleTodoApp | bbf7292e33bb0bfcbfe543d33caa406059a14aea | e90e507bd919bbc00aa4ebf30fd4ddc5d2f83925 |
refs/heads/master | <repo_name>ParkerNGore/-Assignment-Arrays-Filter-Map-Reduce<file_sep>/src/index.js
import Senators from "./data/senators";
export const republicans = () => {
const republicans = Senators.filter((senator) => {
if (senator.party === "Republican") {
return true;
}
});
return republicans;
};
export c... | 8cc11cd175bd48c60e2704e5177ce8671d53c115 | [
"JavaScript"
] | 1 | JavaScript | ParkerNGore/-Assignment-Arrays-Filter-Map-Reduce | c7bbe0cc4ea71ac7654ecc5b66748ca7f2325495 | f1548c578f9fa293482ba5694935a113a1519614 |
refs/heads/main | <file_sep>import Link from "next/link";
import Image from "next/dist/client/image";
// import { useRouter } from "next/dist/client/router";
import { useState, Fragment } from "react";
const Navbar = () => {
// const router = useRouter();
const [colorChange, setColorchange] = useState(false);
const changeNavbarCo... | 715d97323399c5327974b0b78e284765a3fc347a | [
"JavaScript"
] | 7 | JavaScript | MickDellaert/portfolio2021 | cff68da58f8af83353400a10097ce5fa15e02222 | 60ad5eaa56a0adba2e79e60ac5370baab8377c85 |
refs/heads/master | <file_sep>import { configure, addDecorator } from '@kadira/storybook';
import React from 'react';
import styled from 'styled-components';
const req = require.context('../src/stories', true, /.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
const Wrapper = styled.div`
height: 100v... | 8babe1ad438713178ddcf923415697b5c2423439 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | victorvoid/styled-placeload | 72912c35c52e524f5693e3eaa5c445e4981809ba | 946664c3e8ed08ba9d61a4fab34ff335fdd91250 |
refs/heads/master | <file_sep>package test;
import org.apache.logging.log4j.core.config.Configurator;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggerTest {
@Test
public void log4j() {
Configurator.initialize("Log4j2", "classpath:log4j2.xml");
Logger logger = L... | d2701f33bbd6278e27524706c7e36ebf7aaafc26 | [
"Markdown",
"Java"
] | 2 | Java | lycwukang/KafkaLog4j2Appender | 78c101d837d4e8237aad83196e4e0da1ae52e6a3 | 0ca7b94fe5ff76b052e6639a9724272f77f8369e |
refs/heads/master | <repo_name>ognjen987/rakija<file_sep>/lib/js/app.js
$(document).ready(function(){
$("#racunaj").on("tap",function(){
// $(this).hide();
var litaraRakije = $("#rakijaLitara").val();
var trenutnoStepeni = $("#trenutnoIzmerenoStepeni").val();
var zeljenoStepeni = $("#kolikoZeliStepeni").val();
... | 7ee5bec2eec06a1952938d408c4b0e0c77f536ef | [
"JavaScript"
] | 1 | JavaScript | ognjen987/rakija | 5961639920930b97f705f6ca48acd7eda43b3c0f | ac98d54b5e694e88a44d9d90fe06db6603dea435 |
refs/heads/main | <repo_name>rubenlm25/todo-list<file_sep>/src/app/components/task-item/task-item.component.ts
import { Task } from '../../Task';
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-task-item',
templateUrl: './task-item.component.html',
styleUrls: ['./task-it... | 0d95eeb10b29165ce61de7c3667aa872c7ab6257 | [
"TypeScript"
] | 5 | TypeScript | rubenlm25/todo-list | 66bdc200815673030e43635eacdd8afd7a391376 | f9b201f405381f9f9c132db0c1fbec235a6afa03 |
refs/heads/master | <file_sep>export const toggleStep = (id) => ({
type: 'TOGGLE_STEP',
id,
completed: false
})
<file_sep>const TargetsApi = {
learningObjectives : [
{
id : 1,
text: 'Write an introduction',
stepsToSuccess : ['Describe characters', 'Describe setting', 'Hook in the reader']
},
... | bd5145ff934998b11069ad2e52a951c7347281a5 | [
"JavaScript"
] | 5 | JavaScript | steps-to-success/writing | 0dc0c3afff90c9313aca6b314ea0073784422aa3 | fb2a75c9f239985cb49cb16c77c1c19ea51e656e |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Broadway430
{
class Program
{
static string connectionString =
"Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=Broadway_... | 96c714e9bc56266a4e8a1a17d3a029479897f033 | [
"C#"
] | 2 | C# | anchallama/insertupdatedelete | 43862cde7207464ecd48278b1f57c60c316788ff | 8bb879bccdb9ed09a3b53cd087333f237c144ef1 |
refs/heads/master | <repo_name>nvenkov1/lanczos-restart-strategies<file_sep>/lanczos.py
import numpy as np
import scipy.sparse as sparse
import scipy.sparse.linalg
def lanczos(A, npairs, m=50, q1=None, reortho=None, eigvals=None):
# Implementation #1 : Algo. 7.1 (Demmel, 1997);
# ( we use this ) Algo. 10.1.1 (Golub, 2012)
# (i... | add55778c1d3c0107eb4e1ed6991d05f6aca25fd | [
"Markdown",
"Python"
] | 4 | Python | nvenkov1/lanczos-restart-strategies | 9aec8e9c614d9fb1509c1c814d6372a116d7fa67 | 6cb9492dff8561d2cd09d1db73e844fec8e6b1bc |
refs/heads/master | <repo_name>josephtinsley/SimplePHPFramework<file_sep>/index.php
<?PHP
require_once 'application/config/config.php';
require_once 'application/route.php';
function __autoload($class_name) {
require_once 'application/config/'.$class_name.'.php';
}
route::getRoute();
<file_sep>/application/controllers/ind... | 055bfb5c861a200a66c5fea16061e667aea645ea | [
"JavaScript",
"PHP"
] | 16 | PHP | josephtinsley/SimplePHPFramework | 0480e022153f339d28bf594b994a2bba971a45bb | ffa5462a3cc556e1bb3c4e176a848d4f3127b13e |
refs/heads/master | <repo_name>tonny0531/VoiceAlert_Source<file_sep>/src/app/app.component.ts
import { Component, ElementRef, ViewChild } from '@angular/core';
import { interval, Subscription } from 'rxjs';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class App... | 296873171dddbf7d69fa373f8dd1227b11bfdb70 | [
"TypeScript"
] | 1 | TypeScript | tonny0531/VoiceAlert_Source | f16df991a0e1d24148d6d3b189020b01e3d5ad06 | bcb650a53d826bae62879a23f6a096ce6e62d42e |
refs/heads/master | <repo_name>UCL-EO/QA4ECV_ATBD<file_sep>/notebooks/defaults.py
import sys
import os
# where is the python directory? one of these probably
for pp in ['.','python','../python','../../python']:
try:
ppp = os.path.abspath(pp)
sys.path.insert(1,ppp)
except:
pass
# add the python directory
import pylab as p... | 15186f7cd1521a741180d3b714ebf05191ca7f78 | [
"Markdown",
"Python"
] | 5 | Python | UCL-EO/QA4ECV_ATBD | 3dbe86572286e3a3474de67ca2ac5a7fcffb44a2 | f192bdfd461753f40e0d58cb941b793e9e3f301d |
refs/heads/main | <file_sep>#GROUP 49
#<NAME>
#<NAME>
#<NAME> (Group Leader)
# In[134]:
#libraries required
import numpy as np #for fast mathematical computations and handling vectorizations
import pandas as pd # for handling raw data read from file.
from sklearn.preprocessing import StandardScaler # Scale data to Sta... | 1bce0fbe8c46f1b84a7ad403f5685a45c2604090 | [
"Markdown",
"Python"
] | 2 | Python | javachip8786/Machine-Learning | 9072b60a9bd2a2c87907925bcd21055320d11914 | 3e986866cc569f4a7ba6a98e9d4539d02ae45d35 |
refs/heads/master | <repo_name>shengwenbai/nodebackend<file_sep>/README.md
# nodebackend
https://sleepy-reaches-77167.herokuapp.com/<file_sep>/build/precache-manifest.652bebd70f4c3b370641f010dea63d33.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "711d7d735a1bf6977339cbb7a9ce35dc",
"url": "/i... | 74daccb25354f5d0ce50cdc9a7ac921e4e9153c2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | shengwenbai/nodebackend | 64f4a81b2898c15175cf43823b2b8a6bd541dd73 | 207158c3799b7553de94df965e000a052a8a0da0 |
refs/heads/master | <file_sep>#!/bin/bash
#SBATCH --job-name=cds2_single_cpu
#SBATCH --nodes=8
#SBATCH --ntasks-per-node=2
#SBATCH --cpus-per-task=60
#SBATCH --output=cds2_eight_node.o%j.%N
#DOMAIN INFORMATION
export NUMTHE=375
export NUMRHO=1024
export PIXSIZE=1
#SOLVER DATA
export NUMITER=30
#TILE SIZE (MUST BE POWER OF TWO)
export SPA... | 5bce7f33ea0748130d6d7acada3cb3f6d3262e32 | [
"Makefile",
"Shell"
] | 10 | Shell | SeuperHakkerJa/vscc20-memxct | 2f7ff4c81fd1d2dd5c04a54c2a6297544572f6e3 | 74a0a22f334a15c2383c4d240899a45c199ddf8c |
refs/heads/main | <repo_name>Akan2096/DDOS-Attack<file_sep>/README.md
# DDOS-Attack
DDOS Attack Detection and Geographical Location tracking using python special libraries DPKT, PyGeoIP and Gmplot.
Detection of DDOS attack by deep packet inspection and plotting the suspected attacker’s IP on Google Map.
<file_sep>/ddosAttackProject.py
i... | 8bc283c4e49e332e12d1d5851beb9e9cd9be4548 | [
"Markdown",
"Python"
] | 2 | Markdown | Akan2096/DDOS-Attack | 18ff51801ceafc6617813d1ced86eda93de0d974 | f5126cb257848e93ae267747e2a780e76a87c8f9 |
refs/heads/master | <file_sep># Parallel-Graph-Pattern-Searching
Refer report for more details about concept, working, compiling and running instructions.
<file_sep>#include<iostream>
#include<cstdlib>
#include<cmath>
#include<pthread.h>
#include<fstream>
using namespace std;
long int num_threads = 2; //Number of threads
long int patter... | 929a00af68ffa16dff5e4033229b5f0416993585 | [
"Markdown",
"C++"
] | 2 | Markdown | tanaya13693/Parallel-Graph-Pattern-Searching | e5bed2871194b4502d561ea7967e842c81d021ed | dfd03bb11cb10f08a5e0e3b51c6bc7096a187775 |
refs/heads/master | <file_sep>package name.valery1707.java.kazakh.spi.util;
import java.util.Currency;
import java.util.Locale;
import java.util.spi.CurrencyNameProvider;
import static name.valery1707.java.kazakh.constants.KazakhLocales.*;
import static name.valery1707.java.kazakh.constants.KazakhStrings.CURRENCY_ID;
import static name.... | d1ec7b5dc523bb08f08373dfcba8859ea75d46fc | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | valery1707/java-locale-kazakh | 01dde7b90c55582a1897f4521de77d63c2b5d4e5 | cf11783a98b28d89276e765ca700ab9f31bce950 |
refs/heads/master | <file_sep>package com.tomorrow.mitty.locationindoor;
import android.app.Application;
import com.baidu.mapapi.SDKInitializer;
public class sdkApplication extends Application {
@Override
public void onCreate(){
super.onCreate();
//在使用SDK各组之前初始化context信息,传入ApplicationContext
SDKInitiali... | afd27754add79b1f16bc040be8bbcbd3f9f76984 | [
"Java"
] | 1 | Java | MittyShao/LocationIndoor | 88ce9467e98687ee78e16f9b7a50061244152867 | abf70de51217c6377d75f131def3a4e1fe026fc8 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import pygame, random
from player import Player
from food import Food
class Board:
"""Used to organize and handle the gist of the game"""
def __init__(self, width, height):
self.score = 0
self.width = width
self.height = height
self._initEntities()
def _initEntities(self)... | a7690ed84d9f8a0d2646a7c45a121732d4f9152e | [
"Markdown",
"Python"
] | 7 | Python | elimirks/squarez | ad9af9808ce82205265dc9d24a1c29b3ff136f11 | 60bb2ee49775399ca95b3446aa65c9b95ddf22dc |
refs/heads/master | <repo_name>appcelerator-modules/ti.pageflip<file_sep>/ios/example/views.js
var win = Ti.UI.currentWindow;
var PageFlip = require('ti.pageflip');
function createPage(number) {
return Ti.UI.createLabel({
text: 'p' + number, textAlign: 'center',
font: { fontSize: 150, fontWeight: 'bold' },
bac... | 706757d587eafa61b12599ab564ccf957a6730b5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | appcelerator-modules/ti.pageflip | 271a09b4e8d5768d8354ad996410fb648e5213fb | a80ff0fbae73ddb8ea1d9a8f15fd2c1ba5db3865 |
refs/heads/main | <repo_name>skylarsmtih1269/Micro_II.Lab1<file_sep>/MICROLAB1_Revised.ino
//Group Members: <NAME>, <NAME>, <NAME>
int red = 10;
int yellow = 9;
int green = 8;
int buzzer = 13;
int button_Input = 7;
void setup() {
pinMode(red, OUTPUT);
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
pinMode(button_... | 174349c2c0f4152f59435bd69c44a574c9bacff9 | [
"C++"
] | 1 | C++ | skylarsmtih1269/Micro_II.Lab1 | 87ca8e137b26eb9416283f5a9c20c6b1dc9b6455 | 96088a8ef80122aff5ff5d5431f52ef8b3b2015e |
refs/heads/master | <file_sep>/*
* XplainedRTOS.c
*
* Created: 2013-05-25 1:14:28 PM
* Author: nrqm
*/
#include <util/delay.h>
#include <avr/io.h>
#include "os.h"
enum { A=1, B, C, D, E, F, G };
const unsigned char PPP[] = {A, 20, B, 20, IDLE, 40, C, 20, D, 20, IDLE, 40};
const unsigned int PT = sizeof(PPP)/2;
EVENT* e;
//cons... | dda73aaead2b12e663989eacc0c576c4e075aa02 | [
"Markdown",
"C"
] | 2 | C | sovay/rtos2 | 61350c33135151e71fc4fedcd5cc856f6139e367 | b48d8c931217816f88e94e837f83080522e718a2 |
refs/heads/main | <file_sep><?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: *");
header('Access-Control-Allow-Methods: POST, PUT, GET, DELETE, OPTIONS');
// local
// $cn = mysqli_connect("localhost","root","","ubigeo");
// DATABASE HEROKU VARIABLES
// heroku
$cn = mysqli_connect("us-cdbr-east-0... | 170b0ad85f23ed508f01b4cc58ec34bc059e840f | [
"JavaScript",
"PHP"
] | 7 | PHP | 22jair/libroReclamos | 2dae91cf7618db6c418c8f0ab6e538a70875e6d1 | 9d3ca5022113effdf1bae49d5ece06b1e422756f |
refs/heads/master | <repo_name>lidani/tictactoe<file_sep>/js/velha.js
var main = new Vue({
el: '#app',
data: {
campos: [
" ", " ", " ",
" ", " ", " ",
" ", " ", " "],
jogador: "X",
ganhador: null
},
methods: {
jogar: function(i){
event.preventDefault();
if (this.campos[i] == " " && !this.verifica()){
if (this.jogador == "X... | eb88fe993b6f64578ef937963b18fc9efa641284 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | lidani/tictactoe | 23578f73bb2fe9a6273810927fcf661d0cf6b618 | df55ea543fbb8d7ba1b8e88c5a94140aab6b2b82 |
refs/heads/master | <file_sep>package com.example.receptionmedia;
import java.util.ArrayList;
import java.util.Set;
import android.app.Activity;
import android.app.ListActivity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
i... | 2190f1d60855efc83866b754f77bb666692dcaab | [
"Java"
] | 3 | Java | fcastagn/receptionMedia | c85b2600eb562c5b2324ac0e4fb01c7606c116c0 | 3fb1b00865e4785e7fc653503519496437d2dc19 |
refs/heads/master | <file_sep>package com.jen.sen;
import com.jen.sen.untils.MD5Util;
import com.jen.sen.untils.SysDateTimeUtil;
import com.jen.sen.untils.Util;
public class TestMd5 {
public static void main(String[] args) {
System.out.println("aaaaaaaaa:"+MD5Util.MD5("123456"));
System.out.println("bbbbbbbbb:"+MD5Util.SH... | 2f2fd6c8d98d5c078bba8b5428cc4bb93d2ef5f1 | [
"SQL",
"JavaScript",
"Markdown",
"Maven POM",
"Java"
] | 25 | Java | jenson2000/JENWEB | 3bbfe622bc18642f175e01f1a0872566ffef389b | 4811132f1242d1be2044f1a012f505b477bca903 |
refs/heads/master | <repo_name>TrungDucMai/QuadraticEquation<file_sep>/src/com/company/QuadraticEquation.java
package com.company;
public class QuadraticEquation {
private double a, b, c;
public QuadraticEquation() {
}
;
public QuadraticEquation(double a, double b, double c) {
this.a = a;
this.b = b... | 5ea65d4b13c2abc2c161373b06b68f878abca398 | [
"Java"
] | 2 | Java | TrungDucMai/QuadraticEquation | a66b91352f499e79478538910cc8e608f1dcf68b | a4e783bcbc88f42eec058faefb1274d0d8e84872 |
refs/heads/master | <file_sep>
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import plot_lib as pl
from collections import OrderedDict
import plotly.plotly as py
import plotly.graph_objs as go
import co_func as cf
def init_files(trace_type = ' ', task_type='CLASSIFICATION', topo_type='b4',
x_var ... | de77865d79a70c8e5c8f024340c198eea45c6c68 | [
"Python"
] | 32 | Python | yunhong111/hashCorrelation | f82463ee7665aedf9a9e508008a9d7d2ff8e7123 | ea265f6204382e81439cf13ce7db3da8c9ccb16a |
refs/heads/master | <file_sep>/**
* @constructor
* @param {mozContact.Data} [data]
*/
function mozContact(data) {}
/**
* @const
* @type {string}
*/
mozContact.prototype.id = '';
/**
* @const
* @type {Date}
*/
mozContact.prototype.published = null;
/**
* @const
* @type {Date}
*/
mozContact.prototype.updated = null;
/**
* @... | 88959054f6d5d2a5ea42c2753a70846c708bcadc | [
"JavaScript",
"Makefile",
"Markdown"
] | 15 | JavaScript | w2k31984/fxos-ide-helper | 001f01c20a688a7eb63b7d29f188e667b932c87a | 12862bed8fd6364af1fa526d2795d3f291af8f56 |
refs/heads/master | <repo_name>floering/mogli<file_sep>/lib/mogli/location.rb
module Mogli
class Location < Model
define_properties :latitude, :longitude, :street, :city, :state, :country, :zip
end
end
<file_sep>/lib/mogli/place.rb
module Mogli
class Place < Page
set_search_type
define_properties :phone, :is... | 962d16c0153e219bd6c789105bd28002750f94cd | [
"Text",
"Ruby"
] | 5 | Ruby | floering/mogli | 2382d65285371d8197c8edf938995650f075b9b9 | 0de740e8de7becaa82451c92687f9113673223b5 |
refs/heads/master | <file_sep># JDll
java调用dll示例
# 注意
1.示例中身份证读卡器调用的是32位的dll,所以jdk需要安装32位jdk
<file_sep>package com.sheliming.dll.idcard;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
public class IDCardReader {
public static Map<String,String> getInfos(int type){
return getInfo... | a881df2ad68624e917c9ad0ec6968cecad01d887 | [
"Markdown",
"Java"
] | 2 | Markdown | shelimingming/JDll | 16b4642b23bcb0e92f68f36c82670f106950857c | e71d7fe4bc26cc54cc6080edcdb4561cb1a186b4 |
refs/heads/main | <file_sep>import re
import getpass
def password_check(passwd):
val = True
# Get last character of string i.e. char at index position -1
last_char = passwd[len(passwd) - 1]
while val:
# This is the condition that checks the first character is a capital letter
if passwd and not passwd[0].... | 4ded5aa37040a4e5aaad1a73d1975bca4a53d634 | [
"Python"
] | 3 | Python | hdsouza06/python_test_results | 88b643d2ec79a56e4a8be26cf4e014a4be9d01aa | 9ce3e94c48bd8e87d3f9ae29a3319777f22d7753 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import classnames from 'classnames'
// 仿饿了么头部展示部分
class Header extends Component {
constructor(props) {
super(props);
this.state = {
keyWord_arr: ["炸鸡", "面", "奶茶", "披萨", "沙拉", "冒菜", "粥", "米粉", "麻辣烫", "星巴克"]
}
}
render() ... | 92f2123081231ba65c84fb56b9b1777d0d41f08b | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | qiuyuquan/React-Elm | c29986d4f4a0ca2fc5ba8f179665bf52d7a48bb6 | 99a7facd481eecad7008171eb44aa4d7fe9091d5 |
refs/heads/master | <repo_name>IUBLibTech/mock_storage_proxy<file_sep>/config.ru
require 'bundler'
require 'rufus-scheduler'
Bundler.require
require './storage_proxy'
run StorageProxy
<file_sep>/storage_proxy.rb
class StorageProxy < Sinatra::Base
require 'rufus-scheduler'
configure :development do
register Sinatra::Reloader
... | db950ff6a813ff21381436c2b6d8ed492ab808c5 | [
"Markdown",
"Ruby"
] | 4 | Ruby | IUBLibTech/mock_storage_proxy | d4d7c579b5789ea4ef8c245d5c1b86abb41f40b4 | 05981df720ad2bfcd95a9c88c1b19b2c2d022c8b |
refs/heads/master | <repo_name>idan288/Web-Based-Multiplayer-Battleship-Game<file_sep>/source files/web/js/statistics.js
// Constants:
const SHIPSIGN = 'O';
const EMPTY = ' ';
const HITINGSIGN = 'X';
const MISSSIGN = '-';
const MINESIGN = '*';
const HITMINE = '@';
const roomsURL = 'rooms';
const gameURL = 'game';
// Global vars:
let room... | 9ac9016e8af80f2764e8b7f4bdf0905910ece0a8 | [
"JavaScript",
"Java",
"Markdown"
] | 12 | JavaScript | idan288/Web-Based-Multiplayer-Battleship-Game | 26735c8f2867a1d4b3d7311f8da8802440c51eac | 26a5dd05344bf448e995e4916bdaf7e4239bd4a1 |
refs/heads/master | <repo_name>vonweb/quick-mock-middleware<file_sep>/src/index.ts
import { join } from 'path'
import chokidar from 'chokidar'
import matchMock from './matchMock'
import getMockData from './getMockData'
import { RequestHandler } from 'express'
const debug = require('debug')('quick-mock:createMiddleware')
export default fu... | 5b70d1db94313ef379667a38f468236f87a26253 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | vonweb/quick-mock-middleware | 46bf698461916578b794e042f8bb93e80786a3c9 | 9d9f1f653ff6938b056f3fd8e725a7182d6bbf01 |
refs/heads/master | <file_sep># CatvsNoncat-predictor
Classifies images as either containing a cat or not using logistic regression. Allows users to upload their own files to test against the algorithm.\
The **catvsnoncat_full_analysis** contains the full analysis of the algorithm. It uses different values of learning rate and compares th... | ab5d94816ee1838dc452885b466039c95567b20f | [
"Markdown",
"Python"
] | 2 | Markdown | sartkap/CatvsNoncat-predictor | 343df3ef421932eebda61c6cc679d4c184381d44 | b3fad89691ba8b8c1a1051e530a6e16512133ab1 |
refs/heads/master | <file_sep>var expect = require('chai').expect;
describe('default', function () {
it('processes CSS with default plugins', function () {
var css = require('!raw-loader!../!./support/cases/style.css');
expect(css).to.eql('a { color: blue }\n');
});
it('processes CSS in safe mode', function ... | e346eb4f1caf86cce8049fab43f215767b1c045a | [
"JavaScript"
] | 1 | JavaScript | paleite/postcss-loader | ec2b13ecd16d4f1b8b5032020cfbe39502cb90f4 | b5721fa922c421088f69c902749e1df99d9018ed |
refs/heads/master | <repo_name>jansipke/aurora-android<file_sep>/src/nl/jansipke/aurora/android/utils/AuroraDate.java
package nl.jansipke.aurora.android.utils;
import java.text.ParseException;
import java.util.Calendar;
public class AuroraDate {
private static String[] months = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Au... | cd45c6471eb0205d7e0bf6483c5a90c8cb4a77a6 | [
"Markdown",
"Java"
] | 4 | Java | jansipke/aurora-android | c8c1bdc2117f449043190fc9403b8c876a4b3255 | aff5e5fe63ab1631c911e6d2f362b1b59706c500 |
refs/heads/master | <file_sep>from flask import render_template, url_for, redirect, flash, request
from flask_login.utils import logout_user
from flaskblog.form import RegistrationForm, LoginForm
from flaskblog.bootstrap import app, db, bcrypt
from flaskblog.models import User, Post
from flask_login import login_user, current_user, logout... | 874f50c19cd9516c598b135751b44a8f5d58b6a6 | [
"Markdown",
"Python"
] | 4 | Python | AmitSureshChandra/Flask-blog | 915e4dc3665a8d1a576a1f0a73c79a5d8dfc96a5 | 73522fe4b632310e78970bca856f16a091018d67 |
refs/heads/master | <file_sep>function MapCtrl ($scope, $http, GeolocationService) {
////////////////////////////////
// Variables & Initialisation //
////////////////////////////////
$scope.Math = Math;
$scope.panneau = 0;
$scope.loader = false;
var map,
curPos = null,
curPosMarker = null,
curPosCircleAccuracy = nul... | 65b86e0dcc14fdf535848e0f2fc7679a6ef2040e | [
"JavaScript",
"Markdown",
"PHP"
] | 3 | JavaScript | BdSpi-Icam/site-bdspi | c58d1784b33e77c86caba4a6251f280dc62e1b5a | 83e887e814e93657b54aa0d6c316e49cbaf8cc0b |
refs/heads/master | <file_sep>import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
import Content from "@/pages/content/Content";
import Editor from "@/pages/editor/Editor";
export default new Router({
mode: "history",
base: process.env.BASE_URL,
routes: [
{
path: "/content/:id",
component: Con... | f482d8b9cebc7e228ce6ef30aa4a03f7922e26e8 | [
"JavaScript",
"TypeScript"
] | 8 | TypeScript | yuezm/electron-note | 9676e272023b0e560c02e4f7a1de1e012d6e0766 | 73ea98694991c9c4d45985f21517ac54841060c8 |
refs/heads/master | <repo_name>greenlightjohnny/restauth<file_sep>/index.js
const express = require("express");
const app = express();
const mongoose = require("mongoose");
require("dotenv").config();
////Import Routes
const authRoute = require("./routes/auth");
const postRoute = require("./routes/posts");
console.log(postRoute);
///Conn... | cb851d2fd2337eedc6493cb5df2621b326493ca8 | [
"JavaScript"
] | 1 | JavaScript | greenlightjohnny/restauth | f4e6e95cec5714d96602dd644422262173db1567 | 4867ac11278060649311315ad1b02697123b8bc6 |
refs/heads/master | <repo_name>epfromer/JSTest101<file_sep>/gulpfile.js
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var plumber = require('gulp-plumber');
var srcDir = './app/**/*.*';
var buildDir = './build/';
// reload browsers as watch task after changes made
gulp.task('watch', ['build'], function(... | 4769b60d56fd0813314a948d92f21fdb3067f7d7 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | epfromer/JSTest101 | dc244b9bd5a492dfcc63ba3b8f774fe27e92b11e | 7de0bef6df6e5eb7d684a4a9dd08f492fbea1c42 |
refs/heads/master | <file_sep>/**
@file model.c
@author <NAME> (jruisi)
A program that creates Model objects and transforms them
based on user input.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
Loads a model from a given file, adding all the points of the
line segments to the model's point list.
@param fn... | 179b095fda1f6a8b09bc7a7e77bd5c6c77c4d57e | [
"C"
] | 5 | C | jruisi/hw-ruby-intro | 5effb0615e8b38f74af7440b0c95376f7208a56a | 6de949733809031c4c49120b46f999eff5988359 |
refs/heads/master | <file_sep>require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require
require "rspec/core/rake_task"
desc 'Default: run specs.'
task :default => :spec
desc 'Run the specs'
RSpec::Core::RakeTask.new(:spec) do |spec|
end
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb', '-', 'HISTORY.md']... | 64a5b8e9bdcee3ce2b055c638c290908dbb95f3c | [
"Ruby"
] | 6 | Ruby | octanner/reportable | f2ed1e276281a6eb7ce6f9863ede0b138127ccc1 | 48e927aef8b39146b9d0c8e575037da77e385fad |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddLevelAndWeightFieldToPosts extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('posts', function($table){
$table->integer('leve... | 700e9fc7f82c1823ba9c56fba5cd4fd6ae05b2b7 | [
"Markdown",
"PHP"
] | 4 | PHP | fbmfbm/fbmtut | 4a17bcd6b5fb9d8a4a59a2905899c007d6026b5e | cb4b7a8142650d67ed05efcbf7c4c17e554c7151 |
refs/heads/master | <repo_name>baker1797/django-learn<file_sep>/novemberSite/basketball/admin.py
from django.contrib import admin
from basketball.models import Team, Player #, Stats
class PlayerInLine(admin.TabularInline):
model = Player
#extra = 3 #extra is 3 by default
class TeamAdmin(admin.ModelAdmin):
fieldsets = [
... | 05ada30b72bf51e43f054e465f45b509437def0d | [
"Python"
] | 11 | Python | baker1797/django-learn | 71c45a32459f9686cc2a21a22718a48febc3b5e5 | b3d9219a5af28155f52e60a30a9aeaaa4ae5fece |
refs/heads/master | <file_sep>\name{QuaProc}
\alias{Quantifying_processes}
\title{Quantifying_processes2}
\usage{
betaNTI(com,cophenetic(tree))
}
\description{
com: community
tree:phylogenetic tree
}
\examples{
betaNTI(com,cophenetic(tree))
}
<file_sep># Hello, world!
#
# This is an example function named 'hello'
# which ... | e4b3f8a70e01811cae3d76a538c3ca6e10aee043 | [
"R"
] | 3 | R | mol529/Rdiversity | c537e9fb78fbc8dacaf95c3540a4985f79a5ba5a | c82d70366cbdc302f61424944f24d5b674d23213 |
refs/heads/master | <file_sep># Java-Threaded-Binary-Search-Tree
## Brief Description
A Java [Swing](https://en.wikipedia.org/wiki/Swing_(Java)) application which implements a [Threaded BST (Binary Search Tree)](https://en.wikipedia.org/wiki/Threaded_binary_tree) and an interactive GUI to manipulate it.
The BST in this application m... | 13ebec842b46ad67c34c399e2a11ab002bf842bc | [
"Markdown",
"Java"
] | 3 | Markdown | kalash34/Java-Threaded-Binary-Search-Tree-Visualization | 60dfc842cb320c52a908a4748b538b47fc506f1f | 341d6cb0b5c37fa75007378167538d6651900ca4 |
refs/heads/master | <repo_name>anand-raj/gatsby-materialui<file_sep>/src/components/AppBar.js
import React from 'react';
import PropTypes from 'prop-types';
import { navigate } from 'gatsby';
import { withStyles } from '@material-ui/core/styles';
import {AppBar, Toolbar, Typography, Button} from '@material-ui/core';
const styles = {
r... | 5f67de1298df4db0c659ad5747599b98742ac02c | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | anand-raj/gatsby-materialui | 78915804ebeb5697f0061e7bbb58845f18e80c7f | e83c6625a39e7830ed0d2e24a78e4c5584354d9b |
refs/heads/master | <repo_name>Hydrapain/fire<file_sep>/js/app.js
// Your web app's Firebase configuration
var config = {
apiKey: "<KEY>",
authDomain: "usuarios-6830f.firebaseapp.com",
databaseURL: "https://usuarios-6830f.firebaseio.com",
projectId: "usuarios-6830f",
storageBucket: "usuarios-6830f.appspot.com",
messagingSender... | d5ffa932c8217de1ca483140963c59969742b4a7 | [
"JavaScript"
] | 1 | JavaScript | Hydrapain/fire | f18f76bcff3fea90bef245ef72e3d4b81009083a | 87fa246c13e883db9167fca7e2273ed39cf58944 |
refs/heads/master | <repo_name>Akhmed78111/svyaznoy<file_sep>/ConsoleApplication2/Model/Credit.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2.Model
{
class Credit
{
public int CreditID { get; set; }
public string... | 1707bad794a78d1f16d9d12acadb019d2b11d6cd | [
"C#"
] | 3 | C# | Akhmed78111/svyaznoy | 5726192c99a41087d3fc08232b1967d4ff14f59a | 69aa3d667b40fade67fcb0f89787383a59724ecd |
refs/heads/master | <repo_name>department-g33k/hassio-config<file_sep>/readme.md
[](https://travis-ci.org/department-g33k/hassio-config)
<file_sep>/updatescript.sh
#!/bin/bash
FileYouWantToTest='/mnt/dar-dc-01/docker/Volumes/travis/scripts/update-hass.tx... | 9a3a7776f6bb1834eb6b5bd4c016137323a58e2c | [
"Markdown",
"Text",
"Shell"
] | 3 | Markdown | department-g33k/hassio-config | 595125fee7c692b038857ef3fb562dadd14e7259 | 817c4fd9296664832f2e0e9a095928796da04780 |
refs/heads/master | <file_sep>// Verify that URL exists
document.getElementById("submitBtn").addEventListener("click", function(){
console.log("Click registered");
window.location.href = '/processed';
});
<file_sep>beautifulsoup4==4.6.0
certifi==2018.4.16
chardet==3.0.4
click==6.7
cssselect==1.0.3
Flask==1.0.2
Flask-WTF==0.14... | 11f0388132dc7eb25e3d44c749bf2970faf81237 | [
"JavaScript",
"Python",
"Text"
] | 6 | JavaScript | qvandenberg/fnc-1-baseline | 79b14083e31067f2caf23616f85ba6e6a6d97509 | 1beb558b0368a32853f262998b1eb3270d7c8791 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { LoadingController,NavController } from 'ionic-angular';
import { UserSettings } from '../../shared/shared';
import * as _ from 'lodash';
/*
Generated class for the Favorites page.
See http://ionicframework.com/docs/v2/components/#navigation for more in... | f8527a119c3658fa7164730dfbc621ba1c577e4c | [
"TypeScript"
] | 10 | TypeScript | stevedevelope17/Pizzerie | 20240ee9bf098e66ad4f58716612821f1fa388d2 | 5d480bef6e6722e95f9e714aa6ff044dc77a9cf1 |
refs/heads/master | <repo_name>logandk/permalink_fu_hacks<file_sep>/lib/accents.rb
module PermalinkFu
class << self
def escape_with_accents(string)
result = string.to_s
result.gsub!(/[\xE6]/, 'ae')
result.gsub!(/[\xC6]/, 'Ae')
result.gsub!(/[\xF8]/, 'oe')
result.gsub!(/[\xD8]/, 'Oe')
result.g... | 3ae77225bb1012049dc8b6ca8adf11f8e5e92573 | [
"Markdown",
"Ruby"
] | 2 | Ruby | logandk/permalink_fu_hacks | 58946fd617fe8bdb9c42f8da1bde4582e5aaa89c | 3ef185c70e3644832f0933e2a501b89ab8c49543 |
refs/heads/master | <file_sep>class User < ActiveRecord::Base
has_many :visits
validates :user_name, presence: true, length: { maximum: 30 }
validates :user_firstname, presence: true, length: { maximum: 30 }
validates :user_lastname, presence: true, length: { maximum: 30 }
scope :last_created, -> (x) { order(created_at: :desc)... | 52dd6dae634ab768961d226fcee9daca383f2efb | [
"Ruby"
] | 10 | Ruby | catburston/RoR-practice | 5ec0d53e8492d426dda64cb0a82016d9fc76cc84 | 39f6377cee73f35fa902e0aca31f36d5114692bc |
refs/heads/master | <repo_name>CharityBunyon/twiliopractice<file_sep>/twiliopractice/Program.cs
using System;
using System.Linq;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
namespace twiliopractice
{
class Program
{
static void Main(string[] args)
{
// Find your Account Sid and Token at twilio.... | f1b69234de6dd2adf549929f08c7f357bcf566ac | [
"C#"
] | 1 | C# | CharityBunyon/twiliopractice | 43b2ca613b4a017b02032b7d57fdeeab2f8fa605 | caaf3201c9dbaec4bcc66ebc44988c6cb255e8ea |
refs/heads/master | <file_sep>/**
* My API Sandbox
*
*/
Sandbox.define('/rest/cellule/166', 'GET', function(req, res){
// Check the request, make sure it is a compatible type
// Set the type of response, sets the Content-Type header.
res.type('application/json');
// Set the status code of the response.
... | 9d1bb63d68009867f243d0c358fb967c01524c4c | [
"JavaScript"
] | 1 | JavaScript | moraruetc/ep-sandbox | 3bcd343ad1800a3b73e27e69dba710b1f6a0a596 | 04470038277d0f0529639381ac7ee43bbd44e48e |
refs/heads/master | <file_sep>import os
import hashlib
import sys
print("============== Select Menu ==============")
print("(1) Hash Calculation (2) Hashset (3) Exit")
menu = int(input("Select >>> "))
if menu == 1:
filename = input('FileName >>> ')
f1 = open(filename, 'rb')
data = f1.read()
f1.close()
md5 = hashlib.m... | b7878514dcae3e3efdbeae43be1a9701629f0548 | [
"Python"
] | 1 | Python | fxploit/hash-result | 0c0f70a6d6f2f0c74c792b3f46a39f59dde4ce9a | 9b7cfbef63e4c288f7260f721d3bedb30b091c34 |
refs/heads/master | <repo_name>lichangao1826/flask-es<file_sep>/export.py
from library.elasticsearch.manager import ElasticSearchManager
import pandas as pd
es_client = ElasticSearchManager()
body = {
"query": {
"function_score": {
"functions": [
{
"script_score": {
... | 144f65c41a7bb1fc34c6473339b3699bf61fb09c | [
"Python",
"Text"
] | 4 | Python | lichangao1826/flask-es | 79e0509b503c37bb838999ac45b64a563445e909 | 5e1af7d14a1135ce64e951072764c88d2e65f423 |
refs/heads/master | <file_sep>
function myMap()
{
myCenter=new google.maps.LatLng(41.878114, -87.629798);
var mapOptions= {
center:myCenter,
zoom:12, scrollwheel: false, draggable: false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
... | da8868d0cf2e7bfbbf482fac859fc76ce651355a | [
"JavaScript"
] | 1 | JavaScript | ChaimaMazigh/Test | ae6de84b72279e4bc8fc99a252fec94a36335cda | 49f1413028bcf0e47b9f2cc7239d469db382e66f |
refs/heads/master | <file_sep>FileManager exercise.
Briefing:
A DAO factory is in charge of the instantiation of the different DAO's to be used in the persistence process.
The files with the extension .txt will be persisted through the StudentDAOTxt, the .xml through StudentDAOXml and the .json thorugh StudentDAOJson.
The persisted file... | 3a999c753d6de6fd23aa36756a2f80c5df6f38df | [
"Markdown",
"C#"
] | 15 | Markdown | danielPerPar2/FileManager | f34c44bdc7139a9e61fee26bd42d91fcf4f242f1 | 9bf20d12a7e31723dad6756aaa2c7df61a4c731b |
refs/heads/master | <repo_name>Sampath1893/EmployeeOps<file_sep>/src/app/services/authentication.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { DatePipe } from '@angular/common';
import { DailyLoginService } from '../services/daily-login.service';
import {MatSnackBar} fro... | 5c1d54ed0bb6dbc2d5e1334585f674b1fb8676ce | [
"JavaScript",
"TypeScript"
] | 4 | TypeScript | Sampath1893/EmployeeOps | 601caff8633a5ef06c98a071e6cebff4c67e994a | 47d5bcdeb1d1eb248ca66347f5656c28add484ca |
refs/heads/master | <file_sep>#ifndef RLL_COLORSET_H
#define RLL_COLORSET_H
#include "Color.hpp"
#include <vector>
namespace rll {
class ColorSet {
public:
ColorSet() {
colorMap.push_back(Color(0, 0, 255));
colorMap.push_back(Color(0, 255, 0));
colorMap.push_back(Color(255, 0, 0));
colorMap... | 7619c6b692094766cf9d32c86d11e9eee1468296 | [
"C",
"CMake",
"C++"
] | 13 | C++ | Hatber/Fellton | a1d248ee017056bb05ce176fb3cb7f721f67e0a2 | 0d56eb891d76fde066ecc1fd02508a80b4986f84 |
refs/heads/master | <repo_name>Ade00/Connecto_Quatro<file_sep>/connect4.py
import pygame, random, colours
from pygame.locals import *
from colours import *
pygame.init()
#Constants
W = 100
ROWS = 6
COLS = 7
WINDOWHEIGHT = W * ROWS
WINDOWWIDTH = W * COLS
CAPTION = 'Connect 4'
DISPLAYSURF = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIG... | 15b0d2f2b7045bb2b3c58b3cb1a05c270c1e9f42 | [
"Python"
] | 1 | Python | Ade00/Connecto_Quatro | b3ba5fe2fb862f405547c6246f1d02ac7bef99a4 | 805d00f0cdd42c586b40cc4dab58098195fc15f9 |
refs/heads/master | <repo_name>petethomas94/go-api<file_sep>/repository/repository.go
package repository
import (
"errors"
. "go-api/types"
)
var workouts = make([]Workout, 0)
var exercises = make([]Exercise, 0)
var programs = make([]Program, 0)
var workoutSessions = make(map[int]WorkoutSession)
func GetWorkout(ID int) (*Workout, err... | 8d56c9e7277048b7d5be642521a37366f13f1b71 | [
"Go"
] | 4 | Go | petethomas94/go-api | 7cd53770dd470cf3da8d63b6417758dbe1cb12c8 | f57e9073dfc949891b5c1785d97d991b5e6908a9 |
refs/heads/master | <file_sep>
// ================ Estilos Iniciais ==================
//Declaração de variáveis
let bodY = document.body;
let bwhite = document.getElementsByClassName("bwhite");
//Estilizando Var com JS
bodY.style.backgroundColor = "rgb(188, 195, 246)";
//bodY.style.fontFamily = ""
//Função anonima que se alto invoca e... | 2ff1bf18b74cf44be887e51b3a98f27539cab179 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | WKFilipeDavi/FormularioMusicAwards | 4a9c61b5e37e2e2c6df209100aed477d7cdb2ae6 | b91eb305bd0e3f1236efd16903cc016e67cc8f4f |
refs/heads/main | <repo_name>Thmyris/goruntu-isleme<file_sep>/README.md
# goruntu-isleme
COMU Goruntu Isleme ders notlari
<file_sep>/eski imzalar/convert.py
import matplotlib.pyplot as plt
import numpy as np
import os
from skimage.transform import resize
def crop_and_return_min_mn_for_a_folder(folder_name):
# for resize
min_m... | ac2ab9b7ca873534e8bcbbd637115760f773ccff | [
"Markdown",
"Python"
] | 2 | Markdown | Thmyris/goruntu-isleme | 562745dba5a413638dbc0c6cfc724edb2b5ef3d2 | ad1a529d42296cd66d6e6069bf30de69eff02419 |
refs/heads/main | <repo_name>Anagaret/animalerie_api<file_sep>/api/API/router/router.php
<?php
$path = $_SERVER["PATH_INFO"];
define("SERVER", $_SERVER["HTTP_HOST"]."/");
$uri = explode("/", $path);
$entity = ucfirst($uri[1]);
$controller = "App\Controller\\".$entity."Controller";
$cont = new $controller();
$rMethod = $_SERVER["REQU... | 1f27eff85db14a46b37e8f9554552a8f8472e7af | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 27 | PHP | Anagaret/animalerie_api | 8d5ce387fd49ec818b26fe9c2bdf258105501811 | 05f0576b7e3104d267512ef685b4c422decf3f16 |
refs/heads/master | <repo_name>gopicci/locallibrary<file_sep>/locallibrary-app/requirements.txt
Django==3.0.6
gunicorn==20.0.4
psycopg2-binary==2.8.5<file_sep>/docker-compose.yml
version: '3'
services:
web:
build: ./locallibrary-app
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./locallibrary-app/:/usr/s... | dd55ae2681a49491a184634ccf350cda03ea7326 | [
"Python",
"Text",
"YAML"
] | 3 | Text | gopicci/locallibrary | af8cd088488698e83cbf377f15a310b69e305efa | a719b6708c98feffb5ece9ae4b2950e92745717a |
refs/heads/master | <repo_name>miriamfrank23/js-looping-and-iteration-filter-lab-nyc-web-082718<file_sep>/index.js
function findMatching (drivers, name) {
return drivers.filter(function (driver) {
return driver.toLowerCase() === name.toLowerCase();
});
}
function fuzzyMatch (drivers, name) {
let length = name.length;
return d... | 5a496a864345b97a84f97467fb6fb0572cda8a8e | [
"JavaScript"
] | 1 | JavaScript | miriamfrank23/js-looping-and-iteration-filter-lab-nyc-web-082718 | 566d39ff991f578b331878918ded9d017ada57aa | 87a0083763fedd0ebf7684ab1d120909d45770dd |
refs/heads/master | <file_sep>## Functions to calcualate the inverse of the matrix and cache the value.
## This avoids repeatedly running the matrix inversion because this
## is a costly computation.
## Returns a list of functions that the cacheSolve will use.
makeCacheMatrix <- function(x = matrix()) {
#sets m to null ever... | 27ee76fb767772100d94bc3c83921da0a9b34fee | [
"R"
] | 1 | R | seanasdf/ProgrammingAssignment2 | 2c37b98df1b1c3edaf922c9011e77511278fa206 | 1ad8563cedfd73a8f155f0acd0f5698a3dac08e8 |
refs/heads/master | <file_sep># HackerRank-30-days-of-Code
HackerRank 30 days Challenge to brush up coding skills
Here You will get all solutions of HackerRank 30 days of Code
<file_sep>'''
Day 9: Recursion 3
Objective
Today, we’re learning and practicing an algorithmic concept called Recursion. Check out the Tutorial tab for lea... | fca603f3ce68cc1da8597529507b41300b8dd0f4 | [
"Markdown",
"Python"
] | 10 | Markdown | kkapoor1394/HackerRank-30-days-of-Code | 1e170e8acdfaafafda9499d4bb4995631c901cf2 | 9a2e4e93673b3ad6f4d0da4686e050a715e1cc0b |
refs/heads/master | <repo_name>yellow-beard/deleter<file_sep>/models/image.php
<?php
require_once '../s3/sdk.class.php';
class Image {
public $url;
public $id;
public $s3_id;
function __construct($id, $s3_id, $url) {
$this->id = $id;
$this->s3_id = $s3_id;
$this->url = $url;
}
public static function find_by_... | 846d7cb61b51c05c682f366b3ae5e5ff31078cbc | [
"Markdown",
"PHP"
] | 12 | PHP | yellow-beard/deleter | 440f58513ebe7f411f88abf34e32876aa099d213 | 7fa042eedb8d054d7c83b6f929334f665725d0e5 |
refs/heads/master | <repo_name>15993248973/ECommerceCrawlers<file_sep>/ZhaopinCrawler/utils/utils.py
# -*- coding: UTF-8 -*-
__author__ = 'Joynice'
import time
def get_header():
return {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
}
def get_ti... | e9945ba2d09e321cb4ef3679de8fb46f4c609b44 | [
"Python"
] | 1 | Python | 15993248973/ECommerceCrawlers | d0377d21c26f69dc946c9e942a02c6f12f0d3d14 | 122784f098e378a00cb88b039df634220cc1128c |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Question;
use App\Requirement;
use Illuminate\Http\Request;
use Auth;
class QuestionController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
/**
* Display a listing of the resource.
*
* ... | e07fd8109a8226f52bb12a20050691fac963f34a | [
"JavaScript",
"Markdown",
"PHP"
] | 45 | PHP | Alejandroem/task4it-manager | 913d5605ca163aba8ac52fdeabddb1846be8e0c8 | c2f5f6f1acd5b1839cf3b4be86b8611a77f2ef76 |
refs/heads/master | <repo_name>Naxaes/simple-metronome-pygame<file_sep>/main.py
import pygame
SOUND_BUFFER_SIZE = 1024
SCREEN_SIZE = SCREEN_WIDTH, SCREEN_HEIGHT = 400, 400
FPS_CAP = 60
TITLE_FONT_SIZE = 16
TITLE_FONT_NAME = 'Courier New' # Who doesn't prefer monospace fonts??
COLOR_BLACK = (0, 0, 0)
COLOR_WHITE = (255, 255, 255)
... | 369297144479f0ce98e1ec65d5086e1aed0c16de | [
"Markdown",
"Python"
] | 2 | Python | Naxaes/simple-metronome-pygame | e2c76822e5446cdbfc67c7e60caa247f6c2dd51d | adc65fad87459eeb93a0e65ff139599796ce982c |
refs/heads/main | <repo_name>Themion/-Assignment<file_sep>/머신러닝/11주차 과제/CifarNet.py
# -*- coding: utf-8 -*-
"""
Created on Sun May 31 20:38:03 2020
@author: RML
"""
import torch
import torchvision.models as models
def _cifarnet(pretrained = False, path = None):
model = models.resnext101_32x8d()
if pretrained:
... | dbb639c56650b8c91db5b1e118951379c90acc04 | [
"Java",
"Python"
] | 16 | Python | Themion/-Assignment | 6d20d0794c64ec6a657474fb3fcb485f0accb3c9 | 4db831c17b1b7f36e27e2cae9be497a0d6561438 |
refs/heads/master | <repo_name>programalex/.net<file_sep>/ConectarLINQ/ConectarLINQ/Controllers/UsuarioController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ConectarLINQ.Models;
namespace ConectarLINQ.Controllers
{
public class UsuarioController : Controller
... | 4e0eb217af898b578ff0ff0c1fe71224a3949588 | [
"JavaScript",
"C#"
] | 10 | C# | programalex/.net | 553ab7005440d6c58b2a11f8ca1750f3803130a8 | f0d59902981f0455d7849810ed28c4bee9c4c1d7 |
refs/heads/master | <file_sep>#!/bin/sh
# Dies ist ein Backup-Script zu einem externen ftp-Server.
# der Lösch-Vorgang muss allerdings manuell vom Server aus passieren.!
#
#
# Bereiche, welche gesichert werden sollen:
#
# /home/*
# /root
# /var/www
# /etc
# /var/log
# /var/lib
# mysql-Datenbanken
# /usr/bin
#Log erstellen
DATE=`date +"%Y... | 3a9e28dd4875a7de5b5cb37f91b7d28c621281c3 | [
"Markdown",
"Shell"
] | 2 | Shell | plehr/FTP-Backup | ab002810cee46b4bfb285459eb447dd0226811c3 | 4f36285e002c30afe2b7208ebc267a2e5e61fdfa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.