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>9Nonami/test-client-server<file_sep>/Client.java
import java.io.*;
import java.net.*;
public class Client {
public static void main(String[] args) {
new Client();
}
public Client() {
try {
Socket socket = new Socket("", 0000);
InputStreamReader isr = new InputStreamReader(socket.getInputStre... | 468a8e6ede09bae862b7cd9fb970231fd1125606 | [
"Java"
] | 1 | Java | 9Nonami/test-client-server | 399398fe9dd9cdc6574ae2e9c9515b158efa44b2 | 32fc38956125011269cb2dfbaa9fdc0c46a1332b |
refs/heads/master | <repo_name>louis-ev/timelure<file_sep>/site/snippets/header.php
<!DOCTYPE html>
<html lang="<?php echo $kirby->language() ?? 'fr' ?>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<scr... | 9925c220d4552c9ed8258d596b08ed5c7068fcff | [
"PHP"
] | 5 | PHP | louis-ev/timelure | f2a8ee77d31d2a561e8a6fcdb58da4a692e7ebdc | ae2d46c51462ccbb5b20249a9c0e3030f7bf8c3a |
refs/heads/master | <repo_name>omarmandeeli/NZDEC<file_sep>/index.php
<?php
session_start();
include 'includes/dbh.inc.php';
?>
<!DOCTYPE html>
<html class='no-js'>
<head>
<meta charset='utf-8'>
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<title><NAME>usin Events And Consultancy</title>
<meta content=... | ad53911296b2e2570783b2da15aa1dfcaa96479f | [
"JavaScript",
"PHP"
] | 13 | PHP | omarmandeeli/NZDEC | 96d983129b71f10e686de838159d93216885a9e0 | 33145dcd8c63f952441fff72429536e7db4f1eb6 |
refs/heads/main | <file_sep>const option = document.querySelector(".option");
const player1Button = document.querySelector(".player1-btn");
const player2Button = document.querySelector(".player2-btn");
const resetBtn = document.querySelector(".reset");
const player1score = document.querySelector(".container__player1");
const player2sco... | ce660cab3dccda65b8ae7f461d845c48de77e282 | [
"JavaScript"
] | 1 | JavaScript | NikolettaIoan/pingpongscorekeeper | b838d43b76eea328a7b695abda802b5258185da6 | bd8b28a54207317491a6c002c893d86c43bdc49b |
refs/heads/master | <file_sep># from keras import backend
from tensorflow.keras import applications
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras import optimizers
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dropout, Flatten, Dense
from tensorflow.keras.mod... | de1ff793d22e5fe089410de99e0e802ef749bcdb | [
"Python"
] | 2 | Python | gurleen-kaur-30/Outfit_Classifier | 377c7acbcf0a05e8ad24ef5f8a4ff949aba18fac | c148934508b2556bf43cea61ae28e057932288b8 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#define TAM 2
int in,chave,pesq,posicao;
int RandomInteger(int low, int high);
void BuscaSequencial();
void Linha();
// Algoritmo 2 - Definição de uma struct que representa uma
// residencia (respectivamente, uma leitura de consumo)
struct Reside... | 1654b6637faefe3cc30a57dccdeb98e2737c51c9 | [
"C",
"C++"
] | 5 | C | cassiodsl/projetos_c | e440b74c9bbd0c3858f0224a2d760e5bb3aa24b9 | a3579abb257c016d0378ef18776c48f2fff81201 |
refs/heads/master | <file_sep>package hello.tests
import junit.framework.TestCase
import kotlin.test.assertEquals
import hello.getHelloString
class HelloTest : TestCase() {
fun testAssert() : Unit {
assertEquals("Hello, world!", getHelloString())
}
}
<file_sep>package extensions
import junit.framework.TestCase
import or... | 91bf0a665d4a4808280f9f1bc847064f2aee4783 | [
"Markdown",
"Kotlin"
] | 14 | Kotlin | rguderlei/kotlin-example | adb8d16d4fb87576f33b25799fcd86016663d5f6 | d2b80f4225cf46ad8cb9402abb81030d864e0563 |
refs/heads/master | <file_sep>
#include <glad/glad.h>
//#include <gl/glew.h>
#include <GLFW/glfw3.h>
int main1(){
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* wind... | c6009bc5a33046f94b431bfa8315cd0db2a5279d | [
"Makefile",
"C++"
] | 10 | C++ | minhnv16/learning_opengl | a3355418d948829598d1eb751d10d7b295341365 | 239c97aca48b6dfeab438ff3a9c400f6b007428b |
refs/heads/master | <file_sep>//
// TaskListViewController.swift
// Tasks_Project
//
// Created by Vlad on 27.02.2020.
// Copyright © 2020 Vlad. All rights reserved.
//
import UIKit
class TaskListViewController: UITableViewController {
/// enum tasks for table view
let enumeration_task = Enumeration_Task.self
o... | 9869c98b8eef6e450ea83033a6d520fc415a4abb | [
"Swift"
] | 11 | Swift | VladPoberezhets/Tasks_Project | e9f2abd6771d39d57c008792cebce971dadc4eb2 | 5d4c240050c370c22f467a93c7453f84e13e98a0 |
refs/heads/master | <file_sep>'use strict';
/**
* @ngdoc service
* @name filmApp.manageFavorite
* @description
* # manageFavorite
* Factory in the filmApp.
*/
angular.module('filmApp')
.factory('manageFavorite', function () {
// Service logic
// ...
var listeFavoritesJSON = localStorage.getItem('listeFavorites') || "... | d2558ad2f06ce56c38d7b24efbf5e3ca7e265e13 | [
"JavaScript"
] | 6 | JavaScript | StephaneGrangier/Film | d8478470634b0b415343282f939b6f55fd9c648d | 4fbd9b9194052b7bcffb331c67e30c019448b484 |
refs/heads/master | <file_sep>using Microsoft.EntityFrameworkCore;
namespace odec.Server.Model.Category.Abst
{
public interface ICategoryContext<TCategory>
where TCategory : class
{
DbSet<TCategory> Categories { get;set; }
}
}
<file_sep>using System;
using odec.Framework.Generic;
using odec.Framework.Infras... | c11482058504b0bb1081ef48fc4b72e0053f4f7a | [
"Markdown",
"C#"
] | 8 | C# | original-decisions/odec-categories-module | 8cda119c366fa9b6c9b7aa648262a59494dca063 | 642717ed124f4fb464d84d474f697d92ae37d79f |
refs/heads/master | <repo_name>spl48/heroes-villains<file_sep>/Teams.java
import java.util.ArrayList;
import java.util.Scanner;
public class Teams {
private ArrayList < String > listHeroes = new ArrayList < String > ();
private ArrayList < String > listPowerUps = new ArrayList < String > ();
private ArrayList < String > listH... | 3970f8006178e9406a247076191576aa19dc752e | [
"Java"
] | 5 | Java | spl48/heroes-villains | 913440fb308b4ce5a9a0d9ef1cdfc9dd6bd90095 | 91cad6067fe35482144cb9f060b64a0eb5385a58 |
refs/heads/master | <file_sep>devtools::load_all()
library(lubridate)
library(tidyverse)
cl_args <- commandArgs(trailingOnly=TRUE)
site <- cl_args[1]
day <- mdy(cl_args[2])
query1 <- paste0("SELECT s.datetime, i.deployment AS csc, s.sand_flux, s.ws_10m AS ws, ",
"COALESCE(wd_10m, resultant_wd_10m) AS wd ",
... | cdaf0fd40af1ec74add4687ff21f0a074a9d74e3 | [
"R"
] | 2 | R | jwbannister/siteRoses | 83deb8aa5e0bd38a7a2541ccdb3aea58e457cca6 | 3da72bf042beb6ae4689e2a77099d7e8f848524f |
refs/heads/master | <repo_name>rajat333/ecommerce<file_sep>/model/category.js
const categoryDetails = require('../configrations/category.json');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var CategorySchema = new Schema({
createdAt: { type: Date },
updatedAt: { type: Date, default: Date.now },
n... | 363973cbb26c0ae5f95ebb9f6e27c96f706ad5bd | [
"JavaScript"
] | 9 | JavaScript | rajat333/ecommerce | a9c0ccc9c638c7a9624e3a8bbfe0d0af5fb08f18 | 62812f873636371e5592fcc2bf2aa5e75ffb96ea |
refs/heads/master | <file_sep><?php
try {
include ('../inc/db.php');
include ('../config.php');
if ($emulator == "ACE") {
$stmt = $db_con->prepare("USE ace_auth;");
$stmt->execute();
$stmt = $db_con->prepare("ALTER TABLE account ADD COLUMN auth_Token VARCHAR(128) NOT NULL AFTER passwordSalt;");
if ($stmt->execute())... | b549ebf80834fc46571e364aa9e9c63d75859da8 | [
"JavaScript",
"Markdown",
"PHP"
] | 13 | PHP | TheKnobGoblin/ACE-GDLE-Account-Manager | c77a5c17b48d6af88ff16424ebf994921fa8f499 | 2381310a4e5e0854df98f64990864e03050940ac |
refs/heads/master | <repo_name>ahao850512/Signup-Login.github.io<file_sep>/README.md
# Signup-Login.github.io
使用 JS 套用 AJAX 實作登入及註冊功能。
https://ahao850512.github.io/Signup-Login.github.io/
<file_sep>/js/all.js
// 請求連線
var xhr = new XMLHttpRequest();
//註冊
var signupBtn = document.getElementById('signupBtn');
function signup() {
var s... | a7b3d473e673b792908c48b2e6ea9ccf50e9a69a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ahao850512/Signup-Login.github.io | 5010e55f4feea9f62c6b376b3fd4202ad8b8e98e | a3fe6ead9b38af62c0bd04bc937ea3a5b524dcaf |
refs/heads/master | <repo_name>agrublev/ucsb-web-boilerplate<file_sep>/gulpfile.js
'use strict';
const gulp = require('gulp');
const browserSync = require('browser-sync');
// Load plugins
const $ = require('gulp-load-plugins')();
gulp.task('styles', function () {
return gulp.src('./css/*.less')
.pipe($.less()
.... | 2b3b36fb62b6d1073a3a0a524844804065b745cb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | agrublev/ucsb-web-boilerplate | 26126d00b28f70d8d9ca34b4d4beb9411b5db937 | 11a0e15209cddae2fd0b89e8849d0d3c321d60da |
refs/heads/master | <file_sep># Brightwheel Email Server
## Setup
This project was created in Ruby on Rails. It's recommended you use Ruby `2.4.1p111`. If you have rebenv, you may want to `rbenv install 2.4.1` then `rbenv local 2.4.1`.
then...
- from the projects root, `cp .env.local .env`
- fill in the `.env` with correct API keys
- `... | 74bd5fb447f70e05672b0b5a65792d96f8dfb5e2 | [
"Markdown",
"Ruby",
"Shell"
] | 10 | Markdown | fourcolors/bright_wheel_email | e574b5c7b5cdc278b82f9884bb3ceaa5aea31c23 | 16ffe38a91acfda59b95df1c9d98d460ae5d5f14 |
refs/heads/master | <file_sep>Backup files folder.
After the script runs successfully, here will be a backup version.<file_sep>Test purpose single file FTP solution.
#### Features
+ Remote (FTP) file existence check
+ FTP file download (save to local drive)
+ File info with lineCount and chunk size.
Chunk size is the file pointer, so ... | 08a2fa15036f1f0eb8e1877983eb404de1f629d8 | [
"Markdown",
"PHP"
] | 4 | Markdown | Webist/quintTest | e2beedb257c09d840e7249cbcffc3233e003e291 | 7585886159269baaa84a05f9895c3ad596b3b981 |
refs/heads/master | <file_sep>
function Player(game) {
this.game = game;
this.x = 210;
this.y = 632;
this.img = new Image();
this.img.src = "images/barra.png";
this.w = 150;
this.h = 20;
this.setListeners();
this.vX = 0;
}
Player.prototype.draw = function () {
this.game.ctx.drawImage(
this.img,
this.x,
thi... | b584b7f73548f261721ff7414431c7ed6cd1b6c3 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | AdrianMelGon/Ironoid | 52a36e03f23055cca7084454a3ceacc839b504d5 | 7fc8ec03e0a15472521263c7aac9fc356e49c859 |
refs/heads/main | <file_sep>import logo from './logo.svg';
import 'bulma/css/bulma.min.css';
import './App.css';
import {Heading, Icon} from 'react-bulma-components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faEllipsisV, faSlidersH } from '@fortawesome/free-solid-svg-icons';
import { useState, useEffec... | e1fa70bb1850bc8b45f72aa3877aae28b028844b | [
"JavaScript"
] | 2 | JavaScript | kushrast/react-flask-template | 41749384a138a70e3fe5f736331e05b611b8eed3 | f20bb1140764c9be69a2c544a77844980e18dec3 |
refs/heads/main | <repo_name>Hernan-21/table-info<file_sep>/js/denuncia.js
$(document).ready(function() {
var boton01 = $(".siguiente");
var boton02 = $(".enviar");
var botonVolver = $('#btnVolverPaso1');
$("input#rut").rut({
formatOn: 'keyup',
minimumLength: 8, // validar largo mínimo; default: 2
... | 2386cc389495889bcc17a7758cf7eafb25315056 | [
"JavaScript"
] | 1 | JavaScript | Hernan-21/table-info | 9fad6a36f0d04eb7a119b1e1338f2d243380d743 | 07405916d1521a7c4d582e7dcc0f817d5ad0d86b |
refs/heads/master | <repo_name>nigellipps/Tamagotchi<file_sep>/Pet.cpp
// Pet.cpp
#include "Pet.h"
#include <string>
using namespace std;
// Initialize the state of the pet
Pet::Pet(string nm, int initialHealth)
{
m_name = nm;
m_health = initialHealth;
}
void Pet::eat(int amt)
{
// Increase the pet's health by the amount
... | 628a3f6fc6c18470899782b7dd5201a0679d8318 | [
"Markdown",
"Makefile",
"C++"
] | 4 | C++ | nigellipps/Tamagotchi | 686fc3573b3c7865b0acce730f91ed149ab86fc5 | 6c8c879a373a6d680a09ca137a7d967155661981 |
refs/heads/master | <file_sep>//
// Safe.swift
// SafeSwift
//
// Created by <NAME> on 6/28/14.
// Copyright (c) 2014 Blue Plover Productions. All rights reserved.
//
import Foundation
extension Array {
func safeIndex(i:Int) -> T? {
if i >= 0 && i < self.count {
return self[i]
} else {
re... | 00538f7301d1a09ec77b7531018081d26954c37f | [
"Swift",
"Markdown"
] | 3 | Swift | tLewisII/SafeSwift | 508a8b8fe02d91b99438a25c2b8c0172c41bdf2b | a58328d18b7cee620f3333fa99d504d140876a2b |
refs/heads/master | <repo_name>hse-programming-CSharp2020-2021/01module-02seminar-arithmetic-operations-and-type-casts-TeyDayana<file_sep>/Task_01/Program.cs
/*
* Задача :
* Ввести значение x и вывести значение полинома: F(x) = 12x^4 + 9x^3 - 3x^2 + 2x – 4.
* С точностью до 2-х знаков после запятой.
* !!! Не применять возведение в... | 87a02fcbf7ff084657875d703ca645fefa60a175 | [
"C#"
] | 7 | C# | hse-programming-CSharp2020-2021/01module-02seminar-arithmetic-operations-and-type-casts-TeyDayana | 1beef18fbb61a58c69181245d05faa138c6c87ab | bc70eb238698593bf40cdfe163c03e95ec544076 |
refs/heads/master | <repo_name>Deftsu-lab/loginServer<file_sep>/models/PasswordReset.js
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const PasswordResetSchema = new Schema({
userId: String,
resetString: String,
createdAt: Date,
expiresAt: Date,
});
const PasswordReset = mongoose.model('PasswordReset', Passwo... | 89c35b603d53ae87f26f823f693546fb84e21fe2 | [
"JavaScript"
] | 3 | JavaScript | Deftsu-lab/loginServer | 80198586abe0956bd6b63b90dbdaa168a8bbe4f2 | 73b30faab375aec01c72af42a22762f4340a3ec9 |
refs/heads/main | <file_sep>spring.kafka.bootstrap-servers==localhost:9091
spring.kafka.consumer.group-id=myGroup
<file_sep>package com.example.consumer.service;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.kafka.annotation.*;
@Component
@Service
public clas... | 312092b69ca553e4c0b2c3191ee4cff02d7f6f39 | [
"Java",
"INI"
] | 4 | INI | eperaza/SpringBoot-Kafka | a097001f4993214fb1531ad31b9fedc7b809aca1 | fbfa32fe4fcb87d6c47221258b4c4030d3bbf81b |
refs/heads/master | <repo_name>jochasinga/rust-noob<file_sep>/day1/expression/src/main.rs
fn main() {
// Almost everything in Rust is an expression.
// A statement is when you state something without
// a return value. For instance, the line below
// is a statement printing out the text "Hello, world!"
println!("H... | 522e31bd514fede24373a55bf6428fef2b7fa216 | [
"Markdown",
"Rust"
] | 4 | Rust | jochasinga/rust-noob | 4d1d5e397f5e27fa17916517bab253910801ca1e | 9722f1cc2408eee29ad9e3d97b0c0b1d0953ff58 |
refs/heads/master | <file_sep>
var list = document.querySelector('.list').childNodes;
for (var i = 0; i < list.length; i++) {
if (list[i].tagName == 'LI') {
list[i].addEventListener('mouseover', function() {
this.className = 'underline';
});
list[i].addEventListener('mouseout', function() {
... | 086eef2506540f8bd7ca0ccf8d74b6b71c08855a | [
"JavaScript"
] | 1 | JavaScript | jonzielen/underline | 4ee9529b15f43f868bd17e5fcfb1db282996380f | 0eae26af0e5edf7af1be45b2ade5f28a14a6f553 |
refs/heads/main | <repo_name>Stephen-Corcoran/Higher-Order-Functions-Homework-Traveller<file_sep>/README.md
# Higher-Order-Functions-Homework-Traveller
<file_sep>/models/traveller.js
const Traveller = function(journeys) {
this.journeys = journeys;
};
Traveller.prototype.getJourneyStartLocations = function() {
return this.journeys.m... | fc515786778e0ca92a0e378801f54b8dd0d0fc09 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Stephen-Corcoran/Higher-Order-Functions-Homework-Traveller | d33058db49402380ddb7eaf0122974883c8ef7e0 | 54c82c166e4aede9586893c1029c6b1a60862cba |
refs/heads/master | <repo_name>ujjwal1801/Rock-Paper-Scissors<file_sep>/mentor_project.py
import random
import sys
moves = ["rock", "paper", "scissor"]
cycle_counter = -1
class Player:
no_of_rounds = 0
score = 0
round_move = ""
self_move = ""
opponent_move = ""
class Computer_player_random(Player):
def move(... | 73ee675a818dec22f2bbffaf48c402f3a5bf5995 | [
"Python"
] | 1 | Python | ujjwal1801/Rock-Paper-Scissors | 7140606f947c4c1b00413fcc8ee3fef586750f4a | 405b3896295e11144b7b7aebed225df047e56875 |
refs/heads/master | <file_sep>const KEY ='<KEY>'
map2 = new OpenLayers.Map("mapdiv");
map2.addLayer(new OpenLayers.Layer.OSM());
map2.setCenter([0,0]);
function getinfo(){
var location = document.querySelector('#location').value;
fetch("https://maps.googleapis.com/maps/api/geocode/json?address="+location+... | 9c161af7ea66c1bd00f7feb78c38fc5685aa264c | [
"JavaScript",
"PHP"
] | 4 | JavaScript | selmamesiic/OpenStreetMap | b834adeb1ea03efc5a6893c09b69d8f4af59d41c | 5d9a23b329518ae54212adb573aa1b1552e170c3 |
refs/heads/master | <file_sep>from model import WordEmbedding
from config import config
model = WordEmbedding(config.embedding)
print("Model loaded!")
while True:
text = input("Input: ")
text = text.lower()
if text in ("quit", "q", "exit", "e"):
break
text = text.split(" ")
if len(text) == 2:
word1, w... | 86dabfd05259fcce4fe38e95ffe6e61898e085d9 | [
"Python"
] | 3 | Python | tobias17/CodeNamesOld | 10fdccc35b5a23eb68ed5d7e7257e9fe83977278 | 71e282adf5a652c1bfe48f4035413b9090c4339b |
refs/heads/master | <repo_name>susana994/P2_Quiz<file_sep>/cmds.js
const model =require('./model');
const {log, biglog, errorlog, colorize} = require("./out");
exports.helpCmd=rl=>{
console.log('Comandos:');
console.log("h|help - Muestra esta ayuda.");
console.log("list - Listar los quizzes existentes.");
console.log("show <id... | b7b075c5a2dfb11eec97d48cda9fd65a252563be | [
"JavaScript"
] | 1 | JavaScript | susana994/P2_Quiz | 27c7bb5f25c5f9e71abc31cbf2d2e5f6789930ad | 455c3c3dc565901aa04e57589baca76ec6c0664e |
refs/heads/master | <repo_name>aysenuryildiz/testRepo<file_sep>/Localization/Updater.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Localization
{
public static class Updater
{
private static st... | 90892d2b429c4096b67f7b70376135036f1fb3f9 | [
"C#"
] | 4 | C# | aysenuryildiz/testRepo | 29484ed03a3d739d33da26128585921448f35515 | 45a153321a8776d4a1b84366a90625edfe6604ec |
refs/heads/master | <repo_name>SaySai/coolweather<file_sep>/app/src/main/java/com/example/isay/coolweather/util/HttpCallbackListener.java
package com.example.isay.coolweather.util;
/**
* Created by isay on 1/31/2016.
*/
public interface HttpCallbackListener {
void onFinish(String response);
void onError(Exception e);
}
| 3d87dccd1c38fd966038a6a4bb5294d222843e79 | [
"Java"
] | 1 | Java | SaySai/coolweather | ba50841022ccd13bef8548bbecdd620f41409413 | bc02177fbdee804c67c718d9f36597a68fd56d91 |
refs/heads/master | <repo_name>tk-ozawa/ph22_work02<file_sep>/func/input_func.php
<?php
session_start();
// 連想配列の全ての要素に値が格納されているかを検証する関数
function isset_array($array_asso) { // $array_asso:連想配列
// 要素をすべて参照する
foreach ($array_asso as $key => $value) {
// 要素が1つでも... | b715423b10366b10c771276c81b95b460073db15 | [
"PHP"
] | 7 | PHP | tk-ozawa/ph22_work02 | fd55e90501ac0973042f4a37f790d5d5bc344b9a | c5ab1459cd48eab56727e763ee76f4d5c5c84ac2 |
refs/heads/master | <file_sep>function Replacer(){}
Replacer.prototype.replaceWord = function(originalSentence, word, newWord){
newSentence = originalSentence.replace(word, newWord)
newS = newSentence.split('').filter(dollar => dollar != '$').join('')
return newS
}
<file_sep># dictionary-replacer
***Screenshots***

// ExecFlags holds the flags for the start command
type ExecFlags struct {
DisableTty bool
EnvVariables []string
Detach bool
}
var execCmd = &cobra.Command{
Use: "exec [options] [service] [command]",
Short: "E... | 1f36894d732f8b2cdbc57acd8497253a0741e256 | [
"Markdown",
"Go"
] | 12 | Go | tiagoguirado/kool | be55be0b08f61edbd2eea5ce6839ceeb3815eb26 | c5b04354f5deb279d88a2eff75f6444cd9cf409b |
refs/heads/master | <repo_name>Kaneki711/haa<file_sep>/README.md
*Scroll down for more*
:
*Installation Instructions*
Installation is simple. It can be installed from pip using the following command:
```sh
$ python -m pip install -r requirements.txt
```
*Usage Instructions*
```python
>>> from LineAPI.linepy import *
>>> client = LINE("... | fddfe75c56493ddf4fd91be6057513549492f0b6 | [
"Markdown",
"Python"
] | 4 | Markdown | Kaneki711/haa | d8e838357b38a49b9d3deda82681fa71afeac657 | e36167a410079caa5b840d98f5f07651ed8146c6 |
refs/heads/master | <file_sep>"""
Given a sorted array and a target value, return the index if the target is found.
If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
"""
class Solution:
def searchInsert(self, nums: list, target: int) -> int:
if target > nums... | 9f57c5403bfdb29b07e0e15c3c557d84d77bdb07 | [
"Markdown",
"Python",
"JavaScript"
] | 84 | Python | JianhangYin/LeetCode | 5f5018035fc5e70103e1d4bb5dadb88e5949f6ca | 4124ebb0735a3ff55462b47f90573d25ab099fbc |
refs/heads/master | <repo_name>FiveElephants/FiveElephants.github.io<file_sep>/javascript.js
var category1 = document.getElementById('category1');
var category2 = document.getElementById('category2');
var category3 = document.getElementById('category3');
var category4 = document.getElementById('category4');
var category5 = document.getEle... | 93bc554e5dfb8c3924f72653b0c21232112c086a | [
"JavaScript"
] | 1 | JavaScript | FiveElephants/FiveElephants.github.io | 537a6a7883d9381ead5b3c42ec89fd7894b6defa | 71bd63f874176589f8a9ddf5c0e9e3cebb7a8a34 |
refs/heads/master | <file_sep>package iotwearable.editor.command;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import iotwearable.editor.utilities.Category;
import iotwearable.editor.utilities.MessageContent;
import iotwearable.editor.utilities.Pr... | d629cd13c7ea3ff14c3e3404056185c502fb99e3 | [
"Markdown",
"Java"
] | 3 | Java | HuuThuat1996/DSL4Wearable | a6cad86b932ca6149203d445fc1452576f3859ea | 7d5f5a4a7b3d40aa8af5f246c656d9cfce19e210 |
refs/heads/master | <file_sep>require 'net/http'
require 'net/https'
require "rack-proxy"
require "rack/reverse_proxy_matcher"
require "rack/exception"
require "rack/reverse_proxy/http_streaming_response"
require 'skylight'
module Rack
class ReverseProxy
include NewRelic::Agent::Instrumentation::ControllerInstrumentation if defined?... | 34f304e4ccac9f80cd391ee808347947015aa5d0 | [
"Ruby"
] | 5 | Ruby | monkseal/rack-reverse-proxy | 96604bcd6aad637eb11f3e5fc10b050a251c555f | f47c8b3f0fb9d531f1fb1d7df7c77ac736f1f44c |
refs/heads/master | <repo_name>risclxm/cishilogin<file_sep>/cishilogin/src/com/bbsstep/service/TUserService.java
package com.bbsstep.service;
import com.bbsstep.po.TUser;
public interface TUserService {
//给他一个用户名和密码,他将密码加密之后到数据库查询有没有这个用户,如果有,返回这个而用户,如果没有返回null
TUser checkUser(String pwd,String username)throws Exception;
}
<file... | 1f85f4a67a2a1d36ea6fe4bca52273a5f72782ec | [
"Java"
] | 8 | Java | risclxm/cishilogin | fe31e67e666af939c3919f4c6631686688cdcd9d | 0c5886c1f6c4b35a4622c0707727a324ecd847e3 |
refs/heads/master | <repo_name>skyfox93/looping-break-gets-prework<file_sep>/levitation_quiz.rb
def levitation_quiz
puts "What is the spell that enacts levitation?"
loop do
answer=gets.chomp
break if answer=="Wingardium Leviosa"
end
puts "You passed the quiz!"
end
| 07c193ccb51061e1b1e820fcda621cee69564747 | [
"Ruby"
] | 1 | Ruby | skyfox93/looping-break-gets-prework | 4ad8536710ffbb0e6dd0a7aba31a0784f432a49c | aeb8feea4f77d4b8ab6a0914dedec4950340c1d4 |
refs/heads/master | <repo_name>mikaserova/course_work<file_sep>/course_app/ViewModel/ScheduleModel.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
namespace cour... | 5eb1858f14a387ab09f715d6126ad356f1e2d069 | [
"C#"
] | 65 | C# | mikaserova/course_work | ca34b12f31a7793ca3e558fadb4fc87b0075c5d2 | 3de2503d092c8711d303af0aafcf8005848443b2 |
refs/heads/master | <file_sep>
Laboratorio Esercitazione 1
==================
Riassunto e analisi delle funzioni numpy
----------------------
```python
from numpy import *
a = arange(15).reshape(3, 5)
a
```
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14]])
Creata matrice da 3 ri... | 0a68d327027d51375b70ed1e54781a241cb02c0f | [
"Markdown",
"Java"
] | 3 | Markdown | davidedm07/Homework1_SDR | 35d63e00313ef15cb6542ac56a6e800a58548664 | 01a3867843a8cbf5186080b3b8cd8cd0ac1047ad |
refs/heads/master | <file_sep>#include <stdio.h>
#include <cs50.h>
int main(void){
printf("Please enter the amount of change required: \n");
float totchange = GetFloat();
int count100 = 0;
int count50 = 0;
int count20 = 0;
int count10 = 0;
int count5 = 0;
int count2 = 0;
int count1 = 0;
//Check for... | 04c911fe562482249066fe3bb08a2550eac4d044 | [
"C",
"PHP"
] | 10 | C | fishr01/CS50-Problem-Sets | 4d92633da4a0da43dadb1d07b737bce3762609e2 | db5a5bf16afe297b20ac6ade9ff43257e44f0d96 |
refs/heads/master | <repo_name>Daliuxas200/nature-of-code<file_sep>/noc_p5/noc_01.2_gausian/sketch.js
let dot;
let tx = 0;
let ty = 1000000;
function setup() {
createCanvas(windowWidth, windowHeight);
dot = new Walker();
}
function draw() {
dot.step();
dot.display();
}
class Walker{
constructor(){
this.x = width/2;
this.y = he... | 0e1583205ffb8487a77717d5a8af0bdf8ae3acba | [
"JavaScript"
] | 3 | JavaScript | Daliuxas200/nature-of-code | 680b23d597831203bb523614462e6c61b5eb917b | 307e2452cdda73070a88c05e79aa796f1ccf2a83 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/styles.css">
<title>Week Two Independent Project</title>
</head>
<body>
<di... | 8dfd00e0cbb8eb175c350c89203f16b51eb16fa3 | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | HTML | derriqo/Triangle-Tracker-WK2IP- | 702753af77ad4aeed17dbfe8b54932a582155377 | 7f18b40860caa9aa891e1e7df69e8051e37fa403 |
refs/heads/master | <repo_name>solary2014/MeituanSeat<file_sep>/src/com/lly/meituanseat/SectionView.java
package com.lly.meituanseat;
import java.util.ArrayList;
import java.util.Collections;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Bitmap;... | f4789fde1cdde3635542fa5f34705aabad858c71 | [
"Java"
] | 1 | Java | solary2014/MeituanSeat | c746e29a99833217ad5e5f912703e8b309574d8e | f2a4f9bfc3dd80a3dc920c7f7ec356dfe312f9f6 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: raka_matsukaze
* Date: 7/31/18
* Time: 09:44 AM
*/
include "../db_connection.php";
require_once(__DIR__ . '/vendor/autoload.php');
$job1 = new \Cron\Job\ShellJob();
$job1->setCommand('python /Users/raka_matsukaze/Documents/python_docs/hello_world.... | d6ec6d3d240dd8fe188db41d4b2622fada1e27db | [
"PHP"
] | 33 | PHP | RFA96/skripsi_cuy | fd922c8424147b066b397b4d5f65b7820d834215 | dfb3ae968f5b8681839abc3107d9ec337b3db766 |
refs/heads/master | <file_sep>require "octoks/version"
require "octoks/receiver"
require "octoks/event"
module Octoks
end
<file_sep>module Octoks
class Event
attr_accessor :name, :payload
def initialize(name, payload)
@name = name
@payload = payload
end
end
end
<file_sep># Octoks
Octoks is Github Hooks R... | 86c1e0d576c121f18b6996b134935ee77903179f | [
"Markdown",
"Ruby"
] | 9 | Ruby | kenchan/octoks | 14187d16fe7ad2355fed2962e055d5b8093b0e06 | cd3197ce4ad971a0759e7453c2fecff6a432a52c |
refs/heads/master | <repo_name>geometryglobal-emea/pathfinder-algorithm<file_sep>/lib/consolidate_events.rb
require_relative 'constants'
module Discover
def consolidate_events(sgmnt, attrs, thrshld, mandatory_attrs)
sgmnt.each do |jrny|
jrny.init_surrogates
[Discover::CONSIDERING_STEP, Discover::BUYING_STEP].each do |t|... | 3ecb1f363331777db9ca02f592ee913c681cc309 | [
"JavaScript",
"Text",
"Ruby",
"INI"
] | 42 | Ruby | geometryglobal-emea/pathfinder-algorithm | ae9b3079190bb4960328935b5f25924e493a6573 | afabae9c19271af9b911b226144a925348949f85 |
refs/heads/master | <repo_name>hebaihe55/kerry<file_sep>/lottery.php
<?php
/**
* Created by PhpStorm.
* User: hejiyuan
* Date: 2015/11/26
* Time: 11:09
*/
if (!isset($_COOKIE["user1"])) {
setcookie(user1, time() + mt_rand(), time() + 24*60*60- (date('H')*60*60+date('m')*60) );
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
... | e1affa9d159b74b075f61fc06c7650e3a8faaaef | [
"Markdown",
"PHP"
] | 12 | PHP | hebaihe55/kerry | 2a52a00f0d23def4c04c531f101305d8e6b22b9a | 84b656cf49ff41853138f6efbf498bfe0707e2dd |
refs/heads/master | <file_sep>(function () {
'use strict';
angular
.module('core')
.controller('ManageRequirementsController', ManageRequirementsController);
function ManageRequirementsController($scope, $state, $window, Studies, Requirements) {
var vm = this;
$scope.findRequirements = function() {
Requiremen... | d27c4f9ea2d401e279d620b45372db83b3b66995 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | SoftwareEngineering4C/ClientStudyDatabase | cc76e349929c5bcd1c1e1cbcad216ac516066b0f | 526f0b07768c4ed69e4572739527ff87093ba8ce |
refs/heads/master | <repo_name>MatthieuBizien/Rboost<file_sep>/rboost/benches/bench_binary.rs
#![feature(core_intrinsics)]
/// This is a benchmark for optimising the binary logistic loss function.
///
/// The exact_naive function is quite slow: 50us per iteration, so 5s for 100k elements
/// Without any precision loss, we can push it to ... | 58b6c917de12e33576cf39f920c1864e4976ea1c | [
"TOML",
"Rust",
"Shell"
] | 25 | Rust | MatthieuBizien/Rboost | 91b53204015f5b2e5a6be593d310140185d0eb14 | df585b17684f7558e46bd1e0a27717a3776b842c |
refs/heads/master | <repo_name>0-Tal-do-Script/Tempo-de-Reuniao<file_sep>/README.md
# Tempo de Reunião
Você faz muitas reuniões?!
Sim ?!
Tem ideia de quantas já fez esse ano ou esse mês ou quanto tempo reservou para elas?
Esse código é muito simples de rodar no google Planilhas, para ajudar segue um passo a passo:
1. Criar uma planilha... | 5605644741fbca00ae971a92e82bbd66c0d7fda2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | 0-Tal-do-Script/Tempo-de-Reuniao | 6cf090b59bfb3d56cc9877beb5ffb91b8523c30f | 7f3b5fc56d18e5d0839a4144e8887388caa2f735 |
refs/heads/main | <repo_name>fatemehh1376/Maktab_44_2<file_sep>/fatemeh.py
def func1():
print("Hi every body")<file_sep>/README.md
# Maktab_44_2
for group
| 2a7f0056d3d2ec603deec16f7587a4c43f8ccc5c | [
"Markdown",
"Python"
] | 2 | Python | fatemehh1376/Maktab_44_2 | 6b51d957c156e451f19918038b1cbc4884c092ce | c30fcd389242405d62284c11b1a5517d7b270a1b |
refs/heads/master | <file_sep>class Review < ApplicationRecord
belongs_to :reservation
belongs_to :user
validates :content, presence: true
validates :rate, numericality: {
less_than_or_equal_to: 5,
greater_than_or_equal_to: 1
}, presence: true
end
<file_sep>class UsersController < ApplicationController
def show
@us... | 66778fac9535349437e5044868b612a2774836cb | [
"Ruby"
] | 9 | Ruby | ren0715/airbnb | d48cbad2038cd36f1f3a1b51dbcb85c7bc66f685 | a33608943aa09f2af90dc7918d50af63e0f3c3bd |
refs/heads/master | <file_sep>export { ModalProps } from './Modal';
export { ModalBaseProps } from './ModalBase';
<file_sep>export { Image, BackgroundImage } from './Image';
<file_sep>export { ToggleProps } from './Toggle';
<file_sep>export { LoadingWrapperProps } from './LoadingWrapper';
<file_sep>declare module 'elementz-ui';
<file_sep>... | 124165381af0ccf152f267a072dbd9c5f733ce86 | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 30 | TypeScript | savalazic/elementz-ui | f1b013f4c3e8a7b2e96e0fc8299569896892b515 | 7ded8874564920a8fbc30d313627776ec3e48419 |
refs/heads/master | <repo_name>Disi77/Basnicka<file_sep>/README.md
# Program na přeházení pořadí slov, řádků a slok v básničce
Program vznikl v rámci kurzu PyLadies "Začátečnický kurz PyLadies – Ostrava - podzim 2018"
<file_sep>/basnicka.py
from random import shuffle
def hlavicka(string):
'''
Vytiskne hlavičku se zadaným strin... | 02f99b233f4d18bcec8c8c3c5c791c4c490885d7 | [
"Markdown",
"Python"
] | 2 | Markdown | Disi77/Basnicka | 139c4ef593f02501865c1567f64ece9907c56b20 | 124d53d17916138a701b2c9d35fc3a436770fa89 |
refs/heads/master | <repo_name>syshen/RACSwift-HackerNews<file_sep>/Carthage/Checkouts/ReactiveCocoa/ReactiveCocoaTests/Swift/PropertySpec.swift
//
// PropertySpec.swift
// ReactiveCocoa
//
// Created by <NAME> on 2015-01-23.
// Copyright (c) 2015 GitHub. All rights reserved.
//
import Result
import Nimble
import Quick
import Reactiv... | 476417b4f817afbd8c1a0af8e5ef5422f7316c77 | [
"Swift",
"Ruby",
"Markdown"
] | 16 | Swift | syshen/RACSwift-HackerNews | 76bd396b5dfdf247e0cbb867ff8f0740230b160c | 134447d91126ff92fd68d2af33af148e1fd97d3e |
refs/heads/master | <repo_name>chrisjsherm/region<file_sep>/README.md
# Overview
Domain model for a geographic region.<file_sep>/src/Region.js
const ConfigService = require('./services/configuration.service');
/**
* Geographic region.
*/
module.exports = class Region {
/**
*
* @param {string} name Name of the region.
* @para... | b51966bce914a55d5f40664f1bab7c1a7063c549 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | chrisjsherm/region | 245b0b7f8be6a1ab18f58db26119507b21e7f6ea | 4e47c9b958d08ca3ccf35c30e06e5935d4e47793 |
refs/heads/master | <file_sep>const axios = require("axios");
/**
* Component
*
* @param {String} apiKey
* @param {Object} opts options
* @param {String} [opts.hostname]
* @param {String} [opts.accessToken]
*/
var Component = function () { };
// -----------------------------------------------------
// Misc
// ----------------... | 0c8c7b110285ff5e6f45b2f73b043f18cd364f12 | [
"JavaScript"
] | 2 | JavaScript | Ideea-inc/3ps-node | 18610549fde46c74d9e4e26563fbb55aa0a7d4c1 | 31c93620426a70a0d7591111cd24c2f7e12dce39 |
refs/heads/master | <repo_name>coci315/vue_scrabble<file_sep>/src/common/js/scrabble.js
const VOWELS = 'aeiou'
const CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
// const HAND_SIZE = 7
const SCRABBLE_LETTER_VALUES = {
'a': 1,
'b': 3,
'c': 3,
'd': 2,
'e': 1,
'f': 4,
'g': 2,
'h': 4,
'i': 1,
'j': 8,
'k': 5,
'l': 1,
'm': 3,... | bdd4ed26ef79b24d8865f6f84dfa259dc4c94880 | [
"JavaScript"
] | 2 | JavaScript | coci315/vue_scrabble | 7e9681006e50484d86f986094a5d9a4b62f775ce | 6b1b46053bb8263438211e56921c4219abda42de |
refs/heads/master | <repo_name>sgrodzicki/runtimes.bref.sh<file_sep>/README.md
This repository contains the code for [runtimes.bref.sh](https://runtimes.bref.sh/).
It is implemented as a serverless PHP application using [Bref](https://bref.sh/).
<file_sep>/Makefile
preview:
sam local start-api --region=us-east-1
deploy:
sam package \
... | 226502ac6ac31f3e3a95ea749b37e7c14e5cc41e | [
"Markdown",
"Makefile",
"PHP"
] | 3 | Markdown | sgrodzicki/runtimes.bref.sh | 00bf975f2a03f2df040846f10a7ca26822757462 | 9b427f37c84c004608c63c0922922f0123e93626 |
refs/heads/master | <repo_name>CLAMP-IT/moodle-blocks_filtered_course_list<file_sep>/settings.php
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either ver... | f2356713fe80827c393c4cf6949eb6b6d8e71887 | [
"Markdown",
"PHP"
] | 7 | PHP | CLAMP-IT/moodle-blocks_filtered_course_list | d5a97b9066855cf69135fe85d55d10c455a2abb7 | 645bf4fa1b4c38ba63ebdfc7b484c0f6122294fd |
refs/heads/master | <file_sep>#pragma once
float ex_fmod(float a, float b);<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HeadSpin.CommonLib.Logging
{
public interface ILoggers
{
void LogError(String s, String s2, String s3);
}
public class Loggers : IL... | fa332d98158c984a639e97525d831dad4984baec | [
"C#",
"C",
"C++",
"INI"
] | 41 | C | scottyjoe9/SJDrone | c8f977f4c7d6d866f2ba68015270902268e6a876 | 21a5f64a2095edc2fb3e016b032f23bfbb537b7c |
refs/heads/master | <file_sep>import React from 'react';
import Header from './components/Header';
import {BrowserRouter, Route} from 'react-router-dom';
import HomePage from './pages/Home';
import TodoPage from './pages/Todo';
import UsersPage from './pages/Users';
import UserDetailPage from './pages/UserDetail';
class App extends Reac... | dfcf17f4af9e389a4d6aead0aeadc6d04c933ab0 | [
"JavaScript"
] | 1 | JavaScript | recepgums/todo-ders | 7993385f869c95076b06f884087fab3f0c4db527 | 57b5087670b0bdbb3f9da979f8694c4f8a231fbf |
refs/heads/main | <file_sep>####### Simple Flask ######
#!/user/bin/python
__author__ = "Midhunkumar"
__version__ = "1.0.1"
__status__ = "Prod"
#############################
from flask import Flask, request
app = Flask(__name__)
@app.route("/", methods =["GET","POST","COPY","PUT"])
def home():
if request.method == "GET":
retu... | ff68a395d69165774ce8f4e83c76f4b7fbf73b7c | [
"Python"
] | 1 | Python | midhunkumar22/test | 0594d0410c650b4c68ef6d983555e88ec7ea8f20 | 9f7bf3ed95c22a6dec3f7aa33eeb6d2cc11b0340 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
class SideMenuLayout extends Component {
constructor(props) {
super(props)
this.state = {
contentOpen: true
}
}
toggleSideMenu = () => {
this.setState({
contentOpen: !this.state.contentOpen
})
}
render() {
const { conte... | 519928411392f45b8210f59e438512e35860f86b | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | FlyMaple/flex-playground | 3f2ff42b3cce460ceeb8b34398bee978d20d4924 | b99f3484428c78faf4ae2fc5f3c125bf49c8ed72 |
refs/heads/master | <file_sep>var express = require('express');
var router = express.Router();
var db = require('../db');
var bodyParser = require('body-parser');
var fs = require('fs');
router.use(bodyParser.json()); // for parsing application/json
//router.use(bodyParser.urlencoded({extended: true})); // for parsing application/x-www-f... | c036bf11a5b65deaff26a495ef3ca07f26c048a4 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | MeidanNasi/ShoppingCart | f4d9a5bc4af919b74a624a49dea8024a148a22f7 | 8508e63dcc7fc90afcc57c736ee76502c9eed3f8 |
refs/heads/master | <repo_name>cricketue/hadoop-cdh-pseudo-docker<file_sep>/conf/run-hadoop.sh
#!/bin/bash
service hadoop-hdfs-namenode start
service hadoop-hdfs-datanode start
sudo -u hdfs hadoop fs -mkdir -p /tmp/hadoop-yarn/staging/history/done_intermediate
sudo -u hdfs hadoop fs -chown -R mapred:mapred /tmp/hadoop-yarn/staging
sudo ... | c30571ca8f844ced41091c82d582d7c1606c31f4 | [
"Shell"
] | 1 | Shell | cricketue/hadoop-cdh-pseudo-docker | c0c1a573a80a9f1f1207a79e78cde1ad440f0bd9 | 198566ea76aed304ff5e69057e9ca161f031e2e4 |
refs/heads/master | <repo_name>drbess/Python-genhash<file_sep>/README.md
# Python-genhash
This is a simple python program that hashes a string entered by the user.
<file_sep>/Psswd_hash.py
import hashlib
import uuid
def new_password(password):
salt = uuid.uuid4().hex
# The uuid generates a random number
return has... | 8c6bd7debdb193eea2fb3719ab2ad8d788dc5d5a | [
"Markdown",
"Python"
] | 2 | Markdown | drbess/Python-genhash | 4ff18392fe3133bcc6b66418828e4b2db44aec88 | ff292b7abb472e8cb2c0d94e683325d3092f3d1b |
refs/heads/master | <repo_name>MikeHartman/simple-thread-exercise<file_sep>/README.md
# simple-thread-exercise
Simple Thread Technical Exercise
The simplest way I can think of to treat this is how I'd probably do it without a computer (assuming I couldn't just eyeball it): mark off the days for each project on a calendar and use that to ... | 617c7c12859046cca9f97ec9f41f49fb45467db8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MikeHartman/simple-thread-exercise | 7eed5790e297c28d1514f90e0a0a9f39c8c43a17 | 72e029dc534bcde87c9219a8b98d256f3c94f509 |
refs/heads/master | <file_sep>class RefreshTweets {
constructor () {
console.log('test')
window.setInterval(this.update, 1000);
}
update () {
this.tweetsBar = document.querySelector('.js-new-tweets-bar');
if (document.body.scrollTop === 0) {
this.tweetsBar.click();
}
}
}
new RefreshTweets();
| aacdcf8ad3f67cd02c876c6e29a3d8d16c22582e | [
"JavaScript"
] | 1 | JavaScript | dwrdev/twitter-refresh | 40bbaa755574061bba9eb6945c25d141c603de98 | e29aa24154d847487a796a882c1ac9fc763a260d |
refs/heads/master | <file_sep>package edu.ktu.myfirstapplication;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class Thir... | feb2453f6192962f52a145498329da16dbe993f6 | [
"Java"
] | 1 | Java | JackyMyBoy/Apps | abd49f6ecd1bebb407f42c3d7f00dbd652ca1448 | f58f882723b2493b44452471616bb5f59cebde2f |
refs/heads/master | <repo_name>SecuritySquad/webifier<file_sep>/src/main/java/de/securitysquad/webifier/config/websocket/MessageValidateInterceptor.java
package de.securitysquad.webifier.config.websocket;
import de.securitysquad.webifier.config.WebifierConstants;
import org.springframework.context.ApplicationEventPublisher;
import org.sp... | f98649e5a7d861a042c37afeba8a148f2f67a9d9 | [
"JavaScript",
"Markdown",
"INI",
"Gradle",
"Java",
"Shell"
] | 18 | Java | SecuritySquad/webifier | af7e780f626c16680e588bbd7e3e86cc232ffe34 | f53bb376c522a94e1efba0964170d6012e118a8c |
refs/heads/7.0 | <repo_name>dvitme/openerp-dav<file_sep>/so_tax/__openerp__.py
# -*- coding: utf-8 -*-
{
'name': 'Sale Order Tax',
'summary': 'Sale Order Tax',
'description': """
This module adds a tax field whose value put in every product record.
This is also being made in customer invoice.
""",
'version'... | 75c7bacae1c681ea074365a7ef2df3fc0fa18ba0 | [
"Python"
] | 2 | Python | dvitme/openerp-dav | 06fc0310bd636818b8c52980231158ec99211408 | ada6fe5a4b15c49639d9ab187dec0af3a30997a1 |
refs/heads/master | <repo_name>Cayshin/hobby-os<file_sep>/start.sh
qemu-system-i386 -cdrom build/hobby-os.iso
<file_sep>/Makefile
iso := build/hobby-os.iso
kernel := build/kernel.bin
grub_cfg := kernel/grub.cfg
all: kernel.bin
boot.o: kernel/boot.asm
nasm -felf32 kernel/boot.asm -o boot.o
kernel.bin: boot.o kernel/linker.ld
i686-elf... | dc8d23a4e9251a614ec465ee2b377006fd84ece7 | [
"Makefile",
"Shell"
] | 2 | Shell | Cayshin/hobby-os | 8b3383cdc8e5ff78e70a050a93b4fca494cd04d8 | c25fd6d0aa5e5bd5a45dae283a19fa562e4943f9 |
refs/heads/master | <repo_name>ThePatrickLynch/canvas<file_sep>/mysql/import.sh
<!DOCTYPE html>
<html lang="en" class=" is-u2f-enabled">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
<meta charset='utf-8'>
... | de23e4571d9b5ffd00429530ccfda46539b5cc93 | [
"Markdown",
"JavaScript",
"Makefile",
"INI",
"R",
"Dockerfile",
"Shell"
] | 8 | Shell | ThePatrickLynch/canvas | 15bf009cf9d3facbe7be98290172d9208af99b34 | 839a37f497bea93d5842942a5e853b09898ced61 |
refs/heads/master | <file_sep>import AppDispatcher from '../dispatcher';
import ActionTypes from '../constants';
export default {
receivedTweets( rawTweets ) {
AppDispatcher.dispatch({
actionType: ActionTypes.RECEIVED_TWEETS,
rawTweets
});
},
receivedOneTweet( rawTweet ) {
AppDi... | 69a0c33a243bfc5910c0b354671bcddd847c9f0a | [
"JavaScript"
] | 1 | JavaScript | gailsteiger/twitter-clone | 0ecb07f9466fd921a7eff02ee5a646cb0af77d84 | 1a4e0e158c236bf5285efffc8c344c04e59e5941 |
refs/heads/master | <file_sep># nba-stat-tweeter
This is a Python script to both fetch stats from the latest NBA games, and post them to Twitter. It uses the Twitter API and the nba-api for Python.
The script expects the Twitter authentication items in the file at the following location: "~/keys/twitter/keys"
The script requires numpy f... | 167202a67d198b8f060454b80ee3ec73720ce22e | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | jayzym/nba-stat-tweeter | 062b4d1e82391ead58f18da297541d7425b60e3c | 3a209c6cbbc282cd5eb4490580cda1ac752bbb02 |
refs/heads/master | <file_sep>import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import Button from './Button';
import Checkbox from './Checkbox';
import Dropdown from './Dropdown';
import TextField from './TextField';
const Container = styled.div`
display: flex;
min-height: 100vh;
jus... | e2545265c47ee58e2280ded132fc3c26401cf507 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | rtabulov/amigoweb-test | e46815f61ba60f892e7007a496e25920467ed7ca | 8917d20c700804a7145789c63b5a47580104f0ee |
refs/heads/master | <file_sep>$(document).ready(function () {
$.fn.bootstrapSwitch.defaults.size = 'normal';
$.fn.bootstrapSwitch.defaults.onText = 'Ja';
$.fn.bootstrapSwitch.defaults.offText = 'Nee';
var friday = $('#friday');
var saturday = $('#saturday');
var sorting = $('#sorting');
var selling = $('#sell... | b94de58f0664d406f5d4c869f09e2c89ccba8a4b | [
"JavaScript",
"HTML"
] | 2 | JavaScript | ahassa01/bamboesmanager | f5e6532f7a3de416cb55073fa4880bae35327967 | 3ba23ab252855936af76149b2cb313188f2d2bbd |
refs/heads/master | <file_sep>//
// Created by julian.krieger on 9/6/2021.
//
#include <sstream>
#include <iomanip>
#include "hack.h"
template< typename T >
std::string int_to_hex( T i )
{
std::stringstream stream;
stream << "0x"
<< std::setfill ('0') << std::setw(sizeof(T)*2)
<< std::hex << i;
return s... | 3246d82fecfd75966eca32130e31183b5ba0088e | [
"Markdown",
"C",
"CMake",
"C++"
] | 13 | C++ | juliankrieger/The-Binding-of-Isaac-Rebirth---Internal-Hack | 66bf54fa0e08cae4cb26f729d524a237f70b557a | 456afd9e79b96dbb6c855f1ae2604efeac4d64b2 |
refs/heads/master | <repo_name>pp1314add/xm<file_sep>/aishijing/dic/Dictionary.java
package com.chuange.aishijing.dic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;... | 43dcd41b22328c45b027ba7230182ee7d7092173 | [
"Java"
] | 51 | Java | pp1314add/xm | 47c729e77c6e0b9e5d5e4ebb107b81c63e83584a | 5d3bfd6160669addc739e3d0cd2f4bfa9db7333e |
refs/heads/master | <repo_name>creatorkuang/miifang<file_sep>/questions/start.php
<?php
/**
* questions start.php
*/
elgg_register_event_handler('init', 'system', 'questions_init');
function questions_init() {
//register library for questions
$root = dirname(__FILE__);
elgg_register_library('elgg:questions', "$root/lib/questions.ph... | 2bbf87c7978cfb5c0904f82d4438ee8795e0f520 | [
"Markdown",
"PHP"
] | 67 | PHP | creatorkuang/miifang | 670863234806a9c12e7fbdf3562033cf717de0c2 | 1c8a8c5c8e997c351a8059d842b743b8d841d0dd |
refs/heads/master | <repo_name>ForgotPS/WeJump<file_sep>/test.py
#encoding=utf-8
import math
import numpy as np
import h5py
import matplotlib.pyplot as plt
import scipy
from PIL import Image
from scipy import ndimage
import tensorflow as tf
from tensorflow.python.framework import ops
from cnn_utils import *
dataset = "./dat... | 0026ebbb4a8ffbf40e17a88cb3d144c52eaf730f | [
"Markdown",
"Python"
] | 5 | Python | ForgotPS/WeJump | 8e9b2d74050d60d601169a18ebc1ca2acf9be05c | 21cd7e9c71649889b502a97b5cf1c58705eea7a3 |
refs/heads/master | <file_sep>import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppComponent } from './app.component';
import { ComboBoxComponent } from './combo-box/combo-box.c... | c96a0c680c33eb9a44aebf447cc48168e64366c2 | [
"TypeScript"
] | 1 | TypeScript | chanzer0/angular-resources | 2875ddc5b47bf0e8ea357d1d9b00d931a515d469 | 96962633bf930170df55216c8434bb74c3d155eb |
refs/heads/master | <repo_name>subtleGradient/ruby.tmbundle<file_sep>/Test/here_docs.rb
# If you change anything, be sure to verify Ruby syntax
# TODO: unresolved issues
#
# text:
# "p << end
# print me!
# end"
# symptoms:
# not recognized as a heredoc
# solution:
# there is no way to distinguish perfectly between the << operator and th... | 668fd389b98cc65b6766293f69b5ecae0a29cad4 | [
"Ruby"
] | 1 | Ruby | subtleGradient/ruby.tmbundle | 6628c8cbcc06a44dbfe3144e889a3a86a5c2e6ea | b1d1584de0ea95e9e13f0abbaa74dc880c83df21 |
refs/heads/master | <repo_name>shanebarringer/zacks_pizza<file_sep>/app/controllers/home.rb
def home
end | dfc34287e01b751f2f3a15b9cb14109f94669e7a | [
"Ruby"
] | 1 | Ruby | shanebarringer/zacks_pizza | a7ce5e2fd13cf8837cdc40311e1936a19bddf817 | db2022221a234d6dc899602506a68a5fca58bbd6 |
refs/heads/master | <repo_name>amandinedaigle/matrice-competence<file_sep>/src/Amandine/MatriceCompetenceBundle/Form/Type/CompetenceType.php
<?php
namespace Amandine\MatriceCompetenceBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class ComptenceType extends AbstractType{
... | 5ae713a07201298e8c34108264369e47bd420c33 | [
"PHP"
] | 6 | PHP | amandinedaigle/matrice-competence | 4d83e505aad539b60a8faba33110b384ca8318cd | 45bf8033eb2e80d6b74ac3d31614dc89aa8081cc |
refs/heads/master | <repo_name>stahlleiton/EWKAnalysis2020<file_sep>/Skim/HiForest/skimTree.C
#include "skimTree.h"
void skimTree(const std::string& type="muon")
{
const std::string inDir = "";//"/eos/cms/store/group/phys_heavyions/anstahll/";
const std::vector<std::string> inFiles = {inDir+"HiForestAOD_1192.root"};
// prepare m... | c0799e2b98897349326d3119208dacaf7600efc4 | [
"C",
"C++"
] | 2 | C | stahlleiton/EWKAnalysis2020 | d444a98462f51d0c23ad5046b421ec27f77b774d | 0db8ea1f9dd44917960b697d2baf1aa408ef785c |
refs/heads/master | <file_sep><?php
define('DB_HOST', 'localhost');
define('DB_USER', 'id8936460_amuminho1819');
define('DB_PASSWORD', '<PASSWORD>');
define('DB_NAME', 'id8936460_luxdb');
?><file_sep># AMU
Aplicações Multimédia e Ubíquas - Monitor de Nível de Iluminação (Android App)
<file_sep>package com.example.luxapp.Activ... | 46d82643a4e8abc07d3d73f5f5d09809023ae65f | [
"Markdown",
"Java",
"PHP",
"SQL"
] | 16 | PHP | Nexturn/AMU | b39e3309972fcfc3a53ed7348df795549bad0b33 | d406b3ca746e8e36b334e3e1abbb6343984cd275 |
refs/heads/master | <repo_name>wostlund/systems-06signal<file_sep>/makefile
compile: sig.c
gcc sig.c -o driver
run: driver
./driver
clean: *~
rm *~
<file_sep>/sig.c
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
static void sighandler(int signo) {
if(signo =... | 41a760499baff7a91bb76f023e0a90beb3f736a2 | [
"C",
"Makefile"
] | 2 | Makefile | wostlund/systems-06signal | e1effcc6bcadc9b060fdb3b2bf98dc210dd70d77 | 3bf1acc98efa62a27dc291aa3973d7f9bc7ebe36 |
refs/heads/master | <repo_name>ajzajac/ttt-10-current-player-bootcamp-prep-000<file_sep>/lib/current_player.rb
def turn_count(board)
turns = 0
board.each do |tile|
if tile == "X" || tile == "O"
turns += 1
end
end
turns
end
def current_player(board)
if turn_count(board) % 2 == 0
... | 8319e9842a5ec5be840a31dc595ae17bf818ede5 | [
"Ruby"
] | 1 | Ruby | ajzajac/ttt-10-current-player-bootcamp-prep-000 | 55eecb66036095f75c271797f1bd1996663325f4 | a6847b3e9ab6e531dc208f17a0ad2c099c0ad460 |
refs/heads/master | <file_sep>AE-Tools
========
<file_sep>// ==UserScript==
// @name AE-Tools
// @namespace e3e6.entellitrak
// @include *.entellitrak.com*
// @exclude *.entellisql.create.request.do
// @version 7
// ==/UserScript==
// [1] wrap the script in a closure (opera, ie)
// do not spoil the global scope
//... | fab9cdec17b1a7bc7d7c39d9f78776744920705c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | e3e6/AE-Tools | 60de1e9adfb1139de81ac4ec4d9abd22b2adefef | 5cf088f318c94f591efb547d6e94e4efd84509ba |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.