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>yadavky/handlebar_JS<file_sep>/server.js
'use strict';
var http = require('http');
var port = process.env.PORT || 1337;
//http.createServer(function (req, res) {
// res.writeHead(200, { 'Content-Type': 'text/plain' });
// res.end('Hello World\n');
//}).listen(port);
var express = require("express");
... | 68ce6b2f2344523dc6d48670322289ec00110eea | [
"JavaScript"
] | 1 | JavaScript | yadavky/handlebar_JS | edde5fb3617874ed227b29297c55d757ac30b9bd | c9155476b854055c9ae869059498e0b512047703 |
refs/heads/master | <repo_name>singhsamyak/jest-dabble<file_sep>/src/components/Counter.js
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Counter extends Component {
render() {
const { value, increment, decrement, reset } = this.props;
return(
<div>
<p>Count: <span>{ value }</s... | e36b4ef3e7b134030bdc7791ad94f02cf1669acb | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | singhsamyak/jest-dabble | 85122c544c44646160b70a700a5fa7d0fe51c665 | b7947b9e475370f954b6cb3935d622cb33943e0f |
refs/heads/master | <file_sep>// Sum of a Beach
/*
Beaches are filled with sand, water, fish, and sun.
Create a function named sumOfABeach that takes a parameter (type: string).
Given a string, calculate how many times the words
"Sand", "Water", "Fish", and "Sun" appear without overlapping (regardless of the case).
The input can be a... | d4c6c3bfe396d83392261e050cfd64426a686206 | [
"JavaScript"
] | 10 | JavaScript | michaelnASC6/Week4 | 2ba6ed6e9d4aa138678838a12f59298daf9aee56 | d1d81b4a310306383d65f1f15caebb8a88873680 |
refs/heads/master | <repo_name>jongwooo/the-road-to-learn-react-likelion<file_sep>/markdown/components-props.md
Components 와 Props
===
Components?
---
개념적으로 <strong>컴포넌트</strong>는 JavaScript 함수와 유사합니다. <strong>props</strong> 라고 하는 임의의 입력을 받은 후, 화면에 어떻게 표시되는지를 기술하는 리액트 엘리먼트를 반환합니다.
함수 컴포넌트와 클래스 컴포넌트
---
컴포넌트를 정의하는 가장 간단한 방법은 JavaScript... | e769b6a6d8dca6436ae52f06a01407bb6aeacf97 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | jongwooo/the-road-to-learn-react-likelion | 2fffa336c92bd1c33016062127a53df70c58bb50 | c27aed3945cb8fc0dce52b13e1a5644b8f1de9fd |
refs/heads/master | <repo_name>Sernel/Gamejam_2021_RBTV<file_sep>/Assets/Code/AI/Jump.cs
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Serialization;
using UnityEngine;
public class Jump : MonoBehaviour
{
bool jumping = false;
public float thrust;
private float maxJumpPoint;
private b... | 956d379dde2bbd0db946a5c9b9947fa2b97002a6 | [
"C#"
] | 1 | C# | Sernel/Gamejam_2021_RBTV | 8817d11aa1fd08551f0bdee14d27b21415559982 | 51ad8e216bc1822d918f1f122d10942fe6e6fe87 |
refs/heads/master | <repo_name>KyleABrown/KyleABrown.github.io<file_sep>/index.js
var Login = {
divs: {
landing: 'landingDIV',
signin: 'signinDIV',
register: 'registerDIV',
},
buttons: {
guest: 'guestButton',
login: 'loginButton',
loginBack: 'loginBackButton',
register: 'registerButton',
registerBack: 're... | 49780314d9f0ccc00362c301b09b01ff8b7a29c0 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | KyleABrown/KyleABrown.github.io | a791c33edaf6b085171e0b56659bf71c5548fd3e | 3647a04ca7db9dc7a2301b2b2c16d87fa4de6702 |
refs/heads/master | <repo_name>onikazu/Shevchenko<file_sep>/src/player12.py
import player11
import threading
import numpy as np
from collections import deque
class Player12(player11.Player11, threading.Thread):
def __init__(self):
super(Player12, self).__init__()
self.name = "Crespo"
# =============for machi... | a4e36887eadd41fa5aeed11e3db909af02aefcbc | [
"Markdown",
"Python"
] | 3 | Python | onikazu/Shevchenko | 2b4506e6e921864fc4453300363cbffdde691a7b | f83ed1e73ac3d0c38583a7c36dc6c83e5bcfca0b |
refs/heads/master | <file_sep># morse_coder
Encode text to morse code!
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
void cleanBuffer(){
int c = 0;
while (c != '\n' && c != EOF)
{
c = getchar();
}
}
int getText(char *str, int size) {
char *enterPosition = NULL;
if... | 835fb0a687f586c30ac07ec5627b5501dcc86c18 | [
"Markdown",
"C"
] | 2 | Markdown | s0nnyhu/morse_coder | 93b9544c1cd0fd304dfeb4c811972e4ace37211e | 8f9f63cee750d44b16ec38e82ecf8e4978885db0 |
refs/heads/master | <repo_name>Jacob234/Flask-hello-world<file_sep>/hello_world.py
from flask import Flask, render_template
from os import environ
app = Flask(__name__)
@app.route("/")
@app.route("/hello")
def say_hi():
return render_template('hello.html', person = "World")
@app.route("/hello/<name>")
def hi_person(name):
gi... | 1765037f3c6fb323eac310ccd00c93c24a48e988 | [
"Python"
] | 1 | Python | Jacob234/Flask-hello-world | 25ef471b6a07e56bbd1f7cca9b45e0edf87df411 | 65ade56d9233f633f5f60705d472eb0648a979a5 |
refs/heads/master | <repo_name>RdDvls/Database-To-Do<file_sep>/src/sample/Controller.java
package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ListView;
import javafx.scene.... | 662aede97923b758f07884aa95a10e9ae868778f | [
"Java"
] | 2 | Java | RdDvls/Database-To-Do | 778fff9d84c5fb6648831443433c51ed6c17d883 | 6458bc29ffd1275b75b97bffae49cf5fcaa2d9b2 |
refs/heads/master | <file_sep># MongoDb
**MongodB Demo**<file_sep>using System;
using System.Collections.Generic;
using System.Text;
namespace MongoDbHelp
{
/// <summary>
/// MongoDb配置消息
/// </summary>
public class MongoDbConfigInfo
{
/// <summary>
/// 连接 127.0.1:27017
/// </summary>
... | c0b81c9b510cdfebcb06cff0c5e90e2142ab24f2 | [
"Markdown",
"C#"
] | 4 | Markdown | XZL-Github/MongoDb | e57a1e971e8cdc05dd5bf256513d04aff730fc59 | a4ddabeb9e441d40dc4814911328e6951c36a657 |
refs/heads/master | <repo_name>francamacdowell/GSO<file_sep>/1 exercicio/gso.py
from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.optimizers import RMSprop
from random import random
def GSO(input_number, n_neurons, ... | f3e708780ba456cd6165a0576f057c00999e77b0 | [
"Python"
] | 4 | Python | francamacdowell/GSO | 3cb579c2c93143ddc91f9411156be5ea71cd00fd | 03d4eeb74ad7e2f93e010f91c7048b8c78a71e66 |
refs/heads/master | <repo_name>AdShEaTaKoRe/ruby-enumerables-hash-practice-nyc-pigeon-organizer-lab-london-web-120919<file_sep>/nyc_pigeon_organizer.rb
def nyc_pigeon_organizer(data)
data[:gender].reduce({}) { |result, (k,v)|
pigeon_names = v
pigeon_names.each { |pigeon_name|
result[pigeon_name] = {
:color => ... | 99942b644acc212342b249b53b85bb35e4f6f97c | [
"Ruby"
] | 1 | Ruby | AdShEaTaKoRe/ruby-enumerables-hash-practice-nyc-pigeon-organizer-lab-london-web-120919 | 46d767387a49ee26be3036953156baec7814a695 | fb8d1d7918df92e5ce9d2f37539714f211b8dda8 |
refs/heads/master | <file_sep>Page({
/**
* 页面的初始数据
*/
data: {
headerIcon1: ['../images/icon-0_02.png', '../images/icon-0_04.png', '../images/icon-0_06.png','../images/icon-0_08.png'],
headerIcon2: ['../images/icon-0_14.png', '../images/icon-0_15.png', '../images/icon-0_16.png','../images/icon-0_17.png'],
headerText1... | 3682112f6aec0b493e46487337145fa132994cb3 | [
"JavaScript"
] | 2 | JavaScript | ybchen292/wxdemo | 3db02ae8b906af66167ba7af837cbc75b5a0a313 | b8b7eebe7bcc79793a0374805c7bbd8053831adc |
refs/heads/master | <file_sep>$(function(){
var key = getSearch("key");
// console.log(key);
$('.search_input').val(key);
$('.search_btn').click(function(){
render();
})
//点击排序的按钮,进行排序
$('.lt_sort li[data-type]').on('click',function(){
if($(this).hasClass('active')){
$(this).find('i').toggleClass('fa fa-an... | f4187ab468ffcbba8d636657e7f556f7ebe74a74 | [
"JavaScript"
] | 4 | JavaScript | wuailing/letao | 0c178c1f3f550c26ede10a722fc186b11fd6f87f | 6fde33aff82780f03010d9b3bc85fa3fe6ba37a5 |
refs/heads/master | <repo_name>RicardoRodriguezArg/face_detector<file_sep>/pre-trainning-setup/validation_image_script_test/image_validator_script.py
import sys, getopt
sys.path.insert(0,'../../../face_detector')
sys.path.insert(0,'../../face_detector')
sys.path.insert(0,'../face_detector')
from utils.image_validator import ImageValidator... | de675a6840693151a37df76dcf584ba0da64d37a | [
"Markdown",
"Python"
] | 18 | Python | RicardoRodriguezArg/face_detector | 9523cce0f6b87caa3fb21d7c7228eb19bc6ff1c4 | 2c3d3b674b769497656a81e1a29df03743fb197c |
refs/heads/master | <file_sep>CHIP-8
==========================
[CHIP-8](http://en.wikipedia.org/wiki/CHIP-8) emulator
--------------------------
This project is for my own educational purposes.
<file_sep>#include <stdint.h>
class c8{
private:
uint16_t opcode; // unsigned short is 2 bytes
uint8_t mem[4096]; // unsigned char is ... | 8692463f77868c3ed4d27b53d973863dec909725 | [
"Markdown",
"C++"
] | 4 | Markdown | salkj/chip8 | a1e8ddaeea3ff68210e16745b461d5bf39973f64 | a4d99b0e65da6815d7f2a2dbf16d623bf593e0b7 |
refs/heads/master | <repo_name>Chris-Chang/JavaSenior<file_sep>/jdbc_1/src/com/chang1/connection/ConnectionTest.java
package com.chang1.connection;
import org.junit.Test;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Propertie... | 4f340c90ee031694287cdea3cf85079ae0a5d075 | [
"Java",
"INI"
] | 23 | Java | Chris-Chang/JavaSenior | 83ad74a12134cbd21e0c820bb9d97d27c2c6c420 | 2766c567cf4eeef60c6008958c8a5ab4b9527814 |
refs/heads/main | <repo_name>timothy-sci/Exploratory-Data-Analysis<file_sep>/EDA.py
#!/usr/bin/python3
# data set obtained from:
# kaggle.com/kaggle/sf-salaries
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
# In this example we interested in EDA on the salaries data
path = 'Salaries/S... | 2fc67fba97cad1840d4dbf574cf5f761276ee828 | [
"Python"
] | 1 | Python | timothy-sci/Exploratory-Data-Analysis | adea9886f719143a9e880ea5ca8ce9b277258c35 | d175d8cb6fab01c410ef41fb77771192723fc548 |
refs/heads/master | <file_sep>package com.android.jni.ffmpeg;
import android.app.Activity;
import android.hardware.Camera;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import java.io.IOException;... | 252e8d30219ca61b3ea208c8bde7f269bdc7c98d | [
"Java",
"C"
] | 3 | Java | Kurtash/jni_android | de7d6d2a3b0be361268d3a6c0853ed2e9ce8c332 | 10dba1cc3067bcfcbe8b74cc3dd3766907f3b798 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Employee } from '../employee.model';
@Component({
selector: 'app-form',
templateUrl: './form.component.html',
styleUrls: ['./form.component.css']
})
export class FormComponent implements OnInit {
model = new Employee("dilip","rao",true,"")... | be7aa598c9dc0e8bb92912c9c4d0d8add65f0299 | [
"TypeScript"
] | 2 | TypeScript | dilipteegala/Angular-Routing-Demo | 66378f90197741894031bbc0fc662e05f40aa57c | d4cbd810c23fe6b61d8713da390c3ddd619d4fd4 |
refs/heads/master | <repo_name>andyrewlee/rubyprac<file_sep>/18_frank_users/13_users_posts_create/answer/controllers/posts_controller.rb
class PostsController < ApplicationController
post '/' do
erb :main_layout do
user = User.find(params[:user_id])
user.posts.create(content: params[:content])
redirect "/users/#{us... | 6a9ddaf9edc2796160e312db810e75ee16909aef | [
"Ruby"
] | 19 | Ruby | andyrewlee/rubyprac | a99da49327eaeebc31b16187f7e57123b036944b | 6e40ad4848a967771f5afa5798b6225f0d16230b |
refs/heads/master | <repo_name>hannut91/project-react-1-kwonmory<file_sep>/fixtures/interview-questions.js
const depthOfQuestion = ['하', '중', '상'];
const interviewQuestions = [
{
id: 1,
title: '인덱스(Index)란 무엇인가?',
categories: ['Database'],
reviews: ['리뷰', '리뷰'],
depthOfQuestion: depthOfQuestion[0],
relatedCompan... | 30596710f4ff9ec341528f7554bf459452784e86 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | hannut91/project-react-1-kwonmory | cdd0adccb73242289ceeda8b2d8335a6fa687577 | 7e70b0b26e65534e371eb450b7bad569deb00add |
refs/heads/master | <file_sep>"""
Actor-Critic using TD-error as the Advantage, Reinforcement Learning.
The cart pole example. Policy is oscillated.
View more on my tutorial page: https://morvanzhou.github.io/tutorials/
Using:
tensorflow 1.0
gym 0.8.0
"""
import numpy as np
import tensorflow as tf
import os
from agent.helper import *
im... | f52edf22da4a25bab69b04ffa71a14c5eeae4946 | [
"Python"
] | 2 | Python | jjolla93/SteelStockyardReinforcement | 51189aa763a86db4f225eccab572f060a76da16c | 6046c41eb7fab3416108d51b46a98ed3854d4f7c |
refs/heads/master | <file_sep>package account
import (
"crypto/ecdsa"
"encoding/hex"
"github.com/paintmeyellow/gotron/pkg/common/base58"
"github.com/paintmeyellow/gotron/pkg/common/crypto"
"github.com/pkg/errors"
)
var ErrCreatePublicKey = errors.New("cannot create public key")
type Account struct {
Address string
PrivateKey ... | f57681d4d9d223370f6ec5e07d1215cdef43db65 | [
"Go Module",
"Go",
"Shell"
] | 20 | Go | paintmeyellow/gotron | 831b3c72694361b5eb80e99b15b4b50625fc1767 | 7a9cbc95f0614b96505c2a30f006dbafdaf6744e |
refs/heads/main | <repo_name>AnnoyingOtter11/Waves<file_sep>/shaders2.c
// **************
// The vertex shader for Phong lighting with Phong shading.
// Mostly this copies material values, modelview position,
// and modelview surface normal to the fragment shader
// **************
#beginglsl vertexshader vertexShader_PhongPhong... | ade6e1083be2aa5830caff02c042dd976e0a78d3 | [
"C",
"Text",
"C++"
] | 4 | C | AnnoyingOtter11/Waves | 2390e030c82edda20ef8f40c64cda53592194e56 | bd6b2202796405f7154e9c95f647229f6874eb75 |
refs/heads/master | <file_sep><?php
require_once(get_template_directory().'/vendor/autoload.php');
use App\BaseDatas;
use App\IncludeDatas;
use App\PostFunction;
use App\ThemeCustomizer;
use App\util;
use App\Navigation;
use App\TempestRegister;
new IncludeDatas();
new PostFunction();
new ThemeCustomizer();
new Navigation();
new Tempe... | 4b219b1705fecf5e154e4145f75a607abce124c9 | [
"JavaScript",
"PHP"
] | 21 | PHP | wasipo/extend | 91fdc9c526dbd810abdff51179d161af0f987123 | 77c00d1d894bdfd736810477ffa0f04d6849f2d2 |
refs/heads/master | <file_sep>const express = require('express');
const bodyParser = require('body-parser');
const graphqlHttp = require('express-graphql');
const app = express();
app.use(bodyParser.json());
const mongoose = require('mongoose');
const graphQlSchema = require('./graphql/schema')
const graphQlResolvers = require('./graphql/... | c6e9011a71407ae4e2572914d76b5e9c6e931646 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | harishkonda92/node-graphql | 99f35b0bd7c29e8b5d16c4157ba0cc63fdc49698 | d9e84240201d5097e50ce992a75fb6e94217153e |
refs/heads/master | <file_sep>
required
Ssh pass
https://gist.github.com/arunoda/7790979
sshpass is a utility where you can execute ssh or scp commands without password
1. install sshpass
2. export SSHPASS=<PASSWORD>
3. configure shell script
<file_sep>#!/bin/bash
#set -xv
USERC="MYUSER"
HOST_DEV="1.1.1.1"
HOST_QA="2.2.2.2"
HOST_PRD... | a049e7f97360e4741da7faf2ce73af1a6fddb17c | [
"Markdown",
"Shell"
] | 2 | Markdown | dact/shell-scripts | 77e8fc4d6324729a2884148508b213fe54252daf | fc42132ea848c1e1e337f371e6fd65040cca29c9 |
refs/heads/master | <file_sep>package com.greenServices.services;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.List;
import java.util.TreeSet;
import com.greenServices.bean.AccountList;
import com.greenServices.bean.CustomerList;
import com.greenServices.bean.RegisterForm;
import com.greenSer... | 6dc790d41886f8da449ab81f29ee37358dfff7f7 | [
"Java",
"Maven POM"
] | 6 | Java | kharshavardhan18/harsha-first | 6368e2e23a56dc930a899ca0bfd21daf2b57bfd8 | eaee545891792cea8113225ebd30284bd39095b1 |
refs/heads/master | <file_sep>package Package2;
public class Hello2 { //NOTE:There can be only 1 main method which is declare in another class
public void Two(){
System.out.println("Package two");
}
}
<file_sep>
/**
* Write a description of class max here.
*
* @author (your name)
* @version (a version number or a date)
*/
import... | 90277313076f5106ff5b52d99ebf1681eccbe0b4 | [
"Java"
] | 18 | Java | Ayush181005/Core-Java | 85a66150e14a94f760978a352a3067f9423789f7 | b7ec911f48020216b4b8c2188dd5542e5ebbaed1 |
refs/heads/main | <repo_name>BMidhun/aud-player-react<file_sep>/src/helper/filesAsArray.ts
function filesAsArray(filesList: FileList):File[] {
if (filesList) {
const tracks = [];
for (let index = 0; index < filesList.length; index++) {
tracks.push(filesList[index]);
}
return tracks;
} else return [];
}
expor... | 221060b2f2073be99d6a0fa6ccfba01a286ae384 | [
"TypeScript"
] | 3 | TypeScript | BMidhun/aud-player-react | c7623cbacf3623e1ef2a467805617db4d1cb54d8 | 81852bcd7265d6c852d1f7768d952828948c639c |
refs/heads/master | <repo_name>klopstock-dviz/heatmap_hass<file_sep>/gulpfile.js
const gulp = require('gulp');
const browserSync = require('browser-sync').create();
gulp.task('sync', function() {
let files = [
'*.html',
'css/*.css',
'js/*.js'
];
browserSync.init({
server: {
files: files,
baseDir: './',
... | 925074d54a54c28767844a2c500b008f6b7950dc | [
"JavaScript"
] | 2 | JavaScript | klopstock-dviz/heatmap_hass | 3f67348d8eef72e2e7536cef344155a4c9c2d4d6 | e1d0e5cc628e66f4a9b94bfb2035ed000eee79ed |
refs/heads/master | <repo_name>jedk1/WCMN<file_sep>/src/eu/wcmn/main/Menu.java
package eu.wcmn.main;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.text.ParsePosition;
import java.util.Arrays;... | ef22c5227037b190beab607ec6688ad782f54da2 | [
"Java"
] | 1 | Java | jedk1/WCMN | 6d891b604b479832fcd44e31a97e85fbd93f3a6d | 877733e35af53c7bb9ccef1d59d53d8cd0780442 |
refs/heads/master | <file_sep>package ui;
public class MainUI {
}
| 9ab6a989ffd96c3dae86d60d40b6f953430af8a0 | [
"Java"
] | 1 | Java | LauridsA/Zuul_Project_2.0 | 1ea5d02ae1be5b30ea7528c7f7050b4eb2591fed | 1dc1391ece79bcdb41b822271db061f99389416b |
refs/heads/master | <repo_name>jearyvon/lantern<file_sep>/packages/iconfont/index.js
import iconfont from './src/iconfont.vue';
export default iconfont<file_sep>/src/index.js
/*
* @Author: bianhao
* @Date: 2017-12-21 15:32:04
* @Last Modified by: bianhao
* @Last Modified time: 2018-02-07 17:18:06
*/
import Message from '../packages... | 82424a57c745e63543b3cf0ce36923e6c7856a4d | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jearyvon/lantern | 8c1d6aa20324e474a314eeb1bd57a26757cf5e2e | 54a3c379cc3018472d461891e3eb764aef94b6c2 |
refs/heads/master | <repo_name>himanshunegi378/Period-Tracker<file_sep>/src/views/stats/services/sortDate.ts
// function to sort the array of dates without mutating it
export function sortDates(dates: Date[]) {
// copy array
let sortedDates = dates.slice();
// sort the array
sortedDates.sort(function (a, b) {
retur... | cdaad4948e0a4db74113fd9b754e03b7f3e8f912 | [
"TypeScript"
] | 4 | TypeScript | himanshunegi378/Period-Tracker | b116e10838a8424a53f2e6fef7dae7b16184a371 | 97d084da419c684a4584b7277c2d8041dff608f2 |
refs/heads/master | <file_sep>var app = angular.module('app', ['autocomplete','ngStorage']);
app.controller('MyCtrl', function($scope,$http,$localStorage){
var db=[];
var data=[];
$scope.weather_data=getCityWiseData();
/* below scope is used to show autocomple city list */
$scope.doSomething = function(typedthings){
$http({
... | e0aab503a58d2efe992f1ebae2523000abac5e00 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ummoybiswas/Time-and-Weather-App | 52e67c664b95d8f95e4d2e701d8f5eb007a6b72b | b047150f19431b670d546b9ea2da7f51601fd5d9 |
refs/heads/master | <file_sep>package com.arcreane.resources;
import com.arcreane.base.JungleObject;
public class Resource extends JungleObject {
}
<file_sep>package com.arcreane;
import com.arcreane.base.Ecosystem;
import com.arcreane.base.Weather;
public class Jungle {
public static void main(String[] args) {
//Creation... | 014a89a00dbc39b408fe042c01b44d64d608498f | [
"Java"
] | 7 | Java | dy-dev/JungleCC_TH3 | b7b86854acf472dc6e36f0165f24381fc9e5813e | aee2495f2c239f97f742b35a5c00d54b82fbbe67 |
refs/heads/master | <file_sep>import React, { Fragment } from "react";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import Studies from "./Containers/Studies/Studies";
import Study from "./Containers/Study/Study";
const AppRouter = () => (
<Router>
<Fragment>
<nav>
<ul>
<li>
... | f9264c2320478363285c4f87942ccd0d0c3675d7 | [
"JavaScript"
] | 4 | JavaScript | okeymama/cdrp-react-ui | 9290d9d3f4be2354f1a6dbbccd076cd5d1099e33 | c521890ecc1ba7e53aba5ed32b0dc323e36b8f79 |
refs/heads/master | <repo_name>kanchankotiya/listing-locator<file_sep>/app/views/listings/_listing.json.jbuilder
json.extract! listing, :id, :name, :city, :state, :country, :banner_image, :longitude, :latitude, :about_palce, :created_at, :updated_at
json.url listing_url(listing, format: :json)
<file_sep>/app/models/touristplace_category.r... | 92dc1de7646801e89f96fe32cf23804acfc0bb78 | [
"Ruby"
] | 41 | Ruby | kanchankotiya/listing-locator | a86d7665855025df704c7db2949752a8839d1d9f | 07fddda6cba98ae63fb1822c8036460f5062249e |
refs/heads/main | <repo_name>VikramTiwari/rust-wasm-web-nodejs-experiment<file_sep>/webwasm/index.js
(function () {
console.log("loading...");
fetch("./assets/web.wasm")
.then((response) => response.arrayBuffer())
.then((bytes) => WebAssembly.instantiate(bytes, {}))
.then((wasmContainer) => {
const { add, subtract, multiply }... | c4008ddb9cfbd60c6e7a7ddcfa8d445071795e60 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | VikramTiwari/rust-wasm-web-nodejs-experiment | 0ffd07b918fe3a9077b8eebf985e53c197adf65f | e7aa49ce4d1855393afb33edc6eca7d1438cabe7 |
refs/heads/master | <repo_name>AllstarVirgo/zhuanli<file_sep>/temp_test.py
##_*_coding:utf-8_*_
with open('CompanyList.txt', 'r') as f:
mingdan = f.read()
# 将读取的中文名单放入到list_corp中
list_corp = []
for each in mingdan.split('\n'):
(code, name) = each.split(',')
list_corp.append((code, name))
ste_set=set()
for item in list_corp... | 30d4306840d9aa76897a79e15c852e5f8d3d6781 | [
"Python",
"HTML"
] | 13 | Python | AllstarVirgo/zhuanli | 2d8548d38fdb13a3b7b3a2c1820072656fd01c1b | 83e74fb12704d4ba839f699b02d6be5dafc1cecf |
refs/heads/master | <file_sep><?php
$loader = require_once __DIR__.'/vendor/autoload.php';
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
$shop = new \Test\Shop();
$formatNegotiator = new \Negotiation\FormatNegotiator();
$formatNegotiator->registerFormat(
'json',
[
'application/vnd.mes... | e0e17d79c56cc6dcac6e56255ccfc99e5165b9fa | [
"PHP"
] | 7 | PHP | psren/api-test | 4bf5729091bb0c065e7ad5fe5ae2c1eac66e448b | a1b7078d88b4782c4950515b1b2774b75d46235f |
refs/heads/master | <file_sep>example-go-slackbot
===============================
[](https://app.wercker.com/project/byKey/4956e5bb2ee4285dd24b02197e9d0975)
## Application Environment
- `SLACK_BOT_TOKEN`: required
- `DOCOMO_APIKEY... | 35e7e3b2f3643ca0d756b335f51027b4cccfec56 | [
"Markdown",
"Go"
] | 3 | Markdown | kyokomi/example-go-slackbot | 05ca0255665ccc53d4268ed72a5dd095da67919e | 79f867fe98a1d518372f3ebbc9c9ff8d6e4d09d6 |
refs/heads/master | <repo_name>joshdholtz/Protocol-Android<file_sep>/src/com/joshdholtz/protocol/lib/CustomClient.java
package com.joshdholtz.protocol.lib;
import android.widget.Toast;
import com.joshdholtz.protocol.lib.ProtocolClient.ProtocolStatusListener;
import com.joshdholtz.protocol.lib.requests.JSONRequestData;
import com.joshdho... | d173ffce5d85bc5a25011b5df4a2e464da535031 | [
"Markdown",
"Java"
] | 7 | Java | joshdholtz/Protocol-Android | 0900044d375b459215ca3095e5a8fa17245179a6 | 3ac4ff3400bb4a9242589961144570fd753ec71b |
refs/heads/master | <repo_name>SheaYang/TV-L1<file_sep>/Makefile
# Makefile of research program
OBJ_DIR = bin
SRC_DIR = src
INCLUDE_DIR = src
LIB_DIR = lib
PKG_CONFIG_PATH := /usr/local/lib/pkgconfig/:$(PKG_CONFIG_PATH)
MAINFILE = main.c
TARGET = deblur
SRCS = ${MAINFILE} deblur.c #expsystem.c fourier.c
OBJS := ${SRCS:.c=.o}
OBJS := ${... | 76d3a75d58ff1c67b8d4d20084c3d413f28e5884 | [
"C",
"Makefile",
"Shell"
] | 7 | Makefile | SheaYang/TV-L1 | cdc91510595323f8dbedc85fd35418e66d39bf52 | 2cc58924d8f45268c3cbec27a95bebb954e5bf41 |
refs/heads/master | <file_sep>import React, { useState } from 'react';
import { StyleSheet, Text, View, TextInput, Button, ScrollView, FlatList } from 'react-native';
import GoalItem from './components/GoalItem';
import GoalInput from './components/GoalInput';
export default function App() {
const [courseGoals, setCourseGoals] = useSta... | 40f1cbaf1a24eda80e148cf8f325959e2717b4d3 | [
"JavaScript"
] | 1 | JavaScript | anurag19289/React-Native-To-Do | f6aa9a2713c9e4d94e8741ce7b3c69af5455e159 | b828118531282b84c2b07ee8e5717c43e0d00923 |
refs/heads/master | <file_sep>import React from "react";
import { Tab, Menu, Icon } from "semantic-ui-react";
import { NavLink } from "react-router-dom";
export default class TabNav extends React.Component {
state = { activeItem: 'Home Page' }
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
... | d62944888b4077b13ebb574ac96afdb1623e9501 | [
"JavaScript"
] | 6 | JavaScript | vy3191/Sprint-Challenge-Single-Page-Apps | 37c269529162b0057fb7ef0614b4560d31c0bd46 | 054916c5f1ed6135d98e37f943813b7408670c88 |
refs/heads/master | <file_sep><?php
require_once '../functions.php';
include_once '../section/head.php';
session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST['username'];
$password = $_POST['<PASSWORD>'];
if (doLogin($username,$password)) {
header('Location: ../Panel/index.php');
... | 9392cda85b35ad022986bd1b780a49657201a259 | [
"SQL",
"PHP"
] | 9 | PHP | aminmalekzadeh/MyBlog | 54762be6a530a470b269639cb7245bf8549960de | fa75a2982d96481045a2b9c03238decf353fad37 |
refs/heads/master | <file_sep>const outputResult = function() {
this.hasError = null;
this.code = null;
this.data = [];
this.message = '';
this.status = 200
}
outputResult.prototype.setCode = function(code){
this.hasError = false;
this.code = code;
return this;
}
outputResult.prototype.setErrorCode = fun... | 0226408b93cb8248b6f92f32ccac3999ae72c57e | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | mayyamak/backEndBase | 6b65ca5b0c9b058a4eb12143cdfcaa2f032b58ec | a079336f317b51afc3e939e5e202bc468555fb1d |
refs/heads/develop | <file_sep># -*- coding: utf-8 -*-
"""
static_file
Static File
:copyright: (c) 2013-2015 by Openlabs Technologies & Consulting (P) Limited
:license: BSD, see LICENSE for more details.
"""
from trytond.model import fields
from trytond.pyson import Eval, Bool
from boto.s3 import connection
from boto.s3 i... | fdbaeb9fee5af1fbf724bc5c493f284d2f3127f6 | [
"Python"
] | 1 | Python | PritishC/trytond-nereid-s3 | d5d30099857113594858cef0b6973c7e0c157da3 | 24b33bcf0ebd9f9659583638a10ae3caa191ee0c |
refs/heads/master | <file_sep>#include <ctime>
#include <fstream>
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
static bool value_in_v( const std::vector<std::string>& rv_s_check, const std::string& rs_value)
{
bool res = (std::find(std::begin(rv_s_check), std::end(rv_s_check), rs_value) != std::end(rv... | 7afde0fa7d6be5075d6eb7b7238d8da6b7a1c671 | [
"Markdown",
"R",
"C++",
"Makefile"
] | 7 | C++ | SebNag/PersonalDataTracking | ae66507914f7fabc6ee9f4a79dde95dbc8d2db3f | f16f9ae0c331c5c661f4c6e91f64a02014b3219d |
refs/heads/master | <repo_name>xiaobaicxy/numpy-least-sqaure-method<file_sep>/main.py
# -*- coding: utf-8 -*-
"""
Created on Tue May 19 09:47:11 2020
numpy实现最小二乘法
@author: 86186
"""
import numpy as np
import matplotlib.pyplot as plt
def loss(w, b, x, y):
total_loss = 0.0
differ = w*x + b - y
for i in range(len(x)):
tot... | 268a473d3710ea6a5182a5fd27a0aacf2fd00949 | [
"Python"
] | 1 | Python | xiaobaicxy/numpy-least-sqaure-method | 7136e1d801d384377527bea59daedbd22c3e88a7 | c8692f29d1b7d55957e89efc6521afcc2a3ef123 |
refs/heads/master | <file_sep>Title: Intuitive Linear Algebra
Date: 2016-06-22
Author: <NAME>
Rawr[^1].
[^1]: Here is the footnote.
<file_sep>Title: Implementing Batch Normalization in Tensorflow
Date: 2016-03-29
Author: <NAME>
Status: published
Summary: Batch normalization is deep learning technique introduced in 2015 that enables the ... | 394b5cb2a813cdfb57f4d793d2f621fa9487e272 | [
"Markdown",
"Python"
] | 4 | Markdown | spitis/r2rt-pelican | 676954c6609f77f14411df2cd30f280daee389ba | f10d821dbfc54a8a94875fae3871e7fd9ccbb875 |
refs/heads/master | <repo_name>gao-li-gong/gao-li-gong-cms<file_sep>/src/components/RichTextEditor/index.js
import React from 'react';
import 'braft-editor/dist/index.css';
import BraftEditor from 'braft-editor';
import debounce from 'lodash/debounce';
import styles from './index.less';
import { ContentUtils } from 'braft-utils';
import {... | 6da3981fd5f9477d3bd4c552f3132df3d6b42da7 | [
"JavaScript"
] | 4 | JavaScript | gao-li-gong/gao-li-gong-cms | 3f163fd58a38412b0adf4ce752d9eecbdc25f7d7 | 6880e45d7ac0e1b0dc85e6d2f017c4703d9e9efc |
refs/heads/main | <repo_name>danieljaeim/LiquidHacks2020<file_sep>/src/components/Box.js
// REGULAR IMPORTS
import React, { Children } from 'react';
// STYLESHEETS
import '../css/Champion.css';
class Box extends React.Component {
constructor(props) {
super(props)
}
render() {
const {className, children} = ... | 8b4a60a1226445af55a8d4d7f5ef92bac4d0a432 | [
"JavaScript"
] | 6 | JavaScript | danieljaeim/LiquidHacks2020 | 971751694c05329b4a1895fec6e44bf6db8fb2b8 | 3f76e33c67a18336e75cee5c832e0f0be8fea788 |
refs/heads/master | <repo_name>Mathilda11/BOS-LOG<file_sep>/bos-parent/.svn/pristine/16/16f8fc21fec520e5058a8bd6ec62811d5635ad02.svn-base
#Generated by Maven
#Fri Apr 20 15:13:12 CST 2018
version=0.0.1-SNAPSHOT
groupId=com.itheima
artifactId=bos-web
<file_sep>/README.md
### BOS物流项目
<file_sep>/bos-parent/bos-dao/src/main/java/com/ithe... | 428d8f3b2e4193a88fd2e90b3a7a5306524b29ce | [
"Markdown",
"Java",
"Java Properties"
] | 4 | Java Properties | Mathilda11/BOS-LOG | 9dd19707d7545aaee45bb00018a3950ac02c1d71 | f6e99ae83461644ebc3562df1003434db4137431 |
refs/heads/master | <file_sep># Corporate Princess Carnage
-----------------------------
# APIs Used
- https://github.com/speps/XInputDotNet
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XInputDotNetPure;
public class MovementController : MonoBehaviour {
/**
* Player index ID,... | e93a62a90b3056b68aab7be6a973f1144b14adef | [
"Markdown",
"C#"
] | 2 | Markdown | SCBionicle/GameDevProject | 8255479a180ca97008534fd9dbe9929c2177a5c9 | 61b4130ca83b93d7b7440c217a66d30eb988ca5b |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.crisposs</... | 039591435da603a1843dbc020062b0e0e21340fd | [
"Markdown",
"Java",
"Maven POM",
"AsciiDoc"
] | 53 | Maven POM | nobeh/abs-api-parent | c461a99f33502d1ec726e6995ae67264c9511169 | d8991928f0e812c087dd790f557fcd8b46d1a1bf |
refs/heads/master | <repo_name>RubenSV117/TapShot<file_sep>/Assets/Scripts/ProjectileManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProjectileManager : MonoBehaviour
{
// Use this for initialization
void Start ()
{
StartCoroutine(wait2Secs());
}
// Update is call... | ce7e05330eb0abedfbb8e1c5a6dfd225d95e0740 | [
"C#"
] | 18 | C# | RubenSV117/TapShot | 04712af0128f2a8a9e8b8514ed647eda5ff3ffc5 | 597e28ade38965fcb9596627beb253e07bb5826d |
refs/heads/master | <file_sep>using CustomerManagement.Domain.Models.CustomerAggregate;
using Infrastructure.Core.Repositories;
using Infrastructure.Domain.Repositories;
namespace CustomerManagement.Domain.Models.CustomerAggregate.Repository
{
public interface ICustomerRepository : IRepository<Customer>
{
}
}
| c8ae3ceafdfdf3d349904677e87388b263defe5f | [
"C#"
] | 1 | C# | duytuit/Ecommerce | 2545d03dd5b9c21a480549c801c5fa011eab0b2d | db41c48569d60f9ccff855e2233803ea5f301a1c |
refs/heads/master | <repo_name>eduwarick/python<file_sep>/stringManip.py
#String Manip
#get single char
text = "Hello"
print(text[1])
#get substring
print(text[2:4])
#remove any space from beggining and end
text = " <NAME> "
print(text)
print(text.strip())
#get length of string
print(len(text))
#Lower and Upper case string
print(tex... | 8b31ce5862cca9ae90c040607b06fb2080a66c24 | [
"Markdown",
"Python"
] | 4 | Python | eduwarick/python | a5ffeadec18057f2155b808a49e841f24ba6bb8c | 00a7dc55a83aedb392feca4bd322b0f2c3c42d5c |
refs/heads/main | <file_sep>import requests
from bs4 import BeautifulSoup
LIMIT = 50
URL = f'https://kr.indeed.com/%EC%B7%A8%EC%97%85?q=python&limit={LIMIT}&start=99999'
def extract_pages():
result = requests.get(URL)
soup = BeautifulSoup(result.text, 'html.parser')
pagination = soup.find('div', {'class':'pagination'})
... | b2053ad6a4e745e16338dab88bc34f270804bb81 | [
"Markdown",
"Python"
] | 2 | Python | lgkrwnsdll/Webscraper | 3812bf95cc4390482dd4ebd3b10a6d994d0a62a8 | 4b4e05d95bcc859ce00c570c47d20324a67806df |
refs/heads/master | <repo_name>meemknight/cubeMarching<file_sep>/cubeMarching/worldControll.h
#pragma once
#include <glm/vec3.hpp>
#include <functional>
auto circleFunctionCreator(float r, float cx =0, float cy=0, float cz=0)
{
return[r, cx, cy, cz](int x, int y, int z) -> bool
{
float x2 = x - cx;
float y2 = y - cy;
float z2 = z... | ca6e48090b84f1c798632109e8589b3e5c5f3bf5 | [
"Markdown",
"C++"
] | 5 | C++ | meemknight/cubeMarching | 62469188eb70d14ffecfdaf01e9a4e46e28d61bf | 8b6dfe422f95c07f5af4ae23c4a3a5250e5c4fc6 |
refs/heads/master | <file_sep>package com.codecool.library.views;
import com.codecool.library.utils.InputGetter;
public class RootView extends AbstractView {
public void displayMenu() {
clearConsole();
System.out.println("\nWhat do you want to do?\n" +
" 1. Add new book\n" +
" 2. Edi... | 3af5796015343d1ec178f62de4ae299751d2a97d | [
"Markdown",
"Java",
"SQL"
] | 12 | Java | lpelczar/Book-Management-System-SQLite | e33502bf79af2d65856131aed2f75192e3caa666 | e28e88a75a27eb0a8ea7a699c841d3a5a64ea979 |
refs/heads/master | <file_sep>package tests;
import iterator.Iterator;
import iterator.NestedLoopsJoinsIndexScan;
import iterator.QueryPlanExecutor;
import iterator.SortMerge;
import heap.*;
import global.*;
import index.*;
import java.io.*;
import java.util.*;
import java.lang.*;
import java.nio.file.NoSuchFileException;
import diskmg... | 2af38620f7c39464ee322c923ba9ca73b1173ec6 | [
"JavaScript",
"Java",
"Markdown",
"Shell"
] | 9 | Java | siddarthmadan09/DBMSI-510-Project | a40539bb4942ca791b281725c6171b6bb3d48f1e | b3a027656f5087b40e3560f4363d5c78d545b522 |
refs/heads/master | <repo_name>lunlun1992/openH264<file_sep>/h264decmain.c
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "libavutil/avutil.h"
#include <libavcodec/avcodec.h>
int main(int argc, char **argv)
{
AVCodecContext *pCodecCtx = NULL;
AVCodecParserContext *pParserCtx = NULL;
AVCodec *pCodec = NUL... | e9c090cb68a7b9ecb3ed5ca28f4d343de35afa31 | [
"Markdown",
"C",
"CMake"
] | 3 | C | lunlun1992/openH264 | 50ee32c8dc7f51027494b0d9d6630566b0783f4f | 18745c94f003855fac14d1af03bab905e37c1cf5 |
refs/heads/master | <repo_name>N3r03/Sport<file_sep>/SportLife/Models/Players.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace SportLife.Models
{
[Table("tblPlayers")]
public class Pla... | fcf02168934adde926d3da5e443095f6fbdd5c36 | [
"C#"
] | 5 | C# | N3r03/Sport | 5c4ffa3ed4114f3311d4924abf55757d5b582132 | bec77aa304c39110510d8a49adb53035c77312e6 |
refs/heads/master | <file_sep>//
// main.cpp
// NeuralNet
//
// Created by <NAME> on 10/5/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include <iostream>
#include <vector>
#include <cstdlib>
#include <cassert>
#include <cmath>
using namespace std;
struct Connection{
double weight;
double deltaWeight;
};
class... | 08917bff7d07749536e53f056ea8012b67122687 | [
"C++"
] | 1 | C++ | cmathews95/neuralnet | 2f99d3b2386ba885cb340b7d8a2d11c5809696c2 | 67aa5424c3e06954aa0efe3b49d34f61f51180a7 |
refs/heads/master | <repo_name>krolesz94/Java-Basics<file_sep>/MinimumElementChallenge/src/com/Asd0cska/Main.java
package com.Asd0cska;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int[] arra... | 63f35ee6191a28863359c13e71110bc5b8d859b8 | [
"Java"
] | 16 | Java | krolesz94/Java-Basics | bfb1c03998874e0090a09d647147b4fd51f7cccd | 6d0a3084349e307177470dbb2aedc66a941b8bd4 |
refs/heads/master | <repo_name>cgddgc/captcha-tensorflow<file_sep>/capt/train_set.py
import urllib.request,time,os,random
from damatuWeb import DamatuApi
from PIL import Image
import numpy as np
from cfg.py import dmtusr,dmtpwd
class train_data():
def __init__(self):
pass
def get_img(n):
imgpath="D:/gitrepos/capt... | 705b2fdfc62a5d4f2a8dfec4d8824d65a8ad6f6e | [
"Python"
] | 5 | Python | cgddgc/captcha-tensorflow | ec3f564ced4b822a3c475903fc2a1ad1d4926a44 | 7b79ec89245986e45b1ffaf962371dd12d3cc588 |
refs/heads/master | <file_sep>WDL Viewer
==========
This is the open-source release of the World Digital Library's book viewer: e.g. http://www.wdl.org/en/item/211/view/
Prerequisites & Notes
---------------------
* Compass::
gem install --user-install compass --pre
* JSHint: see http://www.jshint.com/install/
* We don't duplica... | 73a8313fcb18a6cc4ec7a89deefd387e78c4c637 | [
"Makefile",
"Ruby",
"reStructuredText"
] | 3 | reStructuredText | klingerf2/wdl-viewer | 183c9be631702030fab2eb653ccc4044fdf6e424 | 65966a616a2148d35754baeff6d9a7fe30e0aa86 |
refs/heads/main | <repo_name>jbaraniuk/DiceGame<file_sep>/Game.java
package diceGame;
/**
* @author <NAME>
* Game object class.
*/
import java.util.Random;
import java.util.ArrayList;
public class Game {
private CircularlyDoublyLinkedList<Player> list;
public Game(){
list = new CircularlyDoublyLinkedList<>();
}
... | 4c27bf5c957c2fce60689b0a3b8dc84ae85c9d5d | [
"Markdown",
"Java"
] | 3 | Java | jbaraniuk/DiceGame | f7fdb7a3f75fcb1de4fd7b2e3097f19add2b1a7d | 68c82e7168f6b6e9cc52341052b002f17b8c04b0 |
refs/heads/master | <repo_name>eockim/memberinfo-reactive<file_sep>/README.md
# memberinfo-reactive
##info
spring5 reactive 구성원 정보 제공 api
<file_sep>/src/main/java/com/hj/cmi/CmiApplication.java
package com.hj.cmi;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Non... | 4b4465173d4b494ff633b57febc7891d713bec90 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | eockim/memberinfo-reactive | 6b049b8375e031aa9487d83e971fe687838c43bb | b227e853c88b898eba674bcf1bdf41a9b4128e33 |
refs/heads/master | <repo_name>doriclaudino/relatorio-zabbix<file_sep>/tracking.php
<?php
header('Content-type: text/html; charset=ISO-8859-1');
// Allow access from anywhere. Can be domains or * (any)
header('Access-Control-Allow-Origin: *');
// Allow these methods of data retrieval
header('Access-Control-Allow-Methods: POST, GET, OPT... | 7ead8a7fabb9783c3d52fa060c7aa8c962a0af24 | [
"PHP"
] | 9 | PHP | doriclaudino/relatorio-zabbix | 84c9508746b1355efc2fbbdae927248940906dc7 | b009aeabb7142684cb894b9028e56e20419eb75c |
refs/heads/master | <file_sep>import re
import pytest
import numpy as np
import torch
from obp.types import BanditFeedback
from obp.ope import (
InverseProbabilityWeighting,
SelfNormalizedInverseProbabilityWeighting,
InverseProbabilityWeightingTuning,
)
from conftest import generate_action_dist
def test_ipw_init():
# l... | 9079ec78da35aa8fa407ff46517b7a7ba66a3f38 | [
"Python"
] | 5 | Python | yuan776/zr-obp | b77b4a6faf041604b0a7873de60adbcc57bd2ee2 | c88663e72c6e08eccd9559debe97993922e1705d |
refs/heads/master | <repo_name>SpringBlossomsy/HelloPark<file_sep>/park/urls.py
from django.conf.urls import url
from park import views
from django.views.generic.base import TemplateView
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^setSei/$', views.setSei, name='setSei'),
url(r'^center/$', views.center, name... | 06003fe4fa2044a02a8b6b2bc3ea1659ad62fa6d | [
"Markdown",
"Python"
] | 13 | Python | SpringBlossomsy/HelloPark | 87c5746aa88090e4d762e92a93ea542f82fd0370 | 229b5225e95faec4ade2e199ffc4bdd48cd78201 |
refs/heads/main | <file_sep># pset3
Cosyne 2021 RNN tutorial pset3
<file_sep>#!/usr/bin/env python3
"""
ipython
from PINningDevIdealBump import wrap
wrap(plot=True)
"""
import datetime
import math
import numpy as np
import scipy.io
import matplotlib.pyplot as plt
def wrap(bottled_noise=False, learn=True, run=True, save=False,
... | 0c8c5dd1384a2f5211df62f53c4a6658490f7630 | [
"Markdown",
"Python"
] | 2 | Markdown | rajanlab/pset3 | af09e69661ebdedfc936b10f61d8e57158fe25e0 | f5eb1a7bc7f8cfec5a8f9cefc64313fd4158e74f |
refs/heads/master | <file_sep>const dotenv = require("dotenv");
const sqlite3 = require("sqlite3").verbose();
const async = require("async");
dotenv.config();
const httpOptions = {
method: "GET",
headers: {
accept: "application/json",
"api-key": process.env.API_KEY,
},
};
async function doFetch({ endpoint }) {
const res... | aa8c5d40a5d7c5596e55e0d8927bcd5d60afa3cb | [
"JavaScript",
"SQL",
"Markdown",
"Shell"
] | 4 | JavaScript | SocialGouv/sre-scripts | b261137218a92e3190fc51833166462244509db1 | 4b9de62030000f8787a41607a9d9363877f65537 |
refs/heads/master | <repo_name>askito/askito<file_sep>/app/models/display_element.rb
class DisplayElement < Content
end
<file_sep>/app/models/content.rb
class Content < ActiveRecord::Base
belongs_to :questionnaire
has_many :options, :foreign_key => 'question_id', :order => 'options.position', :dependent => :destroy
has_many ... | 73abc9bc0c0b6c146f2231a207cafcb5ffc1feda | [
"JavaScript",
"Ruby"
] | 34 | Ruby | askito/askito | 96a446809f4024bf18c2cdd23fc4965a2755254c | 2ef6c7b6edfb7d611bcaf3b1ac83f96515b487e8 |
refs/heads/main | <file_sep>import './App.scss';
import React, { Component } from 'react';
import { Button, Grid, Paper } from '@material-ui/core';
import TimerButton from './TimerButton';
// import { render } from 'node-sass';
// https://www.reddit.com/r/heroesofthestorm/comments/bmb5dk/camps_and_objective_timer_cheatsheet/
const mapL... | 127e2c27c330271ee7ae78e937103e0ccc2800f3 | [
"JavaScript"
] | 3 | JavaScript | stephencattaneo/hots-timers | 58702d935ed561c83a8ab93b12bd98383ef8c693 | cea4a4b8f01fba00a95d1d8d23bf23baa71f846e |
refs/heads/master | <repo_name>braianflorian/rest-ws-votos<file_sep>/api/services/MessageTableService.js
/**
* get_error
* @param {*} token
* @param {*} tag
*
* Retorna un mensaje de error especifico por medio de una etiqueta
*/
module.exports.get_error = function (token = "", tag = "") {
switch (tag) {
case "mandatory_para... | 5387561089a3fa9330fb673134107ac267c19361 | [
"JavaScript"
] | 5 | JavaScript | braianflorian/rest-ws-votos | 99ebde3a9a1861bb54d0e5a3e0e66a1e85d1c413 | c9e9ebcd2f008a5043103f5ff1c8f150d44051f0 |
refs/heads/master | <repo_name>navyTensor/airtools<file_sep>/tests/test.py
#!/usr/bin/env python
"""selftest"""
import logging
from numpy.linalg import svd
from numpy import array,mat,squeeze
from scipy import sparse
from numpy.testing import assert_array_almost_equal, assert_allclose,run_module_suite
"""
generate test problems from Julia... | 471a7d89483a12c40c58ae2f70b99dfaf57130c4 | [
"Python",
"reStructuredText"
] | 7 | Python | navyTensor/airtools | 23ac4752477851d82982bd1387179598ffef858c | 847a26f25093d865743adfbc549baa2239eacdb5 |
refs/heads/master | <file_sep># facebook-tool
Để đảm bảo an toàn cho việc dùng token facebook vào mục đích cá nhân và tiết kiệm thời gian như đã nói ở trên thì bạn nên dùng phương pháp lấy token trực tiếp trên facebook theo các bước bên dưới.
Bước 1: Đăng nhập vào tài khoản Facebook trên trình duyệt tại https://fb.com
Bước 2: Bấm vào đư... | 2ca99e2862ab7e7b2d4cacf4ab0722af7c410661 | [
"Markdown",
"Python"
] | 4 | Markdown | vanchung1995/facebook-tool | ab0f43f704bb7e8ffe8dbe4aa6d97d96b27b46e8 | 5238d56ab2293b2d095bf0d6756a24c80dbccf5f |
refs/heads/master | <file_sep>//
// APIs.h
// Demo布丁动画
//
// Created by apple on 15/12/8.
// Copyright © 2015年 apple. All rights reserved.
//
#ifndef APIs_h
#define APIs_h
#define kHomePath @"http://pudding.cc/api/v1/"
#define kCategoryScrollImages @"config?fields=featured_banner&apiKey=yuki_android&version=2.6.5×tamp=144273745... | 4e9177ab55750a1d122e16789251a6224fc55690 | [
"C"
] | 1 | C | CoderFShieh/gitskills | 18f572222ed6303f1a22be52476d114843a42eb9 | fa2948d628c6d3737f258da9fbc76c1c1b26a33a |
refs/heads/master | <repo_name>mrAndersen/vulkan_1<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 14)
project(vulkan_1)
#find opengl in system
find_package(OpenGL REQUIRED)
# find vulkan in system
find_package(Vulkan REQUIRED)
if (${Vulkan_FOUND})
message(STATUS "Vulkan FOUND")
message(STATU... | 9ff5d88b7d3a8dc51b7258063ead5bf300719275 | [
"C",
"CMake",
"C++"
] | 5 | CMake | mrAndersen/vulkan_1 | 28206dd423518b646b905c6fd4c31d68937ad619 | 09dfe489c304e0865d1c481ca923d71b0bd57a07 |
refs/heads/main | <repo_name>smathur910/RegisterApp-Kotlin<file_sep>/app/src/main/java/com/example/registerapp/MainActivity.kt
package com.example.registerapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.Button
import androidx.appcom... | 1bbd630ae3cfcb149cc4aa51a6fe0a2eb0f04188 | [
"Kotlin",
"Gradle"
] | 6 | Kotlin | smathur910/RegisterApp-Kotlin | 503aecfd0a4439a3d6b69817c0d2eef7b4d4d7e1 | fca41f29b8223184473b096edfd2b3511515673b |
refs/heads/main | <file_sep>import io from 'socket.io-client';
import { processBoardUpdate, processUserUpdate } from './state';
import { showErrorMsg } from './htmlController'
const Constants = require('../shared/constants');
const socketProtocol = (window.location.protocol.includes('https')) ? 'wss' : 'ws';
const socket = io(`${socke... | 8e49875276547e56dbdd0d938b587b5ed6a0d5d4 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | Chris022/WeberBoard | 9f88cc4c1016d7a9e4484eaf44c08dad558fa8ce | cde0cab6d8a61c8cdd49f472a151f6c148748ad3 |
refs/heads/master | <repo_name>dovancanhdev/E--Cordova-project<file_sep>/Brook/src/com/truong/brook/client/event/SelectCategoryEvent.java
package com.truong.brook.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.truong.brook.shared.Category;
public class SelectCategoryEvent extends GwtEvent<SelectCategoryEventHandle... | 57fa7cf58527ea7f41e4d35a24bf7aa736d8a0da | [
"Java",
"Shell"
] | 18 | Java | dovancanhdev/E--Cordova-project | be015999b441afdfd2cedf1e5b379790ebf71d50 | f4b4833469ea3c304c869e03579458ee04939b59 |
refs/heads/master | <file_sep>rootProject.name = 'reactive-service'
<file_sep>package com.example.practice;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
@RestContr... | 5a65df64ac1627a080735e358af47a2cccc39ffa | [
"Java",
"Gradle"
] | 2 | Gradle | KarthikBashyam/spring-reactive | 7d6271105a06656639619fb0082b1bc78e1f5142 | b90018f8b48640cc481b0c0259ea12c73d0bfd85 |
refs/heads/master | <repo_name>simonjwright/ACATS<file_sep>/docs/ug-563.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Expected Results for Class L Tests</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META ... | 833a50cc71f864c46ed4f02b07bfbc4575755e56 | [
"Markdown",
"C",
"HTML",
"Shell"
] | 15 | HTML | simonjwright/ACATS | b642dbafda665a1351812abdce961be7a931bd8d | 58f7ffbfdbf08a058cdc2134e82aa07379a628d4 |
refs/heads/master | <file_sep>package modules;
import com.sun.nio.sctp.Notification;
import services.UserServiceRemote;
import services.WinnerManagementRemote;
import static com.sun.xml.internal.ws.api.model.wsdl.WSDLBoundOperation.ANONYMOUS.optional;
import java.net.URL;
//import java.sql.Date;
import java.util.Date;
... | 1677725150dc97bd53c7231d56fb352e9c04f307 | [
"Java"
] | 4 | Java | 9allel22/scaling-dollop | 6e873e4310b324feab6cf5fee1b165d9677d8f89 | 6534e66f3b56c02499098f2b94ccd10c9f4ee40a |
refs/heads/master | <file_sep>#include "BossBulletThree.h"
#include "Data.h"
BossBulletThree::BossBulletThree(float speed)
{
texture.loadFromFile("picture/bossBullet3.png");
texture.setSmooth(true);
sprite.setTexture(texture);
boundingBox=sprite.getGlobalBounds();
this->speed=speed*sqrt(sqrt(Data::level));
}
BossBullet... | b1569087f30d7e235b2b5d93c264b8ba132a6278 | [
"Markdown",
"C++"
] | 33 | C++ | pzhxbz/Fighture | c7b7c5e18808b4e47aaa63bbde33c9b7a9f3dcb6 | 949178ccffd4f862c0fbbedee6d0a6866ec5b870 |
refs/heads/master | <file_sep>package com.danupramei.weatherapp.Models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Daily {
@SerializedName("dt")
@Expose
private Integer dt;
@SerializedName("sunrise")
@Expose
private Integer su... | 560d4396526099c371762b88126ffdf0e1e5e587 | [
"Java"
] | 10 | Java | danupramei/WeatherApp | 02eca4c9bcb8d51d4e378b067b0c1a63915983a3 | 78459a1a406da412aae11fe35445a9ddf49e899f |
refs/heads/master | <repo_name>Echo-EG/Baig_darbas<file_sep>/jquery_plugin/js/script.js
// sticky navbar
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
function myFunction() {
if (window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
} else {... | ffe4c5a209a7005a09f902dedc285fdc94c0891c | [
"JavaScript",
"PHP"
] | 4 | JavaScript | Echo-EG/Baig_darbas | e857e65101985f8b6d9d86bf1d8d1fe3491232a6 | f4fd870ae376ac7d34937ef9917113165edc7316 |
refs/heads/master | <repo_name>novsunheng/codewars<file_sep>/(7 kyu) Form The Largest/(7 kyu) Form The Largest.js
// #1
// function maxNumber(n) {
// const str = String(n);
// const arr = str.split('');
// arr.sort((a, b) => b - a);
// const res = arr.join('');
// return parseInt(res);
// }
// #2
// function maxNumber(n) {
// ... | 6a2f5f466d8d9f445599c706166ce91dd6aa86a4 | [
"JavaScript",
"Markdown",
"Rust",
"Python",
"TypeScript",
"C++"
] | 198 | JavaScript | novsunheng/codewars | c54b1d822356889b91587b088d02ca0bd3d8dc9e | 04fe3390df340d82155805fc94cc35cef2e178ed |
refs/heads/master | <repo_name>gabeco123/supreme-scraper<file_sep>/main.py
import requests
import discord
from discord.ext import commands
from colorama import Fore, Back, Style
class Bot(commands.Bot):
def __init__(self):
super().__init__(command_prefix="!", description="Supreme-Scraper")
async def on_ready(s... | b44dd05467e8e9dee2f150942e7d50286834012f | [
"Markdown",
"Python"
] | 2 | Python | gabeco123/supreme-scraper | 17e4c4aba814b7619ace13e2d2558b3db550f9a9 | ae3a7c252a0408e1ad56df8b63c6908780cbcee9 |
refs/heads/master | <repo_name>JustAboutJeff/trilogy_education<file_sep>/src/TrueFalse/TrueFalse.js
import React, { Component } from "react"
import PropTypes from "prop-types"
import "./TrueFalse.css"
import uid from "../uid"
class TrueFalse extends Component {
constructor(props) {
super(props)
this.nameUid = uid()
}
handl... | e23760bc924377559f1f1a60a329f5351143577c | [
"JavaScript"
] | 11 | JavaScript | JustAboutJeff/trilogy_education | e9558d712762e60e4890d800105bb7293f1afbbe | 7105e75e4a4d600189f051c8e1a802d1db108367 |
refs/heads/master | <repo_name>JacquiKane/CookieHierarchy<file_sep>/cookie.js
var imagesAll = new Array();
for (i = 0; i < 7; i++) {
imagesAll[i] = new Image();
imagesAll[i].src = 'mixer' + i + '.png';
}
var ovensAll = new Array();
for (j = 0; j < 2; j++) {
ovensAll[j] = new Image();
ovensAll[j].src = 'oven' + j + '.png... | 4da7c21c7d733320e36e60d82a62a55b410ed4a6 | [
"JavaScript",
"Java"
] | 3 | JavaScript | JacquiKane/CookieHierarchy | e227417eda180fb91daac76bb0d4e8fb78fb8c7d | f69a91de080c25c28a5a6d4888f834329985dad6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.