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>christopheleduc/Jeu_du_taquin<file_sep>/script_cl.js
// mouvements possibles
const HAUT = "H";
const BAS = "B";
const DROITE = "D";
const GAUCHE = "G";
// nombre de cases par côtégit
var side = 4;
// changement de style css en fonction de "side"
document.documentElement.style.setProperty("--side", side);
... | bb7b956816b597cfe967c7c4f3adb50c02b81d09 | [
"JavaScript"
] | 1 | JavaScript | christopheleduc/Jeu_du_taquin | fbd3d7f910167411cba50f5dd0374b1afd862276 | 12695bf9ecb2f96c89f9b76df3ee9cb62536193b |
refs/heads/master | <repo_name>York5/MyRepo<file_sep>/js/test.js
function show() {
console.log('Hello World!');
}
function show2() {
console.log('Javascript is Awesome')
} | 10c0fbef6f52fa6e7000ece43bd8939e51897750 | [
"JavaScript"
] | 1 | JavaScript | York5/MyRepo | a31ed30ad02111c7ec5eb980e11ab9a3e13881b1 | 4c45c00bf528aab39a47e68ca7bc63bc5e7f08dd |
refs/heads/master | <repo_name>minnie-J/Hello<file_sep>/Hello/src/main/java/hello/minhee/domain/ImagesDomain.java
package hello.minhee.domain;
public class ImagesDomain {
private int ino;
private int pno;
private String url;
public ImagesDomain() {}
public ImagesDomain(int ino, int pno, String url) {
this.ino = ino;
this.pno ... | 1057bbbb92634f183ae5e2aa0b7ea521ea5fa4ac | [
"Java"
] | 6 | Java | minnie-J/Hello | 8f27efa3e4bf7f17211250bb921384716f9dc052 | fe07b9b4f4d20c7afe680ea2e6f34a7cd49bcf48 |
refs/heads/master | <repo_name>natalie-mbula/nana<file_sep>/PathFinder-Refurb.ino
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
const int trigPin = 22 ; // Sonar sensor pin Trigger
const int echoPin = 23 ; // Sonar sensor pin Echo
long duration ; // Sonar Duration Variable
const int pathS1 = 52;
const ... | e391911aae24c5cbb7bd54ee7b8bfb3824515812 | [
"Markdown",
"C++"
] | 2 | C++ | natalie-mbula/nana | 7a0cc52ca62c6ca386e9dc83ccf48188844fd7b7 | bf8a96692530bf9347c8f4d19745c11698062a37 |
refs/heads/master | <repo_name>SergeySSmirnov/kohana-defender<file_sep>/readme.md
#Kohana defender module
Allows apply authentication and authorization capabilities on your site.
This project based on:
- https://github.com/Wouterrr/A1;
- https://github.com/Wouterrr/ACL;
- https://github.com/Wouterrr/A2.<file_sep>/classes/Defender/Defend... | 172a5cc976d43418e01299ad26636cf965d7f5f2 | [
"Markdown",
"PHP"
] | 5 | Markdown | SergeySSmirnov/kohana-defender | 4c5899bb5d0ed0c86fc28f8a40c1ca2e6b6e2bc0 | 3bba2bd28441f3b60451ff41652a36d0eb4bc1e2 |
refs/heads/master | <repo_name>herbertg14/user-activity-code-challenge<file_sep>/attainia_ws/Attainia_Api/views.py
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import User
from .serializers import UserSerializer
@api_view(['GET', 'POST'])
def a... | 450a5c7fa4810cf0f4c7a01bc2ab42290f377219 | [
"Markdown",
"Python"
] | 4 | Python | herbertg14/user-activity-code-challenge | 01a242e3ba01078b505cfff7901821dbe94bf6c0 | 3a67e663d7e92d9ee3015482fd935e7ab6b90e62 |
refs/heads/master | <repo_name>aprusik/EXERCISE-grid-based-motion-planner<file_sep>/README.md
# Grid-Based Motion Planner Exercise
Plans a route through an arbitrary grid with blocked, empty, start and goal cells so that each goal is visited.
## Input Syntax
1. Line with number of collumns in grid (`col`)
2. Line with number of rows in g... | b8da6ffc20618488494a56086920346bb51672f8 | [
"Markdown",
"Shell"
] | 2 | Markdown | aprusik/EXERCISE-grid-based-motion-planner | 82383968392039dc01fe01db99bb7a4c7aba363c | 669e0a165ef3a7fa9f8ce6e8beb52d575d87ca3f |
refs/heads/master | <file_sep>## Week 1 Project - <NAME>
# Impots data into R
data <- read.table("./household_power_consumption.txt", sep = ";", stringsAsFactors = F, header = T, nrows = 70000)
# Converts class of Date and Time variables
dates <- as.Date(data[,1], "%d/%m/%Y")
data[1] <- dates
# Selects only the required dat... | 8d59843cfcbcb7a87e59c0ee493333c4f6607a4f | [
"R"
] | 3 | R | brianbohorquez/ExData_Plotting1 | 3fdb0697f02b10dabc957ec96780cb051fb0304f | 98c62655517a5cee9f3698a1a68289ae28117c63 |
refs/heads/master | <repo_name>15jennlee15/TPOT_scripts<file_sep>/fMRI/rx/models/affect/Onesample/group_sbatch_con0013.txt
#!/bin/bash
#SBATCH --time=0-00:01:00
#SBATCH --partition=short
# Set your study
STUDY=/projects/adapt_lab/shared/TPOT
# SPM Path
SPM_PATH=/projects/adapt_lab/jlewis5/ERdissertation/spm12
# Set MATLAB script pat... | dae2b690e58bc5254a3cf9e4738ff16ed2c6abb5 | [
"Shell"
] | 1 | Shell | 15jennlee15/TPOT_scripts | 7deded80b58fcf8bc0e0cf046c411cb7b1ef9d15 | 456b7c92de56754eddef1f01147ee760a5c1f3fa |
refs/heads/develop | <file_sep>install: git-hooks grunt-tape
bower install; \
npm install; \
npm run-script update-webdriver;
clean:
rm -rf node_modules vendor build bin tmp;
reset: clean install
grunt-tape:
rm -rf ./node_modules/grunt-tape; \
git clone <EMAIL>:cosmopolithome/grunt-tape.git ./node_modules/grunt-tape; \
cd ... | f354f32dfa18b6ef9bc6dc75c287848adcc8ad34 | [
"Markdown",
"Makefile",
"Shell"
] | 5 | Makefile | cchaudier/test_repo | 71b4b84be71431c40b262f8959838f145b672aa5 | e2dcd74b2962185ca68877fa8bfc70fd6e962f09 |
refs/heads/master | <repo_name>prashant169/FlipCoinHeadOrTell<file_sep>/FlipCoinCombination.sh
#! /bin/bash
echo -e "enter the times to toss coin \c"
read num
Head=0
Tail=0
for (( i=0; i<$num; i++ ))
do
random=$(( RANDOM%2 ))
if [ $random -eq 1 ]
then
(( Head++ ))
else
(( Tail++ ))
fi
done
declare -A Coins
Coins[(( Head ))... | 1d27fbcddcf9032398ba82ef8e47f1b1048b9aed | [
"Shell"
] | 2 | Shell | prashant169/FlipCoinHeadOrTell | ac4fa716cbf30a62024f250e843861613ab4283c | 0b002460af75be89c4d2ad826d1eee7448fb5c57 |
refs/heads/main | <repo_name>donebd/lowproglabs<file_sep>/laba5/mylib/src/testLib.c
#include "stree.h"
#include <stdio.h>
#include "testLib.h"
#include <stdlib.h>
#include <time.h>
void test0() {
srand(time(NULL));
printf("Test creating tree\n");
printf("Enter root of tree: ");
int root;
scanf("%d", &root... | ce5087f7ac976ea33f044f3a1f63d970c5e0e35c | [
"Markdown",
"C",
"Makefile"
] | 12 | C | donebd/lowproglabs | 635acbdd216d983a45ff6c189dd630c19f082cef | bbce2b91b6a85cb59b8fff0f2e778925750fcf73 |
refs/heads/master | <file_sep>//
// Page.swift
// MovieDB
//
import Foundation
/// A class used as a generic wrapper to handle paginated requests.
internal struct Page<Entity: Decodable> {
/// A currently downloaded page.
let page: Int
/// An array of generic results associated with a given page.
let results: [Entity... | 32d91fab522af21c180ba011f962415671354f5b | [
"Swift",
"Ruby",
"Markdown"
] | 22 | Swift | poszposz/moviedb | d796a34be8f49f77997849d650fe0b9142a08570 | 2e73c5d9e8c5115810c3b3bf9149b01f27665671 |
refs/heads/master | <file_sep>class Admin::Blog::BaseController < ComfyBlog.config.admin_controller.to_s.constantize
# ...
end<file_sep>module Blog::ApplicationHelper
def comfy_blog_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options!
form_for(
record_or_name_or_array,
*(args << option... | 5d30239b84459c524efbb2c100280d566ee3fdf3 | [
"Markdown",
"Ruby"
] | 29 | Ruby | CabForward/comfy-blog | a48283f1feabbfa935e197482ffca7c15b2d79ed | 88cd02cda2c05f93da9a920f6b71218f52fef7af |
refs/heads/master | <repo_name>wilkerjnoleto/sorteflashapp2<file_sep>/app/src/main/java/com/sorteflash/sorteflashapp/ListPedidoActivity.java
package com.sorteflash.sorteflashapp;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.v7.app.AppCompatActivity;
import android.widget.Li... | 641de92ea2a91bd97ce5f883a285eb7672909135 | [
"Java"
] | 4 | Java | wilkerjnoleto/sorteflashapp2 | b1ea9d81954e4a68b86d5c62166b1e44871df778 | 1480cfb207f45a9748e14e91995b6b6f18b04fd8 |
refs/heads/master | <repo_name>zorksylar/mem-bench<file_sep>/base/memory_utils.cpp
#include "memory_utils.hpp"
// for OSX
#ifndef MAP_ANONYMOUS
# define MAP_ANONYMOUS MAP_ANON
#endif
namespace base {
void *map_anon_memory(unsigned long size, bool mlocked,
const char *opeartion, bool zero) {
void *space = mmap(NULL, size, PR... | b85752ea92c7a5811abcca76010589219cd689f5 | [
"Makefile",
"C++"
] | 5 | C++ | zorksylar/mem-bench | 3d18e58f1bcb6a97e6e9e9fc4311b899a6f1c4cc | 3c3e524c974cf0779902dfd5455cebcb5353f68f |
refs/heads/main | <file_sep>package mavenBank;
import Entities.Customer;
import Entities.SavingsAccount;
import mavenBank.DataStore.CustomerRepo;
import mavenBank.DataStore.services.BankService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import static org.junit.jupiter.api... | 1ff63e07aebc294a99c2d1559b078873b69b1cfe | [
"Markdown",
"Java"
] | 15 | Java | akenz1901/BankApp | 1e96ea8e7e86bf36afa0cf2288575903c6a3cf2c | 1f95dde08be2951a36af8248779116db399e7a80 |
refs/heads/master | <repo_name>cwal1220/RaspberryKPU<file_sep>/Python/switch_test_1.py
import RPi.GPIO as GPIO #GPIO를 사용하기 위해 추가
import time #time.sleep을 사용하기 위해 추가
LED1 = 23
SW = 18
GPIO.setmode(GPIO.BCM) #BCM을 이용하면 GPIO num으로 표시, BOARD를 이용하면 Pin num으로 표시.
GPIO.setup(LED1, GPIO.OUT) #GPIO23를 사용선언
GPI... | 49a6c7082d97293c3970f0c4fe5b720afb8b4064 | [
"C",
"Python"
] | 27 | Python | cwal1220/RaspberryKPU | 032308069c587db2b7b8a6b324b3716ce2dc341f | d6ef8ad453a28ad7abbf0f83e5af4bba380704d9 |
refs/heads/master | <repo_name>blurplejs/extension<file_sep>/index.js
module.exports = {
Command: require('./src/Command'),
Bot: require('./src/Bot'),
Webhook: require('./src/Webhook')
}
<file_sep>/src/Command.js
module.exports = class Command {
constructor (extension, signature) {
this.extension = extension
... | c82d79900c7611d4e3ecadf2843ce3ab74526342 | [
"JavaScript"
] | 3 | JavaScript | blurplejs/extension | 7bc15660e2271d3b9d045d366ddb9b944d517775 | 543e754b98685fa3c7b90626ddb15869be0f4b6c |
refs/heads/master | <file_sep>/*------------------
メモ帳上での操作
------------------*/
$("#open-browser").on('click', function(){
$('#search').removeClass('hidden');
$('#memo-card').css("display" , "none");;
})
function hideWebBrowser(){
$('#search').addClass('hidden');
$('#memo-card').css("display" , "");
}
//キー入力をするとメニューに戻す
... | c490951e1d2457ad9e14f54006c041d5d6abd07e | [
"JavaScript",
"Python",
"PHP"
] | 4 | JavaScript | cha1ra/localstorageHomework | 39cf8206eca615d7615c8f47af6e9ec01001f17b | 983c18d626fa60d2dac014884c32164fd30aee11 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""CursesChat v0.3
A simple local chat system using Ncurses"""
import curses
import os
import pickle
import time
class Data:
"""Chat log data"""
def __init__(self, users=[('Adrien', 0b1110)]):
self.users = users
self.curUserId = 0
... | 0f3e94bfc5e1b183ced100d515e76241c1336748 | [
"Python"
] | 1 | Python | adrien-s/Chat.py | fb00fe61060bc10177ddf05bc83daf47c47d047c | 96a8906dfa7952421a651212e402c38fac01cc1d |
refs/heads/main | <repo_name>edangx100/Dog_Tinder<file_sep>/server.js
require("dotenv").config();
const express = require("express");
const app = express();
const PORT = process.env.PORT || 3000;
const mongoose = require("mongoose");
const MONGODB_URI = process.env.MONGODB_URI;
// Mongoose connection
mongoose.connection.on("error", (er... | c7d15cfbaf4ed98bff86abd4e5e818b0f5e37918 | [
"JavaScript"
] | 2 | JavaScript | edangx100/Dog_Tinder | 98de3d2ef3ba5da1209fee1b46fc457e3895a861 | 222a4184fb2b9cdfc16e1e4cf94a909e875a7e2c |
refs/heads/master | <file_sep>"""
Your chance to explore Loops and Turtles!
Authors: <NAME>, <NAME>, <NAME>, <NAME>,
their colleagues and <NAME>.
"""
########################################################################
# DONE: 1.
# On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name.
############################... | ad0b95c5fab919a839af441162354d331b0840f4 | [
"Python"
] | 1 | Python | riveraar/IntroductionToPython | be4d6bf7c347a9289a7e41e1b7dd24657ef6fdec | 191d70e37042a455ea787f2ce0168dc4c5f5452b |
refs/heads/main | <repo_name>sfc-gh-cxu/go-testmod<file_sep>/pkg/pkg.go
package pkg
import "fmt"
func Foo() {
fmt.Printf("hello\n")
}
<file_sep>/go.mod
module github.com/sfc-gh-cxu/go-testmod
go 1.15
| 8a041382f092403b561ee6e6b1b8056c0168ec34 | [
"Go Module",
"Go"
] | 2 | Go | sfc-gh-cxu/go-testmod | e69647ca7e4babd71daf80b4b4a8350e62def673 | 36fd99ae125034e8d3af6273d575be138925965a |
refs/heads/master | <repo_name>vladislav2/MyCV<file_sep>/MyCV/CollectionVC.swift
//
// CollectionVC.swift
// MyCV
//
// Created by user on 15.04.2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
private let reuseIdentifier = "Cell"
class CollectionVC: UICollectionViewController {
let nameProjectArray = ["F... | 4e1acf62d3dcc7f66aae8dfdee1f18ae018daf26 | [
"Swift"
] | 4 | Swift | vladislav2/MyCV | 4c92cc35f3f1525aaf01ff9fa8fd127e5f3f2eef | baca3ec115180f7d53b2425106e4a94d1d08bd14 |
refs/heads/master | <file_sep>console.log('artwise is so cool!');
var host = location.origin.replace(/^http/, 'ws')
var ws = new WebSocket(host);
//global variables that update mondrian
artwise = {};
artwise.data = [];
ws.onmessage = function (event) {
artwise.data = JSON.parse(event.data);
console.log(artwise.data);
};
functi... | 72a5d34852b740cdd2d8e220e01511a309656827 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jvdheyden/artwise | ab98785e933386b105bb36a05576c91900ac5312 | f8d04daeaa63b8bc40e088c3b6ae2510cf47871d |
refs/heads/main | <file_sep>val zero = 0
val message = "Hello world !"
fun sayHello() = "hello everyone"
private lateinit var answer: String
private val question = "What is your name?"
fun main(args: Array<String>) {
println(question)
answer = "akahito"
println("Your name is $answer")
}
// $
// What is... | f9aabdc5e1d94445b00bd173105b27a2b12e9611 | [
"Kotlin"
] | 1 | Kotlin | akahito1006/ocr_kt | 1287fa372029dbd2a5cae6235fc997b57e6c9a4e | 37ddbf007574f52001b02978d8e112bf8bf1e2ea |
refs/heads/master | <file_sep>Denna primtalsfaktorisator var skapad av <NAME> (19BEHE)
för användning av Stockholm Science and Innovation School<file_sep>
from __future__ import division
import math
while True:
def primenumbers(x):
while x % 2 == 0:
print(2)
x = x / 2
for i ... | 2552426c88e861e9a8252a405a58f38aa7072d3e | [
"Python",
"Text"
] | 2 | Text | TheGoldenCow/Primtalsfaktoriseraren | 30da691df93a24c3c95ba4dac30436221a78f708 | 8419e685632d8eb118ab3685eb969cf339b94778 |
refs/heads/master | <file_sep>---
title: "Remote FASTER - Basics"
permalink: /docs/remote-basics/
excerpt: "Remote FASTER"
last_modified_at: 2021-04-12
toc: false
classes: wide
---
Details coming soon!
<file_sep>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using FASTER.core;
using Syst... | 53ae1288e91729ec4eabf7971ebd8a07f52b8fb0 | [
"Markdown",
"C#"
] | 5 | Markdown | tommydb/FASTER | 844dc8ae81e16999b25641648176de6fa35c2fe0 | 6dacbdafbdced460fdf7a09f909701dc1828865f |
refs/heads/master | <file_sep># my dev box my setup
zsh:
# install zsh
brew install zsh
chsh -s /bin/zsh # change default shell
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ln -s ~/dotfiles/zsh/dato-af-magic.zsh-theme ~/.oh-my-zsh/themes/
mv ~/.zshrc ~/.zshrc.pre-setup... | fa3d329cae6baa8b1b91986ef7d5b308c8f5e666 | [
"Makefile",
"Shell"
] | 3 | Makefile | proteos/dotfiles | 4ba2abce94861e24853dfa122d0f51decf685b92 | 17e38a36e1d15871d8e2940e5521c04d53f9440c |
refs/heads/master | <repo_name>ayrus-surya/wt2-data-visualizer<file_sep>/home/index.php
<html>
<script>
<?php
echo "parent.obj.response('hello')"
?>
</script>
</html> | d2f0f3e687c07682716d7a7d2b157e3296b15a81 | [
"PHP"
] | 1 | PHP | ayrus-surya/wt2-data-visualizer | 718085706437d7f8177d5ae221b45714f86467d2 | 70413130355c5ed2079406873012e00343169633 |
refs/heads/master | <file_sep>this.Lifts = React.createClass({
getInitialState: function() {
return {
lifts: this.props.data
};
},
getDefaultProps: function() {
return {
lifts: []
};
},
addLift: function(lift) {
var lifts;
lifts = this.state.lifts.slice();
lifts.push(lift);
return this... | 64fec36af88bc1768742382bf19991e324b8a87d | [
"JavaScript"
] | 3 | JavaScript | TorchLabs/react-rails-wrapper | d24f7142f3fdf26ad3f86b00dc6cce0f631c77a9 | 835bda173f78ed6b164a0009e769d5d69c144300 |
refs/heads/master | <file_sep>from django.urls import path
app_name = 'experiments'
from .views import ExperimentListView
urlpatterns = [
path('', ExperimentListView.as_view(), name='home')
]<file_sep>from django.views.generic.list import ListView
from .models import Experiment
class ExperimentListView(ListView):
model = Ex... | b18449be6b9d6f111f84c552aa1410501394cc26 | [
"Markdown",
"Python"
] | 8 | Python | cesslab/ceap | 4585c86ce90c248fe169da9db1c6fe09c16ff8dc | 8ec053bc1a84c8a8b376516a4e19e95b6b26d417 |
refs/heads/master | <repo_name>vongola12324/LBSBroadcast<file_sep>/app/src/main/java/tw/vongola/lbsbroadcast/WebSocketService.java
package tw.vongola.lbsbroadcast;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.speech.tts.TextToSpe... | e44a2e676e223e8947e62272dc6080c121b29e90 | [
"Markdown",
"Java"
] | 3 | Java | vongola12324/LBSBroadcast | e06be5adb9d0eb2e80d51a6c5db3dbff31ef96bb | afad8025c60df8612494cb1f90380dc6b099318b |
refs/heads/master | <repo_name>Edfa3ly/sentry-symfony<file_sep>/test/Fixtures/CustomExceptionListener.php
<?php
namespace Sentry\SentryBundle\Test\Fixtures;
use Sentry\SentryBundle\EventListener\ExceptionListener;
/**
* @package Sentry\SentryBundle\Tests\Fixtures
*/
class CustomExceptionListener extends ExceptionListener
{
}
<file_se... | 3d52060f4e349985d6fcbf291e4f035804845ab4 | [
"Markdown",
"PHP"
] | 7 | PHP | Edfa3ly/sentry-symfony | b64a72673da2ac2243aed509d1b3c0aad4119ee4 | 8b21beb4adca45d3fb5d1022c3655a6f3ce49ead |
refs/heads/master | <file_sep>/*
* Student.cpp
*
* Created on: Sep 10, 2019
* Author: Huy
*/
#include "Student.h"
#include <string>
using namespace std;
/*void Student::setName(void)
{
cout << "Enter name: " << endl;
//gets(name); //To include spaces in the input
cin >> name;
cout <<"Student's name is " <<... | 9baba709883feddae3ccf1630a8a38f8cd35145b | [
"C++"
] | 3 | C++ | minhhuyle1993/Student_Class | 7f3d94b06ba8d4e6c20833866f79435921e6c3db | 97994a7c1079fb7641bbed4d7dbf69ec06363a15 |
refs/heads/master | <file_sep>import { QueryResult } from "@apollo/react-common";
import { QueryHookOptions, useQuery as _useQuery } from "@apollo/react-hooks";
import { Operation, OperationData, OperationVariables } from "./operation";
export abstract class Query<D, V> extends Operation<D, V> {}
export const useQuery = <T extends Query... | 1e0d802fa98cff377b2f51d4f10666c695e002b9 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | jbhannah/react-apollo-typed-hooks | bcfd6adf2e475611945675f48c776f6033ace3a1 | 8df8d484fc04eea5d8593eae43eb241bb06adb0c |
refs/heads/master | <repo_name>moningkai/RoadPlane_StereoMatching<file_sep>/RoadPlane_Estimation.cpp
//
// Created by nvidia on 7/17/18.
//
#include "RoadPlane_Estimation.h"
namespace rm
{
int myget_time()
{
time_t t_sec0;
struct timeb tb_start;
ftime(&tb_start);
time(&t_sec0);
return (int... | 492008678a332fec2a2bc1df8d7ff612618719c5 | [
"Markdown",
"CMake",
"C++"
] | 10 | C++ | moningkai/RoadPlane_StereoMatching | 2917c8ce36d728486721ddfa428695dd36012036 | 42039953757ae75d0b4a55a83553abab6d9f95ce |
refs/heads/master | <file_sep>from dataProcessing import *
from textTester import *
def main():
#Input data ->Mahdi
customerInterArrivalTime = [1,2,3,4]
ableServiceTime = [5,6,7,8]
bakerServiceTime = [10,11,12,13]
ableBakerPriority = 0 #If 0 => Able is first if 1 => baker is first if 2 => ran... | 8c2432851b2c9e44c4d74edcfff974244ae237c6 | [
"Markdown",
"Python"
] | 6 | Python | mrhsce/ableBakerProblem | f633f1406388e1908e013fe6cc8b3cb4f23fdc63 | 5d583a5c91f29f5c981fe95fe1b0a253b2992cee |
refs/heads/main | <repo_name>brunobach/instagram-bot<file_sep>/index.js
const puppeteer = require('puppeteer');
var comments = 0;
mainComment = async () =>{
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
// Login flow
await page.goto('https://www.instagram.com/accoun... | 305daceba4aafc03f0399e85642e7560f991c707 | [
"JavaScript"
] | 1 | JavaScript | brunobach/instagram-bot | d7b640b7335d606aa3ea0696dd81bcaa056615f2 | dc7a128d579c8e665e1667dac373202b566e07aa |
refs/heads/main | <file_sep># Number-Guessing-Game
This is a number guessing game using Python.
I have used pyttsx3 library for speech and random library to generate random numbers.
<file_sep># Number Guessing Game
# importing module
import random
import pyttsx3 as pyt
engine = pyt.init()
newVoiceRate = 125
eng_voice = 'HKEY_L... | 0b35c9b5dcfc33e0126d51525a7fa9db3ead4228 | [
"Markdown",
"Python"
] | 2 | Markdown | mishu-mnp/Number-Guessing-Game | f871616465783daeb383d23dcafb523eee5e16f1 | ff76534eed7b44fa6495fc4339b8f06456b94c7e |
refs/heads/master | <file_sep><?php
namespace Sayeed\CustomMigrate\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CustomMigrateCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected... | 943b91d734d21a9dfe87290e4f8b371cb31cf3e3 | [
"Markdown",
"PHP"
] | 2 | PHP | jbhasan/custom-migration | edf057c360e6bb2a6518e88723a1015ff4d1468e | 0b6932947571e741cc15c462b51182e79f6c2c75 |
refs/heads/master | <file_sep>app.factory('requestService', ['$uibModal', '$filter', '$q', 'config', function ($uibModal, $filter, $q, config) {
return {
request: {
'regular': null,
'fixed': null,
'pager': {
'currentPage': 1,
'itemsPerPage': 15,
'maxSize': 5
}
},
filterRequest:... | dfa63698c005094e6d8642ac8f29895bffd62866 | [
"JavaScript",
"Markdown"
] | 31 | JavaScript | santosh2686/desktop | 42798c76197bfc8d1e4e84ada969e9d885062a13 | d2687fa9412ff7d2d344455bca09eac96ead1e9d |
refs/heads/master | <repo_name>inmar/actions-dpn-python-version-check<file_sep>/src/main.ts
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as requests from 'request-promise-native';
import * as util from 'util';
async function run() {
try {
const pypi_hostname: string = core.getInput("pypi_ho... | a85f3be7c8f89fd121f6a48db9cf2488c4c82590 | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | inmar/actions-dpn-python-version-check | 30376e9b92466f0782a47e1dd589b9d7367d2a14 | a7c5e465cf955e7eaee9aa8c591f6264ff8c8e2c |
refs/heads/main | <file_sep>/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 7b1d485311188f923daca09385dc747d0d551770 | [
"Kotlin"
] | 4 | Kotlin | senlin175/Countdown | e85d490966b5c2a3104ac37c9ab094d32114bb7f | 765d302f96fb05de14bb71d4bb36cbf482ed6b86 |
refs/heads/master | <repo_name>tbs1980/SplineBenchmarks<file_sep>/cmake/FindEinspline.cmake
# - Find the Einspline library
#
# Usage:
# find_package(Einspline [REQUIRED] [QUIET] )
#
# It sets the following variables:
# EINSPLINE_FOUND ... true if Einspline is found on the system
# EINSPLINE_LIBRARIES ... full... | 84c871b29bfe8113e03cab69b6b8f1dc3da65062 | [
"Markdown",
"Python",
"CMake",
"C++"
] | 10 | CMake | tbs1980/SplineBenchmarks | 45933f28b901a43464d3f9dfb6c545b50d85a652 | a4b9aa46da0ddbb04d7e04edc39a8a190cfcbcbf |
refs/heads/master | <file_sep>/*
Compressed ISO9660 conveter by BOOSTER
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zlib.h>
#include <c_console.h>
#include "ciso.h"
#include "stdafx.h"
#pragma comment( lib , "libz_stub_weak.a" )
const char *fname_in, *fname_out;
FILE *fin, *fout;
z_stream z;
unsigned int *... | e8e7ac9f29d9a02d5712b53d02a1791c15546b72 | [
"Markdown",
"C"
] | 2 | C | cfwprpht/PS4_Ciso | 8da519710f8c8098b6e32cffe49881f9914da5f3 | 4e99bb85c484ba9562963a73ec7004af8b0e8562 |
refs/heads/main | <repo_name>joaomarcoslp3/letmeask<file_sep>/src/hooks/index.ts
export * from './useAuth'
export * from './useRoom'
| ac4e72bcfb5c4108f7394b0909d89d99475c7584 | [
"TypeScript"
] | 1 | TypeScript | joaomarcoslp3/letmeask | 5931e68bd6f2466a7b32e7c0012f5e4e6bf65564 | 80f597e40564f242f7dd20d8a666bdcd31d99a35 |
refs/heads/develop | <file_sep>(()=> {
const form = document.querySelector('.form');
const toggleLinks = document.getElementsByClassName("register");
// toggle the forms
toggleForms = ()=> {
form.lastElementChild.classList.toggle('registration');
form.firstElementChild.classList.toggle('registration');
... | 3ec45896d6eb7fa2d194c0d424341ecfabd3382c | [
"JavaScript"
] | 3 | JavaScript | didymus707/Banka | 80084732e4029612ae8073ea65adedfc37bf0966 | f4e46edae014ed941947e38b88f8771e9d0de08d |
refs/heads/master | <repo_name>b4tchkn/The-Box<file_sep>/The Box/Assets/Scripts/GameManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameManager : MonoBehaviour {
/* constで定数を表す */
public const int WALL_FRONT = 1; //前
public const int WALL_RIGHT = 2... | 8d55a571ffbb6d61c0b2c514eab49a7c9e6fa6f5 | [
"C#"
] | 1 | C# | b4tchkn/The-Box | 815e7639c5762e37a0fa528eb725db1d85cc21b3 | 38843451293a4068ca382b42d76df9c9b540ed32 |
refs/heads/master | <file_sep># OptimusLibrary
项目的通用框架
多年开发积累的库
pod 'OptimusLibrary'
<file_sep>//
// Macro.h
// CBHGroupCar
//
// Created by mac on 2018/1/24.
// Copyright © 2018年 mac. All rights reserved.
//
#ifndef Macro_h
#define Macro_h
#pragma mark - theme
//#define Main_Color_Red HEXCOLOR(@"#CD0000")
#defin... | cfb8f1d4f766ce54a43e955c63b8a505a74a1bda | [
"Markdown",
"C"
] | 2 | Markdown | megatronxx/OptimusLibrary | 285b044f626649a4187cb35a1a19250f29aab979 | eac4499bc70764c00d08265e20bdc695fac7b08d |
refs/heads/master | <file_sep>package server;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint... | 56c2a5a4343b2b57cba30c59f53741d2e447032b | [
"Java"
] | 4 | Java | avysotsk/csjfx | ad7094276640ef62600a4bbd45923bafe22b6233 | 7fa89489cb59b7bd37e70fc9a1d74a4f3b923a42 |
refs/heads/master | <file_sep>server.port=9000
spring.jpa.database=oracle
spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
spring.jpa.show-sql=true
spring.datasource.url=jdbc:oracle:thin:@localhost:1522:XE
spring.datasource.username=mpos
spring.datasource.password=<PASSWORD>
spring.datasource.driver-class-name=oracle.... | 6c55485d9e76417ec2ab8930cc90083d0b9540db | [
"Java",
"Dockerfile",
"INI"
] | 17 | INI | lirenhao/MisAccount | 2cf963b0553d270bff5124a8f4e1d99e3dd06290 | ff3a9e1b9a3ddc2f34ef4d6cd773c4f93ccf0ab8 |
refs/heads/master | <file_sep>//
// ViewController.swift
// TouchID
//
// Created by john.lin on 2018/10/16.
// Copyright © 2018年 john.lin. All rights reserved.
//
import UIKit
import LocalAuthentication
struct KeychainConfiguration {
static let serviceName = "TouchMeIn"
static let accessGroup: String? = nil
}
class ViewCont... | a02b2e97f0794c126fd9e40324e354f40edfa65e | [
"Swift"
] | 1 | Swift | forever19735/TouchID | 010fd983f94c7ee6af51d332c7a60edfc08c9208 | c4338583a5e865f13806172642f6aefd1323b06f |
refs/heads/master | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* server.c :+: :+... | 8f28f12bee13996ec3b6571f00493085762b1c53 | [
"C",
"Makefile"
] | 4 | C | lazrekyasser/MiniTalk | 58d53479fb1eb44278447b4ea37d44b96b93515c | 85ea13f772f818e40e095734b50c23d2051242a3 |
refs/heads/master | <file_sep>const conect =require('../conectionBD');
//GET ALL USERS
function getUsers(request,response){
var id = request.params.id;
var nombre = request.params.nombre;
request.checkParams("id", "Enter a valid number.").isInt();
var errors = request.validationErrors();
if (errors) {
response.send(errors)... | b9e25403423e4aed5a9efdd3ed641203bd3c1b3d | [
"JavaScript"
] | 2 | JavaScript | hugparra/API_REST_APP | 8c3357a0db8e0de3fe48382f2c35800576413cab | a263908de2925b31600820ab66148cb5d19a72b7 |
refs/heads/master | <repo_name>xiongliangmei/springboot-mybatis<file_sep>/src/test/java/com/SupportTest.java
package com;
import com.entity.User;
import com.mapper.UserMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context... | 52c81bb9a7be72855d98f9746dc5933b00a84eb4 | [
"Java"
] | 1 | Java | xiongliangmei/springboot-mybatis | a0982a21f6f5a8b161f3f631c6fd77ad857c7c88 | ed7922b982d0d894abd0000722c2664c2b6363d8 |
refs/heads/master | <file_sep>$(document).ready(function () {
var slobj = document.all('SLObject');
// Declare a proxy to reference the hub.
var chat = $.connection.DYdin;
// Create a function that the hub can call to broadcast messages.
chat.client.broadcastMessage = function (name, message) {
if (slobj != n... | 35b90bc710c7469cf2ed012b42f680a6ef3692e4 | [
"JavaScript",
"C#",
"Text",
"Markdown"
] | 4 | JavaScript | jacle169/DYSignalrDemo | d30662bcbf70f3619f38275069b257302248d4c3 | 1c48d268761d3331046b0a6759ef80faa5534406 |
refs/heads/master | <repo_name>cogorcho/Labo2Html-2016<file_sep>/js/localStorage.js
'use strict'
let storage = () => { return localStorage }
let getKeys = (storage) => { return Object.keys(storage) }
let getCount = (keys) => { return keys.length }
let readItem = (storage, key) => { return JSON.parse(storage.getItem(key)) }
let checkI... | 5c11c8a3f930d2247c35d959db3ed321b7c69149 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | cogorcho/Labo2Html-2016 | 93dc7cfeb0f661878c8989f1b6ae61690ee24a23 | f710de381d933c9961a3114fc7704a424075d247 |
refs/heads/master | <repo_name>readmenot/emoji-domain-checker<file_sep>/index.js
'use strict';
// emojis is an array of emojis you want to check. atm it's all the utf8 emojis but you can edit it
// to be whatever you want. example: ['👌👍', '🍑🍆', '😣']
const emojis = require("emoji-chars");
const http = require('https');
const urlenco... | e481b740cd339c8cfd9cc2d3fa5326d83d55d647 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | readmenot/emoji-domain-checker | 4ce8119e198e9e8f6204f7a9afdca37dbb9832ec | 1c552b9ec1c6adbcc32e2c84e48c834bfe23d99a |
refs/heads/master | <repo_name>hamzaelmorsali/teoria_equazioni<file_sep>/EquazioniLibrary/Equazioni.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EquazioniLibrary
{
public static class Equazioni
{
public static bool IsDetermined(double a,d... | f8c97ea6500f9248058249070471b265b242538f | [
"C#"
] | 2 | C# | hamzaelmorsali/teoria_equazioni | 55c06fce8d82e4cdb8030bca88d01dc2397fe064 | 507d5facb7655397c43bd76d3274e1fd3d953239 |
refs/heads/master | <repo_name>iliasusalifu/SMSAPP<file_sep>/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery
layout 'application'
@page_title = 'SMS Content Management Platform'
def authorize
if session[:user_id]
return true
else
redire... | acb63ea5954c467791fd5fec3c79c7543a1f395d | [
"Ruby"
] | 4 | Ruby | iliasusalifu/SMSAPP | 085c7e881c61c49b9ad6eeb19d05a14aff5c7665 | 58ec13760f04b8c470aa7ffcdb9aae28e8e0a7bc |
refs/heads/main | <repo_name>hogiyogi597/Chartify<file_sep>/src/theme/styles.ts
const styles = {
global: {
body: {
bg: 'brand.lightest',
color: 'brand.darkest'
}
}
}
export default styles<file_sep>/src/theme/components/box.ts
const Box = {
variants: {
}
}
export default Box<file... | e81990a3f3dca26e98a76c640e2b675e52936467 | [
"TypeScript"
] | 8 | TypeScript | hogiyogi597/Chartify | 1568d801f6ea74d46bb06c08afb18b599ec7432c | 05afa0235a4358b23b41e100674da1db4283e64c |
refs/heads/master | <file_sep>package control;
import java.util.Scanner;
public class IfTest7 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("숫자를 입력하세요: ");
int number1 = sc.nextInt();
System.out.print("숫자를 하나 더 입력하세요: ");
int number2 = sc.nextInt();
if (number1 > num... | 996b8b6f9af584b75b8ee08b40dc7061a758be64 | [
"Java"
] | 11 | Java | leelindi/java | d75cafd1f897acdeb09e1b1530b7ee1b329f3adb | 12a041006047668a9a55b19a05b2d7b8b5015cc1 |
refs/heads/main | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<title>View Products</title>
<meta charset="utf-8" />
<!--bootstrap -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link
rel="stylesheet"
href="<?php ec... | b20c98fb6bf5761a583cfb4aa352ba2f67b95651 | [
"Markdown",
"SQL",
"PHP"
] | 8 | PHP | ov1n/Antique-Shop-using-MVC | 913563cbbf055b9f3a9bb4335b4324b34cc266eb | 89712f9ffea47d4d5880f0f9c38bf2789fa09455 |
refs/heads/master | <file_sep>umask 027
set -o vi
alias pacman='pacman --color=auto'
alias emerge='emerge --color y'
alias ls='ls --color=always --group-directories-first'
eval $(dircolors)
alias grep='grep --colour=auto'
alias info=myinfo
myinfo() { unalias info; info --subnode $1 2>/dev/null | less; alias info=myinfo; }
alias vim="vim -... | c740e814456fee5e8de78f39da758ecbee565535 | [
"Shell"
] | 2 | Shell | filbi/devenv | de70822b93219434f87dcccae4e518af07036704 | 2f89174fa7238b704a795040bf322cddd1670340 |
refs/heads/master | <repo_name>niuyueyang/mobx<file_sep>/src/App.js
import React, { Component } from 'react';
import {observable} from 'mobx';
import {observer,inject} from 'mobx-react';
@inject("store") @observer
class App extends Component {
//对象,数组,map可以利用observable转化为可观察对象
arrObservable(){
var arr=[1,2,3,4,5];
var result=... | 33cb893983a7deeab98e24614c6b2da13ec33695 | [
"JavaScript"
] | 1 | JavaScript | niuyueyang/mobx | 8ca0bcf0ed40567ee82380f7f67aed127ef78484 | b591d260cec1753f736c01a3b719ccc576d33cc8 |
refs/heads/master | <repo_name>ejclarke/office<file_sep>/wrangling/step3.py
# STEP 3: count how many times a character is mentioned
# before this step, I manually combined all of the caps.txt files
# to create one file with the full text of all seasons
with open('fullshow.txt', encoding = 'utf-8') as f:
lines = f.readlines()
# i... | ab7f820ed7c6d84c88d46fa71fb6b8390d3ecbd7 | [
"Markdown",
"Python",
"R"
] | 5 | Python | ejclarke/office | a5826a382d793687561c4e9abdafd927ac206fca | a79fc82eb495202289c37169424e7031c2c6fe7c |
refs/heads/main | <file_sep>#include<stdio.h>
main(){
signed short a = 0xf0f0;
unsigned short b = 0xf0f0;
b = (unsigned)(((unsigned)(b=a)) >> 8);
printf("%x\n",b);
printf("%x\n",2**16);
}<file_sep>
int func1( int a){
static int b=1;
printf("%d\n",b++);
return a;
}<file_sep>main(){
int i;
// f... | 961da747f0655c9867649bfc024888229812a5e4 | [
"C",
"C++"
] | 41 | C | knsrinivasa/c_test | db77d1bfacbf550cee9d5d60f9866b26b51c3cf7 | 7656b22a7fe778be03976395970434e22b41338e |
refs/heads/master | <repo_name>LefterWu/simple_seckill<file_sep>/src/main/sql/schema.sql
-- 数据库初始化脚本
-- select version();
-- +-----------+
-- | version() |
-- +-----------+
-- | 5.7.25 |
-- +-----------+
-- 创建数据库
CREATE DATABASE seckill;
-- 使用数据库
use seckill;
-- 创建秒杀库存表
CREATE TABLE `seckill` (
`seckill_id` bigint(20) NOT NULL AUTO_I... | 808fd500f5ab1c2e89305c596051d56067ace285 | [
"Markdown",
"SQL"
] | 2 | SQL | LefterWu/simple_seckill | 7b7eaf1fdbde69b8dc3deaf59981491545188eaa | e22e8ac7b4959c217788313c9f0a104a1461f79a |
refs/heads/master | <file_sep><nav class="col-lg-12 col-md-12 col-sm-12 col-xs-12 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $timetable->id],
['conf... | b47dd793191eb14d26a13341c595df2876ce81d2 | [
"Markdown",
"JavaScript",
"PHP"
] | 41 | PHP | hopealive/qmatio | 2219895075cb16437ea5e667db652eeda1661b1a | eb4ec4255f5c63d090d9d3490c22b02064908be9 |
refs/heads/master | <repo_name>robpullan85/GitHubProjects<file_sep>/README.md
# **Memory Game Project**
The project is a memory game based on matching paired symbols by turning over cards.
The project was created and relies heavily on HTML, CSS, JavaScript and jQuery.
The JavaScript code was broken down to include pre-initialized varia... | db3d108b7c44fd3127399656ebe28bdab00d10e9 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | robpullan85/GitHubProjects | eb17031e13782a5c2649550b328a9ff47bcd987d | 4fdb762c6c220f52104e037063bfffe0d3222a77 |
refs/heads/master | <repo_name>vuvuongvi/SystemT-FrontEnd<file_sep>/src/views/Pages/Graphql/Graphql.js
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button, Card, CardBody, CardGroup, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap';
import Apol... | 3d04971451cbf794be814a395418a2ebafa9c9f8 | [
"JavaScript"
] | 2 | JavaScript | vuvuongvi/SystemT-FrontEnd | 6c2e36f3d74a0c5a960a56c626c59593c96598a0 | a483d664c84df0f2c54b51003bde4768c382f8a2 |
refs/heads/main | <file_sep>const { test, assert } = require('@playwright/test');
test('Test 1', async ({page}) => {
// const browser = await firefox.launch({
// headless: false
// });
// const context = await browser.newContext();
// // Open new page
// const page = await context.newPage();
... | 7e0ccfd6389e6b5c6da0618676087b412204e84d | [
"JavaScript"
] | 3 | JavaScript | stevenxu1998/Playwright | 59c75fcb1cd7be4e40b505fcc2a49ead9763ce2d | c56c21a7ffb1ae4f8f67c851939fb0466777d676 |
refs/heads/master | <file_sep>/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: '0.6.12',
settings: {
evmVersion: 'istanbul',
optimizer: {
enabled: true,
runs: 200
}
}
}
};<file_sep># [Qubit... | 15fe72f7699a3ee43fe424355ff304aa317bc392 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | codixor/qubit-finance | 60a0fd8928fc74ef0b7f643693b7ef00ccac8266 | c1753fc4c1237659e7f3c73239d261a26568d170 |
refs/heads/master | <repo_name>lafada/stack_poc<file_sep>/api/controllers/user_controller.js
var jsonfile = require('jsonfile');
var path = require('path');
var user_json = path.dirname(__dirname) + '/data/user.json';
module.exports.create = function (req, res) {
jsonfile.readFile(user_json, function(err, obj) {
var user_dat... | 984bdc8f404f0e85a02f0c76fa105097c427c268 | [
"JavaScript"
] | 2 | JavaScript | lafada/stack_poc | 1825b40db153b02d7c81b92b78939265887dd4a0 | d623729e463e52e4342cb69165a5d1e13087e2d6 |
refs/heads/main | <repo_name>TheJuiceFR/PLBMP<file_sep>/plbmp.lua
local bmp={}
local bmpmt={__index=bmp}
bmp.size={0,0}
bmp.data={}
--[[a sample of a data table:
{
{{1,1,1},{1,0.5,0},{1,.5,1}},
{{1,.7,1},{0,.9,1},{.8,.3,.2}},
{{1,1,1},{.3,.7,1},{0,0,0}}
}
]]
local function offset(file,off)
file:seek("set",off)
end
local functi... | 18f3a73511b46840731dca4c8a30d8ef82dcd23d | [
"Markdown",
"Lua"
] | 2 | Lua | TheJuiceFR/PLBMP | 8208cd2db655501e18df988526a66e6e552787c7 | d1493975ec20fa927eb2963d581ade916104d23e |
refs/heads/master | <repo_name>Smalley2001/Measles-Vaccination-Project<file_sep>/proj05.py
#############################################################################
# Project #5
#
#Create a function that will open a file given by the user
# Use exception handling to check if the user's file actually exists
# Print an error me... | f9994ec70f76a2d748c9f27f50e31025fcb7aa7f | [
"Python"
] | 1 | Python | Smalley2001/Measles-Vaccination-Project | 27c7f9315ae25d89c5d1f1b6a59866ab9fafb41e | fe3a23b3a7664df359b546f73c917ef196ba9698 |
refs/heads/master | <repo_name>QuiD-0/Study<file_sep>/C/namespace.cpp
#include<iostream>
namespace cinNcoutSpace{
int scanf;
const char *printf;
};
int main() {
cinNcoutSpace::scanf = 123;
cinNcoutSpace::printf = "hello";
printf("%i\n", cinNcoutSpace::scanf);
printf("%s\n", cinNcoutSpace::printf);
getchar();
}<file_sep>/C/369별.... | 8ebb1a8900d220407aa4cb230b671482f334f88e | [
"JavaScript",
"Java",
"Python",
"PHP",
"C",
"C++"
] | 83 | C++ | QuiD-0/Study | 78b499c276280c47cf8759bbb975274e68b6c9b2 | a9066ca3a273c79702d4f45ed444185ccf8404d3 |
refs/heads/master | <repo_name>andrew-blomquist-6/cypress-terminal-report<file_sep>/index.js
const methods = require('methods');
const PADDING = {
LOG: '\t\t ',
};
function pipeLogsToTerminal(config = {}) {
let oldConsoleMethods = {};
let logs = [];
Cypress.on('fail', error => {
const [type, message] = logs[logs.length - ... | 293d6ad656ad72924f40f651960c3db071d2105a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | andrew-blomquist-6/cypress-terminal-report | c2b832f57d369676fa3823c076c1e061d5fe7945 | a9431b04a9e7d441d79455736aa5defe70768055 |
refs/heads/master | <repo_name>wxuanzhi/Water2<file_sep>/app/src/main/java/com/fju/water/ResultActivity.java
package com.fju.water;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
public class ResultActivity extends AppCom... | 1c1dae9ca3204ccaa04eaa27908e8f42e5ce17c5 | [
"Java"
] | 1 | Java | wxuanzhi/Water2 | 1e0747b1858199b7f26f5d95ca85ebbd90e6c8f1 | 7e01ddcde2c8e01ebb7c468fb3f1555105163f59 |
refs/heads/master | <repo_name>brokerstir/codecademy-js<file_sep>/contacts.js
// This code written for the contact list lesson on the codecademy javascript tutorial.
// The first task is to create an object of friends.
var friends = {
allan: {
firstName: "Allan",
lastName: "Caralina",
number: "09 000 0001",
... | 3883ec733889a9e18cc8b460cec16c28ff0d4ae7 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | brokerstir/codecademy-js | e4e92ce91bbabe407d41c27e01f69d6bcde6c623 | ff1001fef04ab7608adefbedb8fcd3762798228e |
refs/heads/master | <file_sep>#include "RenderCamera.h"
RenderCamera::RenderCamera(){}
RenderCamera::~RenderCamera(){
}
<file_sep>#ifndef VECTOR3_HEADER_GUARD
#define VECTOR3_HEADER_GUARD
#include <GL\glew.h>
#include <iostream>
#include "Errors.h"
struct Vector3{
GLfloat x;
GLfloat y;
GLfloat z;
Vector3(... | c166b0ea88918629e554d8a67bef26a14afd606c | [
"C",
"C++"
] | 15 | C++ | Noah-Huppert/HelloGl | d40d0bc2ad19c361886283dd8975e53bc96a2a9a | 02633ebeb0ceb34bff8c116f75f272093cd01fe6 |
refs/heads/master | <file_sep>[](https://travis-ci.org/Kraymer/cronicle)
cronicle :hourglass_flowing_sand::arrows_counterclockwise::floppy_disk:
========
> **/ˈkɹɒnɪkəl/** :
>
> 1. *n.* a factual written account of important events in the order of their occurre... | 0198abbbf639281e877d5755b2d9d8f7c09ebd25 | [
"Markdown",
"Python",
"Text"
] | 5 | Markdown | 501st-alpha1/cronicle | 684ae55632a313e871409edf4832c136e36c8ac1 | 7a99974d622487e153aaf98e5ee79920e96fb996 |
refs/heads/master | <file_sep>package asu.turinggeeks.controller;
import static asu.turinggeeks.configuration.SessionAttributes.ATTR_OAUTH_ACCESS_TOKEN;
import static asu.turinggeeks.configuration.SessionAttributes.ATTR_OAUTH_REQUEST_TOKEN;
import static org.springframework.web.context.request.RequestAttributes.SCOPE_SESSION;
import org... | f1f3c0e88c82218bf479cb8519f582fc2b593d2c | [
"Markdown",
"Java",
"INI"
] | 3 | Java | prafull1249/MeetME_webApplication | 55cbfdcc4b725573d9fd5356923dc5a094cd2487 | 9d5de04fabc6da70c62b7c2cd8de9c5ea22043b4 |
refs/heads/main | <file_sep>const express = require('express')
const mongoose = require('mongoose')
const jwt = require('jsonwebtoken')
const { jwtkey } = require('../keys')
const router = express.Router();
const User = mongoose.model('User');
const Meal = mongoose.model('Meal');
router.post('/signup', async (req, res) => {
const... | 5cf006b423cd86ab490c1282da2bf6a5ed4e5065 | [
"JavaScript"
] | 4 | JavaScript | marianharalamb98/Calorie-Tracking | b6c8d073e9b9f1a9e1526f036a709aca07236d9b | b9af93d7132a63eeac9bf64ea4e9748fee76470d |
refs/heads/master | <repo_name>jayArnel/meme-generator-nodejs<file_sep>/static/js/meme_generator.js
$(document).ready(function() {
var canvas = document.getElementById('preview');
canvas.width = 1000;
canvas.height = 700;
var ctx;
var memeImg;
var title = "";
var subtitle = "";
function initContext() {
... | 1668d5d1091686fe7d4787086ea5398217def194 | [
"JavaScript"
] | 1 | JavaScript | jayArnel/meme-generator-nodejs | 6d2f2b867732ce550e15ab2ad00328cdb92d834b | ec0855fbeda468e6f2aa2a8fe217377c5f1c96ca |
refs/heads/master | <repo_name>mcgagnier/linux-lesson-plan<file_sep>/db/getUsersByFirst.sql
SELECT * FROM users
WHERE first = ${first};
<file_sep>/index.js
const express = require('express');
const fs = require('fs');
const path = require('path');
const axios = require('axios');
const CronJob = require('cron').CronJob;
const massive = req... | af12dcdc9ae431d01b6ea3fa997c592c208e1fbe | [
"JavaScript",
"SQL",
"Text"
] | 8 | SQL | mcgagnier/linux-lesson-plan | 06b7d81ea9ed4473eabd3881e1d054540719e489 | 6b106d18a701d7416572d223565ae4e152701864 |
refs/heads/main | <file_sep>// File: main.c (For CMSC 412 Homework 2)
// Author: <NAME>
// Date: January 22, 2021
// Purpose: This C Program is designed to create 3 processes using the fork() method, have them wait for child creation, and have each process print their PIDs.
// import necessary C libraries
#include <stdio.h>
#include <s... | e458ed2466221b41cca126408810bf8b50286909 | [
"C"
] | 1 | C | johnkucera00/CMSC-412-Project-2-ProcessCreator | f224ba9b15876049a1f62d5fd9a08c2c2ef46cf1 | 229293c73f6841ec5215aad4aac5a057b2d694ed |
refs/heads/master | <repo_name>kjhg478/simple_board<file_sep>/src/page/post/PostMain.js
import React from 'react';
import PostList from './PostList';
const PostMain = props => {
return (
<>
<h2 align="center">게시판</h2>
<PostList />
</>
)
}
export default PostMain; | 614811d179c3bb958707d8c59ee9d8d324278482 | [
"JavaScript"
] | 1 | JavaScript | kjhg478/simple_board | a39b93d3a30565fbbe5dcda8958f8444770a4636 | 860bfcc52ce696825d485a35be2c5eb8595417df |
refs/heads/master | <file_sep>#!/bin/bash
docker rm -f deepdream
<file_sep>#!/bin/bash
docker build -t jrlangford/caffe docker/caffe
docker build -t jrlangford/deepdream docker/deepdream
<file_sep>#Deep Dream Docker
This is a docker container that can run Google's [ deepdream ] ( https://github.com/google/deepdream ) repo.
##Start Jup... | bd6298a917183fbe569f36c6d2011dd4a364885c | [
"Markdown",
"Dockerfile",
"Shell"
] | 5 | Shell | jrlangford/deepdream-docker | 0cf58d03ffa693b4e8119b9391d9649dbe6c00c0 | afbf219af8827b9395c68e08acb00280f18cd310 |
refs/heads/master | <file_sep>package com.boot.demo.tools;
import java.util.Date;
import java.util.Map;
import java.util.TreeMap;
import com.boot.demo.doc.ConfigDocument;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Transient;
public class Constant {
/**数据库配置doc内容*/
public static ConfigDocument config ... | c34403a0ef25fca1cfc0f3956698194298c24bb9 | [
"Java"
] | 4 | Java | ningwanlong/demo-boot | 60247ab6751d636af012a700da9c012994fcec37 | aa7aac603db8ecfca52a59a714c321a622dafc41 |
refs/heads/master | <repo_name>patriotina/telebot_supportbot<file_sep>/src/echo-bot2.py
# -*- coding: utf-8 -*-
import constants
import telebot
import datetime
import time
from telebot import types
bot = telebot.TeleBot(constants.tapsup_token)
class tr_message:
def __init__(self, msgstart = False):
self.is_start = msgstart
... | 28b2e00a0dfad1f75d26af07619069e68df78803 | [
"Python"
] | 2 | Python | patriotina/telebot_supportbot | c9016454e92111b2919f47e754601bd643aae584 | 6e52000443fdbc202e913d61aa87e2a178d0fee6 |
refs/heads/master | <file_sep>#!/bin/bash
N=100
M=20
T=10
alpha=0.01
x=6
GRAPH_PATH=./result/graph${N}.pkl
DATA_PATH=./result/data${N}.pkl
LIST_PATH=./result/list${N}.pkl
rm ${DATA_PATH}
rm ${GRAPH_PATH}
rm ${LIST_PATH}
python gen_graph.py -n $N -i 2 --graph=${GRAPH_PATH}
#python main.py -n $N -i 2 -m $M -t $T -M random -f single_li... | 117101afac154724640fa784e5f44520fbe08d81 | [
"Markdown",
"Python",
"Shell"
] | 4 | Shell | buaakq/BA_network | ef67e0bf130fdc75d8fdf6a2bc336e8b6f9b9661 | 3d794ccf0ef9e1d9b6efed9bdc874b1e53494091 |
refs/heads/master | <file_sep># JSCS TeamCity Reporter Test Harness
This project exists to be able to test the [jscs-teamcity-reporter](https://github.com/wurmr/jscs-teamcity-reporter).
## Usage
```
$ npm install
$ npm test
```
<file_sep>(function () {
'use strict';
undeclared();
});
| 93d5ba8966f2ef86b9ab18a4b8753ba3b0ff5a0e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | wurmr/Jscs-Teamcity-Reporter-Test-Harness | 9c41eadce4e541ee37418957049f03faef2c6fcc | 2dec85bd0e86f9e090e83c816652e507bd3dc50e |
refs/heads/master | <repo_name>insanustu/TSDemux<file_sep>/src/M2TSProcessor.cpp
#include "ElementaryStreamData.h"
#include "M2TSProcessor.h"
#include "PacketHeader.h"
#include "TableHeader.h"
#include "PAT.h"
#include "PMT.h"
#include "PESPacketHeader.h"
namespace {
enum class PredefinedPid : uint16_t {
PAT ... | 79a249c1c36dd06b85d5c34cd8a89e1788a3109a | [
"Markdown",
"CMake",
"C++"
] | 18 | C++ | insanustu/TSDemux | f9d48d7212a35bbdd75ba5f7e8f1bce0361bcc99 | fe03ff70ad9363fd670e2cbf9ce3f31828f78aa6 |
refs/heads/master | <repo_name>srsuryadev/key-value-store<file_sep>/src/trie.h
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <stdint.h>
#include <string>
using namespace std;
typedef struct node node;
struct node {
node* kids[256];
char* value;
int value_len;
};
class Trie {
... | 227864221167847e9e75a6fdb9c73fd8e4deb891 | [
"Markdown",
"Makefile",
"C++"
] | 24 | C++ | srsuryadev/key-value-store | 637f9745c1ddc76ea6bc7f8546ba6fd03e45e55b | 004425be8c4675cf4618838ced5c044c52370f03 |
refs/heads/main | <file_sep>import React, { useEffect, useState } from 'react';
import 'antd/dist/antd.css';
import { Table,Form } from 'antd';
import axios from 'axios'
import { Link,useHistory, useParams } from 'react-router-dom';
const Demo = () => {
const [form] = Form.useForm();
const history = useHistory();
const [Ite... | 946bba3d4a3ce2de18f91b80b86f2e51519dcce0 | [
"JavaScript"
] | 3 | JavaScript | kamal-re/RegisterFrontEnd | 2fbbd5ae29451784bbed27e8ae8c2eda398d1390 | 9e3a76fe382bfdbf20816f59bd80501f5f5ff810 |
refs/heads/master | <file_sep>import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.autograd as autograd
import torch.nn.functional as F
import wrapper
import gym
import torch.nn.utils as nn_utils
import time
import csv
import act
from actor_critic_02 import ActorCritic
from multiprocessing_env i... | 473fe35915fe8dd8c483d2acbda136badf184eb8 | [
"Python"
] | 17 | Python | fcancino/reinforcement_learning_experiments | 338affcb6358a0f6c5f6ee6c8872a1769437b8d0 | ab7a5997949dab6c1290821b351e9ca95138a07f |
refs/heads/master | <repo_name>harvestcloud/react-client<file_sep>/src/App.js
import React from 'react';
import './App.css';
function WhatDoesTheServerSay() {
return (
<div className="what-does-the-server-say">
<h2>
What does the <span className="fox">fox</span> <em>server</em> say?
</h2>
<div className="a... | 383a8a2a7264d50d98e997f965e071c789032411 | [
"JavaScript",
"Dockerfile"
] | 2 | JavaScript | harvestcloud/react-client | ef02b4404d99a46a2e91687a0865372761f81880 | bc4603767002052522c8c83958f1841e0f094b39 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.