branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>zengersoong/JavaAlgorithms<file_sep>/search/interpolationSearch.java
// InterpolationSearch is better than that of Binary Search Algorithm when the values within a array/list is uniformly distributed.
// Since with a uniformly distributed ordered array, we can move closer to the element we are finding rather... | 569f3dfbf12bc20f461fec5db7274f071abeb5b2 | [
"Markdown",
"Java"
] | 5 | Java | zengersoong/JavaAlgorithms | 1de309b3d5ea298b3b720a115ff9dd3398437a55 | c94d3fc56b5e9ba7917a3cfbeb8e948b4cbf5f3b |
refs/heads/master | <repo_name>booncon/aws-wp-cookbooks<file_sep>/wordpress/recipes/deploy.rb
user = 'ubuntu'
db = search("aws_opsworks_rds_db_instance").first
search("aws_opsworks_app").each do |app|
if app['deploy']
domains = app['domains'].join(" ")
protocol = app['enable_ssl'] ? ('https') : ('http');
wp_home = "#{pr... | 50112709e8d054360eb3e0d83c7d9db812339056 | [
"Markdown",
"Ruby"
] | 6 | Ruby | booncon/aws-wp-cookbooks | 157586b39020e8d846aa0bb9231de4489299d90a | 321e9427799bc800259162022243f7e956d5729d |
refs/heads/master | <repo_name>zaferon/AngularBlog<file_sep>/src/app/in-memory-data.service.ts
import { Injectable } from '@angular/core';
import { InMemoryDbService } from 'angular-in-memory-web-api';
import { Article } from './article';
@Injectable({
providedIn: 'root',
})
export class InMemoryDataService implements InMemoryDbService... | 1ab33c7c4b9e3b17227904444cc0b889132f506f | [
"TypeScript"
] | 2 | TypeScript | zaferon/AngularBlog | 76f33ede099a20a83b726fa6b508652cc51c0877 | 080b75e74182e3048b66a47d9626afde5ac68ac7 |
refs/heads/develop | <file_sep>import React from 'react';
const Transaction = ({ name, euro, pln }) => {
return (
<tr>
<td>{name}</td>
<td>{euro}</td>
<td>{pln}</td>
<td>
<button>Remove</button>
</td>
</tr>
);
};
export default Transaction;
| c3c0428ec47b6420a17488ea78e14b6a38db4d86 | [
"JavaScript"
] | 1 | JavaScript | pidubiel/currency-app | 0d232421091b66b05b9a9145d03cd430c72f142d | 0fecc3f529c2cae01aea5acdbe9942487def7330 |
refs/heads/master | <file_sep>setwd("C:\\Github\\twowayfedecomp\\")
source("ui.R")
source("server.R")
shinyApp(ui,server)
<file_sep># bacondecomp
the illustration of the Goodman-Bacon (2019) DD with variation in treatment timing has been moved to https://github.com/hhsievertsen/twowayfedecomp
<file_sep>ui <- fluidPage(
... | 4918140530b74b1a168e1933dfd5a49e202b1144 | [
"Markdown",
"R"
] | 3 | R | hhsievertsen/bacondecomp | 462c86c21520ed488cbf2110b801a8ed0e2c92ae | d04d82760c06d83ecb4208be53d29bd99738e889 |
refs/heads/master | <repo_name>ddlyRabbit/udacity_robotics_project4<file_sep>/devel/share/ball_chaser/cmake/ball_chaser-msg-extras.cmake
set(ball_chaser_MESSAGE_FILES "")
set(ball_chaser_SERVICE_FILES "/home/abhinavroy/robotics_learn/udacity_robotics_project4/src/ball_chaser/srv/DriveToTarget.srv")
<file_sep>/src/ball_chaser/src/drive_bot... | 99ad6b7aaa72dd482721d6b922f33492f91b12f5 | [
"CMake",
"C++"
] | 3 | CMake | ddlyRabbit/udacity_robotics_project4 | 87b1df939e99618cc6bd93466010654575e5cfe8 | 8d73ec3df5bcd525a714fbd158eeb79bcf44a1df |
refs/heads/master | <repo_name>vvksh/airplane_bird_classifier_pytorch<file_sep>/main.py
import data_utils
from classifier import AirplaneBirdClassifier
import torch
from torch.utils.data.dataloader import DataLoader
def run_classifier():
cifar2_train_dataset, cifar2_val_dataset = data_utils.get_cifar2_train_test_dataset()
cifar2_... | a8b1f6d1181bd6fe9145d8a1e51cd97ec824066a | [
"Markdown",
"Python"
] | 4 | Python | vvksh/airplane_bird_classifier_pytorch | df524973edcfe511f2b10b386ca33c94dc469f67 | 917eac571b93c4d9900f84b549575acf5f4edc6f |
refs/heads/master | <file_sep>const webpack = require('webpack');
module.exports = {
context: `${__dirname}/src`,
entry: {
client: './client.js',
},
output: {
path: `${__dirname}/dist`,
filename: '[name].bundle.js',
libraryTarget: 'umd',
},
module: {
rules: [
{
test: /\.js$/,
use: [{
... | f6c830462f35ccf5519d91f132d0a100332ccc4b | [
"JavaScript",
"Markdown",
"Shell"
] | 8 | JavaScript | jamescoward/swot-bloom-js | 02f4aaf2b9aa669f0e4ee9d1cc4a40bb2838cc63 | d0f08e9be66d17e45877f2e058045fb14412f3e0 |
refs/heads/master | <file_sep>#========================================================
# Author: <NAME>
# File: wordAnalyzer.py
# Description: This program is designed to read in a file,
# create a list of lists, and then provide analytical
# information about the text for the user.
# Compile: python3 wordAnalyzer.py
#===============... | 5a5b11c07858f9e4013a014a957a15e7bd640cde | [
"Markdown",
"Python"
] | 2 | Python | jtonyortiz/PyWordAnalyzer | 6e660a481ceac07aa890dc5dd0efabc4887b7063 | 644ba8c5eb40a602fb76ec9a11c5c76f2c3cc2c5 |
refs/heads/master | <repo_name>rashidnaeem717/aupdg<file_sep>/sourcecode/aupdg/src/aupdg/data/model/impl/AuGenericNode.java
package aupdg.data.model.impl;
import aupdg.logic.analysis.SecurityLevel;
import aupdg.data.model.Node;
/**
* Implements the interface Node. It's an abstract class that implements the
* common methods of a... | 29ec05e383c4c20b228f3966dcef8cc72db244f0 | [
"Java",
"Ant Build System"
] | 21 | Java | rashidnaeem717/aupdg | 7d1cab93361d8d28a886dfd9e1388b9becb8a406 | 893d0561af37d9acb037766257f4e56432c6c8fe |
refs/heads/master | <file_sep>Squire
======
A lightweight JS IoC container with dependency injection.
Usage
=====
Getting the container
---------------------
You can get an instance to the IoC container through
```c#
var container = new IocContainer();
````
By default auto-registration is ```true``` and the default lifetime is set to `... | b57e3e839db56b9c855825c073d787349a72ca85 | [
"Markdown",
"C#"
] | 2 | Markdown | cvoijen/Squire | b995867a61bd4e78098a1e9d30c333464d4ea472 | dfeebd41c133cf82b1a411d75f0eecb994de0111 |
refs/heads/master | <file_sep>package users
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"github.com/jinzhu/gorm"
"github.com/zanefinner-projects/social-media-api/src/config"
"golang.org/x/crypto/bcrypt"
)
//Create ...
func Create(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/jso... | 80fc1d6d2943512150b01409c88fdc456b41c748 | [
"Markdown",
"Go"
] | 12 | Go | zanefinner-projects/social-media-api | 5c5a9915817ef857d6a48e62c491533d44b0d543 | 6e390196ebfb16910a00df4d117598bfe08a4f17 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
wt cron create --secrets-file=secrets --watch --schedule="1min" .
<file_sep>'use latest';
const express = require('express'),
router = express.Router();
const { cardsColors } = require("mtga")
const {
createDeckFilter,
cleanGameRecord,
cleanGameRecords,
cleanDraftRecord,
... | 0d9f49e4f759220e4330d4d4759bc1d71a7d918b | [
"JavaScript",
"Shell"
] | 5 | Shell | isharacomix/mtgatracker-webtask | 924f96a23fe024ebf677750dd753cb409fb23ba0 | fa37d216b080e1ae6303a216f19eac0edb972c34 |
refs/heads/main | <repo_name>lexykio/kanboro<file_sep>/client/src/pages/Landing/Auth/Login.jsx
import styles from "./Auth.module.scss";
import { useState, useContext } from "react";
import userRoutes from "api/userRoutes";
import { UserContext } from "context/UserContext";
import { useHistory } from "react-router-dom";
export default f... | dc80ec0e1a6802e33f45212c25d193fad2324797 | [
"JavaScript",
"Markdown"
] | 26 | JavaScript | lexykio/kanboro | 924eb8d9f429715ee41f5e8ecee47ec853d7a2fb | 86af6e7e776974692682062ff9fe4ff2ebd5b51b |
refs/heads/master | <file_sep># SittingClownGame
Simple command-line game. Rules explained in-game.
<file_sep>import java.util.List;
import java.util.Scanner;
/**
* Created by <NAME> on 2016/7/26.
*/
public class ClownGame extends ClownList {
public static void main(String[] args) {
Scanner console = new Scann... | 0ec9977bc5b75c7b6109704901d23f83f3865f7e | [
"Markdown",
"Java"
] | 2 | Markdown | UGYW/SittingClownGame | b5e581c4147a29a6018b97b2332aab2b91ffb6e7 | 5e2f24f62482c562d8480eefa7c12581f1841029 |
refs/heads/main | <repo_name>evolvestin/Telegram-Username-Availability-Parser<file_sep>/worker/functions.py
import io
import os
import re
import pickle
import heroku3
import gspread
import objects
import _thread
import requests
from time import sleep
from copy import deepcopy
import concurrent.futures
from bs4 import BeautifulSoup
from ... | 04c6cea608e0a94a60f970032fe03c8090dff2d8 | [
"Markdown",
"Python",
"Text"
] | 6 | Python | evolvestin/Telegram-Username-Availability-Parser | ac15d32c6e334086d842f0423cfdb1cfaa0a2813 | ec8daae9b67cb73bbed55e3216f386c65edf1fb6 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
#!/usr/bin/env python
# written By : <NAME>
#=====================
#http://stackoverflow.com/questions/19591458/python-reading-from-a-file-and-saving-to-utf-8
#import codecs
#with codecs.open(filename,'r',encoding='utf8') as f:
#=====================
#Sending Email
from send_email i... | 0bdcd001f3a66538f529e01d210794912c9a1040 | [
"Python"
] | 3 | Python | abishekganesh72/pokemon-analytics | 75a15bafa66966348b3d27674d435a34ec0dfd67 | 7d3b58cd2f3ac058cd5b8728bb2ac150386e5191 |
refs/heads/main | <repo_name>mohammad-zytoon/401-entrace-front-end<file_sep>/src/components/Main.js
import axios from 'axios';
import React, { Component } from 'react'
class Main extends Component {
constructor(props){
super(props);
this.state={
serverLink:process.env.REACT_APP_SERVER,
show... | 6237e9d7b41ad6b5f4e0bf880ffc50f150aeaa67 | [
"JavaScript"
] | 1 | JavaScript | mohammad-zytoon/401-entrace-front-end | 486c092a073a7b404010bae8a98c1b3ea35dbd86 | 1c7f3273f78968d84482b1c4ad647199784d7ccd |
refs/heads/master | <file_sep># this is a dummy file so python treats THzProc - Class as a package
<file_sep>import numpy as np
import os
import copy
import struct
import pdb
import sys
# from THzProc1_12 import ReMap, AmpCor300, FindPeaks
from thz_functions import ReMap, AmpCor300, FindPeaks
# THINGS THAT STILL HAVE TO BE IMPLEMENTED
# ... | deadec6f6f4c61e6dadcf4407f8e3dba658c27ad | [
"Markdown",
"Python"
] | 6 | Python | JohnnyBoy16/THzProc-Class | 0372eed6124d24fe9b943f141db12d6afab233c1 | fec4bd176a1e7bb5c445088bc19ba6895ad40275 |
refs/heads/master | <repo_name>Vickykathe/appTest<file_sep>/README.md
# appTest
This is my first repository. he are going to GitHub test
<file_sep>/login/app/src/main/java/com/example/login/MainActivity.java
package com.example.login;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundl... | 2b35fa5fd7e5dd0f76056e6a91e2b56469125a2c | [
"Markdown",
"Java"
] | 2 | Markdown | Vickykathe/appTest | 283d11e315d1d4a94bfc367be4eba4bcae88361a | d3d81909553a65b173fa1a0ebe31713485c562d9 |
refs/heads/main | <repo_name>yugandco/posudaupdated<file_sep>/dbconfig/config.js
module.exports = {
db: 'mongodb://admin:Admin12345@ds<EMAIL>.ml<EMAIL>:11124/posudaoskemen?retryWrites=false',
seceret: 'mySecret'
}<file_sep>/app.js
const express = require('express');
const path = require('path');
const bodyParser = require('body-... | 2b0c0cc45100eb0f7197a1b15f426e88727c91c5 | [
"JavaScript"
] | 3 | JavaScript | yugandco/posudaupdated | 7b30fb511ceb164c974716e0b0419d867e97cb1f | fddb8fbd5a75fef2b4d5f979613a8549c0943a3c |
refs/heads/master | <repo_name>arctan5x/nyc_data_analysis<file_sep>/populate_shapefile.py
import numpy as np
import pandas as pd
import shapefile as shp
import matplotlib.pyplot as plt
import seaborn as sns
import time
'''
Plotting functions are from tutorials at https://towardsdatascience.com/mapping-geograph-data-in-python-610a963d2d7f... | a829281a3e2f0e66ace89b3ec6a2bd3df2030c65 | [
"Makefile",
"Python",
"Text"
] | 5 | Python | arctan5x/nyc_data_analysis | 5549adab392d4914144870f3ad789b6d57e33fb8 | a43b70065760610aa6938423202833a3fa154143 |
refs/heads/master | <file_sep>import request from "@/api/request.js"
function findProductList(start,limit,data){
return request({
url:`/lejuClient/product/findProductList/${start}/${limit}`,
data:data,
method:"POST"
})
}
function productDetail(productId){
return request({
url:`/lejuClient/product/productDetail/${p... | cf037c6c652361e82077ac159d12fae0a3669e0c | [
"JavaScript"
] | 6 | JavaScript | feigege12138/uniApp | 2211cdc76c62be2121bc54e17045be4e4676bc3a | c60a573f8b1ff7edaa6d065847b33ad3cfbd5eae |
refs/heads/main | <file_sep>//Star Seeker - PlayerController.cs
//Created by <NAME>
//Copyright 2021 No Sky Interactive. All rights reserved
//
//Description - Player Controller used to...control the player and handle collision, interact, etc.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
... | 5271eb54209e3e5abeff9fc001f017c7f3cd81da | [
"C#"
] | 5 | C# | ConGCos/ProjectBoomBoom | 5bd923988099ce8d10d3973dcf5e3492f12d10e9 | 25a9b9496e67e23ca3868c794b9e9dee97a5cd55 |
refs/heads/master | <repo_name>fr4nkydevelop3r/Javascript<file_sep>/destructuring.js
var game = {
name: "Rustyyy",
room: "kitchen",
weapon: "candlestick"
}
var {room, weapon} = game;
console.log(room);
console.log(weapon);
//Destructuring arrays
var [a, b] = [1, 2];
console.log(a, b);
//Omit certain values
var [a, , b] ... | 055c8957908841288222c4c6796506a68e87cdc2 | [
"JavaScript"
] | 11 | JavaScript | fr4nkydevelop3r/Javascript | 8d785c546674870413dd1125e837c145feb1dc7d | 0243652a787375d9f79327cae4bd222c6307c74b |
refs/heads/master | <file_sep>/*
* Trivial implementation of converter function.
* You may override this file or create your own.
*/
#include "converter.h"
#include <stdlib.h>
int liam_atoi(char* line) {
int result = 0;
for(int i = 0; line[i] != '\0';)
result = result * 10 + line[i++] - '0';
return result;
}
void convert_... | 8faec2412d3f0a0b1457a66be472e48eeb325473 | [
"Markdown",
"C"
] | 3 | C | squinkums/CSSystemsHW7 | de16d8abd6b0b876b29c6dfbe8817c96a9d651a5 | 5d95de06627c19f25f12d9a629290bfa606c4d15 |
refs/heads/main | <repo_name>maudlh02/portfolio<file_sep>/TousLesFichiers/PHP/contact.php
[WebMethod]
[ScriptMethod(UseHttpPost = true)]
<?php
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$entreprise = $_POST['entreprise'];
$email = $_POST['email'];
$tel = $_POST['tel'];
$message = $_POST['message'];
/* Si les variables sont bo... | 602512c8180b88171f660562d2d158bc5c352268 | [
"JavaScript",
"Markdown",
"PHP"
] | 5 | PHP | maudlh02/portfolio | 8879de3182d1e652ea91f401547bdd814e2658d8 | 9dab80b048598a9a2b6a5dbb368c753f3f8dd356 |
refs/heads/master | <repo_name>gforsyth/nothing_means_anything<file_sep>/perf_cython.py
from cython_random import run_this
run_this(1000, 1000)
| 04d11e60a508617206c1bad00ee88a070175a7fa | [
"Python"
] | 1 | Python | gforsyth/nothing_means_anything | 18b59041cb300baafa8d54a27ebd6f09570f5c81 | 0fa7c41f7584a855586b973834070d8cf09cdfac |
refs/heads/master | <repo_name>coldwhiskeyman/bowling<file_sep>/tournament_parser.py
from collections import defaultdict
from bowling import Bowling, BowlingNew
class TournamentParser:
def __init__(self, input_file, output_file):
self.input_file = input_file
self.output_file = output_file
self.stats = {}
... | 3328bf88445e59ed38696220e24ef204d2e7735c | [
"Markdown",
"Python"
] | 5 | Python | coldwhiskeyman/bowling | 734236e3951d8615424113ef0f0b9732487e83c9 | e60aaf6351552417207e26fbb7a65236b4d9ac42 |
refs/heads/master | <repo_name>roman-kulish/short-url<file_sep>/src/Tests/bootstrap.php
<?php
/**
* Author: <NAME> <<EMAIL>>
* Date: 29/06/13, 11:44 PM
* Copyright: Copyright (C) 2013 Oztrov.me
*/
use Phalcon\Loader;
( new Loader() )->registerNamespaces(array(
'Oztrov' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Oztrov'
))->reg... | 5407e9ddfb5d080faa8426af80336aec4d88932f | [
"Markdown",
"PHP"
] | 4 | PHP | roman-kulish/short-url | 38826b69e4c5aad67aae174dbf95b69b2d8e3971 | 366a207d261564d080c173911649f041c87eec37 |
refs/heads/master | <file_sep><?php
use Drupal\DrupalExtension\Context\Context;
use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Assert\Assertion;
use Drupal\Driver\DrushDriver;
use Behat\MinkExtension\Context\M... | 047e30881c132e180b0d40393cb45161b7bf64a2 | [
"PHP"
] | 2 | PHP | anshuljain2k16/behat-tests | 0698fc0ffcc98452842b4ef98dd11ac01935c8e4 | 09f82b611408ec92b96cf7528415d46e685098c0 |
refs/heads/master | <file_sep>/*
In a dictionary(or map), we store values in pairs as ([key, value]).
the key is used to find the particular element.
*/
// CREATING A DICTIONARY CLASS
function Dictionary () {
var items = {};
/**
* we will need the following methods in our dictionary/map
* set(key, value) ... | b6b23dc372998692fd95befb645d179c49089136 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | kaxada/JavaScriptDSA | a44d460e575c8f0900aed192601226a3d1b7bdcc | 673db040cd28fa85dc7fafe2acd108e021cf38e0 |
refs/heads/master | <repo_name>shanghaikid/formLogic<file_sep>/cbr/js/src/_Rule.js
// _Rule.js
//
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/string',
'dojo/query',
'dojo/on',
'dojo/json',
'dojo/dom-construct',
'dojo/dom-attr',
'src/OptionPanel',
'src/RulesConfig'
],
function(decl... | a84c8554377a50ed869600c4db0ea155ffabd04b | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | shanghaikid/formLogic | 314082f2f35d413aa9623ad1ad75d625b84b8420 | 017c5d0962bf6c927f7d759198667206d4dde01a |
refs/heads/master | <file_sep>//============================================================================
// Name : pb_demo.cpp
// Author : lw
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================... | 6f2eb386cf7da766a4757e48c5b9cc66cc5db1b1 | [
"C++"
] | 1 | C++ | lw000/pb_demo | 339b4da1b47012796fc02e52b355b21e5307fd00 | f4984704e97c9be30afcf6bee23a6ec6c1582bf5 |
refs/heads/master | <file_sep>#ifndef __DS1307_H
#define __DS1307_H
#include <i2c.h> /* Need i2c bus */
#define DS1307_ID 0xD0
#define SEC 0x00
#define MIN 0x01
#define HOUR 0x02
#define DATE 0x04
#define MONTH 0x05
#define YEAR 0x06
void setformat(unsigned char mode);
char ampm_check(unsigned char data);
bool I2C_write(unsigned... | d5ecaa311a0eaddceb759d00b4135718f7e28bf7 | [
"Makefile",
"C",
"Text"
] | 6 | C | shubhamtrivedi95/RTC_PIC18f452 | 313767f88b6d86742018c7db81abf35e06fd19a0 | 6f446fa311cd6d9c3e45a6758612c40709e16d64 |
refs/heads/main | <file_sep><?php
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
date_default_timezone_set('America/Lima');
require_once __DIR__ . "/../../vendor/autoload.php";
$isDevMode = true;
$config = Setup::createYAMLMetadataConfiguration(array(__DIR__ . "/config/yaml"), $isDevMode);
/*
$conn = array(
'driver' =... | 6d3df6d418d6fe515a24ae42e6c0577dd44386e2 | [
"SQL",
"HTML",
"Markdown",
"PHP",
"TypeScript"
] | 25 | PHP | AymericHaefflinger/PROJET-HAEFFLINGER-Aymeric | d594500f2acce60d7a36136e913ae1ebbc653361 | 65cdbc7c4e248e2460ddbdc1b04398ae9326d8fd |
refs/heads/master | <file_sep># scorer_app
Scorer app for cricket
<file_sep>package com.example.agupt23.practiceset2;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toas... | 4f97e025594d788498812a956f50b1ddd9ce81a0 | [
"Markdown",
"Java"
] | 2 | Markdown | ankitguptaswe/scorer_app | 7c5693b8093e4f513268bc21f04f03f50a1a1a53 | df7c93a17605853534ea82b1ff2dddb83ea05b58 |
refs/heads/master | <file_sep>{"movielist":
[
"Friday the 13th", "Friday the 13th Part 2",
"Friday the 13th Part III",
"Friday the 13th: The Final Chapter",
"Friday the 13th: A New Beginning"
]
};
var movielisttext = {
"movielist": [
"Friday the 13th",
"Friday the 13th Part 2",... | 4e80b1d969176579ac7e017f4da246082a238212 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | hugovila/find-github-users | c291df685add7ce327cac59f01ce4fd9c715deaf | 6a1f1eb106326064d00f7fece5acc23202e195c4 |
refs/heads/master | <repo_name>kudlatyIE/QRJavaStuff<file_sep>/QrJavaStuff/src/com/qrjavastuff/main/MainTest.java
package com.qrjavastuff.main;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import com.google.zxing.WriterException;
import com.qrjavastuff.utils.FileSource;
import com.... | f8ceee0436805c97cff17407a397108abdb79ca3 | [
"Java"
] | 4 | Java | kudlatyIE/QRJavaStuff | 4e5ce050e11e41bb55bbd0f5990945437bd79cfe | f1a82650eef1511abdaed47d824a6ffbd3bee121 |
refs/heads/main | <repo_name>ermessonlima/TGL-Reactjs<file_sep>/src/pages/Home/styles.ts
import styled from "styled-components";
export const Container = styled.div`
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 75px 130px;
h1 {
font-size: 24px;
color: #707070;
marg... | a509afcaa82f8d11fd63d1d9162d995e615e68c6 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | ermessonlima/TGL-Reactjs | c9179cdfb35c34207277851377d3d59e878a4839 | 2a773c1583fafceea66d9b6c921522c2d408d476 |
refs/heads/master | <repo_name>emilsndergaard/MobilePhoneCardiography<file_sep>/MobilePhoneCardiography/MobilePhoneCardiography/Views/RecordingsView.xaml.cs
using System;
using System.ComponentModel;
using MobilePhoneCardiography.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace MobilePhoneCardiography.Views
{
pub... | a9a82a9cab943b3649e85c16f415c66fa1367131 | [
"C#"
] | 20 | C# | emilsndergaard/MobilePhoneCardiography | eca8225113e08edb6b3a86452b6cce9d604a3997 | f2b3228100671cb81e55ff83334f982d7433771c |
refs/heads/master | <file_sep><?php
include "models/base.php";
include "models/keywords.php";
include "models/movies.php";
$oKeywords= new Keywords();
$oMovies= new Movies();
if(!empty($_GET))
{
print_r($_GET);
if(isset($_GET['title']))
{
$oMovies->add($_GET);
$oMovies->write();
}else if (isset($_GET['keywords']))
{
... | 1ea1f0c5ce5c776c6d2e6cf4faa317a16212a0e8 | [
"Markdown",
"PHP"
] | 5 | PHP | Sebberrou/CRUD-JSON | cd68981c7f4c121985462d3dce123cbce288d53d | fd7af087ed2167847b9f5f6731a2954cfab928c8 |
refs/heads/main | <file_sep>import express from "express"
import proxyReq from "./proxyReq"
/**
* @function createProxyServe
* @description 用于构造代理请求的模块
* @param {object} params 参数对象
* @param {object} params.port 代理服务的端口,默认 3213
* @param {object} params.proxyUrlObj 代理地址,可配置多个,对象的每个键值对代表一个代理请求(注意:由于地址是使用的正则匹配,不同的代理地址请不要有包含关系)
* @... | 6984715834cf346c3fb527772aa08354078c47b2 | [
"JavaScript",
"TypeScript"
] | 3 | JavaScript | anny-fu/zl-node-proxy | 0dbe04ac66e7908adcd3e623998e0d91f534e8b8 | 1d5b9864f9974f79866d106d3fb78b7195730cd3 |
refs/heads/master | <repo_name>hg398/ChefLib<file_sep>/2017/AUG/AUG17/PALINGAM/PALINGAM.cpp
//made by hg398
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--)
{
int a[26],b[26];
bool flag=true,f=false,f1=true;
for(int i=0;i<26;i++)
{
a[i]=0;
b[i]=0;
}
string str,str1;
cin>>str>>... | d883138ae239ed20db93035f87c4be512e0af410 | [
"C++"
] | 1 | C++ | hg398/ChefLib | 4a46e30fc32d572a5d755c373f563bbf21821ac1 | bfdaa5a5dd4cfbdb0bf99c4fb132b71057fec6d8 |
refs/heads/master | <file_sep>const
chatModel = require('../models/chatModel'),
usersModel = require('../models/usersModel'),
messagesModel = require('../models/messagesModel'),
Chat = new chatModel(),
Users = new usersModel(),
Messages = new messagesModel()
;
class ChatController {
co... | 3794a3455debc2dabda8e0220e7193892c036c17 | [
"JavaScript"
] | 9 | JavaScript | fuadpashayev/chat | 48d09dbbbb71cbcbc94d5ff60bc17e2c5c8d9808 | 209e3993184f474e7dcae7a3af0cd1a0c58c3fd9 |
refs/heads/main | <repo_name>Zn-Githubs/Python_code<file_sep>/练习/03.妹子图抓取.py
"""
需求分析:
1.目标网站:https://www.mzitu.com/xinggan/
2.发起请求获取所有的翻页链接
3.利用多线程抓取每一页的图片
4.保存到目标文件夹
"""
"""
模块:
requests, threading
"""
# -*- coding: UTF-8 -*-
import requests, threading, re, time, os
"""================= 01.获取所... | 44bdf86ac7e039fbae7a7ead783db78e0f2d993f | [
"Python"
] | 8 | Python | Zn-Githubs/Python_code | 5416e76ac27808bcb9ad3eb3d7b3d57e82171ffd | 492b2209d7dbafa24a2a31431b96932607fc6672 |
refs/heads/main | <file_sep>//
// Created by <NAME> on 4/23/21.
//
#include "Sorcerer.hpp"
Sorcerer::Sorcerer(std::string name, std::string title) : _name(name), _title(title) {
std::cout << name << ", " << title << ", is born!" << std::endl;
}
Sorcerer::Sorcerer(const Sorcerer & a) {
*this = a;
}
Sorcerer::~Sorcerer() {
std::cou... | 0b8670a1e083dc892924abaa33c4892741bdea8a | [
"C++"
] | 132 | C++ | a173/CPP_modules | e56de4637fa2e1a6015ab7d5dd928e4e07aa261d | b71adc83302a63462e50578e2a69126a59de8303 |
refs/heads/main | <file_sep>//
// AboutUs.swift
// GTSeaLevelAPP
//
// Created by <NAME> on 3/25/20.
// Copyright © 2020 Georgia Tech. All rights reserved.
//
import UIKit
class AboutUs: UIViewController {
@IBOutlet var heightConstant: NSLayoutConstraint!
@IBOutlet var aboutThisAppLabel: UILabel!
@IBOutlet va... | 3b2489c560f1e554887d890184abc9cf6d3ca02f | [
"Swift",
"Markdown"
] | 16 | Swift | ej05388/Smart-Sea-Level-Sensors | 6a9b449be32ea5468d8348f53646d9cdd8315525 | 700b6b910dd2358c3ef487d0f058496beaf8cab0 |
refs/heads/master | <file_sep>package utils
import (
"log"
"time"
)
func Runningtime(s string) (string, time.Time) {
log.Println("Start: ", s)
return s, time.Now()
}
func Track(s string, startTime time.Time) {
endTime := time.Now()
log.Println("End: ", s, "took", endTime.Sub(startTime))
log.Print("=======\n\n")
}
<file_sep># go-... | 830e982d6f3780078350f5b0bd625df28e8d3908 | [
"Markdown",
"Go Module",
"Go"
] | 6 | Go | tommyforlini/go-portscanner | cdb050285381a6e6e027d04d83eacab550db8a4a | d00aa978244d32acbb3b2e15e503ae45b0b276d7 |
refs/heads/main | <file_sep>import numpy as np
import tensorflow as tf
from MyFunctions import *
from MyOptimizers import *
# from scipy.special import softmax
import json
import matplotlib.pyplot as plt
import matplotlib as mpl
def ReBoost(RB_hparameters):
"""Back propagation based on the architecture HNF-softmax has con... | c509a5d270c55b251530696559b9fce20b23c441 | [
"Python",
"Text"
] | 11 | Python | zhhao-cn/ReDense | d0476e6fd9ed14a80e9aff087125694755e9531f | 945c2264ac8b01421a69527e5ba5baf120de5c27 |
refs/heads/master | <file_sep>package com.example.android101.vidstream;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
... | a161c53171c82fe2e0f2f94906c8316c6cde45b5 | [
"Java"
] | 1 | Java | hengnee/VidStream2.0 | f52c92bb49bc8d825ed8c3f5e85ecf5d4be51e15 | bff1c53831062b356bd0a0b93dde69ecab161cfb |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
namespace Orchid\Platform\Mail;
use Illuminate\Http\Request;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SupportMail extends Mailable
{
use Queueable, SerializesModels;
/**
* @var \Illuminate\Http\Req... | fc10e4c30357e42a3faa9ce0ffc1cc16ad7abd71 | [
"JavaScript",
"PHP"
] | 15 | PHP | yoeunes/platform-1 | e99f9ac959ad101aa7b3515f3eeeff9b73f65e09 | 72ea7a0483c268eb3854d4c1446dc39056e68c20 |
refs/heads/master | <file_sep>require "minitest/autorun"
require_relative "wk3func.rb"
require_relative "wk3minus.rb"
require_relative "wk3div.rb"
class TestadditionFunction < Minitest::Test
def test_1_eguals_1
assert_equal(1, 1)
end
def test_1_plus_1
assert_equal(2, add(1, 1))
end
def test_0_plus_1
assert_equal(3, add(0, 3))
... | b31e267f8ff348091b00a1ee30e89d9e6f291d4a | [
"Ruby"
] | 10 | Ruby | eldertong/inclasswork | 070caa5962c94a7038dcc6af2112f0db1b3b018c | 080faa6e364937d3051b290e83f8b47db8e7d1cd |
refs/heads/master | <repo_name>prakharshivam1997/M18CSE441-Database-Systems<file_sep>/Assignment 3/script.sh
#!/bin/sh
python3 inputGenerator.py 1 GB 20 20
python3 distinct.py 1GB_20Percent_20_10737360_100.txt 20 20 100000 btree
python3 distinct.py 1GB_20Percent_20_10737360_100.txt 20 20 100000 hash
python3 distinct.py 1GB_20Percent_20_10... | 0c6a9991e2b9863cca0194408bda01d0d7a3e60e | [
"Markdown",
"Python",
"C++",
"Shell"
] | 21 | Shell | prakharshivam1997/M18CSE441-Database-Systems | 272008c5e6dd9dce523af1b1ca1d6a0cd5d01d3e | 33250609e2bc723de8d92f6d1d2bec9b216a583e |
refs/heads/master | <repo_name>kemitchell/stringify-array-transform.js<file_sep>/test/sanity.test.js
/* jshint mocha: true */
var concat = require('concat-stream');
var expect = require('chai').expect;
var ArrayTransform = require('..');
var streamResult = function(array, callback) {
var stream = new ArrayTransform();
stream.pipe(co... | cfe948dd2dc658f9085408a6e099ba3ba6633d69 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kemitchell/stringify-array-transform.js | 9e41f4cc779a7e39ea85914321774c6da8a61d1f | 32a2cff7724e1a946077f3346668eff66866e090 |
refs/heads/master | <file_sep>
let path = require('path');
let webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const htmlWebpackPlugin = require('html-webpack-plugin');
const cleanWebpackPlugin=require('clean-webpack-plugin');
const glob = require('glob');
const PurifyCSSPlugin = require('p... | be1ee6580e5de0470d72295e44bf96ce0dffd834 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Lanveer/webpack-project | 9b776cb260c9d1d3e0234dc851f33cf44e4e1840 | 601eb25830a3e5127bb837c3664b547376d85a85 |
refs/heads/master | <file_sep># eye strain notifer
[Windows] This script notifies the user every 20 minutes to look away from te screen.
## 20-20-20 rule
This program is based on the 20-20-20 rule which says that for every 20 minutes spent looking at a screen, a person should look at something 20 feet (~6 metres) away for 20 seconds. T... | 724ed23dadce6338b3f94b355d870be83cd4d0c3 | [
"Markdown",
"Python"
] | 2 | Markdown | b01jan/eye-strain-notifer | 247a503fd753733f07028b81a81d24787f41a991 | 14c851712f3d7eb16a7cfe846e4563aa0fac3a2a |
refs/heads/main | <repo_name>hosseinkuhzareh/mashinhesab<file_sep>/README.md
منظورم از عدد یک numder1 و numder2 هستش که وقتی اجرا میکنید اسکریپ رو اول ازتون عدد اول و عدد دوم رو میخواد وقتی بزنید هو جعم و هم تفریق و ضرب رو بهت میگه
این یک ماشین حساب اسکریپتی هستش که فقط کافی اون ععدی که میخواین رو در عدد 1 و عددی که دیگه ای میخواین با... | 317c3e5f2c3c814781813c6b649060bffb39c453 | [
"Markdown",
"Python"
] | 2 | Markdown | hosseinkuhzareh/mashinhesab | 60c93f81ec3a5457f9173f01fda4a2f4456a9b62 | c94732d6ce9db25a26494adf333ae0bb3852d3e2 |
refs/heads/master | <file_sep>import './static/css/style.css'
// import './notice/point'
import './notice/test'
import util from './tool/util'<file_sep>// console.log('script start');
// setTimeout(function() {
// console.log('setTimeout');
// }, 0);
// Promise.resolve().then(function() {
// console.log('promise1');
// }).then(funct... | 3d92c565b0f88fb1a54696e7ee17a5f919a6d637 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | shihaobo/interview-code | ef92aafa923af97488316777b18d7a5758e011ef | 1de0205af81c0b7541a67cd9ebdd472161edf849 |
refs/heads/master | <repo_name>SyedMuhammedBilal/Spotify-Clone<file_sep>/src/components/cards/RecentlyPlayed/Cards.jsx
/* eslint-disable no-unused-vars */
import React, { useState, useEffect } from 'react'
import './Cards.css'
import { useDataLayerValue } from '../../../store/index'
import PlayCircleFilledWhiteIcon from '@material-ui/icon... | 9f118fe9d89ec7f10c8b042f5aea75581f150bbf | [
"JavaScript"
] | 15 | JavaScript | SyedMuhammedBilal/Spotify-Clone | 7dc86ec321ba66d2c8903716c76d143a20142ec5 | c18f81c220521185e8869098b9b0604712b095a2 |
refs/heads/master | <file_sep>/*
* Copyright 2006-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 86d55252ca2ee808fcfeec04f7c6b7f8aeba86d0 | [
"Java"
] | 2 | Java | Kuvaldis/citrus | ef59ac3bec5a2a0b8b93d55a40fcf2c3f7deaeb3 | 26b65d2cd7fd59b0fcaddf1c4a910c6eef52b884 |
refs/heads/master | <repo_name>hossam-mohamed-farouk/Home-control-via-MQTT-and-free-RTOS<file_sep>/App/src/T_RespHandle.c
/*
* T_RespHandle.c
*
* Created: 7/20/2020 11:40:04 AM
* Author: H
*/
#include "T_RespHandle.h"
static U_8 recPacket[30];
void T_RespHandle(void* pvData)
{
U_8 u8Byte = 0;
RecState recState = 0;
U_8 recInd... | 45e63f725840d60cb96f3de8607d2d78baadc2c1 | [
"C"
] | 29 | C | hossam-mohamed-farouk/Home-control-via-MQTT-and-free-RTOS | 26710c916de8f49a996eac94008db452440ef132 | 63e7633c62a491602fd8f5f997b708a4077fac46 |
refs/heads/master | <file_sep><?php
return [
'billplz_key' => env('BILLPLZ_KEY'),
'billplz_signature' => env('BILLPLZ_SIGNATURE'),
'billplz_collection_id' => env('BILLPLZ_COLLECTION_ID'),
'billplz_sandbox' => env('BILLPLZ_SANDBOX'),
]; | 604e5cbca851e8061f323dcaab88bc9e34d988e8 | [
"PHP"
] | 1 | PHP | akmalhazim24/billplz-laravel-tutorial | c22892a1eaf61716694fc22a1b2a511f41b21636 | c83059c284a174036d10e0d4e3fdd3be855b72ae |
refs/heads/master | <file_sep># Learn Ruby the Hard Way
This is a collection of the exercises I have completed from learnrubythehardway.com
I don't really intend to do much with any of these files, I just want to learn how
Git works and this seems like a good time to learn it. Maybe it can help you guys out
some if you're stuck on a spec... | cd25dd434acc8c26bf5efbdcdafca744051fee79 | [
"Markdown",
"Ruby"
] | 3 | Markdown | Aeluwin/LRTHW | 6cedf8d6b094969d5c0ca618b12958027cc751c0 | 8d209cd3762435fb3ad8ea71b24ceb048b12e103 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace MyContacts.Models
{
public partial class Contact
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string ... | e5232ad96594229bf2090a614237e4d2fe5a2b27 | [
"C#"
] | 6 | C# | Pierredt22/API | bd05de91f6dfed6a0d15424c26573cb3ab803106 | 8dbf20cb53b212498bc5943245154cf945d35f35 |
refs/heads/master | <file_sep>'use strict';
const chalk = require('chalk');
const _ = require('lodash');
const fs = require('fs');
const istanbul = require('istanbul');
const utils = require('istanbul/lib/object-utils');
const path = require('path');
const minimatch = require('minimatch');
const TYPES = ['lines', 'statements', 'function... | 1f96b64cf03668ba2536969bdb7b7bca4c7c6b46 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | barslev/karma-istanbul-threshold | 32fa6b083fbf68d7a0f9fe51013736da12b15fd5 | 1f134af7a3e2dd35e5fdbda4f3d410dd76e73423 |
refs/heads/master | <repo_name>t-tran/lucas<file_sep>/backend/handlers/jsHandler.go
package handlers
import (
"os"
"io/ioutil"
"net/http"
)
func JsHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/javascript; charset=utf-8")
if _, err := os.Stat("static/index.js"); err == n... | 2f2ce1489f3dfb12ffaa849bbc1336d850d2db7b | [
"Markdown",
"Go",
"Dockerfile"
] | 4 | Go | t-tran/lucas | 978b170fa7435937214dab59defc38b7da024fd7 | bc0bc1385886568ea6bba09e34d2f58baff9c9a5 |
refs/heads/master | <file_sep>var main = require ("../index.js");
var assert = require ("chai").assert;
describe ("main test", function() {
it("tests something", function() {
// test goes here
assert (true);
});
});<file_sep>[]
pub struct Block {
params: Vec<String>,
commands: Vec<Element>,
}
impl Block {
pub fn new() -> Self {
Self {
params: vec![],
commands: vec![],
}
}
pub fn get_free_variables(&self, known_variabl... | b39c41c7e9471a6721270108fd53a6853341125b | [
"Rust"
] | 1 | Rust | jonathandturner/nunu2 | 9c7c13a1b15958f4a37ac1fb12f64a9a8a55bc21 | b2ebc06569334c9e3b30acb092dcb3700666b6a2 |
refs/heads/master | <repo_name>Paturages/merkle<file_sep>/src/merkle.ts
import sha256 from "./sha256";
interface MerkleTree {
// Hash of tree root
root: () => string;
// Height of the tree
height: () => number;
// List of hashes of specified level
level: (index: number) => string[];
}
const makeTree = (levels: string[][]): M... | fa9447dbea5c18dd6589ced3e8d8929fc5112609 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | Paturages/merkle | 75b7e26ff3d1c3fda1fadca24332027e63ad25e8 | 9ec2701393a55045b3373dc04227de0c9911bfe9 |
refs/heads/main | <repo_name>nishantsapkota487/Frontend<file_sep>/src/pages/Error404.js
import React from 'react';
const Error = () =>{
return(
<React.Fragment>
<b><h1> 404. Not found. Go to /posts route</h1></b>
</React.Fragment>
)
}
export default Error;
<file_sep>/src/App.js
import React from 'react';
import './Ap... | 9fdf9b0545e589d17af229b89c376a95557502ca | [
"JavaScript"
] | 8 | JavaScript | nishantsapkota487/Frontend | a08e8684882b1de12a39f8a4624cef87e1bc4032 | eaf7bbcd43078f2a1291c9efcfb3b67ec63c5e8d |
refs/heads/master | <file_sep>package com.eyckwu.pattern.chainofresponsibility;
public class ConcreteHandler2 extends Handler {
@Override
protected Level getHandlerLevel() {
return new Level(ConcreteHandler2.class.getSimpleName());
}
@Override
protected Response echo(Request request) {
Response respon... | ece059267abca41e1556d3ed18e6d7d7ee0157b5 | [
"Markdown",
"Java"
] | 3 | Java | EyckWu/JavaBasePractice | 27705941240ae834c02fe592bae4a6a6909b2ce1 | 596ad4e76a445dc8ed7ed22d2052551f71788416 |
refs/heads/master | <file_sep>import React from "react";
const Todo = ({todo}) => {
return (
<div className="post card ">
<div className="card-content">
<div class="row">
<div class="col s10 ">
<span className="card-title">{todo.title}</span>
{todo.body}
... | 80f1b41a3413bfd3c170e63efc8f512991052434 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Georgeygigz/todo-list | 56327db545833dd3b7a60b2f28b6ac0829058646 | e0e64e65aefa47e9676d6e1cff05d7a99cf70d0f |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCAutoUpdateFromSQLServerWithSignalr.DataAccess;
namespace MVCAutoUpdateFromSQLServerWithSignalr.Controllers
{
public class SalesNotificationsController : Controller
{
SalesNotif... | 56a9bed92b4825dd9bd984fb2b2bb7bfa83d0835 | [
"C#"
] | 3 | C# | herbertmilhomme/MVCAutoUpdateFromSQLServerWithSignalr | 3018f0684063791df6a99e36f491903326f507b4 | db98e525cc6697351379a0b9219623241561e327 |
refs/heads/main | <file_sep>#ifndef LOANS_H
#define LOANS_H
#include <vector>
#include <string>
using namespace std;
class Loans{
public:
Loans();
void CheckOut();
void CheckIn();
void ListOverdue();
void ListBooks();
void UpdateStatus();
void ReChe... | e072cad53082145f163483dd36ba29512b594130 | [
"Makefile",
"C++"
] | 18 | C++ | CameronVigil/LibrarySystem | d8df1a3346675063c54be9a76a8c476e3b359456 | 9231690b29ca48e8a696554d3e029d377171dd8a |
refs/heads/master | <repo_name>tkislan/rpi-hass-docker-images<file_sep>/config-backup/create_backup.sh
#!/bin/sh -ex
filename="$(date +"%m%d%Y-%H%M").tar.gz"
filepath="/tmp/${filename}"
CONFIG_PATH=${CONFIG_PATH:-/config}
tar \
-czvf "${filepath}" \
--exclude ip_bans.yaml \
--exclude secrets.yaml \
--exclude known_devices.yaml ... | 1ffbd850df52ffa1255ea781e93f52f180c6c333 | [
"Markdown",
"Dockerfile",
"Shell"
] | 7 | Shell | tkislan/rpi-hass-docker-images | 0ea7d7fcfbe37c5232912a15435d59bd939869f6 | ce134ef822e84f6e5eb04d442c7409e7717bad2f |
refs/heads/master | <repo_name>lemon-clown/restful-api-tool<file_sep>/src/serve/middleware/data-file-mock.ts
import fs from 'fs-extra'
import path from 'path'
import Koa from 'koa'
import { logger } from '../../core/util/logger'
interface Params {
/**
* 请求的 url 前缀
*/
prefixUrl: string
/**
* 是否优先使用数据文件作为 mock 数据源
*/
m... | 51827d7ea33a2e85cdf4c5904aa2d065a0b62313 | [
"Markdown",
"TypeScript",
"JSON with Comments"
] | 38 | TypeScript | lemon-clown/restful-api-tool | 196c1d4a0d3b5a55f5de79d4c9daf936a2bd52b0 | 3ed572ca57d25f9d5f1a9b0c2585ee1a3e4ba77f |
refs/heads/master | <repo_name>marvelfans/pythonSpiders<file_sep>/meishitianxia/topic/run.sh
#!/bin/bash
PYTHON='/data/zhaojingzhen/bin/python2.7/bin/python2.7'
{
${PYTHON} spider.py content
}> stdout
<file_sep>/meishitianxia/meishitianxia.py
# import urllib
# _*_ coding:utf-8
# import re
import urllib2
from lxml import etree
impo... | c8053fad87f24d4f4c1ff732d8f2b774e2572901 | [
"Markdown",
"Python",
"Shell"
] | 17 | Shell | marvelfans/pythonSpiders | f307daef9a5fd4a7413ed319f12698a52a8e3bac | 563aa71d419db0f4c62f30fa879994fac542263a |
refs/heads/master | <repo_name>sidmadethis/alien_invasion<file_sep>/settings.py
class Settings():
"""A class to store all settings for ALien Invasion."""
def __init__(self):
"""initialize a game's settings"""
#screen settings
self.screen_width = 1200
self.screen_height = 800
self.bg_color =... | f7682949752b00cb646900bc84da66892e0da429 | [
"Python"
] | 1 | Python | sidmadethis/alien_invasion | c96090eee7f1034eac81c61af33d98e4cd4d17e4 | cb0afca3ea9509fa3ae9e7910b885b06fcdefe69 |
refs/heads/master | <file_sep>sprawlCalc
Intent of program/code:
Sprawlopolis just released from its kickstarter campaign and Its a beast to score.
It has several elements to how the game scores.
The game has a target score. the target score are 3 cards chosen to be separated from the deck and the number in the circles are added togeth... | 8c064e45b7c2580cee069fa3692473a1859dbb55 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MrChido/sprawlCalc | 647984cdb9ec720cef0362e4b93aea253a4c3830 | 8306ce0489730fb94b52c235584849ad93f6a6dc |
refs/heads/master | <file_sep><?php
$dbhost = 'localhost';
$dbname = 'tutorial';
$dbuser = 'jim';
$dbpass = '<PASSWORD>';
$appname = 'InLine';
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
function createTable($name, $query)
{
queryMysql(... | bbb32ab02d74e89317ec1dcbe12eafc939fe3de0 | [
"PHP"
] | 2 | PHP | Carteor/InLine | 326aa74ded99bb235b440d268a579e2a97b386f4 | 96a0e1866597bef168e7a8c553ed67a651ef34f8 |
refs/heads/master | <repo_name>jeanperezH/clientes-internet<file_sep>/app/Http/Controllers/ClienteController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Cliente;
class ClienteController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Respon... | abdf29dbf8ee8cb1d2ea8fcf1b13d86520ec9e3f | [
"PHP"
] | 11 | PHP | jeanperezH/clientes-internet | 68158b87543aeef4f97fa328778551b89b2132cf | e984d34c9c23a02fb401d720242c44302d2bdba1 |
refs/heads/master | <repo_name>tentativafc/compinvesting1<file_sep>/config.py
__author__ = 'marceloortizdesantana'
#order_file = "./orders_files/orders.csv"
order_file = "./orders_files/orders-short.csv"
<file_sep>/marketsim.py
__author__ = 'marceloortizdesantana'
import csv
import config
import collections
import QSTK.qstkutil.qsdateu... | f6d8b4ea83429ca1efbfac8655add17292dd5da5 | [
"Markdown",
"Python"
] | 3 | Python | tentativafc/compinvesting1 | 1ebc0871d660392fa9b1434cfc42bc6559da1dea | f9482fcbefdb2ff732ab766cf0a570fe31c32887 |
refs/heads/master | <file_sep>import string
from string import digits
import re
import pandas as pd
import numpy as np
lines = pd.read_csv('fra.txt',names=['eng','fr'],sep="\t")
lines = lines[0:10000]
lines.eng = lines.eng.apply(lambda x: x.lower())
lines.fr = lines.fr.apply(lambda x: x.lower())
lines.eng=lines.eng.apply(l... | 766c0ddc276fb48f2502f47ef534e1c9127c8db3 | [
"Python"
] | 1 | Python | v4i1n1a9y8/MiniProject | 1c8d379fcca39ada13d4218aac5b9bc09fefd774 | 53de2fc82c670b1bf3bd68cead9ee2967799c2f4 |
refs/heads/main | <file_sep>#pragma once
#include <stdio.h>
#include "../utility/utility.h"
#include "../cpu/cpu.h"
#include <chrono>
#define THREADS_PER_BLOCK 1024
#define MAX_BLOCKS 120
template<typename inputType>
__global__ void cudaReductionPartialStdDev(unsigned long int dataSize, inputType* dataInput, inputType* partialSums, i... | e99bbf5f7f308c4b4e206e7073dd9436695d42ae | [
"Markdown",
"C++"
] | 4 | C++ | dz1domin/CUDA-exercises | f1532997b0b2192ef7e4c4444635a2672181e2eb | e24fe806ee7ad1cc7992c05bfda041ebde8685ad |
refs/heads/master | <file_sep>export default {
'@tags': ['SaveSearch'],
'Save search with empty Location': (client) => {
const leadDetailAdd = client.page.leadDetailAdd();
const constantsLeadAdd = client.globals.constantsLeadAdd;
const waitForAPICallback = client.globals.waitForAPICallback;
const lo... | 0214ffc0c4a4f9188cbf29a434bca3eb826f7891 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | SownG/test-nightwatch | 580099d9f0cf79e247f8d17c78e9b0cd862f81f5 | 504563c10d27dc018a7e802644adfdc58be44130 |
refs/heads/master | <file_sep>package adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.v4.print.PrintHelper;
import android.support.v7.widget.RecyclerVi... | c98db65c39cf1cd71529158a577ac6714b4465c5 | [
"Java"
] | 1 | Java | MradulKumar990/DhiluDemo | 9b130a42f39e08bcaa61346ea4e6af2eb3de77ca | 3f501fb6787251931dbe0003afe70fdee9e0be01 |
refs/heads/master | <file_sep>import { Injectable } from "@angular/core";
@Injectable()
export class SkeletonService {
log(logType: string, message: string, data?: any) {
if (data) {
return (<any>console)[logType](message, data);
}
(<any>console)[logType](message);
}
}
<file_sep>import { TestBed } from "@angular/core/testin... | 665e5946a7c532e7c0082c25f730d81381b79efe | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | skill-lock/skl.ngx.skeleton | d93efca18230ebb0b8708e6debd6213b05a65a03 | f91533149785426363025a007caf21bb3b9e59e7 |
refs/heads/master | <file_sep>// connect "Positive or negative" button to "comparison" function
document.getElementById('click').addEventListener('click', comparison)
function comparison () {
// get user input and convert to integer
const entnum = parseInt(document.getElementById('entnum').value)
// check if the usersInput is less... | 5dd1d1f8d3344533adf82305990f6fb1db81e495 | [
"JavaScript"
] | 1 | JavaScript | Rewa718/7-02 | 42112fcdb7790a2912d162c53035bdf08f4a5460 | 774b5ef1e5c9bb9c66d625d5b70158bb8c6c225b |
refs/heads/master | <file_sep>class Event extends React.Component{
propTypes: {
name: React.PropTypes.string,
event_date: React.PropTypes.string,
place: React.PropTypes.string,
description: React.PropTypes.string
};
render() {
var event = this.props.event;
return(
<tr>
<td>{event.name}</td>
... | 789924d7eded79590d62141f3e13a0f4a297d62f | [
"JavaScript"
] | 1 | JavaScript | ayilmaz4646/react-rails-example | 46a13d91f5c792bee4dc33b37a28a69de760ddb3 | cb6a11b238bee004832ae327a34b640424a443d3 |
refs/heads/master | <repo_name>SoJenkinse/TeleBotTest4<file_sep>/index.py
# -*- coding: utf-8 -*-
from settings import *
from defaults import *
from utils import *
import inspect
import sys
import os
import logging
import datetime
import re
from db_model import UserMap, UserState, UserAlert, Session
from query import Query
from dater i... | 2f473f24c78c2db8c5df57a7af01d66ed62912f5 | [
"Python"
] | 7 | Python | SoJenkinse/TeleBotTest4 | 5edc675dc24181c20512a1c127f165bc43a5828d | 6421e7dfc3e330b8ff05030eb1a2cf6e60f44afb |
refs/heads/master | <file_sep>import React from 'react'
import MovieList from './MovieList'
import RatingFilter from './RatingFilter'
function App() {
return (
<div className="App">
<header className="app-header">
<h1>Movie App</h1>
<div className="search-bar">
<input
type="text"
... | 06b46ac99bf6c34c13965d9851a6cf357f5fe65e | [
"JavaScript"
] | 8 | JavaScript | ElAmirr/movie-app-redux | ec23de8d7e25bcb18d70268d0043f5e04ca81377 | 32eb62c4bfdd1483cae2633e7885d2b972074655 |
refs/heads/main | <repo_name>A-s-m-a/Automatic-Vehicle-Number-Plate-Detection<file_sep>/input/readme.txt
This is the folder where you store all the videos to test<file_sep>/README.md
# Vehicle License Plate Recognition: Team THE CORE
## Prerequisite packages
### Opencv:-
For windows:
```sh
pip install opencv-python
```
For linux:
```s... | 5c921157ffc4e5c6cef79bc71111edf347f19892 | [
"Markdown",
"Python",
"Text"
] | 4 | Text | A-s-m-a/Automatic-Vehicle-Number-Plate-Detection | c419f3dc4abf3bcf661103ed434e3292ff2d35ab | ede5bc9db709f046b7080728b6d708b8e3620953 |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
import os
import numpy as np
print(os.getcwd())
data = []
with open(os.getcwd()+'/ex1data1.txt','r') as f:
data = f.read().replace('\n',',').split(',')
data = data[:-1]
X = np.array(data[::2])
y=[]
for i in data:
if i not in X:
y.append(i)
y = np.array(... | f09f424b7db45c1abeeb48451e27f2a1f1aaafea | [
"Python"
] | 2 | Python | ekhaydarov/machine_learning_py | a3dd74ad0c02044cbbf1842b348bec775c7fa693 | 3ba48e8710a071e5147d3981e30513f59d51ec05 |
refs/heads/master | <repo_name>mhbpcuiaba/desafio-programacao-1<file_sep>/purchase-webapp/app/bussiness/parse_input_file.rb
require 'csv'
class ParseInputFile
def initialize(file)
@file = file
end
def parse
total = 0
CSV.foreach(@file.path, {col_sep: "\t", headers: true, return_headers: false}) do |line|
produc... | 811fe39d6c1df0fbdaf22fce344c20df4bb4e87b | [
"Ruby"
] | 7 | Ruby | mhbpcuiaba/desafio-programacao-1 | fea3bd33ba2d822fd57de24fb7fffc2a658e4768 | d556af99d999c8934eeef268c51ed8d17f1fba72 |
refs/heads/master | <repo_name>sneat/VisionMixer<file_sep>/Starcraft2.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using S... | 3c928a7a278091bee83e4771fa05f26bc515af18 | [
"C#"
] | 3 | C# | sneat/VisionMixer | b45e16cbb7c5d32eb3aeaf15a0482af4caf01f85 | 9fe969afabdafce3b7efb6ce490722728923f346 |
refs/heads/master | <repo_name>kbingham/phase<file_sep>/main.c
#include <stdio.h>
#include <stdlib.h>
#include "phase.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
struct ratio {
unsigned int input;
unsigned int output;
} ratios[] = {
/* Upscaling Ratio < 4096 */
{ 1000, 32000 }, /* Ratio = 127 1:32 */
{ 1000, 16000... | ebe330e09308a4968de9cff46496ec049b0e3725 | [
"C",
"Makefile"
] | 4 | C | kbingham/phase | e194c1b40cecff6a392a0a2be813aa1ee82431e9 | fb46f9b929fdec5083401fdcc950d33e081dd0a6 |
refs/heads/master | <repo_name>parmezan38/chord-o-react<file_sep>/src/components/scripts/newChord.js
import notes from './notes';
function newRandomRoot() {
const index = Math.round(Math.random() * (notes.length - 1));
return { note: notes[index], index };
}
function newRandomChord(chords) {
const usedChords = [];
chords.forEach... | b7956dd3d6105ae31fe094a6e9bd9becf4cf3d92 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | parmezan38/chord-o-react | e6c248383f1f8bcc4450328349e85d1317e1c1d0 | 88f8469cc7c4e6965af2a0cc17d169caa006bc0b |
refs/heads/master | <file_sep>Overview
========
`AnimatedTextBoxBehavior` is a WPF behavior for `TextBox` that animates caret-based operations.
These animations are meant to simply provide a nicer experience, without getting in the way or slowing you down.
Features
========
- Caret blink is a fade
;
var close = document.querySelector(".modal-close");
var button = document.querySelector(".write-us-button");
var popup = document.querySelector(".modal-contacts-popup");
var link = document.querySelector(".map-link");
var mapclose = document.querySelector("... | 21577d1979860c417ca76883d4f6c3291d9d3e5a | [
"JavaScript"
] | 1 | JavaScript | MikeGankin/Technomart | 15376703f41b663c7173264e590d527c0369546d | 5b804298433a0385affb7f6efa66a25420015c28 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.