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>ExxxxT/lab7<file_sep>/src/lab/StackR.java
package lab;
import java.util.Scanner;
import java.util.Stack;
public class StackR {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Stack<Integer> firstHand = new Stack<>();
Stack<Integer> secondHand =... | 26f6cc92e8b033c94149723c05b293fa31292073 | [
"Java"
] | 1 | Java | ExxxxT/lab7 | c749918d4b6de2b8de2500c0e24e61e903a4b657 | 3f0327f863f5e489455efd5db55bfce6ba00e38f |
refs/heads/master | <repo_name>juancarestre/servelesspythonwithlayers<file_sep>/app/f5/app.py
import sys, os
sys.path.append('./app/')
from shared.dorequest import doreq
from numpy import array
def lambda_handler(event, context):
# TODO implement
r = doreq(f'{os.environ["POKEMON_API_URL"]}blastoise')
print(r)<file_sep>/Docker... | 9a3b651fa6d38697de6047b4412966ddcb3e259e | [
"Python",
"Dockerfile"
] | 5 | Python | juancarestre/servelesspythonwithlayers | f77236cf025c53001352308bcdcaf0ef4084acbf | 80b30b5fbc4462bd59d80f989b237e60af6e2d9c |
refs/heads/master | <repo_name>langliang/wcpy<file_sep>/wordcount.py
# *-*coding:utf8*-*
import sys
import os
import re
import pygal # 使用pygal来进行数据可视化
from optparse import OptionParser as OP
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# 构造OptionParser对象
usage = "usage: %prog [options] arg1 arg2..."
parser = ... | 53eded33f178718731eccbf16a3efd4132dca97c | [
"Python"
] | 2 | Python | langliang/wcpy | 33e7b51bc1816c1035a7bc16755cb21b14a1de6d | 87b035c8b8ae8c2654a1ebc52c562fc70959a3c3 |
refs/heads/master | <repo_name>KrissDrawing/Pantry<file_sep>/src/components/modal/Modal.js
import React from "react";
import ProductForm from "components/Forms/ProductForm";
import styles from "./Modal.module.scss";
const Modal = ({ add }) => (
<div className={styles.wrapper}>
<ProductForm add />
</div>
);
export default Modal;
... | 4b3ec2421b5970795823c5b3fb5721cf63272939 | [
"JavaScript"
] | 8 | JavaScript | KrissDrawing/Pantry | 891b31c2e981d51d85130b2486a01acb4f09c1f9 | b298caa1dec0222322513e6644e9b63172cd76c9 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# ---------------------------------------------------------------------
# Print a CHANGES file in GitHub Flavored Markdown
#
# Sample call:
# ghchanges -m 3.2 -o GENI-NSF -r geni-portal > changes.md
#
# ---------------------------------------------------------------------
import arg... | 262b909b7e9b7e524859f2e4f81fbb8065bc902b | [
"Markdown",
"Python"
] | 4 | Python | tcmitchell/incubator | 8a89919246a789521b082e736b25fb3a486741a1 | 7018aff1d8b01fb12910f2aea7221a21de0bbe99 |
refs/heads/master | <repo_name>ericmhuntley/scrapers<file_sep>/rockefeller_2015.py
from bs4 import BeautifulSoup as bs
import requests
import csv
import re
grantee = []
location = []
amount = []
purpose = []
url = "https://www.rockefellerfoundation.org/2015-grantees/"
def get_grantees(url_in):
r = requests.get(url_in)
soup = bs... | a0d791bb43d9e688e45b28f0d50e46af2462f5f8 | [
"Python"
] | 1 | Python | ericmhuntley/scrapers | b320afbf05bbd4f7200ed77523d4fe4a4ebdf9b7 | 039825064da7b0ba7aa1820b8ab383d0eda65d8c |
refs/heads/master | <file_sep>import flask
from flask import jsonify, request
from dao.movie_dao import MovieDao
app = flask.Flask(__name__)
@app.route('/', methods=['GET'])
def index():
return "<h1>My first REST API</h1>"
@app.route('/movies', methods=['GET'])
def get_all_movies():
return jsonify(MovieDao.select_all())
@app.r... | 68693c3f86f6723c1aeda721ef353f67071d19b8 | [
"Markdown",
"Python",
"Text"
] | 6 | Python | danecsvk/simple-flask-app | 8ea043f6fcc2e78f90c5db592f943e9536be0b59 | 6f14ce899cf86e9ccabc6c8d6538978280524569 |
refs/heads/master | <file_sep>package com.qsoa.admin.pojo;
public class AdminInfo {
private Integer id;
private String username;
private String password;
private Long phone;
private String createBy;
private Long createDate;
private String updateBy;
private Long updateDate;
private String salt;
public AdminInfo() {
}
publ... | 7b1c58189fe0bf87b6f07458a81d68986a40e15f | [
"Java",
"Maven POM",
"SQL",
"INI"
] | 7 | Java | Theshy439/houduan | 6a2309faf1cd58f6f3eb4d382811937e32968d08 | 45007d3465cef5c889417fde13044513ea05c462 |
refs/heads/master | <repo_name>SU-I-KA/Dynamic-Slider-ReactJS<file_sep>/src/App.js
import React, {useState, useEffect} from 'react';
import './App.css';
import {FaQuoteRight} from 'react-icons/fa';
import {FiChevronLeft, FiChevronRight} from 'react-icons/fi';
import data from './data';
function App() {
const [people, setPeople] = useSt... | 682f8d56f9e1ce81b91a1a8d72d663819071b038 | [
"JavaScript"
] | 1 | JavaScript | SU-I-KA/Dynamic-Slider-ReactJS | 04f40a3f0d3b37a5c49e468daadd5e3919df72e7 | 0a386bb2ee4db00e0ed588b5eb70fab5cd711bc4 |
refs/heads/master | <repo_name>whoisbma/primus-test<file_sep>/server/websocket.js
'use strict';
const Primus = require('primus');
const http = require('http');
const transformers = {
WEBSOCKETS: 'websockets',
ENGINEIO: 'engine.io',
SOCKJS: 'sockjs'
};
class WebsocketServer {
constructor(app, port) {
this.onConnection = thi... | be1337bc9227a13ed00bcd2badb19caa8363f749 | [
"JavaScript"
] | 2 | JavaScript | whoisbma/primus-test | e049d694d8678f37d901ef225be3a7fcf967e523 | 5fdad5a840f9c015efababbef72e5e3302dd262d |
refs/heads/master | <file_sep>var rpio = require('rpio');
var sleep = require('sleep');
rpio.open(11, rpio.OUTPUT, rpio.HIGH);
sleep.sleep(1);
rpio.open(11, rpio.OUTPUT, rpio.LOW);
sleep.sleep(1);
rpio.open(11, rpio.OUTPUT, rpio.HIGH);
sleep.sleep(1);
rpio.open(11, rpio.OUTPUT, rpio.LOW);
sleep.sleep(1);
rpio.open(11, rpio.OUTPUT, rpio.H... | 969f3cf2394736431c1043e289dfc7fae490d62d | [
"JavaScript"
] | 2 | JavaScript | tobitux/ampel | 593d34b977f4183082730ca1185cd5e18465929f | 01f797c30566912d5de633dac179ec3e7f624f85 |
refs/heads/master | <repo_name>lcia-lab/heroku-buildpack-poppler<file_sep>/bin/detect
#!/usr/bin/env bash
# bin/detect <build-dir>
echo "Poppler" && exit 0
<file_sep>/bin/compile
#!/usr/bin/env bash
export PATH=:/usr/local/bin:$PATH
BUILD_DIR=$1
BIN_DIR=$(cd "$(dirname "$0")"; pwd) # absolute path
VENDOR_DIR="$BIN_DIR/../vendor"
echo ... | e7d340d70a821f5462fb52238cca1f246639ef92 | [
"Shell"
] | 2 | Shell | lcia-lab/heroku-buildpack-poppler | 6c321edd9cef830f448a7ae174312969362fb1a8 | 01418cc7a9b0d88cbabb0294a697c4785546ecc7 |
refs/heads/master | <repo_name>suppersentai/project_HK_5<file_sep>/SellManage/DAO/showInforDAO.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
using System.Windows.Forms;
using MODEL;
using System.Data;
namespace DAO
{
public class ... | ed1072a1bdd92fd06cbfe4a3fd52638d3258a8f6 | [
"C#",
"SQL"
] | 22 | C# | suppersentai/project_HK_5 | 677b31523e3b5b2341b2bd4ed852d818fb39f253 | 6c0e62e9677a68c19acfba35a4d127d8131fbf72 |
refs/heads/master | <file_sep>const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "twitter-eea49.firebaseapp.com",
databaseURL: "https://twitter-eea49.firebaseio.com",
projectId: "twitter-eea49",
storageBucket: "twitter-eea49.appspot.com",
messagingSenderId: "92511051399",
appId: "1:92511051399:web:1782d6c570... | 0048dc900d890cb9ecab06d99dc1ae0ba73c3508 | [
"JavaScript"
] | 1 | JavaScript | thomasgui06110/twitcoders | 83d5c3489ec75f354b736520033cd334ef5d948e | 4dca86228b46fa1bdf8a41474075e8de723d2716 |
refs/heads/master | <repo_name>Jankowski-J/python-utils<file_sep>/README.md
# python-utils
Simple utilites scripts for common tasks in Python
This repository contains some scripts for common tasks, that I've been dealing with then using python.
<file_sep>/stdin/console_controller.py
import threading
import time
NOOP_LAMBDA = (lambda: No... | 97413aa96af31bc14f240e134bb07be632628bdf | [
"Markdown",
"Python"
] | 2 | Markdown | Jankowski-J/python-utils | 2d0df9855924e58ba89d13977543cb5035dd6ab9 | b8c8eedb902eb62d58e44e69e3ca05f9284f6b21 |
refs/heads/master | <repo_name>JoseAMF/StrongSchool<file_sep>/src/app/pages/web-site/testimonial/testimonial.component.html
<div class="background">
<h2 class="text-white text-center pt-5">Testimonials</h2>
<hr class="divider mx-auto my-4" />
<div class="vertical-align">
<div class="custom-container mx-auto">
<div class="... | 39f23e6a1c2adcb1dc14c84cd3bc009f981005d5 | [
"TypeScript",
"HTML"
] | 4 | HTML | JoseAMF/StrongSchool | 13e93a15b14653eda9496adb28198a3b9334f888 | eabbf70dcfd20cdb2a375ba566791dbd3ea5fa80 |
refs/heads/master | <repo_name>LiammCodes/liams-discord-bot<file_sep>/TwitchNotifier.js
require('dotenv').config()
const TwitchAPI = require('node-twitch').default
const { MessageEmbed, Channel } = require('discord.js')
module.exports = class TwitchNotifier {
constructor(client, twitchName) {
this.client = client
this.twitchN... | 78ce6f58f98adadbe98d1665de00745dca804f42 | [
"JavaScript"
] | 1 | JavaScript | LiammCodes/liams-discord-bot | d72548d80244b3e782449a99d6e243b88ce90236 | a57d48a433750d1d6845cb8acb1ae5237e25a5c1 |
refs/heads/master | <file_sep>## Various projects related to master thesis
<file_sep>import sys
# This script tries to determine a list of libraries used by an app based on a
# list of imports made by it in the form of __sorted__ new-line- or space-separated
# list of package names (or, generally, anything which can be put after
# "impor... | df2836962db0481d1722e4620be635403f6108b9 | [
"Markdown",
"Python",
"Shell"
] | 5 | Markdown | kkieczka/mgr | d6d215ddc54492398d36b11059e00397c852c995 | 174fa659a368656026898f440a9bc20fc9a0fcf8 |
refs/heads/master | <repo_name>ming3000/go_by_example<file_sep>/atomic_counters/atomic_add.go
package main
import (
"sync"
"sync/atomic"
"runtime"
"fmt"
)
var counter int64
var wg sync.WaitGroup
func incCounter() {
defer wg.Done()
for count := 0; count < 2; count++ {
atomic.AddInt64(&counter, 1)
runtime.Gosched()
}
}
func... | 216752c27b831bf6d4ae9c869f28b256d96ce1f2 | [
"Markdown",
"Go"
] | 48 | Go | ming3000/go_by_example | f233f35bc98c8b5c9f265e4f577cbda092f009c8 | 6bfc933b361a30afa3e8df0722d2fb64d78413e5 |
refs/heads/master | <repo_name>lefeuvre/ESP32<file_sep>/esp32.ino
#include <WiFi.h>
#include "ESPAsyncWebServer.h"
#include "SPIFFS.h"
const char* ssid = "OICore-ESP32-AP";
const char* password = "<PASSWORD>";
IPAddress local_ip(192,168,1,1);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);
AsyncWebServer server(80);
... | 17edf816a655fb78d0886ca0e2036b8908ff6a61 | [
"Markdown",
"C++"
] | 2 | C++ | lefeuvre/ESP32 | c752a158a7aca027bdfde195ef914e4ec9245b0d | 1589ea0d797a00191aa7fbf1c043c2e0afef52f7 |
refs/heads/master | <file_sep>// Philips Hue remote API configuration
var clientId = "your_meethue_clientid";
var clientSecret = "your_meethue_clientsecret";
//******************************************************
//** START set ajax content-type and configuration **
//******************************************************
var axios ... | 31e89fcde785db387141716220e88a854f8ca0b3 | [
"JavaScript",
"HTML",
"Markdown"
] | 14 | JavaScript | Seluxit/IoTappStore | a5aa2e61eaf48932a7f87e5b225e402b9fd0c568 | 1072b3e9483a3ba94862f6ba68579dc22ad9b73b |
refs/heads/develop | <repo_name>Lyumih/pocket-combats-trade<file_sep>/back/app.js
// подключение express
const express = require("express");
// создаем объект приложения
const app = express();
app.use(express.static(__dirname + "/build"))
// определяем обработчик для маршрута "/"
app.get("/", function (request, response) {
// отправл... | f7e1a535952c66e4a2ea70769074f4dcffcc942a | [
"JavaScript"
] | 1 | JavaScript | Lyumih/pocket-combats-trade | b9b18ce3afe2dfd18e1f882d19f4e16e662966e3 | d4d38c0ee2770d067dc449a94f4a737def5eeefa |
refs/heads/master | <file_sep>import pbundler
pbundler.PBundler.setup()
import sys
import PIL # actually pillow
print(repr(PIL))
<file_sep>from __future__ import print_function
from __future__ import absolute_import
__all__ = ['CheeseshopSource']
import os
import pkg_resources
import xmlrpclib
from . import PBundlerException
from .... | 8b3f36c6b14b43fc8c1d2da5b42a1535d3541ce1 | [
"Markdown",
"Python"
] | 16 | Python | zeha/pbundler | 01a45bde68e0e76042d845343a22f3cdfcda7cee | 34a8245bc9d4dbcfbbc8242f413c316fc22cebb0 |
refs/heads/master | <repo_name>eron93br/opendsp<file_sep>/wavsig/readme.md
# WavSig
WavSig is a open-source signal generator for Arduino UNO and AVR Microcontrollers.
WavSig is based on MCP4921 Digital to Analog converter from Microchip
# Usage
# Waveform Generator with Arduino DUE
https://www.arduino.cc/en/Tutorial/DueSimpleWavefo... | d4d312ff2a20a89115e4f1cd81aebad7c191bb09 | [
"Markdown",
"C++"
] | 7 | Markdown | eron93br/opendsp | b47dd9d96ce72393d7f797feac7b4bf5d81e047b | 640c008c24af95f608ac58a1aa1054166aebe704 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
double** ler(const char *nomeArq, int *d)
{
int i, j, dim;
double **M, a;
FILE *arq;
arq = fopen(nomeArq, "r");
i = fscanf(arq,"%d",&dim);
M = malloc( dim*sizeof(double *));
for( i = 0 ; i < dim ; i++ )
M[i] = (double *) malloc((dim+1)*sizeof(double));
... | 74f6da6966fa4fdf6777a04224b077e2ac660006 | [
"C"
] | 1 | C | lucasthiago/Metodo-Gauss | 1fdf140f8a3082ddde326fc6ce3844214ba05eb7 | f3af8b783d1ee6f7cc7c6f88bd488eb0179316d4 |
refs/heads/master | <repo_name>ajmagnus/Test-Repo<file_sep>/ConsoleApplication1/Sample-Test1/test.cpp
#include "pch.h"
#include <string>
#include "../ConsoleApplication1/Message.h"
TEST(TestCaseName, TestName) {
EXPECT_EQ(1, 1);
EXPECT_TRUE(true);
}
TEST(testMessage, test1) {
Message testClass;
std::string answer = "Hello World!"... | e5a53660a1cfcde8df657ac7f07b1f02f2e2029d | [
"C++"
] | 6 | C++ | ajmagnus/Test-Repo | 7e07efc20f3fd02e5d69a6ffe363aa21200b91e2 | 3959569a3cc6473fc4195a3a95cb377efd4ef521 |
refs/heads/master | <repo_name>artursharypau/filtering-task<file_sep>/FilteringTask/Obj.cs
namespace FilteringTask
{
class Obj
{
public int Id { get; set; }
}
}
<file_sep>/FilteringTask/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace FilteringTask
{
class Program
{
... | 586cd6075cb53547a33f90852ee73650127f6524 | [
"C#"
] | 2 | C# | artursharypau/filtering-task | 56c9fd537f777014790a5e657e09c8492886eada | 646ac2b20a2059e39f8c282e80591bb26e652c42 |
refs/heads/master | <repo_name>fcccode/WMI<file_sep>/structures.h
#pragma once
#include <string>
using namespace std;
struct PRODUCT
{
wstring name;
wstring id;
wstring version;
wstring publisher;
};
struct PROCESS
{
wstring caption;
wstring id;
wstring path;
wstring handles;
};
struct SERVICE
{
wstring name;
wstring id;
ws... | 7b16cd06b26a5a1f7e9a62865aeb37b1ec01e629 | [
"C++"
] | 2 | C++ | fcccode/WMI | 811a5b9762d09ce0b813e616db91c453577482f1 | 34a5d7b9bb39d166d40bee499ea061401e303ba6 |
refs/heads/master | <file_sep>### Using platformIO on macOS with VS Code and the LPC1768 board by KEIL and the ULINK-ME JTAG adapter
A working platformIO blinky example for the LPC1768 board by KEIL.
This was constructed with the help of [maxgerhardt](https://github.com/maxgerhardt) in this forum post [platformIO community forum](https:... | ea1ff6305cf4d50c54b257b01c490ffeaf888717 | [
"Markdown",
"Python",
"C++",
"INI"
] | 4 | Markdown | Irgi07/lpc1768_blinky_example | ce413ceaad7fd1596da23e028082bdc631a309a8 | 1a5ac7d91a5dbf5a6c6060e3bbbc23eb21e6b329 |
refs/heads/master | <repo_name>HenChao/PiRacer<file_sep>/track_sensor.py
import time
import RPi.GPIO as GPIO
# 3 - Left Pre-stage - LPS
# 5 - Left Stage - LS
# 7 - Left Red Light - LRL
# 11 - Left 60ft Line - L60
# 12 - Left Finish Line - LFL
# 13 - Right Pre-stage - RPS
# 15 - Right Stage ... | a430069ffa7ff86287dbac8435209640c36ccc46 | [
"Python"
] | 1 | Python | HenChao/PiRacer | ee0f9bfeaf2f270a5d6b2e45611b92046f5e40e6 | b8a559c58ad18a09849aa4955f966be77d6cf6b6 |
refs/heads/master | <file_sep>using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
namespace BattlePlanner.Models
{
public class User
{
[Key]
public int UserId { get; set; }
[Required(ErrorMessage="How will the bards sing songs ... | de7f763dc8011d0e07ff2048d0fe3443d6042892 | [
"C#"
] | 3 | C# | Dakota-G/FightCloob | 3aeedb1ff3ccbe04c834b1fa3758616c96ca4849 | c70446b47e99607b06ee3cf169a529158a88f368 |
refs/heads/master | <file_sep>const _ = require('lodash');
const fetch = require('node-fetch');
const { getCountryAlpha2Code } = require('./utils');
const BASE_URL = 'https://www.bloomberg.com/graphics';
function mapCountry(entry = {}) {
return {
code: getCountryAlpha2Code(entry.noc),
gold: entry.gold,
silve... | 69f334dca41b9a7e4aab2fc3696c1c061bac8d07 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | fewieden/MMM-OlympicGames | c080be36cb4d3647150d4d9eace9290374392121 | 8a1d57913b0db0f4bd628868947ff403ea6c6e27 |
refs/heads/main | <repo_name>HaryAlfarizi/Lab9-10Web<file_sep>/README.md
## Nama : <NAME>
## Kelas : TI.19.B2
## NIM : 311910555
## Mata Kuliah : Pemrograman Web
# Praktikum 9 & 10
Header, Home pada modular
.ready(function(){
//Add a listener for the form submission....
$('.sign-up-form').submit(function(){
event.preventDefault();
// console.log("Submitted!");
// 1. password must be 6 characters
var password= $('.password').val();
if(password.length < 6) {
$('.password').focus();
$('.pass-er... | 9fa47eb9355ba5c9a409ec19b052d90d7958874d | [
"JavaScript"
] | 1 | JavaScript | drewwiley/Validating-Forms_files | 90fab6236e425c8a884942ef9f9955f794fd09ce | 37ab74d7436f425c2cc3247c23ce495a2a054c9e |
refs/heads/master | <repo_name>GabrielCarneiroDeveloper/flask-blueprint-factory-app<file_sep>/flask_auth/app/common/logger.py
import os
import logging
STREAM_HANDLER = logging.StreamHandler()
STREAM_HANDLER.setFormatter(
logging.Formatter(
"[%(asctime)s] [%(levelname)s] [%(pathname)s:%(lineno)s] %(message)s",
datefmt=... | b2d9e2f96945b8045ebfc7f72424a4b4b8801387 | [
"TOML",
"Markdown",
"Makefile",
"Python",
"Dockerfile",
"Shell"
] | 24 | Python | GabrielCarneiroDeveloper/flask-blueprint-factory-app | b133ddc0de7d2780e6705ad115749522b69587cb | 1243b9c2ab6b642c7e6cd75420c7424e766b2345 |
refs/heads/master | <repo_name>yisus82/codelytv-go<file_sep>/cmd/beers-cli/main.go
package main
import (
"github.com/spf13/cobra"
"github.com/yisus82/codelytv-go/internal/cli"
"github.com/yisus82/codelytv-go/internal/storage/csv"
)
func main() {
csvRepo := csv.NewRepository()
rootCmd := &cobra.Command{Use: "beers-cli"}
rootCmd.Ad... | 7719f629a7bda91af3ac3795135c37f860446b9b | [
"Markdown",
"Go Module",
"Go"
] | 3 | Go | yisus82/codelytv-go | e605f5b698188220d714ec67dedc755bf5149cc5 | d16d6c418fe3d8dbcfec08d22761c8299901a8e8 |
refs/heads/master | <file_sep>/* eslint-disable no-underscore-dangle */
import { avoidWarnForRequire } from './utils';
const toggleNetworkInspect = enabled => {
if (!enabled && window.__NETWORK_INSPECT__) {
window.XMLHttpRequest = window.__NETWORK_INSPECT__.XMLHttpRequest;
window.FormData = window.__NETWORK_INSPECT__.FormData;... | e8d9f90d2cf882e3a8498967e4f096b40e3fecd9 | [
"JavaScript"
] | 1 | JavaScript | linhhd1kt/react-native-debugger | db0ecf0318244746ab26f8989ff55a37d06d1756 | 453a7edf1dadb0f4d01cf97a8ed2a6c2a09e0171 |
refs/heads/master | <repo_name>TenghuiZhang/BusinessCardRing<file_sep>/README.md
# BusinessCardRing
Hello, everyone!
I am <NAME>, this is my product of a business card exchange system. The purpose of this project is that people can exchange their name card by shaking their hands and the Arduino will collect the signal and upload the busi... | 4688472546e1388c88334e0b8bf1c533f419c38e | [
"Markdown",
"Python"
] | 3 | Markdown | TenghuiZhang/BusinessCardRing | 6f4e23d64bf4c3a3be4b9dedd2da9925bbc022b6 | 6e7c4d3de09c55da0d08fbd7936a6b7caa64a00b |
refs/heads/master | <repo_name>dustanisci/14-10-2019-github-angular8-git-io<file_sep>/src/app/app.component.spec.ts
import { TestBed, async, ComponentFixture, inject } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } ... | 72a05d13c7b3fd55a2113b95e9766d169a2797c2 | [
"TypeScript"
] | 1 | TypeScript | dustanisci/14-10-2019-github-angular8-git-io | 0cdfe09e23f7e3e25bd78f839e701bb5fcf2d6be | 0a9eba2870f92ff10f299a65a1ddfbce0de383e5 |
refs/heads/master | <file_sep><?php defined('BASEPATH') OR exit('No direct script access allowed');
class Planta_model extends CI_Model{
public function cadastrar($dados) {
if($dados!=NULL):
$this->db->insert('plantas',$dados);
return $this->db->insert_id();
endif;
}
public function addFoto($id, $ext){
$this->db->where("... | ce24ce4caf397dec85a7b0ce50fc7b571d36f8fe | [
"SQL",
"PHP"
] | 14 | PHP | lauraadalmolin/herbarium | 00498c61e0333e1f44f455e3a996a4bf483d02ab | 0c1d43b5278a3c5832e865f8c19e4c22b7e1675e |
refs/heads/master | <repo_name>beshkoon/test<file_sep>/blgen.py
import sys
import json
import socket
import time
from hashlib import sha256 as sha
#kirsche.emzy.de:50001
#electrum.jochen-hoenicke.de:50003
#electrum-server.ninja:50001
#electrum.emzy.de:50001
#e2.keff.org:50001
#fortress.qtornado.com:50001
#electrumx.erbium.eu:50001
#in ser... | 98f2a9033d31e41dcec8ee74f87ea57dbb7f2ff6 | [
"Python"
] | 1 | Python | beshkoon/test | fcbb0af2ccee63744b74760a2c90be23bd2987c5 | 2370e21d30bf86d41d99c37c6096ab10bf827f40 |
refs/heads/master | <repo_name>MarkMondt/Discrete-Math-I-Extra-Credit<file_sep>/Mondt,MarkDiscreteExtraCredit.cpp
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <cmath>
#include <iomanip>
using namespace std;
void RotateLeft(short int OldSquare[1024][1024], short int ArraySize)
{
int NewSquare[1024][1024];
... | 5a189d6315ec5150062d5faec9c6565614e363ec | [
"C++"
] | 1 | C++ | MarkMondt/Discrete-Math-I-Extra-Credit | 4a994ad7593f5d2095d53d3d28d2df921535dfce | bb67f2a83bd51c301f821d1d7bddfb13e332f6d3 |
refs/heads/master | <repo_name>fattoc/jquerySlider<file_sep>/README.md
### jquery简单实现图片轮播
> 图片轮播效果在平时开发过程中使用的频率非常高,为了避免重复造轮子,也为了之后遇到可以节约时间,所以大致记录一下实现过程,方便复用。
图片轮播其实也有很多坑,因为有时候需要轮播的图片大小不一致,如果要照顾到美观、整齐等因素就可能导致某些图片被裁切或者挤压变形;如果重点是保障图片显示的完整性,并且尽量保证不变形不留白时,则可能导致图片显示区域来回变化挤占其它DOM位置的情况。关于这一部分有机会再研究,这里默认需要轮播的图片都是经过特殊处理,大小一致 风格统一的(手动滑稽)。
#### ... | 1b887d66f5a5fb00186893eaeb7f841b6d4dbca5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | fattoc/jquerySlider | e28fb56538d4b83d36e7cce90aa2255422efb75a | 4ed0e2c028c40288fe0db4afab29c869bc4154ff |
refs/heads/master | <repo_name>fitraditya/Obrel<file_sep>/app/models/channel.js
var Mongoose = require('../../database').Mongoose
var ObjectId = Mongoose.Schema.Types.ObjectId;
var channelSchema = new Mongoose.Schema({
name: { type : String, required: true },
hash: { type : String, required: true },
type: { type : String, required:... | bf25bd65b6e0ab9adbd57a046ce1d597436131d8 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | fitraditya/Obrel | bdb89ac2f0ac2bd4c4c843ea5efcd1d3edbe1af1 | 8724da3cbd67c194d69f389a83011ff69911d01b |
refs/heads/master | <repo_name>gameschoolofficial/Data-Structures---Gun-UI<file_sep>/Assets/Scripts/Lists/GunBag.cs
using UnityEngine;
using System.Collections;
//Add the correct Collections library
using System.Collections.Generic;
using UnityEngine.UI;
public class GunBag : MonoBehaviour {
public Image handgun;
public Image SMG;
... | 6986d4cca8dfb0232753bb2fb9712a598689d0f7 | [
"C#"
] | 3 | C# | gameschoolofficial/Data-Structures---Gun-UI | 0b828f6334e856fac9eabb15f74ab154ad637619 | 6da96451635e9d49e0a8e9f7c1acaa003d25f5fb |
refs/heads/master | <repo_name>pgroot/laravel-aliyun-dysms<file_sep>/src/Mindertech/Dysms/QuerySendDetailsRequest.php
<?php
/**
* laravel-aliyun-dysms
* Date: 2018-05-16 10:35
* @author: GROOT (<EMAIL>)
*/
namespace Mindertech\Dysms;
use Aliyun\Api\Sms\Request\V20170525\QuerySendDetailsRequest as AliyunQuerySendDetailsRequest;
use M... | 2394e891fcdfb2e0137223fec93c7eeb18b1c899 | [
"Markdown",
"PHP"
] | 10 | PHP | pgroot/laravel-aliyun-dysms | e3566684bd186f53c866bafd4d99c97e508ecfa8 | e0f052a8eba7061223f99f46e474622f64e46855 |
refs/heads/master | <file_sep><?php
namespace Bebella\Events\Mobile;
use Bebella\Recipe;
use Bebella\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class RecipeWasViewed extends Event
{
use SerializesModels;
public $recipe;
/**
* Create a new event ins... | 0acc0e525d948a95ea7e7b2a584faa9d21a831a7 | [
"JavaScript",
"PHP"
] | 79 | PHP | diegomrodz/BebellaBackend | 8f55ce29c9974634d535bd0546e976b9e3a8ee09 | 8ba3b8cb1e711aa9f6ce507a0d29e4bbc5300906 |
refs/heads/master | <repo_name>rakesh2277/flawless-rider-joblist-react-native-<file_sep>/src/screens/orderSingle/index.js
import React, { Component } from "react";
import { View, Text, ImageBackground, TouchableHighlight, TouchableOpacity, ScrollView, ActivityIndicator, Modal } from "react-native";
import { Body, Button, Card, CardItem, C... | d57d952d570511a08bd9740ef3cc9af5df88ff61 | [
"JavaScript",
"Markdown"
] | 21 | JavaScript | rakesh2277/flawless-rider-joblist-react-native- | a23ec6c328e1e2f6cd9fb885e935abd92d456d1f | 93bd6da5fbee1f3fc90815625613e157306a32ff |
refs/heads/master | <file_sep>package com.smk.promotion;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.view.View;
import android.widget.Button;
import ... | ead767646065e311a177bb2cd6706c7540008a6e | [
"Java",
"Gradle"
] | 36 | Java | SawMaineK/promotion | ccf0f11ca695a3fc8f3eef10dd40ba4d1e3ccdb7 | 62b7be2df4b0a53f298164b5314a090bc6fb4fe8 |
refs/heads/master | <repo_name>CXQ123943/com-javase-260<file_sep>/20200824/src/com/cxq/collection/ComparatorTest.java
package com.cxq.collection;
import org.junit.Test;
import java.util.Comparator;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
/**
* @author CXQ
* @version 1.0
*/
public class ComparatorTes... | 0bb9aea413fd8a8f5f54fbf387fe1705638f2708 | [
"Java"
] | 73 | Java | CXQ123943/com-javase-260 | 5203d576681923919d5ac824062e634843b0dd7a | c15861e5df96b42789f3045b25b804e137ca0777 |
refs/heads/master | <file_sep>#include "opencv2/opencv.hpp"
using namespace cv;
int main(int, char**)
{
VideoCapture cap(0);
if (!cap.isOpened())
return -1;
namedWindow("frame", cv::WINDOW_AUTOSIZE);
for (;;)
{
Mat frameIn;
cap >> frameIn;
imshow("frame", frameIn);
if (waitKey(30) >= 0) break;
}
return 0;
... | da473007dbfdaf02399f591d922b108f23332b15 | [
"C++"
] | 1 | C++ | HumorLogic/OpenCV | ad90f7ae69eac7dbe0c41ddd041e88b8f5dc5c7b | 3517df53595b45be019b5e55c4372786279e77b7 |
refs/heads/master | <file_sep>const fs = require('fs');
const path = require('path');
function loadFile(filename) {
const filepath = path.join(__dirname, `static/${filename}`);
// Load the file
const data = fs.readFileSync(filepath, 'UTF-8');
// Split on newline chars
const lines = data.split(/\r?\n/);
// Trim al... | f1f7d00a065cc4b042599e45b3ef12f95637736e | [
"JavaScript",
"C",
"Python",
"Markdown"
] | 4 | JavaScript | Creator13/ConnectForCoffee | 4848ac1fb97f1c4dafac13bc351b042485efe529 | e28eb6274d283e329cbde6d34e09ce66ac272a0d |
refs/heads/master | <repo_name>andrivet/z80-debug<file_sep>/src/tests/callserializer.tests.ts
//import * as assert from 'assert';
import { CallSerializer } from '../callserializer';
suite('CallSerializer', () => {
/*
setup( () => {
return dc.start();
});
teardown( () => dc.disconnect() );
*/
suite('execAll', () => {
test('1 ... | c71e4850377677d5819ba5caaec0b185c5bea7b8 | [
"Markdown",
"TypeScript"
] | 13 | TypeScript | andrivet/z80-debug | 7cd21f7a8af492010024739ac60df386d0e215ea | 98a5fc0c9718cff89d3fecff5c5554b867a68458 |
refs/heads/master | <file_sep>import { PixiComponent, applyDefaultProps, Container } from "@inlet/react-pixi";
import * as PIXI from 'pixi.js';
import * as particles from 'pixi-particles';
import { ComponentProps } from "react";
interface Props {
image: string;
config: particles.OldEmitterConfig | particles.EmitterConfig;
};
... | 929e37dfe458f8fa2b704d202735be15c38ab985 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | education21cc/conflictresolution | 7ec02322afb2c1e0392db1413e26364db529b76b | fb41ecefbd780d5cabc3aa6a48bbc194429fc524 |
refs/heads/master | <file_sep>package org.onboarding.activities;
import java.util.Stack;
/**
* Methods ask for by On-boarding team at work
*
*/
public class Methods {
/**
* Checks to see if a credit card number is valid.
*
* The card number must be between 14 and 19 digits long and pass the Luhn algorithm
*
* @param ca... | d4f91ada8b022f511a0f94873e7d02975d03da53 | [
"Java"
] | 2 | Java | Peter-Fowler/activities | d61462851822e256b8ae8e365592ed7fcaa2a0f5 | b50531b711afe8f01c75c95144947e6e9b20d2f3 |
refs/heads/master | <repo_name>marlomajor/Task_Manager<file_sep>/app/controllers/.#task_manager_app.rb
<EMAIL>major@Marlos-MacBook-Pro.local.96483<file_sep>/test/models/task_manager_test.rb
require_relative '../test_helper'
class TaskManagerTest < Minitest::Test
def test_it_creates_a_task
TaskManager.create({ :title => "My title",... | e8403b27da677151937294f532d3b1d978eb1c8b | [
"Ruby"
] | 4 | Ruby | marlomajor/Task_Manager | 09c5946e4ebcee34d8308a54c6e356149acd5bff | 6faf414fe5c165b46059ca24f852d68368955ba1 |
refs/heads/master | <file_sep>package Introduction;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.mathmadesimple.R;
/**
* This Activity represents the first introduction and the introduction of the de... | 9b55b212f76879316c092102e60fa151b2cf4567 | [
"Java",
"Gradle"
] | 5 | Java | Cpt-Aramus/Math_Made_Simple | f57507e5dce6375ed1d8294659beba0d444f7dc1 | b9e213ba6c29e220a83aadb422ba92ada0c9f48e |
refs/heads/master | <repo_name>fabio1079/my-configs<file_sep>/setup.sh
#!/bin/bash
cp .gitconfig ~
function setup_neovim() {
mkdir -p ~/.config/nvim
cp init.vim ~/.config/nvim/
sudo apt-get install neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plu... | 4ec82c81f55d4fc476e28c37b9dd41a9abf4fa76 | [
"Shell"
] | 2 | Shell | fabio1079/my-configs | 8f3438e475d55118213740284ffaf2b6598af0be | aa854c1532d24877289c3c333773f860f16ccf5d |
refs/heads/master | <repo_name>simont789/TestGUI-2<file_sep>/TestGUIBegin/LuceneApplication.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lucene.Net.Analysis; // for analyser
using Lucene.Net.Analysis.Standard; // for standard analyser
using Lucene.Net.Documen... | 2a8fe97bcb5072c0212d25f57bfb81deaf6ddb2a | [
"C#"
] | 3 | C# | simont789/TestGUI-2 | e777777750c2fa1333a8d9a2e9bab4711d3cab6c | 8dcbe19acc3a6ba6d1bcf63257fc9f02f5c7fcd8 |
refs/heads/master | <repo_name>mur-ururu/searchTool<file_sep>/fuzzySearch/fsFuzzySearch.h
#pragma once
#include <string>
#include <vector>
namespace FS
{
//------------------------------------------------------------------------------
class Metrics
/*
** для двух строк - str и prefix -
** вычисляет расстояние Дамерау-Левенштейна (р... | be11bc1f1f853796f812256f8557de7b553adda3 | [
"Markdown",
"Text",
"C++"
] | 13 | C++ | mur-ururu/searchTool | 93ad469a5c1a7d7541de13f28434f2d61ecb893e | 5915d93e9688f64536a589cadcef52bd47e103e0 |
refs/heads/master | <repo_name>swunait/dmit2504-1203-coroutine-exercise<file_sep>/app/src/main/java/ca/nait/dmit/dmit2504/coroutineracinggame/MainActivity.kt
package ca.nait.dmit.dmit2504.coroutineracinggame
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.*
import ko... | 4be4e5ff806b9f9f7e2f2af11e6ca0332f95287f | [
"Kotlin",
"Gradle"
] | 2 | Kotlin | swunait/dmit2504-1203-coroutine-exercise | 231f8606f8c8895dd7a6d929416643a10fda2ead | 2753278740bb9f54ef3f61cc2730101955c814f4 |
refs/heads/master | <repo_name>MarcyMagi/troll-filter<file_sep>/controllers/streamer.js
const config = require('../config/settings')
const twitchRequest = require('../requests/streamer')
const dbTables = require('../infrastructure/tables')
module.exports = app => {
app.get('/registerStreamerOAuth', (req, res) => {
if(req.query.state ... | 231906d89c4a9e29018630ad25cb98e718947fff | [
"JavaScript"
] | 9 | JavaScript | MarcyMagi/troll-filter | 8bb2d62fa57a607159bc2003b757106e53678aa3 | 523f02502b1b0e7960b1611c8e4e7fc62509ceda |
refs/heads/master | <file_sep><?php
echo "<pre>";
$email_body = " ";
$email_body .= "Name " . $name . "\n";
$email_body .= 'Name ' . $name . "\n";
echo 'Email ' . $email . "\n";
echo 'Details ' . $details . "\n";
echo "</pre>";
//To Do: Send email
$pageTitle='Thank you';
$section=null;
?>
<div class='section page'>
<h1>Thank You</h1>... | 8a20ca51983f6dbf490fa16cca1912e3ffd850fb | [
"PHP"
] | 3 | PHP | jaselang/php_webpage_project | 7caf1ac9092824f8bbd7df4ef5e33a3f8f71b5fb | 616f19a0e95bcf41101c99b0e71a6a640b1b077f |
refs/heads/master | <file_sep>
function addition() {
var value1 = document.getElementById('firstnum').value;
var value2 = document.getElementById('secnum').value;
var x = +value1 + +value2;
document.getElementById("result").innerHTML = x;
console.log(x);
}
function subs() {
var value1 = document.getElementById('firstnum... | 123956c126c7ae3bf0e8e42f2ec46d8d131607d8 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Jira-W/Sparta-global-Calculator | 0be78a0b05f4bd41024d037228db4af34fe3e3a2 | 4ed9a2135ff2620526693ce2964b347e8b4ae5ab |
refs/heads/master | <file_sep>package com.atguigu.gmall.user.cotroller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.atguigu.gmall.bean.UserInfo;
import com.atguigu.gmall.service.UserService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sprin... | 25b36b431a4a00f14bf555a5fc484870a4feb559 | [
"Java"
] | 1 | Java | zhukedong/gmall0328 | 2ec23d60f883b539114dba0422697f28edd5bf12 | e88fc083d9a388462f12c90a24bf616b32c37edc |
refs/heads/master | <repo_name>gideon21/WebAR-project<file_sep>/index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web.AR.</title>
<link rel="stylesheet" href="css/main.css?v=<?php echo time(); ?>">
<link rel="styleshee... | 7708a83f8e447882802e7fbe0dfb8a4b4cf5a2ed | [
"JavaScript",
"PHP"
] | 2 | PHP | gideon21/WebAR-project | a6f3cf6eaac6a6da668a1b611bdece7d44270f69 | 6073ab23f4955f0600b1719b7926978c97161cbe |
refs/heads/master | <repo_name>sreebg04/snowflake_poc<file_sep>/schedule.py
import subprocess
import sys
import time
def process(command):
pro = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
pro.wait()
if pro.returncode == 0:
print("Monitoring Client folder")
else:
print("Run unsuccessfull... | 6eabb72cd72183931953a42dcb83171d30b74065 | [
"Python"
] | 2 | Python | sreebg04/snowflake_poc | e82d360cd7ef63799bbefa0f1c332bc78eb72c6b | ee91fe735c6a5b5192e1933bde80e0b8b8a74b05 |
refs/heads/master | <file_sep>CREATE TABLE artist (
id BIGINT NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
genre VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
);
DELETE FROM concert;
ALTER TABLE concert
ADD COLUMN artist_id BIGINT NOT NULL,
DROP COLUMN artist,
DROP COLUMN genre,
ADD FOREIGN KEY (artist_id) REFERENCES artist(id)... | 27174b4079e97b7695c9cff6a387306918672e2c | [
"SQL"
] | 1 | SQL | zaans2/Workshop-JPA | a2535532106c6e0008f4e972cc22b672caad9ea0 | 5611bd49d286d8625eb4eef78361a7ee5f31dcb6 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
"""
Created on Sat Jul 4 13:41:51 2020
@author: z003vrzk
"""
# Python imports
import datetime
# Third party imports
import pandas as pd
import numpy as np
# Local imports
from finance_graphing import (create_transaction_objects, Income,
plot_integral, ... | f786e1b7a03bbddaf370ae6df317a74cf8475160 | [
"Markdown",
"Python"
] | 7 | Python | johnvorsten/Finance-Calculator | 2797a8861301ebbe0803dbdfe39488b66eb9f0f5 | 3d076450e6c78d128a43ad6be33b12d2142555fb |
refs/heads/master | <repo_name>Chutithep88/ManageInternSystem<file_sep>/repeatedly.php
<?php
session_start();
include_once 'dbconnect.php';
$iduseremail = $_SESSION['email'];
//ป้องกันไม่ให้เข้าถึงหน้านี้โดยไม่ผ่าน Login
if(!isset($_SESSION['email'])){
header("location: index.php");
return;
}
... | 8d15c223c2f2694e1d57338dec129ea1e327c10a | [
"Markdown",
"SQL",
"PHP"
] | 14 | PHP | Chutithep88/ManageInternSystem | c7c9a190ec08cd6aa35bfe07d5a7c5d19a07d244 | d4df7f2dcd5b6981fecea8cbcdebf537c1d018cd |
refs/heads/main | <repo_name>NaoakiUmedu/rustudy<file_sep>/ru_study/src/main.rs
// 次回は2.5から
fn main()
{
let _x = 100;
println!("x is {}", _x);
let _x = 200;
println!("x is {}", _x);
}
| 798fec36b299846fe48032dc35ae060b9e923c44 | [
"Rust"
] | 1 | Rust | NaoakiUmedu/rustudy | 3f8a57843e64bb3753fcd34bbf32d3d240b07620 | d5ae5db8ffdc7346d48cd5686174b20dcdba24db |
refs/heads/master | <repo_name>matcha/competitive-programming-solutions<file_sep>/Google Code Jam 2017/Qualification Round/Problem D - Fashion Show/Matrix.cs
namespace Gcj
{
static class Matrix
{
internal static bool[,] ToBoolMatrix(char[,] matrix, char charForTrue)
{
var n = matrix.GetLength(0);
... | 617d9b67616ee93d289e269d5d966565cc76790b | [
"C#"
] | 27 | C# | matcha/competitive-programming-solutions | f2cff28cf7a4accae35e6d0df0540608357ed219 | 1cf23dd60197f24e7ad8b3411e1590bb773add80 |
refs/heads/master | <repo_name>1329555958/otter<file_sep>/README.md
# 配置表说明
使用script.js生成批量配置脚本
## data_media 数据表配置
## data_media_pair 数据同步映射配置
# 常用命令
```
SHOW VARIABLES LIKE '%server%';
SHOW VARIABLES LIKE '%binlog%';
SHOW MASTER STATUS;
SELECT * FROM information_schema.PROCESSLIST p WHERE p.COMMAND = 'Binlog Dump';
```
# 流程
- MysqlCo... | 9b8987f3fad7ef26ffc2e56286d3b264cb3f742e | [
"Markdown",
"JavaScript"
] | 3 | Markdown | 1329555958/otter | f7afdf35e30080266080c840adf84e0ad78abce0 | c88b531c00df2f2ef35c5af36d460af8e9e88d0f |
refs/heads/master | <repo_name>myagoo/Hello-PHP<file_sep>/core/config.php
<?php
class config {
//Niveau de déboguage (0 = Prod, >1 = Dev)
static $debug = 1;
//Instanciation des données de connexion aux base de données
static $databases = array(
'default' => array(
'host' => 'localhost',
'database' => 'hellophp',
... | 20d44df8cf44b0a29569726ec9e044802575fd81 | [
"Markdown",
"SQL",
"PHP"
] | 35 | PHP | myagoo/Hello-PHP | 81adbf0eeb3e577f33bb74fa1147c551c15d51ea | e30a536d991263c0bf6c91c6f7bdb0dad77bf612 |
refs/heads/main | <file_sep>import socket
def Main():
port = 8000
client_binding = ('192.168.56.1', port)
s = socket.socket()
s.connect(client_binding)
filename = input("Please write the name of the file: ")
if filename != 'q':
s.send(filename.encode())
data = s.recv(1024)
... | 9b6ea846f9e1190ee0ef635def7490fec09b36e4 | [
"Python"
] | 1 | Python | fazeelhaider-ai/Personal-Transfer-Data-Protcol | e30e917a1b32a650f8fb04e5705c21759ffe27bb | 53648d9b9d5e37ca33f90c3b0f7e237653ebe5c5 |
refs/heads/master | <file_sep>// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import VueLogger from 'vuejs-logger';
import 'bootstrap';
import 'font-awesome/css/font-awesome.css';
import App from './App';
import router from '... | e397192c520ddba2214bd10b272085b8a5f04569 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | CieDigitalLabs/vuelendar | 9be319e085b9352b1c83228f7bdb4a4aab6f9ff6 | e36df37d10c3c5f5b1091912b216ac0ef39d4112 |
refs/heads/master | <repo_name>chrisna2/vuelog<file_sep>/src/json/posts.js
export default [
{
title : '첫 째 프로젝트 : JavaScript 쇼핑몰',
content : '서버가 아닌 프론트엔드 환경에서 대부분의 기능을 만들어낼 수 있기 때문에 만들어보았습니다.',
date : 'September 24, 2019',
number : 0
},
{
title : '둘 째 프로젝트 : 뷰로만든 뷰동산',
content :... | 12f4f14c7c8bc77f6cb7c55581ab7b01eb9ef7f6 | [
"JavaScript"
] | 1 | JavaScript | chrisna2/vuelog | 76b9be6e08615b8460e34359a3b662534adb396b | 85f13579df91adf358b8c9217a3d2be54eef0ae5 |
refs/heads/master | <file_sep>/*I would have implemented more methods, such as "horizontalbar", but the lines for this
ascii art are so random creating new methods would actually increase the work
needed to write the code. Also, in case you are wondering, my two special string characters are the \n
new line as well as the \\ in order... | a7e7b14244938f077992b561b429fe72df24ee5c | [
"Java"
] | 1 | Java | NHS-2019-P5-AP-Comp-Sci/asciiart-dankboi69 | e0cef45a14e380618855bf3a1955399074e08072 | fbe59d83702c1a49a4c5f6399a041408600ba3c1 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace aoc_2017.Day21
{
class Grid
{
private char[,] Elements;
public int Dimension => (int)Math.Sqrt(Elements.Length); // we know we are always a perfect square
... | 68094419f6510d2cb6ac32236afda3c8f8363572 | [
"Markdown",
"C#"
] | 64 | C# | jefflehmer/AdventOfCode_2017 | 582873944668681117d24dd72cabcbd23cd6bd91 | b55dbd9688f670252ea64d7aa617ed346fb1d344 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
namespace TwitterCollage.Models
{
public class TwitterUser
{
public string ScreenName { get; set; }
public Image Image { get; set; }
p... | 6caf5038181ce4cb744f01a1429c51e0aaf406fb | [
"Markdown",
"C#"
] | 3 | C# | almarkua/TwitterCollage | 60744fa9ee4be976b80bb4e4a9a9bc8caf4d015e | 8a4d5c3c6c6a92c0a40fef5ffe6da95d65397827 |
refs/heads/master | <repo_name>divcoder/site-codes<file_sep>/README.md
# site-codes
Bu bölüm, divcoder.com sitesinin blog sayfasında paylaşılmış çözümler için açılmıştır
Çözümlerde eklenen kodlar burada yer almaktadır.
.php uzantılı dosyaları sitenize eklemeden önce konuyu okuduğunuzdan emin olun.
<file_sep>/login-screen-style.php
<?php /... | 184f7f10dbd08d728a491e38764cd2294adf64da | [
"Markdown",
"PHP"
] | 4 | Markdown | divcoder/site-codes | fda94e56831ba8c463005c338a50abb953070ab5 | dc54f94a0c6643a98fceae389874c53e4989bb29 |
refs/heads/master | <repo_name>rchung95/urml<file_sep>/ca.queensu.cs.mase.urml.ui/src-gen/ca/queensu/cs/mase/ui/contentassist/antlr/internal/InternalUrmlParser.java
package ca.queensu.cs.mase.ui.contentassist.antlr.internal;
import java.io.InputStream;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.*;
import org.eclipse.xte... | e3e639adc93d18b1b8e61bcfc04f3854d66882ea | [
"Markdown",
"Java"
] | 3 | Java | rchung95/urml | 74078be14a3dd07ef3a362c97df3fe5ca5eb40e8 | 0936f9614961712b859bb7f2799a08058acd7bee |
refs/heads/main | <repo_name>divyesh1099/chat_application<file_sep>/src/App.js
import React, { Component } from 'react'
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import './App.css';
import Login from './components/Login';
import Chat from './components/Chat';
// function App() {
// useEffect(()=... | ee946e37ad4ec2104bbe41e44016e8a535e92eab | [
"JavaScript"
] | 4 | JavaScript | divyesh1099/chat_application | eca3d65740b49667607bee762f60c19d4cb51684 | 64909f5ad7ef04fb1ea39d754cd2f26878fc3609 |
refs/heads/master | <repo_name>matthklo/libxpf<file_sep>/include/xpf/threadlock.h
/*******************************************************************************
* Copyright (c) 2013 <EMAIL>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
*... | d90ae4c1e6e74839640c0dfc74c7d1b7e2ef88df | [
"CMake",
"Markdown",
"C",
"C++",
"Shell"
] | 75 | C++ | matthklo/libxpf | f58137582803ac04d94994d35ccafb604ce6de84 | 350704b1859771bcf06c24490e29baa1210892dc |
refs/heads/master | <repo_name>D-Poschel/PolyCheckRNN<file_sep>/test.py
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 8 17:32:29 2017
@author: Daniel
"""
import praw
import csv
import re
reddit = praw.Reddit(client_id='YcfxGiBKgBL_TA',
client_secret='<KEY>',
password='',
u... | 79da610f884d152039b814ddbf1c8519aa119d93 | [
"Python"
] | 1 | Python | D-Poschel/PolyCheckRNN | 8398798cccb09fc69bb19b78fa09c03e04226822 | 2c991bafe8e3939fd4a52f77b680a33144e5608e |
refs/heads/main | <repo_name>keithliu03/COMP7051_PONG<file_sep>/README.md
# COMP7051_PONG
3D Pong game made in Unity
Controls:
Keyboard: S and W / Up Arrow and Down Arrow
Xbox Controller: Dpad Up and Down / Left Thumbstick Up and Down / Y and A button ( Only works in player vs player )
We only had 1 controller to use.
Note: much of ... | 6d8c56b8a5b324644feab48b88ff04b8b9c4dd96 | [
"Markdown",
"C#"
] | 5 | Markdown | keithliu03/COMP7051_PONG | ffb9c2a40758cd85994e11be9c6820e3948608c1 | c02e73754159e9b849fbb012de170c846ecc9bc6 |
refs/heads/master | <file_sep># StudentList
## Simple CRUD application made with Spring Boot and secured with Spring Security
- Spring Boot
- Spring Security
- Thymeleaf
- H2 database
- Bootstrap
Usage (with eclipse):
1.) Clone the project
2.) Eclipse: File -> Import -> Maven -> Existing Maven Projects
3.) Run
4.) Navigate to localh... | 5084fc9165878d2924ec909c634a4219e372a245 | [
"Markdown",
"Java"
] | 2 | Markdown | hendisantika/student-list-secure | da3a78b521659dc4976e3c924313601dcf2d38de | 7b96ee2c8117846e32f93a8440b43a25f7742495 |
refs/heads/master | <file_sep>from bs4 import BeautifulSoup
import requests
import sqlite3
c = sqlite3.connect('nyc.db')
# Create table
c.execute('''Drop TABLE communityBoards''')
c.execute('''CREATE TABLE communityBoards
(board text, area text, pop text, normedPop text, neighborhoods text)''')
r = requests.get('https://en.... | 2b666154447702f2096ff5f7f90ded1bfa936108 | [
"Python"
] | 1 | Python | grutt/nycTables | 608b23b3af3e124fb9fec915ee805c1a34dc9fbf | 75e841fec7360170a89fd65a11917ca7ad69b1c3 |
refs/heads/master | <file_sep><?php
function sendNotification($token, $payload){
$url = "https://fcm.googleapis.com/fcm/send";
$fields = array(
'to' => $token, //"/topics/test",//$tokens,
'data' => $payload
);
$headers = array(
'Authorization:key=<KEY> <KEY>',
'Content-Type... | 16085cbc7520f2d15c69730c0dee5488c2250f1c | [
"Markdown",
"PHP"
] | 2 | PHP | matiur1000/Firebase-Cloud-Messaging-FCM- | 552c61f8051318f9b454a5480c7c120fb2500b57 | 0cc6ad35ab89d275ac9263e36d515733fd57264c |
refs/heads/master | <file_sep># etch-a-sketch
Etch-A-Sketch made with JQuery for TOP.
<file_sep>function initializeMatrix(matrixSize) {
var cellSize = 1000 / matrixSize;
$('#container').empty(); // Removes any pre-existing cells
for (var i = 1; i <= matrixSize; i++) {
$('#container').append('<div class="cell clear-left"></d... | 452b477fc69aae00077ec2c637624b1028ddcc5d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mgiagante/etch-a-sketch | d1facb9397f2cc7a3c29bab236ff5f5f3af636e3 | 519092487082c9a338f503ee4c96768995372149 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
cd ~/.ubuntu && vagrant up && vagrant ssh
<file_sep>#!/usr/bin/env bash
mkdir ~/.omnios
# copy files needed by vm
cp -f ./mdb_v8_amd64.so ~/.omnios/v8.so
cp -f ./run-mdb.sh ~/.omnios
# temp copy vagrantfile
cp -f ./omnios-Vagrantfile ~/.np-temp/omnios-Vagrantfile
vagrant box add omnio... | ea8ac255477aabae3630b6bd83710246b4bf6b8f | [
"Shell"
] | 9 | Shell | ICEDLEE337/node-profiling | bad32016e3f8f7499d5d67b5e0e8530ca4f1a052 | 893ee97a2e85e04ce8ead24b3420689f02da168d |
refs/heads/main | <repo_name>joeltonluz/todo-list-react<file_sep>/src/Components/AddArea/styles.ts
import styled from 'styled-components';
export const Container = styled.div`
display: flex;
align-items: center;
border: 1px solid #555;
border-radius: 15px;
padding: 10px;
margin: 20px 0;
.image {
margin-right: 5px;
... | 7264d48c47539f03d7e2fb38ba4156d6c33361a0 | [
"TypeScript"
] | 1 | TypeScript | joeltonluz/todo-list-react | 0e1ed956daa995f1d133d8efc8b96a6ca98f92d6 | 563a88135f8e17839e88936183077b767abb45f4 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 2.8.3)
project(bag_tools)
find_package(catkin REQUIRED COMPONENTS rospy sensor_msgs)
catkin_package()<file_sep>#!/usr/bin/env python
###############################################################################
# Duckietown - Project Unicorn ETH
# Author: <NAME>
# Subscribe a... | b1ee261d3305e76192feba32fcc2fa7820bbbd61 | [
"Python",
"CMake"
] | 2 | CMake | duckietown-project-unicorn/bag_tools | 3b1c2179e8e77cc37e0fd85e7e1d83e8a2ae3a4a | 7c251b123eb5e551dd9e06e96085cf704191f8f4 |
refs/heads/master | <file_sep>import "./App.css";
import Paper from "@material-ui/core/Paper";
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import FirstPage from "./components/FirstPage";
import BuyNextOne from "... | e6b9bee50d1b4642943c9a4b5b501cdbb3c2c030 | [
"JavaScript"
] | 4 | JavaScript | hannanuddin78/inax-gateway-with-material-uI | f673db79fa256cddace9acf22e781cb85e700b8d | 28f3dc34715d123672f336caddc67c54d0e826ad |
refs/heads/master | <repo_name>tf198/phpqueues<file_sep>/tests/FIFOTest.php
<?php
require_once "bootstrap.php";
class FIFOTest extends PHPUnit_Framework_TestCase {
const DATAFILE = 'data/test.fifo';
private $fifo;
function setUp() {
if(file_exists(self::DATAFILE)) unlink(self::DATAFILE);
$this->fifo = new ConcurrentFIFO(self... | bb10424e7874c4f24067cef906ad2eaf27ef9b0b | [
"Markdown",
"PHP"
] | 17 | PHP | tf198/phpqueues | f77f35d6011e8f49b14d3b23925dded8055a4b0b | 6b7f1253f101511fafc037d0eae25b0d2605085a |
refs/heads/master | <repo_name>darrylhodgins/TB6612FNG-Particle<file_sep>/firmware/tb6612fng-particle.cpp
#include "tb6612fng-particle.h"
/**
* Constructor if you're only using 1 channel of the TB6612FNG.
*/
Tb6612fng::Tb6612fng(int in1, int in2, int pwm) {
_numChannels = 1;
_pinStby = -1;
setupChannelPins(TB6612FNG_CHANNEL_A, in1, ... | f1d15889c0c553ad3f5dca890a15676ea7b235dd | [
"Markdown",
"C++"
] | 3 | C++ | darrylhodgins/TB6612FNG-Particle | bc0b7a640fd6a60321a8fbd03667e7ab748f5298 | d6658acbf5cfb0bcfdeb3804d1602bbcb1e245de |
refs/heads/main | <repo_name>SayHelloRoman/Professor<file_sep>/Professor/cogs/main.py
from dislash import *
from discord.ext import commands
from discord import Game
class mycog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_slash_command_error(self, ctx, ex):
... | 9b56c2d3518268af0d05fa70857767f75da8e37a | [
"Markdown",
"Python",
"Text"
] | 7 | Python | SayHelloRoman/Professor | 2df2b16edc27c7b42dee3781724dea7160c5a77a | 60cee5189c6c855803c54478192786731d544aff |
refs/heads/master | <file_sep>namespace UnitTest
{
#region << Using >>
using System.Configuration;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using Incoding.MSpecContrib;
using Machine.Specifications;
#endregion
////ncrunch: no coverage start
public class MSpecAssemblyContext : IAsse... | b453999e365dea931181320d73d85dc00b95ac6e | [
"C#"
] | 2 | C# | Incoding-Software/VSIX | e40b110521bcabb7bbaedd15c5f12ca7a1890bb1 | b061e71e3ca2684cdddca9268a07cff3b8e6b939 |
refs/heads/main | <file_sep># TencentOpenAPI
[TencentOpenAPI 3.5.5 pod化](https://wiki.connect.qq.com/sdk下载)
<file_sep>Pod::Spec.new do |s|
s.name = 'TencentOpenAPI_iOS_V3'
s.version = '3.5.5'
s.summary = 'TencentOpenAPI, why not pod'
s.homepage = 'https://github.com/fengyang0329/TencentOpe... | d924976f76d9e288cb97caf48196b684c38a9c8e | [
"Markdown",
"Ruby"
] | 2 | Markdown | fengyang0329/TencentOpenAPI | 1d54a68c0e903f3ad5fef2ff5ea33db12005d58b | 465519a4dd6e08564326ed89a5af932aff383144 |
refs/heads/master | <repo_name>drwilkins/1dviz<file_sep>/README.md
# 1dviz
Simple 1-dimensional data visualization for middle schoolers and up.
<file_sep>/app.R
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# ht... | 2dc3d1e12043dde2b1642aca1db82f3a23aaa33d | [
"Markdown",
"R"
] | 2 | Markdown | drwilkins/1dviz | 1d9144e26f6014ff8f58f117471c465067fc762f | dbf2df29485bf2029e3a0634c96688c373bd0ff5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.