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/main | <file_sep># sistema_frete
Estudo de caso para a disciplina de Engenharia de Software, utilizando Bean Validation, Junit e Spring Boot
| fa14751869033ea6fb223b3b856f29eb5c4b9495 | [
"Markdown"
] | 1 | Markdown | vivialmeida/sistema_frete | e746915afe1895c3eeb1fb9ee7e45a331766685b | 478b7b315385637fb2295e15273a9ba163875ad3 |
refs/heads/master | <file_sep>docker network create --scope=swarm proxy
echo 'Created docker proxy network'
echo 'Running chmod on acme.json'
chmod 600 ./acme.json
echo 'Starting services...'
docker stack deploy traefik --compose-file docker-compose.yml
echo 'All services up...i think...'
<file_sep>echo $(htpasswd -nb $1 $2) | sed -e s... | 3503f6b3c5b126633ff46e6433607adbdcdb02c3 | [
"Shell"
] | 2 | Shell | dodevs/swarm-portainer-traefik | e4b815c7776f43b067bc033815d8deef62875f67 | 5a55699b047c8691f15a055aa7405fa775fcd292 |
refs/heads/main | <repo_name>bedairhassan/Minimalistic-Social-Media<file_sep>/src/JS/tools.js
let shortDate = ()=>{
let date = new Date();
date = date+''
date = date.split(" ")
return date[0]+' '+date[1]+' '+date[2]+' '+date[3]+' '+date[4]
}
// export const shortDate;
module.exports={
shortDate
}<file_sep>/src/JS/fi... | 70c09b8f37df4f0012cfeea064a515db51a0e005 | [
"JavaScript"
] | 4 | JavaScript | bedairhassan/Minimalistic-Social-Media | 13b6d76242817c268dbfdda0c5127085a77bbf00 | 9a76d2234386eb620ba2080aadb1b560c406fa8e |
refs/heads/master | <repo_name>jreiss98/365<file_sep>/csc365a1/Similarity.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package csc365a1;
import java.util.ArrayList;
/**
*
* @auth... | bffc4dc56e61724db8bee7227f92dc81b90ab2ae | [
"Java"
] | 1 | Java | jreiss98/365 | 6322d81e6c855224ffb65ee629715b0f71f562a8 | e9d23c99b410336308f1150ffee2459453aac138 |
refs/heads/master | <repo_name>aleksandr5rikin/online-banking<file_sep>/src/ua/nure/petrikin/OnlineBanking/web/command/client/ConfirmPayCommand.java
package ua.nure.petrikin.OnlineBanking.web.command.client;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.serv... | 1dcc49a31fb7450f5cb2b0c9a9d884d14b634839 | [
"Java"
] | 12 | Java | aleksandr5rikin/online-banking | 5a1cb2bd04544fa72ebb3a8fa91289a6023e6888 | df115851d54fbb9a3474d62a43be980919c641e1 |
refs/heads/master | <repo_name>jinzhu6/Realtime_Flaw_Object<file_sep>/Database.py
import sqlite3 as lite
from enum import Enum
from PyQt5.QtGui import QPixmap
class Database():
__instance = None
@staticmethod
def getInstance():
if Database.__instance is None:
Database()
return Database.__instance... | 5665fa7572317d13be18b127c90a04db3570822a | [
"Python",
"Text"
] | 15 | Python | jinzhu6/Realtime_Flaw_Object | e963d8698d2db1a2d4e832cffea36aa8a008c27e | ba808f88f601e2df6f07d8c0febc6509bfc804fb |
refs/heads/master | <repo_name>JohannesBuchner/flight-reservation-emails<file_sep>/testparser.py
import notmuch
import os
import emailparser
import sys
import logging
dbpath = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'test-private')
dbpath = sys.argv[1]
db = notmuch.Database(dbpath)
query = db.create_query(sys.argv[2])
i... | c3f9cc53bfe032eddb321f1db2ae8a03512e045c | [
"Python",
"reStructuredText"
] | 5 | Python | JohannesBuchner/flight-reservation-emails | f741dec74e3c86e3b580f8df09aa95dee95b3c39 | 51b931b949fea9734dc40ac7b4a56ef91aaba89c |
refs/heads/master | <repo_name>temitope101/Time-Series-Prediction-with-LSTM-Recurrent-Neural-Networks-in-Python-with-Keras<file_sep>/TensorFlow-Tutorials-for-Time-Series.py
sudo -H pip install sklearn
# sudo -H pip install lstm_predictor
sudo -H pip install keras
sudo -H pip install readline
# doesnt work on windows
#Could not ... | 741a0e16d27d60b7b375d14b320cc540d10d4d72 | [
"Markdown",
"Python"
] | 4 | Python | temitope101/Time-Series-Prediction-with-LSTM-Recurrent-Neural-Networks-in-Python-with-Keras | 71937e6b25736c17bdc68abea0519f88f7410077 | 4bb08bca1fbff84ee0f80ee0be63437114fbeb9d |
refs/heads/master | <repo_name>Mateus-magarinus/FACULDADE-Desenvolvimento_de_aplicacoes_Web<file_sep>/Desenvolvimento_de_aplicacoes_Web/TaskPoints/ListaExercicios/php/ex01.php
<html>
<head>
<title>Exercicio 01</title>
<meta charset="utf-8">
</head>
<body>
<h2>Ordenação de 5 numeros</h2>
<form method="post" action="">
<inpu... | 8b51dc5d1f6016a9552a88abd3cc455a8ac55767 | [
"PHP"
] | 9 | PHP | Mateus-magarinus/FACULDADE-Desenvolvimento_de_aplicacoes_Web | 0d8377416a16985d1b9167809d97ca1c27030585 | af2288319c692c8b56e06e3176d70afd09190a57 |
refs/heads/master | <file_sep>
# `bash_ec2_completion`
Bash helper script that fetches ec2 instances via aws-cli
and adds their Name=>PublicIp pairs to ~/.ssh/config
and thus allows you to see them with SSH completion
and to connect by their names
## The benefits
`bash_ec2_completion` is written in pure shell scrit, and
depends on aws-... | 728cba0174946aaf0884263cf40e95afc4de61c1 | [
"Markdown",
"Shell"
] | 2 | Markdown | phoebus/bash_ec2_completion | 82c25311d8e94f6efa13161eef9017f934a62e48 | a1bb295b350cef378fd663de948a899a61069721 |
refs/heads/master | <repo_name>johnsonchon/dotimg<file_sep>/home.js
// search
const homeForm = document.querySelector('.home-form');
const nav = document.querySelector('.nav')
window.onscroll = () => {
const top = window.scrollY
if (top >= 100) {
nav.classList.add('nav-shadow')
} else {
nav.classList.remove('... | 2601eb034b5093affb2b0a7618aa82823ee5a486 | [
"JavaScript"
] | 1 | JavaScript | johnsonchon/dotimg | 1875ed95202dbdd1df6684b6572e084ec0afc3ea | fa04fc64bddd5555ccf705d36728acf241533785 |
refs/heads/master | <file_sep>def cipher(message, rot):
ciphertxt = ""
polishw = ["zero", "jeden", "dwa", "trzy", "cztery", "pięć", "sześć", "siedem", "osiem", "dziewięć"]
numberspl = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
for polishwords, polishnumbers in zip(polishw, numberspl):
if rot == polis... | 9cb6886863626d59e844141c8fa49b3b40cd284a | [
"Python"
] | 2 | Python | monika-voy/caesar-cipher | c124c6e99e2beecc6e5cdeecfd2553d94489b19d | e002e78b5e1dfd3bde382cb04f3357be4f1e174c |
refs/heads/master | <repo_name>maxnawa31/C-T-C-I<file_sep>/README.md
# C-T-C-I<file_sep>/algos.py
def fibonacci(n):
if n < 2:
return n
else:
return fibonacci(n - 1) + fibonacci(n - 2)
#stairs combination
def davis(n, memo={1: 1, 2: 2, 3: 4}):
if n in memo:
return memo[n]
memo[n] = davis(n - 1, mem... | a631618b2c1c80b5fd7a16ba86102105c9b039de | [
"Markdown",
"Python",
"JavaScript"
] | 3 | Markdown | maxnawa31/C-T-C-I | c35dc2fdbdeac0fb496f7c6e36d8fe5d7357dd42 | a3a9711536ab64576346f86a7bccdd57f4184bc4 |
refs/heads/master | <file_sep>package center.rodrigo.main;
import java.io.IOException;
import com.leapmotion.leap.Controller;
import center.rodrigo.core.Core;
public class Main {
public static void main(String[] args) {
Core core = new Core();
Controller controller = new Controller();
controller.addListene... | 95aad56ca03a52d7fe30aae000e47c0e63ea6abb | [
"Markdown",
"Java"
] | 3 | Java | rodrigaun/BasicLeapMotionJava | 26fd1b452f8c974c7b1a0e62c5a5de1514ff5897 | 2db895bb6e6877d6446634b2358acc52ac308aad |
refs/heads/master | <file_sep>/* eslint-disable */
export const regPhone = /^1\d{10}$/ // 手机号
export const regEmail = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
// export const regEmail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ //邮箱
export const regpassword = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^]{8,20}$/ // 密码8-... | f986f37b6d66c68da5a4f3cf7a54063b50a70176 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | 412826tao/spa-base-web | bd9ea7974fd67aa800916babf257e72f95c1c208 | 12131017ae18cdf64334a6cb79f2993fc8d02bb1 |
refs/heads/master | <repo_name>leofusco89/AndroidAvanzadoClase02<file_sep>/settings.gradle
include ':app'
rootProject.name='AndroidAvanzadoClase02'
<file_sep>/app/src/main/java/com/example/androidavanzadoclase02/utils/UsersFactory.kt
package com.example.androidavanzadoclase02.utils
import com.example.androidavanzadoclase02.models.User
c... | 1cff546c3d0a0384ef5d7ba2fd27d62ad1b56b5d | [
"Kotlin",
"Gradle"
] | 6 | Gradle | leofusco89/AndroidAvanzadoClase02 | 9a8a9411c8b898dbd7027b12eee7be169f554c2f | e0c96ce6a3d0418901078afa9d6f2a226b127452 |
refs/heads/main | <file_sep>#Display the output
print("First Python File")
<file_sep># Data-science-practise
This is a repository for data science and data analysis and to practise some procedures, tools and applications of Data Science.
Lets begin! :)
<file_sep>#Creating a test source code file for the child branch
print("This was cr... | 0a79dba65134ac294ec43a3cf35ef5f215155f8c | [
"Markdown",
"Python"
] | 3 | Python | nit-b-s/Data-science-practise | c42dfa54ff468ab1b3e4b967b7b3860349896737 | c0c9558e57356673c4f03c19c2530e7387024d8e |
refs/heads/master | <repo_name>mordehaigerman/Glove-SQL-Tables<file_sep>/schema-pgsql.sql
/*
* Glove SQL Tables
*
* Copyright (c) 2010-2013 <NAME> (http://mordehaigerman.com)
*
* This source file is subject to the New BSD License that is bundled
* with this package in the file LICENSE.txt. It is also available at
* http://www.open... | 32b640c163d044bf54599e817bb40aff9faacecd | [
"SQL"
] | 1 | SQL | mordehaigerman/Glove-SQL-Tables | 5088eb158b154682071d413525649ef1a7d482fc | 6e6ac0725e929e61979c3faf2d1bff90f2fa1ec4 |
refs/heads/master | <repo_name>HussainAther/drmario<file_sep>/src/colors.py
black = (0, 0, 0)
blue = (43, 85, 117)
brightred = (255,0,0)
brightgreen = (0,255,0)
green = (0, 200, 0)
darkblue = (76, 48, 124)
darkgray = (15, 15, 15)
red = (182, 70, 58)
white = (255, 255, 255)
yellow = (255, 248, 68)
<file_sep>/src/dublock.py
class dublock(ob... | d5161732d24d8e7a0edc845fcbccafaec02091af | [
"Markdown",
"Python"
] | 8 | Python | HussainAther/drmario | 9e3ea4a2658daa1d47f980c8ed8f691b5c0919ba | 53d8cb251714eed148e5eceb34f76811987c9c2e |
refs/heads/master | <file_sep>var url = "スプレッドシートの公開URL"
var book = SpreadsheetApp.openByUrl(url);
var date = new Date;
var nengatsu = Utilities.formatDate( date, 'JST', 'yyyy年M月');
var nowTime = Utilities.formatDate( date, 'JST', 'HH:mm:ss');
var nowDay = Utilities.formatDate( date, 'JST', 'dd');
var sheet = book.getSheetByName(nengats... | f50036c4baea211300d37f401c3480d3fdb9c33a | [
"JavaScript"
] | 2 | JavaScript | takashifujii/writeSpreadsheets | be29068fe61e9046e2e94607f0d4dbd1eacaf5b0 | ec72921f558c3e3527e77edecdcf8f1557efcc89 |
refs/heads/master | <repo_name>taxishare/api<file_sep>/_include/calculate_path.php
<?php
function calculatePath(){
if(date('H') < 6 || date('H') > 22)
{
if( date('N', time() ) > 6 )
$quota = 4.5;
else
$quota = 3.0;
}
else
{
$quota... | cf8b9cc3629c579bab48e36e2b86872be816c9b1 | [
"PHP"
] | 3 | PHP | taxishare/api | 6379312eeb1f25c5369c7a8414acc025781bc150 | 4fa631b3df54f31b31abd181682f59314938f940 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
if [ ! -z "${VAULT_PASSWORD}" ]; then
echo "Using vault password from VAULT_PASSWORD environment variable" >&2
fi
echo "${VAULT_PASSWORD}"
<file_sep># Python images
This directory contains a Dockerfile for the uisautomation python image. This
image is simply the upstream Python Alpine... | 06ed523e6d09d0dc1e9157d4b6e773d4cd6d3055 | [
"Markdown",
"Text",
"Dockerfile",
"Shell"
] | 7 | Shell | uisautomation/dockerimages | c99e277885fc94a69b859d62a79334b8d9912cf1 | 240fdb48dde984c8d02a534c68ce7818dc1e9307 |
refs/heads/master | <file_sep>import "./estilo.css";
import "react";
export default props => (
<h1>blevers!!!</h1>
)
console.log("blevers");<file_sep># exercidios-webpack
| b1cfb87c49ddaf3424810c261d4eec2642b67cae | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | gfauth/exercidios-webpack | d6a85fd1e4be72e1b5bf8693344f02acd3f1ef67 | 7900b8e7926a189b8765136dbb15bc82eda3390d |
refs/heads/main | <file_sep># EStarGmbH-Solver
A Tampermonkey / Greasemonkey Script which auto-solves the EStarGmbH Arbeitssicherheitsmodule Questionnaire.
Main Author: <NAME>.
Use at your own risk!
Instructions:
* Just install in Tampermonkey / Greasemonkey
* Open a Questionnaire in the EStarGmbH Platform
* Script automatically r... | d3bf81fdb2ffedcf2294b26edf651b7ea4ab5b07 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | rom-1/EStarGmbH-Solver | 4dabf5cca107d12ba2f4ae2281c0d9ed359dbf10 | bdce74d019c2030581044f69f8baf9e7a148e517 |
refs/heads/master | <repo_name>bmikailenko/cs320finalproject<file_sep>/doc/README.md
# cs320milestone1
Milestone 1 assignment for CS 320 Fall 2019
PROJECT DESCRIPTION:
PDF Share and Schedule is an online web application that allows users to:
1. Share PDFs
2. Organise PDFs according to a schedule
PDFs are uploaded. The user uploading... | 50ac6ec581e2f58f8407fe5f4a831e41e3a06c26 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bmikailenko/cs320finalproject | b9f6c0fd68c2cbdf69f0b5b3acc39c41eaea2512 | 2167e90b0f5f6007f417ea4646c70e9ec9d02a9f |
refs/heads/master | <repo_name>mfamis/WritingPromptsEbook<file_sep>/settings.py
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.getcwd(), ".env")
load_dotenv(verbose=True, dotenv_path=dotenv_path)
CLIENT_ID = os.getenv('REDDIT_CLIENT_ID')
CLIENT_SECRET = os.getenv('REDDIT_CLIENT_SECRET')<file_sep>/writing_prompts_... | 2084c76b358dbc97d97329acf028467a6da030f8 | [
"Python"
] | 2 | Python | mfamis/WritingPromptsEbook | 5cc8199a72d6d5527d2235d3c68dacd6c9b01594 | 05c6dadd8711f8e0ceb8f32722231c4e568cc978 |
refs/heads/master | <file_sep>//// Write any custom javascript functions here
$(document).ready(function() {
$("#owl-demo").owlCarousel({
autoPlay: 3000, //Set AutoPlay to 3 seconds
items : 4,
itemsDesktop : [1199,3],
itemsDesktopSmall : [979,3]
});
});
//----------------------NAV bar
//-------------... | 1b3012f6e748982a04f349491ddebfa5daae7353 | [
"JavaScript"
] | 1 | JavaScript | DandiW/dandiw.github.io | e47802e5766928b87931965dbd9ddccda9d0f6b4 | 20c876a140ece4ab4229a9c5bcf486a76abc1235 |
refs/heads/master | <file_sep>let debug = require('debug')('generateSymbols');
let generateSymbols = (number) => {
if (typeof number != 'number') {
throw new Error("You must specify the number of symbols to generate.");
}
let symbols = new Set();
for (let i = 0; i < number; i++) {
symbols.add("S" + i);
}
return sym... | 17fcc0694a7793aaad078e83d2e9622b6a4ba8a1 | [
"JavaScript",
"Makefile",
"Markdown"
] | 8 | JavaScript | marmelab/dobble | 41332c760ba7b3698059f7759b7ed9da59e78ef4 | 0d5db34e604dd0f6d85fe92bc1693e64f3285d5c |
refs/heads/master | <file_sep>package main
import (
"fmt"
"os"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
)
// DBConfig DBConfig
type DBConfig struct {
User string
Password string
DBName string
}
func dbConfig() *DBConfig {
var user = os.Getenv("DB_USER")
if user == "" {
user = "root"
}
var p... | d5089711b8dc17c6a8eae1d728dab05374b32e1f | [
"Go"
] | 1 | Go | tett23/mizuaoi-v2 | 27bb24487a5bf01e50b731d916b4d7821830dbf5 | 0f0e5c78e1d2d46b1bbbbe36c4cf6826e3bd1807 |
refs/heads/master | <repo_name>tania15/Data-structures<file_sep>/List.h
#include <iostream>
using namespace std;
template <typename T>
struct Node
{
T data;
Node<T>* next;
Node(const T& dt, Node<T>* nxt = NULL)
{
data = dt;
next = nxt;
}
};
template <typename T>
class List
{
private:
Node<T>* first;
Node<T>* last;
size_t co... | 0a184b0f99dc8fea7a80e119e107afa7e1afca01 | [
"C++"
] | 1 | C++ | tania15/Data-structures | 1f42ce05c6c5903876a3e051625cc8e252f2426e | 85739aaa076c4f46794e84e1481e40b55bd4d6a2 |
refs/heads/master | <file_sep># Project_Euler_Solutions
Beginner Programmer show casing his way of solving these problems
<file_sep>#project_euler_question_1.py
#If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
#the sum of these multiples is 23.
#Find the sum of all the multiples of 3 or... | d38c8ad848fa3385456c5bad9b29778cf2de25a5 | [
"Markdown",
"Python"
] | 2 | Markdown | Luis-Macias/Project_Euler_Solutions | 6b77849e0a01cfab3b3e931b6fbbf428d8e858a1 | 08919d8e73d20f16420984683262da34de7f2830 |
refs/heads/master | <repo_name>LudwigCRON/sphinx-pywave<file_sep>/setup.py
from setuptools import setup, find_packages
project_url = 'https://github.com/LudwigCRON/sphinx-pywave'
requires = ['Sphinx>=1.8']
setup(
name='sphinxcontrib-pywaveform',
use_scm_version={
"relative_to": __file__,
"write_to": "sphinxcontr... | c60cd26d72439ced0fde2e5304b1895f89f8432f | [
"Python",
"reStructuredText"
] | 3 | Python | LudwigCRON/sphinx-pywave | d5bd0d80c199d3f99dea8a1d984dd316e2654f76 | a492d6b16fb7d6fe189bf8175b82ae0dd48183e1 |
refs/heads/master | <file_sep>import LazyRoute from "./lazyRoute";
export {
LazyRoute
}<file_sep># parcel-demo
尝试使用parcel打包react项目
* 2018-2-2 增加分页面打包功能
* 不灵活的配置:零配置的 Parcel 关闭了很多配置项,在一些需要的配置的场景下无法改变。例如:
```javascript
无法控制输出文件名的 Hash 值和名称;
无法控制构建输出目录结构;
无法映射路径以缩短导入语句;
HTTP 开发服务器不支持 HistoryApi ;
```
* 缺点
```javascript
不支持 SourceMap :... | 45f436f588702d5b57506681b6092881b68e3ecc | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | wangxiaofeid/parcel-demo | 7e591adb889d2c287d88f645d37696f9a0d8804f | 245c1bb38930921f0e4e362407d42833862ce0e6 |
refs/heads/master | <file_sep>var fmt_str = new Array();
fmt_str[0] = '(FLV, 320 x 240, Mono 22KHz MP3)'; // delete ?
fmt_str[5] = '(FLV, 400 x 240, Mono 44KHz MP3)';
fmt_str[6] = '(FLV, 480 x 360, Mono 44KHz MP3)'; // delete ?
fmt_str[34] = '(FLV, 640 x 360, Stereo 44KHz AAC)';
fmt_str[35] = '(FLV, 854 x 480, Stereo 44KHz AAC)';
fmt_... | 423e490c0c7aaa9bde7910dc0da5d04384f7e99b | [
"JavaScript"
] | 1 | JavaScript | peterwillcn/flvretriever | 59073980ab2b8a95cd098a63ed4ffcd7ad07b824 | f957e618fb1c01174524d12396865302e9adbd9e |
refs/heads/master | <file_sep>"""This file contains code for use with "Think Bayes",
by <NAME>, available from greenteapress.com
Copyright 2012 <NAME>
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
"""This file contains a partial solution to a problem from
MacKay, "Information Theory, Inference, and Learning Algorithms."
... | e663ed89347c81c7122adcfdb00afe63d3a5b052 | [
"Python"
] | 2 | Python | stringertheory/ThinkBayes | b7193dc76bd87c2766192bb663ddec0cc31329c5 | f870fc5d0e13ade9d78347122fa7f41098e7ba04 |
refs/heads/master | <repo_name>PrayagPanta/Grade-Automation-System<file_sep>/blog/templates/blog/complaint_teacher.html
{% extends "blog/base.html" %}
{% block content %}
<h2 class="Info2 content-section">You have received following Complaints</h2>
<br>
<p class="Info content-section" style="height: 400px; overflow-y: scroll;">
N... | c96459d0a77ae8476e43d2533e1aba92d430de80 | [
"Markdown",
"Python",
"HTML"
] | 20 | HTML | PrayagPanta/Grade-Automation-System | 4ae54666c55ff3bf3ed5b70c8c6c703e3769ae35 | cc38592e50593ec641f2e8a44ffae536ae018ec6 |
refs/heads/master | <repo_name>puyangsky/DockerHubCrawler<file_sep>/dockerhub/items.py
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class OfficialImageItem(scrapy.Item):
# define the fields for your item here like... | 0f832f1d7cd62ffd739bb09e2636cb4728284665 | [
"Markdown",
"Python"
] | 4 | Python | puyangsky/DockerHubCrawler | 898e0f5566c207c5047361b17bd6bbf2c71308c6 | c21d188d658eedfc5ce21b015aeb8c7b86a0bb12 |
refs/heads/master | <repo_name>gsavickas/ReactApp<file_sep>/my-app/src/components/Todos.js
import React, { Component } from 'react';
import TodoItem from './TodoItem';
<<<<<<< HEAD
import PropTyes from 'prop-types';
=======
import PropTypes from 'prop-types';
>>>>>>> 4e468b374c322b0f8038fe54d37038832de4ecd8
class Todos extends Component... | ff6ba1eaa93c9ec694412cf00eade3cde199ca41 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | gsavickas/ReactApp | 7a8cba48c5441e10172e658f0f54e5100fd48fd8 | c13dfe983bc128341362d26a19fba2773f9ac5e7 |
refs/heads/master | <repo_name>henan715/scrapyShangHaiBook<file_sep>/txt2excel.py
# coding:utf-8
import xlrd
import xlwt
def saveToExcel():
"""
save the content from createBsObj(content) into excel.
:param content:
:return:
"""
wbk = xlwt.Workbook(encoding='utf-8', style_compression=0)
sheet = wbk.add_sheet("sh... | 4c318e814840d83561cc2e868a2bdef99c659c3f | [
"Markdown",
"Python"
] | 3 | Python | henan715/scrapyShangHaiBook | 79236ee9f6880515ab030df8b38bccf14099dea1 | 35319d00728d6cda87133e89213b83fc79140e5f |
refs/heads/master | <repo_name>prakashio/spring-cloud-cache<file_sep>/src/main/java/com/programmingarea/springcloudcache/repositories/UserRepository.java
package com.programmingarea.springcloudcache.repositories;
import com.programmingarea.springcloudcache.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import j... | e35f0dce292d0128b64b1e6701f961f68266a0cc | [
"Java",
"INI"
] | 5 | Java | prakashio/spring-cloud-cache | b1615150966761d65cde2e1df09f100f2bb3379b | e02af58079bbad5703936cc0fbb9961859dc87f4 |
refs/heads/master | <file_sep><?php
require("new_slice.php");
require("unary_minus.php");
require("tokenizer.php");
require("shunting_yard.php");
require("compare.php");
// always run this function first before doing anything else
// relied upon by tokenizer and shunting_yard
declare_globals();
?>
<file_... | 6f1c7c0c22025308cfd9cbcc12e8ddc3aa4c90d9 | [
"Markdown",
"PHP"
] | 7 | PHP | saligrama/MCGExpression | 77a30dd4b24800a70e6fb1bdc5c17806a93cb4f5 | f7220fec49af6399aab3be6010b9425a4555c273 |
refs/heads/master | <file_sep>##PROGRAMA ##
def romeu_julieta(val: int) -> str:
if val == 3:
return 'queijo'
if val == 5:
return 'goiabada'
<file_sep>#### Unittest - Introdução #####
'''
Introdução
PROBLEMA
RODAR
python -m unittest <file_unit.py>
'''
import unittest
from programa import romeu_julieta
class Test(unittes... | f4e6be54d43ffab67b5a3524953dde66a994e3c4 | [
"Python"
] | 2 | Python | MarLops/PYTHON_ESTUDO | d642db048d8f75c13e66a2deb923e760bec0fbcb | 7de54bb5f2b0cba005de32bb98a4148a1c31b2b4 |
refs/heads/dev | <repo_name>GabrielBourdette/symfony<file_sep>/src/Controller/ProductController.php
<?php
namespace App\Controller;
use App\Entity\Product;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Componen... | 7a53f4a53fdff4710198c84ad126e39005fbb3d1 | [
"PHP"
] | 6 | PHP | GabrielBourdette/symfony | 130cbacf90cec9ae078f3b5cf057ade81dfa0965 | 442492b97e7a0cbdbf929ba8c4969d9fa46e144f |
refs/heads/main | <repo_name>insignificantGuy/Exam-Result-Analysis-System<file_sep>/app.js
const express = require('express')
const app = express();
const path = require('path')
const data = require('./data/23.json')
const bodyParser = require('body-parser');
const fs = require("fs");
var http = require('http');
const { ChartJS, ChartC... | 6a1da4d54d48bfb2474001a382be8226b14fa6db | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | insignificantGuy/Exam-Result-Analysis-System | 049ed2b5dce6228cdac7a04339a3ca96cba86e3f | 7e521ca2a300e4e5f3d17e7b9a963674e84e9e01 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
#
# Bootstrap Script
#
# bin/bootstrap: Resolve all dependencies the application requires to run.
set -e
MISSING=0
RED='\033[0;31m'
#GREEN='\033[0;32m'
NC='\033[0m' # No Color
cd "$(dirname "$0")/.."
# Ensure Homebrew dependencies are installed if using a Brewfile
if [ -f "Brewfile" ]... | e93a5302315a28389ad393abe6bfb6ea487b73c9 | [
"Markdown",
"Shell"
] | 10 | Shell | unclesnottie/fallout_hacker | b60365bc3accd42e4eead49ffc345ba82c08e7a3 | d0c773dcc40a69a04b78e73fd914f04a4666a48a |
refs/heads/master | <repo_name>sss22213/ds4_driver<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(ds4_driver)
find_package(catkin REQUIRED COMPONENTS
message_generation
std_msgs
sensor_msgs
)
add_message_files(
DIRECTORY msg
FILES Feedback.msg Report.msg Status.msg Trackpad.msg
)
catkin_python_setup()
... | c679ae7bb0fa64daf1bd07d91c4e705545a1607a | [
"Python",
"CMake"
] | 4 | CMake | sss22213/ds4_driver | f2b61b9acd08221b375d299ec5edec91e6312d53 | e2318c5463f883e6322564954909b515f61f54bc |
refs/heads/master | <file_sep>import { API_BASE_URL } from './Constants';
import { authHeader } from '../Utilities';
export const employeeService = {
getAllEmployees
};
function getAllEmployees() {
const requestOptions = {
method: 'GET',
headers: authHeader()
};
return fetch(`${API_BASE_URL}/employees`, ... | cc98b0b40d5030c135cef1076c51140a3525b5ff | [
"JavaScript"
] | 7 | JavaScript | RichaSharma-UI/rs-solutions | 3793571cb609957a294e837dbc8e2a677c59fcc1 | dcf292cd86ee7c5980e9d9b9c69f295aab908e25 |
refs/heads/master | <file_sep><?php
if(!isset($_POST['formulario']))
{
$destinatario = "<EMAIL>";
$asunto = $_POST['contacto'];
$carta = "De: ".$_POST['nombre']."<br>";
$carta .= "Correo: ".$_POST['correo']."<br>";
$carta .= "Teléfono: ".$_POST['telefono']."<br>";
$carta .= "Mensaje: ".$_POST['situacion'];
mail($destinatario, $asunto, $... | 1db2a00223400aff3c787dd54207d9b07065c92b | [
"Markdown",
"PHP"
] | 8 | PHP | krizthyan/Abogados_PageLanding | 881dad6fccc2f6a5dcd0c39df78894b18016985f | 74c979e89db81db558ff3efa4ad5c783dec1ab83 |
refs/heads/master | <file_sep>package firstWeek;
import java.io.FileInputStream;
import java.security.KeyStore;
import java.security.KeyStore.PrivateKeyEntry;
import java.security.KeyStore.TrustedCertificateEntry;
import java.security.KeyStoreException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security... | 86665b2fbfeaf79874c18ac1c64823d5a7e1fe61 | [
"Java"
] | 1 | Java | ps271828/Cipher | c633c5de2ad51631dd69e331f6627325b4c9ef7b | 311ef96ec25d3b9cfdd14cbeb528427dabd53907 |
refs/heads/master | <repo_name>godblessforhimself/ThuSearch<file_sep>/readme.md
# 校园搜索引擎
## 资源抓取
### Heritrix3.2.0配置:
#### Seed:使用尽可能多的种子
```
<prop key="seeds.textSource.value">
# URLS HERE
http://news.tsinghua.edu.cn
http://www.cs.tsinghua.edu.cn/
http://graduate.tsinghua.edu.cn
http://member.artmuseum.tsinghua.edu.cn... | a7a1aa12cbd64d41ef0bbef9c5844549360ffbad | [
"Markdown",
"Java"
] | 2 | Markdown | godblessforhimself/ThuSearch | a290631feb7e4f0690f05ae7f74e2fa2ebe66295 | 00539551b3cba584b4eae3cedcf7d3a3ce65c329 |
refs/heads/master | <file_sep>Introduction to Machine Learning with Python
===
Following along the book by <NAME> & <NAME>
Setup
---
Requires `python3`, `pip3`, `virtualenv`, and `graphviz`.
Brew install graphviz.
```sh
$ brew install graphviz
```
Create the virtual environment, and activate the virtual environment.
```sh
$ virtual... | d4664da169f07d0f16030194581451f313a0dd79 | [
"Markdown",
"Python"
] | 3 | Markdown | sts-sadr/introduction-to-machine-learning-with-python-book | 42984a190e4796b3106ec3238ce22244d29486a9 | 8763aa0efa20ec04343337637e3eacf012a15101 |
refs/heads/master | <file_sep>/**
* 版权申明
*/
package com.mj.currencyprogramming.step8;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Exchanger;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* @Title ExchangerUse.java
* @Description Exchanger简单使用
* @Date 2015/1... | 0011fedb9060a3d1ab3b621ac6a757d8c4d07693 | [
"Java"
] | 22 | Java | MichaelJY91/CurrencyProgramming | 7a2d9084436eb20beb2ff57cd2fc88a736e3745b | 565079db3d3e38e2a58bf2c375db7788292e19c7 |
refs/heads/master | <file_sep>TechBerry Upload
===============
This is the framework for the techberry upload platform that will be eventually liscenced and open-sourced
Credits,
Int
Iyop45
<file_sep><?php
ob_start('sanitize_output');
include 'db_connect.php';
include 'functions.php';
sec_session_start();
incl... | ea9f7098211dda0d71ef2627d375bded818401c4 | [
"Markdown",
"PHP"
] | 2 | Markdown | iyop45/techberryupload | 9c92a3c73fec82419fb6946e7c38c6c02cd118a1 | fa86fb397f974ab287eba2eb1f32ef6e9ed122a4 |
refs/heads/master | <repo_name>Baumdiggity/bootleggers-moonshine<file_sep>/README.md
# bootleggers-moonshine
<file_sep>/Assets/Scripts/PlayerMovement.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
[SerializeField] float turnForce = 1.5f;
[SerializeF... | e69aa0e4c9207fa2bc480cd523916888287e8b03 | [
"Markdown",
"C#"
] | 2 | Markdown | Baumdiggity/bootleggers-moonshine | 993eb33f101ad1b9e24f06fffb00f9608ee48030 | 8d7d8e2a19241f06f9ded0b35708f791335a9d1e |
refs/heads/master | <repo_name>yazidlouda/DrofSnar<file_sep>/Drofsnar/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Drofsnar
{
class Program
{
public static void Main(string[] args)
{
int points = 5000;
int live... | 7fba5e6f3bd2008f14a0c6dc1b710784c365f1b0 | [
"C#"
] | 1 | C# | yazidlouda/DrofSnar | 99ecd78f4c86fe9f122c8ed6655999f9204295c2 | 531a29f7dce7a2358fdfd524883cff2e77fb15dd |
refs/heads/master | <repo_name>jp-tran/dsa<file_sep>/design/rate_limiter.py
"""
Design a rate limiter that limits the number of times clients can hit an API within
a given time window.
Time complexity: amortized O(1)
Each item is only added to and removed from the queue once.
Space complexity: O(n)
where n is the number of valid hits wi... | 0e04bafd16ddb6509f579b3c445317f0a957ceed | [
"Python"
] | 24 | Python | jp-tran/dsa | f7199394b606edfe3f497d0cb4ecd30ab31298be | 81bcfae7167db826acf2ad28874d78a00702aa1d |
refs/heads/main | <file_sep>
This repository contains code to scrape UFC figthers datasets and stats from ESPN website.
There is also a boiler plate code to generate an UFC fight summary table with [gt](https://gt.rstudio.com/) inspred by a [Thomas Mock](https://gist.github.com/jthomasmock/4a8851d74d911ce9b90bf7a43c4cdf47) gist post. ... | 8d1d4fcd5302c38d601416fb43535b88f30557a6 | [
"Markdown",
"R"
] | 3 | Markdown | AbdoulMa/UFC-Analysis | d89057c92d6b83f0000e83189e050ddbe38df40c | f2f077d3ae93abd0906968bf5fbc144f4ab6c262 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ApiPeople.Models;
using Microsoft.EntityFrameworkCore;
namespace ApiPeople.Data
{
public class AppDbContext : DbContext
{
public DbSet<Person> People { get; set; }
public AppDbCont... | ea96bb0eb576224d8362aee18083374e153ee43a | [
"C#"
] | 1 | C# | AndreaVillarroelP/People | 5836762be16eca42a546fa8d942b7aea2859a3dd | 1c9ac9e010e4b9fb20cd99a48146c9bd49ebf80d |
refs/heads/master | <repo_name>timkellogg/data_structures<file_sep>/spec/data_structures/stack_spec.rb
RSpec.describe DataStructures::Stack do
subject { described_class.new }
describe "#pop" do
it "removes the first element from the stack" do
subject.push 1
subject.pop
expect(subject.size).to eq 0
end... | 56345ef48fc3d42034b73c94c557ca73f2ec9925 | [
"Ruby"
] | 10 | Ruby | timkellogg/data_structures | 8aacb9c2215693faa3dd65bb0ccd3be86f83ef4d | 8f8cb6e97571eaf2b811b64c7a982a2dd09f4f8e |
refs/heads/master | <file_sep>#ifndef NEIGHBORPOINTS_H
#define NEIGHBORPOINTS_H
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <vector>
class NeighbourPoints
{
private:
pcl::PointXYZ _searchedPoint;
std::vector<pcl::PointXYZ> _neighbourCloud;
public:
NeighbourPoints(pcl::PointXYZ searchedPoint, std::vector... | d2f1f42feb5b6caae9bdd44b52722cb385a3022d | [
"C++"
] | 7 | C++ | satypro/PCLVizualizationTool | 28b3bc2f0bdc1a561f864caafee19342668099f7 | 1231c1a42e90875712f4cd6cba126dd35f7aebae |
refs/heads/master | <repo_name>mina-amir1/BIT_MATH-LIB<file_sep>/BIT_MATH.h
/*BIT_MATH LIB CREATED BY <NAME>
0 1 0 1 0 1 0 1 YOUR BYTE
----------------------
7 6 5 4 3 2 1 0 YOUR BIT ORDER IN BIT_MATH LIB
┌ ---------------------------------------------------------------------------------------------------... | 945ecdf54c82a8b6d30490addfce8977278e5440 | [
"Markdown",
"C"
] | 2 | C | mina-amir1/BIT_MATH-LIB | cad8b7425058288d62d937ebdfadbea04f358302 | d0bdc4963b498bc4e256c3ca68c0ccc1bcced66d |
refs/heads/master | <file_sep>#include <Servo.h>
#include <Ultrasonic.h>
int sensor;
int angle;
Ultrasonic ultrasonic(9, 10);
Servo myservo;
void setup() {
// Begin the Serial at 9600 Baud
Serial.begin(9600);
myservo.attach(8);
}
void loop() {
sensor = ultrasonic.distanceRead();
if (sensor<100){
//Serial.println(sensor);... | 24fc69ae918fce11d2d71eae87ddefd8dc5a5147 | [
"C++"
] | 11 | C++ | Wennnjunnnn/physical-computing | 9591015bfdccba608a42f40add1fbb8b693f5bc5 | 12ce3e12b2b46b2e64dccf0a6fc0ed4065283084 |
refs/heads/master | <repo_name>boczeratul/30<file_sep>/app/src/main/java/com/yahoo/apps/thirty/activities/TopicsActivity.java
package com.yahoo.apps.thirty.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support... | 8ebf392c0731951a8fc1ff15bffd723fdcca7b9b | [
"Java"
] | 1 | Java | boczeratul/30 | 66821a134a7bcb17c398c98fa2e4599bd75b5580 | f914ffaf82cc819b03fc0068a374e6bcc986d30b |
refs/heads/master | <repo_name>Pyrrus/scrabble-scorer<file_sep>/src/main/java/scrabbleScorer.java
class scrabbleScorer {
private long total;
public void scrabbleScorer() {
total = 0;
}
public long calculateScore(String word) {
String lower = word.toLowerCase();
for (int i = 0; i < lower.length(); i++) {
char at... | feeb29171752f99572e95dab64ffe075f81e264b | [
"Java"
] | 1 | Java | Pyrrus/scrabble-scorer | d898c3ebb561f8fd6544f19a456556a54f8d66ef | b9d4a7a1495aebe481ba1cad9f40ed12f437ceea |
refs/heads/master | <file_sep>LiteSpeed Exporter golang code root library directory
----
This directory holds the golang libraries that belong to and are used by litespeed_exporter.
<file_sep>package collector
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/myokoo/litespeed_exporter/pkg/rtreport"
)
var (
netwo... | 25cf77a752ef4bb5ab9bdb4d1f299346ae623f61 | [
"Markdown",
"Go Module",
"Go"
] | 17 | Markdown | myokoo/litespeed_exporter | 7a9b3779bda455b6ff99b942c3cf2afb92d23006 | ea891f15d1c9908de3291256bd3bafe4feb579ac |
refs/heads/master | <repo_name>oliverhager29/readable<file_sep>/src/utils/ReadableAPI.js
const api = "http://localhost:3001"
const uuidv4 = require('uuid/v4');
// Generate a unique token for storing your forum data on the backend server.
let token = localStorage.token
if (!token)
token = localStorage.token = Math.random().toString(36)... | e1ef87798a5af8520ecb53ee43be357528e60af6 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | oliverhager29/readable | bab7073d105560f4594b8f8c19f2e86d664b11ee | 0873a8ba9a19fddb4747800f3f816529e037cdfe |
refs/heads/main | <repo_name>Z0neNp/maxim_chanturiay<file_sep>/frontend/src/app/education/education.component.spec.ts
import { DebugNode } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { environment } from "../../environments/environment";... | c6d5e2c9495e80d01516ed98a1d5094da6e8f9f0 | [
"Markdown",
"TypeScript"
] | 30 | TypeScript | Z0neNp/maxim_chanturiay | ec65719f734fce5ec8c5bf4d08121ead0be565c9 | e1e5e20b58176ed55de0e0141e18c3707ef8de83 |
refs/heads/master | <file_sep>import React, {useState} from 'react'
import contacts from '../contacts.json'
import styled from "styled-components"
const StyledDiv = styled.div`
img {
width: 50px;
}
`
const Contacts = () => {
let firstFive = []
for(let i = 0; i < 5; i ++){
firstFive.push(contacts[i])
}
const [contactActors... | c116546cc046399b1322cba341fbca56ad9e137f | [
"JavaScript"
] | 1 | JavaScript | AdrianoOGarda/lab-react-ironcontacts | 9a2ea4f649e104e9fbdded902cbef20b9ac5103f | e7b5c082dc2a66ccf5e085d4b355085d7b31f045 |
refs/heads/master | <repo_name>Aladin-mf/New-folder<file_sep>/hell.py
n=int( input("name:"))
if n>0:
print("is positive")
elif n<0:
print("is nagetive")
else :
print("is zero")<file_sep>/NEW.c
#include <stdio.h>
int main(void){
printf("hello,seriuzly");
}
| db85932e8337e60139749299d5bd6dce05b0de9e | [
"C",
"Python"
] | 2 | Python | Aladin-mf/New-folder | e80a2fba8252d33be8ecb63c53b795bb4665b805 | fb0eec8db71a18b1993cf292689a9cfe83cc8e57 |
refs/heads/master | <file_sep>package fr.dashboard.server;
import org.eclipse.egit.github.core.Repository;
import org.eclipse.egit.github.core.service.RepositoryService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotatio... | 3ed081cdaad3d0c870bfa1e5fbfd18344805f77a | [
"Markdown",
"Java",
"YAML",
"Gradle"
] | 8 | Java | Daykem/Dashboard_2019 | 5cab3073453d0bb4d4fe5dbd8d7640a14f0c4614 | ce046100b68e73dfc62d90e13be7ca2a9426dae2 |
refs/heads/master | <repo_name>ha-cs20-course-activities/efficient-quiz<file_sep>/README.md
# efficient-quiz
CS20 Example - Functions (Define & Invoke, Local & Global Variables, Parameters & Arguments, Return Values, Organization and Efficiency)
<file_sep>/main.js
// Quiz Program
"use strict";
// Add Event Listener
docume... | 1c56711bcc5ffe6b21004c419e0701a96642c3d6 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ha-cs20-course-activities/efficient-quiz | 17b7be33b8322cf10796d45b9c0332c2ff487126 | 6c64b3f3c184ef76afc818c9593954a4667673a2 |
refs/heads/master | <file_sep>//
// ViewController.swift
// dartmarker
//
// Created by <NAME> on 2018/08/06.
// Copyright © 2018年 com.takumi0kimura. All rights reserved.
//
import UIKit
import NCMB
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UIApplicationDelegate {
private var magnifyVie... | 626a9ad6138ef4a6beb4bfbaa0932d7244f80987 | [
"Swift"
] | 2 | Swift | shachitaku/dartmarker | f15cbb458e2ac850f71b3abde20d1ca815db2b14 | 36abcb42b69977b260b3f5d4ba6cb6bc31e66b4e |
refs/heads/master | <file_sep>export interface OAuth2Options {
loginUrl?: string;
clientId?: string;
clientSecret?: string;
redirectUri?: string;
}
export interface TokenResponse {
access_token: string;
refresh_token: string;
}
export class OAuth2 {
constructor(options: OAuth2Options)
public getAuthorizatio... | 85c9d73c4b1939ddadb8818c9d33668eaa97c548 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | rk-7/types-jsforce | 02a613fe9ef7fbb73273403d5dca19d925ce37ab | e57f49cd83cd45ced291b94234a9732838985e8c |
refs/heads/master | <repo_name>itsJustAbe/BerrySensor<file_sep>/BluetoothClient.py
import bluetooth
import sensor
import datetime
import sys
import time
def bluetooth_msg():
# Kruno's Bluetooth
bd_addr = "B8:27:EB:94:1F:03"
port = 1
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
sock.connect((bd_addr, port))
... | 4469a7274e3a5aa809a2ec2d41cff721393d6c85 | [
"Markdown",
"Python"
] | 9 | Python | itsJustAbe/BerrySensor | 092486795c924faae5d941cf870447ec2ee1ce74 | 706f2666e393ccc12b847393e4bdb8247b3b094a |
refs/heads/master | <repo_name>Oguzhanka/face_attractiveness<file_sep>/helper.py
"""
This script is inspired from the work of:
https://danijar.com/structuring-your-tensorflow-models/
Author: <NAME>
Lazy property decorator is used in the model of my project.
"""
import functools
import tensorflow.compat.v1 as tf
tf.disable... | de694e19a666f242a6e1a0e392d2a123e0f3bdf1 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | Oguzhanka/face_attractiveness | 87977a6935f9a12d1188cbdc382f7a57ad3ef169 | 6d8e1e8af783a8b91d32fe0a35c62efb8083c5dd |
refs/heads/master | <repo_name>sanin25/test-3.ru<file_sep>/app/Http/routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It'... | 69a8819b941a3b261b68eb71259dc82912a4ec00 | [
"Markdown",
"PHP"
] | 4 | PHP | sanin25/test-3.ru | 116d3cc125e0ddefd6264555adc48b0369ae49b7 | 23c288512c52b4e72cf91645598208a1e59e8ad0 |
refs/heads/master | <file_sep>var turn = 0;
var currentGame = 0;
function player(){
if(turn % 2){
return 'O'
}else{
return 'X'
}
}
function updateState(square){
token = player();
$(square).text(token)
}
function setMessage(string){
$('div#message').text(string)
}
function checkWinner(){
var won = false;
let board = {}... | a7df52e9a779f315833f1dd1f7bf442c626ceecb | [
"JavaScript"
] | 1 | JavaScript | sgibson47/js-tictactoe-rails-api-v-000 | 095c65f3b1a07cdc94f26d2fff515fd2ad27aec6 | 33fcdc8b2dae105e87edb7be18b68e7231122d29 |
refs/heads/main | <file_sep># **Password generator with strength bar and custom password options**

**HTML + SCSS + JS**
<file_sep>const passInput = document.querySelector(".passwordWrap__password");
const passButton = document.querySelector(".generateButton");
const howMany = document.querySelector(".howMany... | fd968c33a29293b6bf8e6bf872c2b244d7a802c5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Frontmaniaac/Password-Generator | 67e5d6c0c3969b5313cb18a355d604dc82bb282d | 60c1ac5ace2c256afa4d5e2729db8867aefc5725 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: MinHeap.h
* Author: carloco
*
* Created on December 20, 2017, 2:41 PM
*/
#ifndef MINHEAP_H
#define MINHE... | c8cb12434edcb2a5671a37ed555a41678c63103e | [
"Markdown",
"C++"
] | 8 | C++ | csanjuanc/cBiK | d7d4c3160b1184dc7c32bccebd2e4ed47e80e54c | 33fa79bcfdcd2ebc4d3f341ff2754e73c1f6b7f8 |
refs/heads/master | <file_sep>var z = 9;
var myLL = L.latLng(43.4459, 2.8606);
function init() {
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map', {
center: myLL,
zoom: z
});
//
// Map Layers
//
var esriLayer = L.tileLayer('http://server.arcgis... | 0ee7177bed63bad1022ac2de9c7e6aeaf7b922ca | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | RichardHitier/pierres | b7175c27b51b3a90da812e2b9bd98d1a54d1691a | 6952c5cf99e8fadb8794d28143b656dc4647ce3a |
refs/heads/master | <repo_name>wgtdkp/nvds<file_sep>/test/test_boost_asio.cc
#include <bits/stdc++.h>
#include <boost/asio.hpp>
using namespace boost::asio;
int main() {
io_service io_service;
ip::tcp::resolver resolver(io_service);
ip::tcp::resolver::query query("www.wgtdkp.com", "http");
auto iter = resolver.resolve(query);
... | efee11fd5cf49804224f14999d14ee659028268b | [
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 66 | C++ | wgtdkp/nvds | 34d58576b34326dafa7f690b0c953cb6a9ce7031 | 0f190377d254d8ae2b293873570bc78ec1dbf877 |
refs/heads/master | <file_sep>import { Placement } from './Placement';
import { User } from './User';
/**
* To create a Request for ads, use {@link Request.Builder} to build the ad request.
* <p>
* Every Request must contain one or more Placements. Each placement represents a "slot" in which an ad may be served.
* By specifying multi... | 3a317e3fa88b07e2b77683500be8e4528b3fec76 | [
"Markdown",
"TypeScript"
] | 11 | TypeScript | chieflogic/adzerk-angular-sdk | 9cbfed9ddf88406e0b792823e7d98cfb19943c14 | ab1c87a1d898e3cd33c6694e5df5d26baf7147ea |
refs/heads/main | <file_sep># ToDo app example
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## How to start
To start project you should run:
```
yarn
yarn start
```
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the brow... | f7fc186c0e50ff2301b936d4e647a6dc6c67b631 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | venskovich1/Extra-main-task | e240d899454b07cc534a89e7b6423371c6db920d | 19fe32acc8c565daf3f5fe43f912b0cf7d59a2fe |
refs/heads/master | <file_sep>from django.contrib import admin
# Register your models here.
from .models import Questions, Choice
class QuestionAdmin(admin.ModelAdmin):
list_display = ('question_text','pub_date','was_published_recently')
#fields = ['question_text','pub_date']
list_filter = ['pub_date']
search_fields = ... | 5a5da772538f58aaaf02b1714df88c87b621f5d2 | [
"Markdown",
"Python",
"HTML"
] | 7 | Python | luxiaochuang/Python27 | 44e9b04b47aa348ec59e0aeceb35a12217d401cb | 99f266b22a9127fd3d5b6de22e2db689ef38bc66 |
refs/heads/master | <repo_name>iamawwsome/phantomjs-html-pdf<file_sep>/html-to-pdf.js
const webpage = require('webpage');
const system = require('system');
const args = system.args;
const input = args[1];
const output = args[2];
if (!output) {
throw new Error('Missing output args.');
}
const page = webpage.create();
page.open(input... | 3c840e5172f4908696d9245cd8eb44cb72df85c4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | iamawwsome/phantomjs-html-pdf | 35a214e0a4793804693713225216cbc532b9f3e2 | 034ee88112421094a09c540998889d304947f231 |
refs/heads/master | <file_sep><?php
include_once '../DB/DBConnect.php';
include_once '../DB/StudentDB.php';
include_once '../Student.php';
$students = new StudentDB();
$allStudent = $students->getAll();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, ... | e5b554d0dbe26ecd8a05973e283eb832c967333d | [
"JavaScript",
"PHP"
] | 60 | PHP | sonhai1088/Module2 | 2ac3db25258ab7d19a3aea71711acf32edcc6505 | 9cd4b8ee4ac92e2226d46e3631de8336e04e5f5f |
refs/heads/master | <repo_name>qingfeng1202/hadoopDemo<file_sep>/src/main/java/com/hadoop/mapreduce/tq/MyTQ.java
package com.hadoop.mapreduce.tq;
import com.hadoop.mapreduce.MyWordCount;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Long... | 25482d5b5a7b6f4e4a2a4549d1bd9ee3a35193ec | [
"Java"
] | 2 | Java | qingfeng1202/hadoopDemo | 4c29815972585401425287d91ad141242731c7ad | 801f1b6c1f39aed9581282a2b744af7dcd437b50 |
refs/heads/master | <file_sep>package com.lesson_three.eiko.book_listing;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
/**
* Created by e... | aab8707817ddf1b7029dc68531ddf18ec600b192 | [
"Java"
] | 1 | Java | econMinnie/Book_listing | a5b154472bb9fba59b300a527d93acfd4c9c56a0 | de5f6f5ed574aeccf1d5501523780a827f973ced |
refs/heads/master | <repo_name>helio-frota/unifiedpush-registration-client<file_sep>/lib/unifiedpush-registration-client.js
'use strict';
/**
* @module unified-push-registration-client
*/
const registry = require('./registry');
/**
Creates a new UnifiedPush Registration Client
@param {string} baseUrl - The baseurl for the AeroGear ... | 6238655937583a3c50e24f8f9f1ef214e8a41a36 | [
"JavaScript",
"Markdown",
"Shell"
] | 9 | JavaScript | helio-frota/unifiedpush-registration-client | abd9208ea80dd49f750d8fdb8f169d7f2d3e43db | cf9e336f3b9ee8693e231470690c152322f83643 |
refs/heads/master | <repo_name>jpadams/puppet-module-rootless<file_sep>/lib/facter/user_group.rb
require 'etc'
Facter.add("puppet_user") do
confine :kernel => "Linux"
setcode do
Etc.getpwuid(Process.uid).name
end
end
Facter.add("puppet_group") do
confine :kernel => "Linux"
setcode do
Etc.getgrgid(Process.gid).name
en... | 012d67ff32e789fca2fd640e872f3c08a88629f6 | [
"Markdown",
"Ruby"
] | 4 | Ruby | jpadams/puppet-module-rootless | 23129bcc1b5edcfa84afc690d843e1c640667ad6 | 6022bc0547edb755803d72b831dc507a3a2dfbb7 |
refs/heads/master | <repo_name>ryanemccall/marvel-api<file_sep>/marvel.js
const baseURL = 'https://gateway.marvel.com:443/v1/public/characters';
const apikey = '<KEY>'; //public key
const privateKey = '55d6632e1252b51fefff9dede1372ffde46b85ca'
let url;
//Search Form
const submitBtn = document.querySelector('.submit');
const searchFo... | 9cdfdd8f47e17de322e9ebcd74072461d75ffc98 | [
"JavaScript"
] | 1 | JavaScript | ryanemccall/marvel-api | eeb6c9ae23e4a6b9db2e6faff155c10076b0eabf | 14b8c29695ce0b4d5802ecfa2293d9e212ee90be |
refs/heads/main | <file_sep>
import React from 'react';
import { Jumbotron, Container } from 'reactstrap';
const Header = () => {
return (
<>
<div>
<Jumbotron fluid>
<Container fluid>
<h2 className="display-3">Professional Fleet Washing Services in Bay Area</h2>
<p classNa... | f9bb7d249b92b6657f1ee896a293ab3531af291d | [
"JavaScript"
] | 1 | JavaScript | Jsmithseo/Black-diamond | 8f7f3f265e70eb8a0553e3bb293ebb8f59fde9d0 | 74b01b46fe493f9057c65d4bd9a22868141e333a |
refs/heads/master | <file_sep>using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UniPlatform.Models;
namespace UniPlatform.Areas.Admin.Controllers
{
[Authorize(Roles = "admin")]
public class DuyuruController : Controller
{
... | 6e8efcfbe01cca77417928ad62ff741db4d14eeb | [
"Markdown",
"C#"
] | 10 | C# | fpenbegul/UniPlatform | ad840182ac499058ae913fb222c4d85c7aeef571 | 4b0f40f9d3b05c0209f05463e6bcfb99dcef9ec9 |
refs/heads/master | <file_sep>#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
# Rscript --vanilla sillyScript.R iris.txt out.txt
# test if there is at least one argument: if not, return an error
# if (length(args)==0) {
# stop("At least one argument must be supplied (input file).n", call.=FALSE)
# } else if (length(args)=... | 565da877395286685764a4d914082a1fd41b5ebe | [
"Python",
"R"
] | 2 | R | adrbessy/generateMotifsFromMatrix | 1e2b78665601216d1178c8f081f610795fe68e2a | 9a93156dd8bf540769f884ff94e7b4173c628d11 |
refs/heads/master | <repo_name>nmuench/many_domains_scrapper<file_sep>/scrape_many_domains.py
import pandas
import os
import time
from urllib.request import urlopen, Request
from tld import get_tld, get_fld
if not os.path.exists("domain_html"):
os.mkdir("domain_html")
df = pandas.read_csv("domains.csv")
for link in df.domain_name:
pr... | 45e280d57370fd3b535586d052f91f5b7da8cea2 | [
"Python"
] | 1 | Python | nmuench/many_domains_scrapper | c9c42b13bc37db5a3e0ac0e94d1e361e7130a20b | 6213095fffd77401b565ffb8d5d616ad99486825 |
refs/heads/master | <file_sep>#! /usr/bin/env node
const program = require('commander');
const download = require('download-git-repo');
const chalk = require('chalk');
const ora = require('ora');
const fs = require('fs');
program
.version('4.0.3')
.option('-ir, initReact [name]', '初始化react项目')
.option('-iv, initVue [name]', '初始化vue... | bd58a48651ee9ea83f84a0622ff1ce8900995ae6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | chengqilong/mll-cli | adb04154ad09927f970989e623d5d8fd568125b9 | ac45d21f7b2e184459fd1c54afd1fad73a20520a |
refs/heads/master | <repo_name>andremartov/1.ea-kodutoo<file_sep>/clock1.js
let time = new Date();
let clock = document.getElementById("clock");
let dateTime = document.getElementById("date_time");
let colorButton = document.getElementById("date_time");
console.log(time.getHours());
console.log(time.getMinutes());
console.log(time... | 1f906d51a8c5cc0cf589572d052e92f0ccbd7a64 | [
"JavaScript"
] | 1 | JavaScript | andremartov/1.ea-kodutoo | d84fdb9203e8fb88b653f17bb99c1eb6f5199e5e | a8ecb2024cfe1906f66236e173f94d89acdabcb4 |
refs/heads/master | <file_sep>using senai.Filmes.WebApi.Domains;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace senai.Filmes.WebApi.Interfaces
{
/// <summary>
/// Interface responsável pelo repositório Genero
/// </summary>
interface IGeneroRepository
{
... | acbb6aa40c90ed41d236f25137f90d7aa2ae37ab | [
"Markdown",
"C#"
] | 2 | C# | Leonardorichylo/2_Sprint | 1549171798bf984aade22b0d1725524351c64c5d | 6eadddade639b049b9af790c92403ada7b502250 |
refs/heads/master | <repo_name>pxfnc/user-thread<file_sep>/README.md
# user-thread
スレッド作ってみたり、スレッドの中でスレッド作ってみたりとかいろいろやってみた
## run
```
cargo run --release
```<file_sep>/src/main.rs
use std::mem::replace;
use std::sync::Arc;
use std::sync::Mutex;
use std::thread;
use std::thread::JoinHandle;
use std::time::Duration;
fn main() {
print... | f3595ce1bd1318ae1589db0985035a37fe5428c6 | [
"Markdown",
"Rust"
] | 2 | Markdown | pxfnc/user-thread | 88bf7fd8f41b4dc8659fb0a179d6224a33676865 | dd1e516be24b8f7008d692d9b13c3e7b3fa95b84 |
refs/heads/master | <repo_name>Shona2501/OrangeHRM<file_sep>/basicPrograms/FirstProgram.java
package basicPrograms;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FirstProgram {
// Note: ctrl+shift+o: To import many classes at same time
public static void main(String[] args) throws ... | 2529b63a0d3a6d5f599d9a664ca46d0e818f8b4a | [
"Java"
] | 13 | Java | Shona2501/OrangeHRM | 3c8a0021a99a826f6852778e6a7ba844b97c25f4 | a8972db804c6bf920580efedf5385694c1de1531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.