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>kwong4/UpgradedGames<file_sep>/project2/GetMeMyFruit.h
// Author: <NAME>
#ifndef _GETMEMYFRUIT_H
#define _GETMEMYFRUIT_H
#define MODE GFX_AUTODETECT_WINDOWED
#define WIDTH 640
#define HEIGHT 480
#define JUMPIT 1600
#define BLACK makecol(0,0,0)
#define WHITE makecol(255,255,255)
#define YELLOW makecol(255,... | 36c31a3ff08ab96794206c23cdfa4bf5b0ce5bb8 | [
"C",
"C++"
] | 10 | C | kwong4/UpgradedGames | 29cca32259add8d3085f6444f15d93ae940583ca | 14569b721ce0e92c45457112ee48a55270ec32f5 |
refs/heads/master | <repo_name>dariomiceli/Project-2<file_sep>/app/controllers/events_controller.rb
class EventsController < ApplicationController
$events = Event.all
def index
@events = $events
end
def show
@events = $events
@event = Event.find params[:id]
@artist = Artist.find(@event.artist_id)
@shareables =... | 2881881cd0ab98a51315f0b22eaa29728a906d3c | [
"Markdown",
"Ruby"
] | 10 | Ruby | dariomiceli/Project-2 | 093b211382b352664d5d7b2a95e6d8417649892a | f884049dac5fac2e43faf5624eb52cb03432a23f |
refs/heads/master | <repo_name>depapp/peminjaman<file_sep>/app/Http/Controllers/AsisstantController.php
<?php namespace App\Http\Controllers;
use App\asisstant;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Request;
class AsisstantController extends Controller {
/**
* Display a listing of the resource.
*
* @re... | 49ef408bbb2be5665126ee833e6144dc74bea6b9 | [
"PHP"
] | 5 | PHP | depapp/peminjaman | b82b72c1bc596917d2d012eeab119c299e6b178b | d3f4c19ca60d8c7be5a4708f86b9a0cb3d4e94f8 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Product;
class ProductController extends Controller
{
public function index()
{
return Product::all();
}
public function auth(Request $request)
{
$data = ... | 684c639c0160e8d0161fc61770ac22a74ac7ed29 | [
"JavaScript",
"Markdown",
"PHP"
] | 19 | PHP | joaoaugustojr/codeplus | 08dd69352e5c1977a9c291eccf7d355a9f23b4d9 | 8518d5ecb889619cdf51a6970fc3d90407fd046d |
refs/heads/master | <file_sep># Prerequisites for ansible to communicate with a Windows Host.
yum install python-pip -y &&
pip install --upgrade pip &&
pip install pywinrm &&
# Stop the creation of .retry files when a playbook fails to run.
sed -i "s:#retry_files_enabled = False:retry_files_enabled = False:g" /etc/ansible/ansible.cfg
<fi... | 172a557d0fbafe05d98d819bf8072b21ea1d758e | [
"Ruby",
"Shell"
] | 2 | Shell | GarethOates/ansible-workshop | 013fef1d32c822980baf238642f2ff3db6a3b1a4 | 0c7bab2336fc015b8815409b9fe3dd89f7fb59d4 |
refs/heads/master | <file_sep># Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode... | 920f63b270db44976fe6c548e7597971f8a70548 | [
"Python"
] | 1 | Python | 100piyushsingh/Journey | 2eacf1c725ca0c2173282c1419b9d599b8af226f | f689266ef8fb480946422113af764b55c6e981a9 |
refs/heads/master | <repo_name>bsiegfreid/tkdraw<file_sep>/tkdraw/config.py
import os
from appdirs import AppDirs
class Config:
def __init__(self):
self.app_dir = get_app_dir()
def save_geometry(self, window):
path = os.path.join(self.app_dir, 'geometry.conf')
print(path)
with open(path, "w") as... | 77e583c4c0aec4c14f55197a29bf9c970a650c13 | [
"Markdown",
"Python"
] | 11 | Python | bsiegfreid/tkdraw | a5f75c00679f14a4dff76a49ab2c737f49d87808 | e5dec16ae30c075e72525140696803bafda9df53 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lk.beempz.tf.entity;
/**
*
* @author badhr
*/
public class User {
private String username;
p... | cbef6b242612474eb52398788709ae95dee27dfb | [
"Java",
"SQL"
] | 36 | Java | Badhrajith-Pathirana/fx-teafactory-spring | a914a8cb721f9be781e46b1c670a2f88e56236a9 | cdacf08d0d5086f66bedb019b73f13d7f1a4be59 |
refs/heads/master | <repo_name>kamchy/covidstat<file_sep>/covidstat/src/main/java/com/kamilachyla/gui/CovidView.java
package com.kamilachyla.gui;
import com.kamilachyla.model.Country;
import com.kamilachyla.viewmodel.CovidViewModel;
import javafx.application.Platform;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import java... | 25db47595de4c5be3522e3c11e11222e1a9cd781 | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Java | kamchy/covidstat | 1c9f001e94461a234f63f17cc98a981055142a31 | 48796668c5bba4dfef259e496ffb254076b56405 |
refs/heads/master | <file_sep>[pytest]
log_file = log.txt<file_sep>import re
import pytest
def log(file_name: str, text: str):
with open(file_name, 'a', encoding='utf-8') as file:
try:
file.write(text + '\n')
finally:
file.close()
def check_to_valid_email(email: str) -> bool:
return boo... | ff40af0ab44875dee2a8538af44a8957fa587ef7 | [
"Python",
"INI"
] | 3 | INI | rinAkhm/param_test | 2472f90bf0336049218d3da6f3efde2dd90a5581 | 75d6099d2611f1a21dac97d4577662d24fcf1e8a |
refs/heads/master | <file_sep>#!/usr/bin/python
import sys
from datetime import datetime
#-----------------------------------------------------------#
# The reducer reads through all the records in the input. #
# The input is of the format author_id\tadded_at_hour. #
# #
#... | f1765a721ea9f3cc36e9b6ea68399a18a29ec358 | [
"Markdown",
"Python"
] | 9 | Python | kedruwsky/udacity_training | e633e72936ef83582e3f72c41f73c16d984ced44 | dd02843c00964e4af0d8bfc4fd0bc89d3875c9a2 |
refs/heads/master | <file_sep>import java.util.Random;
public class Quicksort {
public static void main(String[] args) {
Random random = new Random();
int n = 10;
int[] arr = new int[n];
for(int i = 0; i < n; i++) {
arr[i] = random.nextInt(20);
System.out.println(arr[i]);
... | 36f3e115b602b72aee9ec67e1f79c368b6b07590 | [
"Java"
] | 1 | Java | codes4coffee/javaQuicksort | cfff5000861dcfd39b7c86e0c4e2baef4a72ce73 | af5f52c00b390a562d3686c1539cecafe33593a6 |
refs/heads/master | <repo_name>CastilloLuis/SnakeGame<file_sep>/README.md
# SnakeGame
Control with SocketIO for a snake game
## Getting Started
Simple control with socket io for a snake game.
## Technologies
* NODE JS.
* EXPRESS JS.
* SOCKET IO
* CANVAS
## Authors
* **<NAME>** - [GitHub](https://github.com/CastilloLuis)
## License... | 8f506562db97aac1469bf9feb4262d10fdd09148 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 3 | Markdown | CastilloLuis/SnakeGame | e829d34e72eaadef5090f43ffc60c8aa4ed10471 | c844177e5104f3f9e6f1df445c4004a7994b0d79 |
refs/heads/master | <repo_name>kesava/PLAI<file_sep>/rescript/src/ch5_interp_subst.bs.js
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
function getFunDef(f, _fds) {
while(true) {
var fds = _fds;
if (fds) {
var a = fds.hd;
if (f === a._0) {
return a;
}
_fds = fds.tl;
continu... | f699882e79138eb34e18bb2c79fe8bf8bd85c959 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | kesava/PLAI | 5a2e73854dc44c671756c24135a7804342b6e8be | c317f54fc1ff76e9c1160de59553c75c634d8a0d |
refs/heads/master | <repo_name>ericcontursi88/Java-Lista-3<file_sep>/3.2/src/Regular.java
public class Regular extends Cliente {
public Regular(String nome, double saldo) {
super(nome, saldo);
}
//tarifa 1%
//public void calcTarifaRegular() {
// double tarifa = saldo * 0001;
// System.out.println("A sua tarifa eh: " + tarifa);
... | 75f181cbcda26338937fde4153df877199d40d20 | [
"Markdown",
"Java"
] | 4 | Java | ericcontursi88/Java-Lista-3 | 8eefb13e480b8a301068ffe9307a715c3e6a6b36 | e3cec7c1663018c300462f6f7331982376b9a50c |
refs/heads/master | <repo_name>foreverfighter/python-problem-solving<file_sep>/unsolved/no_tests/validate_binary_search_tree.py
Determine whether a tree is a valid binary search tree.
A binary search tree is a tree with two children, left and right, and satisfies
the constraint that the key in the left child must be less than or equal to... | dc17584cea87813f08bc8f4d4ce5b02d06d89b38 | [
"Markdown",
"Python"
] | 46 | Python | foreverfighter/python-problem-solving | 1796e9b39ad1b366ec0952190231e6ca14a85224 | 0314eb359eda35b33936cc011152cb80f6d2b5a1 |
refs/heads/main | <file_sep>package companyAll_MVC.documents;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
@Docu... | 475370d59a771b575270f2e6375de1de447d99c0 | [
"JavaScript",
"Java",
"Markdown"
] | 64 | Java | oguzkaansari/Company-All-Project | 68ff734f7a92e7c920fa472bbc162a2bbe9e5d0a | 31d157489c2338502ce868b8cd15bc4a06b06dba |
refs/heads/master | <repo_name>nunnly/dva-boot-admin<file_sep>/src/components/Form/TableForm.js
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal, Button } from 'antd';
import DataTable from '../DataTable';
import $$ from 'cmn-utils';
import isEqual from 'react-fast-compare';
import PageHelper fr... | a30abfcac09b451f5d8f8a3bd11cf47c1dd0fa63 | [
"JavaScript"
] | 1 | JavaScript | nunnly/dva-boot-admin | 7e3901f299f55fd6e9c634ddd91dba8bc34cf5a5 | f98377b5db1399b86e86e7eac2be505fc7d2ad4f |
refs/heads/master | <file_sep>export class Parameters {
fechaInicial: Date;
fechaFinal: Date;
clienteId: number;
tipoComprobante: string;
}
<file_sep>export class Estadistica {
cliente:string;
ingreso:number;
egreso:number;
traslado:number;
nomina:number;
pago:number
total:number;
}
<file_sep>import { NgModule } from... | 362d5de205349b410f97eacdf5cd2683bb51199c | [
"TypeScript"
] | 24 | TypeScript | njmube/centro-CFDI-Angular | 8ee121b0971ff0c4dde77f945b9480e22e630350 | 7b4879fbba2496e83c9b81b9f6d5392453ceaf01 |
refs/heads/master | <repo_name>mkwill/assignment_3<file_sep>/app/src/main/java/lwtech/itad230/micahwilliams/assignment_three/TimerActivity.java
package lwtech.itad230.micahwilliams.assignment_three;
import android.content.Intent;
import android.os.Parcelable;
import android.provider.AlarmClock;
import android.support.v7.app.AppCompatActi... | 3bf8ec162f44d48507458944fd4f1d3bd3a3ab63 | [
"Java"
] | 3 | Java | mkwill/assignment_3 | 5b8477cbc8cfc576b01cb8209d550719853d8b9c | 4e96855e2089275127403cccbf7a8a91d1a7f2b6 |
refs/heads/master | <repo_name>djbrown/riddlebase<file_sep>/entrypoint-dev.sh
#!/bin/sh
export DJANGO_SETTINGS_MODULE="riddlebase.settings"
./manage.py migrate
./manage.py collectstatic --no-input
uvicorn --reload --host 0.0.0.0 --port 8000 riddlebase.asgi:application
# ./manage.py runserver 0.0.0.0:8000
<file_sep>/riddles/static/riddle... | 9076a8f1bc07b21721691a58a4c2e8617f801a23 | [
"JavaScript",
"Markdown",
"TOML",
"INI",
"Python",
"Dockerfile",
"Shell"
] | 29 | Shell | djbrown/riddlebase | b2260f96024c687e5d7cb32021938a706d3ed388 | 29284cfaf7f31ffa550b05f94e10046b30a6e755 |
refs/heads/master | <file_sep>package edu.usna.mobileos.project;
public class Report {
String type, desc, reporter;
String timestamp;
String location;
public Report(String type, String desc, String reporter, String location, String timestamp) {
this.type = type;
this.desc = desc;
this.location = ... | 73225be7c323827ffbe17a8454e4b035496cb519 | [
"Java"
] | 3 | Java | TheRealVincentXu/First-Response | 0aab13a5f44ba96c94fcdc5e8356dc50322706af | a8b96bd59993fc689f9904a31fe25ee2f0b2e767 |
refs/heads/master | <repo_name>Sharmajay89/openchat<file_sep>/README.md
# openchat
Open chat application using firebase
<file_sep>/app/src/main/java/com/service/openchat/activity/ChatActivity.java
package com.service.openchat.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundl... | 38103f100e8c0fda0b2a36ea90a4e6489e78b84e | [
"Markdown",
"Java"
] | 2 | Markdown | Sharmajay89/openchat | fb121504664762f436a93aa652a69f15f1cf44ab | 09ad6f679dfc3f83aee93e941a8679981b665ac0 |
refs/heads/master | <file_sep>package aj.custom.graph;
public interface Graph {
void addEdge(Node n1, Node n2);
void add(Node n1);
}
| 9a189bd0632e50b06c1efda9d294791311c05821 | [
"Java"
] | 1 | Java | Ashwin1421/Expression-Tree | 9c5b896bdcbe722ee892183d3a97870790d338de | 40c35fde3e54e6207985c98bdd7051de12642645 |
refs/heads/master | <file_sep>package com.example.milan.slider;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import andro... | 75ef3a0f792f7b9d76cd7893bb53f05c0c031475 | [
"Java"
] | 2 | Java | hdzana/Volunteer | 7f9208c0a129b78f3bcfaccff7047fdf23ba650f | 48338fdb31a917a47c059f35ec7e7e0c9abeb162 |
refs/heads/main | <file_sep>#include <stdio.h>
#include <unistd.h> //sleep()
#include <stdlib.h> //EXIT_SUCCESS
#include <signal.h> //sigaction()
#include <stdbool.h> //bool
bool running = 1;
void stop_handler( int sig )
{
printf("\n Signal %d reçu.\n", sig);
running = 0;
return;
}
struct sigaction act;
// act.sa_handler... | 6383180d3e1c795be211657ce4e83d86827adeae | [
"C",
"Makefile",
"C++"
] | 23 | C | lucie124/ProgrammationCPP | 3bc20dd86c22c8f6468b30ca830e231f960ee556 | 3b5ef4df8b00536be0e3aa49eedd31e2019e8b2a |
refs/heads/master | <file_sep>package main
import (
"flag"
"fmt"
"io"
"log"
"os"
"strconv"
"strings"
"github.com/cafxx/kafkabalancer/logbuf"
"github.com/pkg/profile"
)
type BrokerID int
type PartitionID int
type TopicName string
type PartitionList struct {
Version int `json:"version"`
Partitions []Partition `json... | 7ad59fb073d56ea92333c71be9ce5d5f7a6cd096 | [
"Markdown",
"Go"
] | 3 | Go | akthodu/kafkabalancer | 917a869323dd461539f90faa6a8606a8616d995c | 7250a59cb95d046e38055fccf8a824b6027f6602 |
refs/heads/main | <repo_name>freedomtowin/udac-data-eng-final-project-airflow-redshift-etl<file_sep>/airflow/plugins/operators/__init__.py
from operators.stage_redshift import StageToRedshiftOperator
from operators.load_fact import LoadFactOperator
from operators.load_dimension import LoadDimensionOperator
from operators.data_quality im... | 253f9994de3d2c46398853b9e4c4e42a54e377c7 | [
"Markdown",
"SQL",
"Python",
"Dockerfile"
] | 12 | Python | freedomtowin/udac-data-eng-final-project-airflow-redshift-etl | bf4c2fd8d4cbc8a8e86379c761aac3b8dc320ea2 | 66ac39a03f0a117aa7f24d9fb5f8b4195c462753 |
refs/heads/master | <repo_name>i618/LambdaOptimization<file_sep>/LambdaFuncOptimization/LambdaFuncOptimizer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace LambdaFuncOptimization
{
internal class L... | 3097cf454f5f847ae0e68f1dde1f516941d072b7 | [
"C#"
] | 4 | C# | i618/LambdaOptimization | 5b8e52dda06688ebd0e4b7998a9b08ee034edf4b | 376d663f892d55b6fdb1cc5e0ae611da7bb975f1 |
refs/heads/master | <repo_name>cv-bit/CameronV-Projects-Algorithms<file_sep>/Arrays/ToDo1.js
//push front
function pushFront(arr, value) {
for(let i = arr.length; i > 0; i--)
arr[i] = arr[i-1]
arr[0] = value;
}
//pop front
function popFront(arr) {
const val = arr[0];
for(let i = 0; i < arr.length; i++)
arr[i] = arr[i + 1];
ar... | 1a80d161512a129cd4465710f355453f99f03e30 | [
"JavaScript"
] | 2 | JavaScript | cv-bit/CameronV-Projects-Algorithms | d29c5b76e82f44d2e518ebfab9ed8a191b5216ea | 4408d567da671837c2cb49dcc6570256c8c5ebd5 |
refs/heads/master | <file_sep>import java.util.HashMap;
public class Number {
private int total;
private int[] array;
private static int[] totalToArray(int t) {
int[] out = new int[10];
String s = Integer.toString(t);
for (int i=0; i<s.length(); i++) {
int digit = Character.getNumericValu... | 74a53cf64112e425d0eaeb9f34d32999bc1ad247 | [
"Java"
] | 1 | Java | Djhopper/Multiplicative-Persistence | e0564ddc83905e197cef528f82667f7e34f1a1e9 | 52898dadeb92d6f4736bd9d8ee4141e3f9c76420 |
refs/heads/master | <repo_name>hozmaster/earthquake-map<file_sep>/server.js
const r = require("rethinkdb");
const express = require("express");
const bluebird = require("bluebird");
const cors = require("cors");
const config = require("./config");
const server = express();
// server.use (cors);
// server.use(express.static(__dirname + "... | 7de9bc6307ff0d9a18b5a9c25391c21cf3ddf6d6 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | hozmaster/earthquake-map | f3ffeb0d56fb0538137de39f7c21c12101d08379 | 79a2fecdf6a20af6b458877044385fa4008b6b01 |
refs/heads/master | <file_sep>from pympler import asizeof
import sys
def generator_function(num):
for i in range(num):
yield (i**3)
gen_list = [x**3 for x in range(1000)]
gen = generator_function(1000000000000)
print(sys.getsizeof(gen))
print(sys.getsizeof(gen_list))
print(asizeof.asizeof(gen))
print(asizeof.asizeof(gen_li... | 1e01ac93207f052afcde8d20b32acd0cd1567530 | [
"Python"
] | 12 | Python | tahoeivanova/excersices_and_memory_examples | e9e72ff0850dbd4e0877aca71698911f9d29681a | 8d2820c927950e6d051bfaa57e72d77f6a2b1c53 |
refs/heads/master | <repo_name>richdy/react-slingshot-test<file_sep>/src/containers/RichTestPage.js
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
// import * as actions from '../actions/richTestActions';
import * as sagaActions from '../actions... | 7572c9b6d87ede7edfa19b97804eeb6767421ae6 | [
"JavaScript"
] | 8 | JavaScript | richdy/react-slingshot-test | 92657d88ceb55613d0f8644fcbcac92b62eae0b0 | e2c14d7b7c4004dce9fc8208b9fb65ba3284bd26 |
refs/heads/master | <file_sep>use_frameworks!
pod "SwiftyJSON", ">= 2.2"
pod 'Alamofire', '~> 1.2'
<file_sep>//
// SongListTable.swift
//
//
// Created by <NAME> on 25.05.15.
//
//
import UIKit
import SwiftyJSON
import Alamofire
import CoreData
class SongListTable: UITableViewController, NSFetchedResultsControllerDelegate {
//MA... | d0cda70597af1c73110a68420a6af006499fc1d9 | [
"Swift",
"Ruby"
] | 2 | Ruby | Ar4eBaT/TestKillograpp | bc5deffc312cc73dbf1a0a1ef717ddb88e37aa52 | f71e18d1f611cb49e2e246a68e72018852a81bda |
refs/heads/master | <repo_name>kumochan/laravel-bc-php-wbdl<file_sep>/laravel-repository/app/Http/Controllers/Backend/CategoryController.php
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use App\Http\Requests\CategoryRequest;
use App\Models\Category;
use Illuminate\Http\Request;
use Illuminate\Suppor... | 662b8d1a6d2b9d5891e7a6d7b670367447bec53d | [
"Markdown",
"PHP"
] | 8 | PHP | kumochan/laravel-bc-php-wbdl | a923ecac2b615d91daf1b109983cc455ad3424d4 | 7579af1ff8e86f47c9c3d9c0e8e9fac642274e73 |
refs/heads/master | <repo_name>pbblreact/ezbuy.github.io<file_sep>/js/components/app.jsx
import React from 'react';
import { Link } from 'react-router';
import SearchByUrl from './search_by_url';
import Results from './results';
const App = ({ children }) => (
<div>
<header>
</header>
<main>
<div className="container"... | 5f85cd027287c86b36b71720941c9504df8fdc76 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | pbblreact/ezbuy.github.io | 06413a0ab0ee3144a4d63b0954eaa2a193e2aeb5 | 56abb8289521b9127408d1d10c9586818a1fd639 |
refs/heads/main | <repo_name>kevinmichaelchen/next-chakra-starter<file_sep>/pages/index.js
import Layout from "../src/components/Layout";
import Home from "../src/pages/Home";
export default function HomePage({ ...props }) {
return (
<Layout {...props}>
<Home />
</Layout>
);
}
// re-export the reusable `getServerSide... | 592cd3e932ad4fdfcb809343c40bad2c6baa589d | [
"JavaScript"
] | 1 | JavaScript | kevinmichaelchen/next-chakra-starter | 7f8374ccc71a61f46f1f7bea3ec3ef820fb0b300 | eb1fcac4dc37c2c31488575c6403c30b2d514220 |
refs/heads/master | <repo_name>xuanthu01/MoneyMon<file_sep>/frontend/src/actions/index.js
export * from './auth.action';
export * from './registration.action';
export * from './alert.action';
export * from './transaction.action';<file_sep>/frontend/src/components/shared/GoogleLogin.jsx
import React from 'react';
import GoogleLogin from 'r... | 65c38e5843e1a0271b1960bef1356629be4cef95 | [
"JavaScript",
"TOML",
"Python",
"Text",
"Dockerfile"
] | 59 | JavaScript | xuanthu01/MoneyMon | 88326f872f1ba65a7208569933d1be057c3d9880 | e300801246370c99f8ed853e83250531d8804d36 |
refs/heads/master | <file_sep>import sqlite3
def DBControl(kategoriSayisi):
if(kategoriSayisi) == 0:
print("Kategori bulunamadı")
return False
class Category:
def __init__(self,_name,_description):
self.Name = _name
self.Description = _description
def __str__(self):
return "Kategori... | 64ab0cd7381233cbdf07103b24cf76a627d8540a | [
"Python"
] | 2 | Python | CagriYolyapar/Dantex | 5ac794aa6cd7ecb2c47012466c35f01e561d6db4 | 625bce0e11773c2a876de7b0a0195456a39a7ec6 |
refs/heads/master | <repo_name>maxsubota/webprojectsample<file_sep>/src/main/java/by/subota/max/command/CommandProvider.java
package by.subota.max.command;
import java.util.HashMap;
import java.util.Map;
/**
* Command Provider
*/
public class CommandProvider {
private static CommandProvider instance = new CommandProvider();
pr... | 145ca60c635033407bd50dbfa7b237c03678d176 | [
"Markdown",
"Java",
"INI"
] | 11 | Java | maxsubota/webprojectsample | b56d540b934c59e38337c3661230aa37ede872df | a0050588b5359c8916ac1a0aa54609fd75034419 |
refs/heads/master | <repo_name>harlanhong/pythonProject<file_sep>/Keras/Autoencoder.py
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.datasets import mnist
from keras.models import Model
from keras.layers import Dense, Input
import matplotlib.pyplot as plt
# download the mnist to the path '~/.keras/datasets/' ... | 4c4df39de1bcc371a3155f31ebbf4481fea9e7f8 | [
"Python"
] | 23 | Python | harlanhong/pythonProject | 007a6a391a01448f40d6e4ccce07b2cd28f33ea3 | 00fe58b16073da46a0b701b05c52a92a10f124cb |
refs/heads/master | <file_sep>FROM python:3.7
ADD requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN mkdir /code
WORKDIR /code
COPY . /code
COPY docker-entrypoint.sh docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh
RUN apt-get install libfontconfig
ENV BROKER_HOST 192.168.127.12
ENV BROKER_PORT 5672... | 2fbf37cd3210d8cd34158d5c78e4f68727f6b1c3 | [
"Markdown",
"Text",
"Dockerfile",
"Shell"
] | 4 | Dockerfile | HU-A-U/celery_flower_docker | f92eb3e17e67f7868be7bc1d70f9493b29d8b6a4 | c54357658116a604357c98e5b202ba7c49f5c5f2 |
refs/heads/main | <file_sep>package com.dxc.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.dxc.document.Users;
public interface UserRepository extends MongoRepository<Users, Integer> {
}
| f2de16316b34d6a3c301d1add7997be3f3163fbe | [
"Java"
] | 1 | Java | mmanoharan8/MONGODB-SPRINGBOOT | 3ab4fab5835f36f6cbd104ae4f8c105a06ef62d5 | fae48fd2e66d6f5154519b476921385df14a7b23 |
refs/heads/master | <file_sep># Random Quotes Generator
This is a Random Quote Generator web application which displays to the user random quotes on the click of a button. User are also able to tweet out the quotes. This app was built using AJAX while utilizing a JSON-encoded, third party external API to fetch the quotes data. Twitter We... | 8b1a2d1c94eeb3a08e4262c54408ab019412ad3f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Nedu/RQG | c78e9ac60e5bceecacc8fb5ccc71570eb7253eb0 | e188078e625d987daa0b5a789d43d6710f73ec50 |
refs/heads/master | <file_sep>package main
import (
"bufio"
"errors"
"flag"
"fmt"
"github.com/garyburd/redigo/redis"
"html/template"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"regexp"
)
var (
redis_address = "127.0.0.1:6379"
validPath = regexp.MustCompile("^/(edit|save|view)/([a-zA-Z0-9]+)$")
templates = template.Mu... | 9fc5bed28accef4dd25751b245083854156ed155 | [
"Markdown",
"Go"
] | 3 | Go | openwonk/press | 13bb50a6b821aa1763776bd84f0a45a9c5cade39 | 1b933384cf285165a83d4452b2227e4f57c918c7 |
refs/heads/master | <file_sep>package tools.haha.com.androidtools.ui;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.Ve... | 553789997d773789dfd92f7befe525b06f4d08cd | [
"Java",
"Gradle"
] | 13 | Java | chriszheng124/haha | 879f73402e784e14fd4610e00eaef20cb69217f9 | d96a7211acd8e6f3cc350c2fc8570da8c21de305 |
refs/heads/master | <repo_name>ripburn/clash_block<file_sep>/Assets/Racket.cs
using UnityEngine;
using System.Collections;
public class Racket : MonoBehaviour {
private float accel = 1000.0f;
private Vector3 pos;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
/*this.Ge... | 20290821f2971c71239b5c2e448a8f71785581dd | [
"C#"
] | 2 | C# | ripburn/clash_block | e99e3da4ffb1b9c593416996d45b849ae5121fe9 | 506697fc648c8b09f20ece4692fe20e78beb475a |
refs/heads/master | <repo_name>cjp4/cargo-ws<file_sep>/src/main/java/org/oltursa/cargows/cargo/service/IMenuService.java
package org.oltursa.cargows.cargo.service;
import org.oltursa.cargows.cargo.model.Menu;
import org.oltursa.cargows.cargo.transport.menu.request.MenuRequest;
import org.oltursa.cargows.cargo.transport.menu.response.Menu... | 5f365682b09082838aef2edfb9355abe4eb28f43 | [
"Markdown",
"Java"
] | 4 | Java | cjp4/cargo-ws | a8116b259a4ca79e698f959bba91c39cf58b09e8 | 377511980e24d1946b636015ebc93df4c85ce3ec |
refs/heads/master | <repo_name>mdornfe1/thesis<file_sep>/fluid/fluid_figs/res_freqs.py
from pylab import *
plt.style.use('bmh')
def calc_phi(x, kn):
return sin(kn*x)
L = 10
a = 1
k = arange(0, 0.7, 0.001)
n = arange(0, 5, 1)
kn_list = n*pi/(L+a/3/pi)/a
fig, ax = subplots()
ax.plot(k, tan(k*L/a)+2*k/3/pi, label='Characteristic equatio... | 96c5bd8667d88358223aca4e63541ae25f074b49 | [
"Python"
] | 3 | Python | mdornfe1/thesis | b5b03f04aa0376ab1d47fbb8c94075574d44d6c5 | 91fc1f3c335a3b7b6e66a8d5922fd9ff26cdfbc6 |
refs/heads/master | <file_sep>// Global Variables
var allDocumentPages = new Array();
(function($) {
$(document).ready(function() {
$('#btn_reset').click(function() {
allDocumentPages = new Array();
$('#documents_processed').html("");
$('#pages_printed').html("");
});
... | ab2909a1c6af5409f3390c9bb9f2a2cf0afd56c5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | tinnvec/page_counter | 3104c3956f097efd76344901e5308bd07e8cc6a6 | 639ce5d85bf2929d12ab852226626b49a88ae816 |
refs/heads/master | <repo_name>jesantana/ConcesionarioVirtual<file_sep>/Otros.cs
using System;
using System.Drawing.Imaging;
using System.Drawing;
using Tao.OpenGl;
using System.Windows.Forms;
public class Otros
{
public static int[] texture;
public Otros()
{
//
// TODO: Add constructor logic here
//
}
public static void... | abc439bbc6355aa03ce78f2d9a2ab7d1bc2c931f | [
"Markdown",
"C#"
] | 30 | C# | jesantana/ConcesionarioVirtual | a0f965edbd68a0d3d02c057a9495613d697628bf | f00b5da59f04e280511055f03e6e99e4c436163d |
refs/heads/master | <repo_name>Sheefa96/To-Do-List<file_sep>/src/ListItems.js
import React from 'react';
import './ListItems.css';
function ListItems(props){
const items = props.items;
const ListItems = items.map((item)=>
{
return <div className="list" key={item.key}>
<p>
<input className=... | a7dfdf9d0ce04c681d302ba6cefc38bc23a40bb9 | [
"JavaScript"
] | 1 | JavaScript | Sheefa96/To-Do-List | 46dfe2784ca034b9a0bafde2f1ae2c2004166449 | 8812dce1beb213dce557ec95b25b8d7424aef49a |
refs/heads/master | <repo_name>PabloCabrera/mkosmos<file_sep>/doc/RemoteArea.php
<!DOCTYPE HTML>
<head>
<meta charset="utf-8" />
<title>Clase RemoteArea: μ-κosmos</title>
<link rel="stylesheet" type="text/css" href="/shared.css" />
<link rel="stylesheet" type="text/css" href="/desarrolladores.css" />
<script src="/jquery-3.1.1.min.js... | ef8ebe632a5551ccc51f5c6e193c6da7189351b2 | [
"JavaScript",
"PHP"
] | 31 | PHP | PabloCabrera/mkosmos | d878505fbcb8e851c0f0436b08975a9376bb169b | 68aeb759bb826ef9b9b172048de9d8a1f47b60ab |
refs/heads/master | <repo_name>AlbertoCF88/carrito<file_sep>/src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } fr... | 4dea0afd9173d1a98527e39c3c2017a19bfd8a44 | [
"TypeScript",
"HTML"
] | 11 | TypeScript | AlbertoCF88/carrito | 800cdd08012e6245168521eb2bd2797c5d8bb24b | de575cced6e617526bedf432608e40d3a7903f0c |
refs/heads/master | <repo_name>eliecharra/refugesinfo<file_sep>/Makefile
VERSION := $(shell git describe --always --long --dirty)
build:
@go build -ldflags="-X main.version=${VERSION}"
<file_sep>/options.go
package main
// Options passed to api
type Options struct {
Format string `validate:"eq=gpx|eq=geojson|eq=kmz|eq=kml|eq=gml|e... | 45ebcdd81b81313e91b13c575a10f5c17b2d9f64 | [
"Go",
"Makefile",
"Markdown"
] | 4 | Makefile | eliecharra/refugesinfo | 55f944dea8641f5b275a95ecf1ce6bff923949c2 | be01d422d4c9bc0f49c6134a4714fef1dd503791 |
refs/heads/master | <repo_name>sthurian/jackclient<file_sep>/jackclient/jackclient.cpp
#include "jackclient.h"
jack_nframes_t JackClient::nframes = 0;
JackPort::JackPort(JackClient* client, jack_port_t* port, JackPortType type)
: client(client), portType(type) {
this->client_handle = client->client;
this->port = port;
}
Jack... | f113dc3451968e50da09d06c3966ca0b95c8516d | [
"Markdown",
"Makefile",
"C++"
] | 5 | C++ | sthurian/jackclient | 99dd02dd2732ad4ad255ff75833ece803e6ee2cc | b90f8b9e93d43615f5c370804b9dee9c20b27997 |
refs/heads/master | <file_sep>package user;
import java.sql.CallableStatement;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import database.Database;
import databa... | b164dd0c5fa80913cdd6418c38a7f8e20a644cb2 | [
"Java"
] | 7 | Java | DeveloperChang/semiProject | 91c8b2ec5eff2064e1cde8d9dc85d5d3173fdebd | 059a360c189fd9b70697568b86e8e36ed8dc5b9e |
refs/heads/master | <file_sep>package bigO;
import java.util.Arrays;
import java.time.LocalDateTime;
import java.util.Date;
public class nemo {
public static void main(String[] args) {
String[] nemo = {"nemo"};
String[] everyone = {"doty","doty","doty","doty","doty","doty","doty","doty","doty","doty","doty","doty","ne... | ab0a1381674f7977caa8785e7b5c2f65a7466d7f | [
"Java"
] | 1 | Java | mub4shir/MDSA | e6b552b183bb84891bf84902c155704f8223ea20 | 70ebe3ac71201c8dfe0c007394ff38f451ac4f02 |
refs/heads/master | <repo_name>MAPR94/voleygenmymodel<file_sep>/ElectivaUDDS.sql
--
-- Uncomment me if you want :)
-- CREATE DATABASE ElectivaUDDS;
CREATE TABLE Miembro
(
persona Persona NOT NULL
);
CREATE TABLE Carta
(
persona Persona NOT NULL,
correoentrante String NOT NULL,
fecharegistro String NOT NULL,
sellomem... | 989ecc34fe4045c76260a3160f258c8b22f7ccf4 | [
"Java",
"SQL"
] | 3 | SQL | MAPR94/voleygenmymodel | 336e9d0f8931b2885723da6de2a330fd290076b2 | dce2c3857fb329444c1902a1351b034e0b97fc82 |
refs/heads/master | <file_sep># NoProtocol Laravel Generator
The *NoProtocol Laravel Generator* creates a project scaffolding for a Laravel project based on NoProtocol's best practices. This includes such features as:
* Complete Gulp build file (based on our own) [gulp-noprotocol](https://github.com/NoProtocol/gulp-noprotocol) library
*... | 091f24f240c88262f4a1e632f50c5f191a201f69 | [
"Markdown",
"JavaScript",
"PHP"
] | 4 | Markdown | NoProtocol/generator-np-laravel | 28ec0acac73f344a6c6dfee11b58468468deaf5b | 224df291aa8867046ad1be46ab14634a28fa34f1 |
refs/heads/master | <repo_name>simonyilunw/cars_cities<file_sep>/cars_cities/management/commands/compute_latlng_data2.py
from os import path
from django.core.management.base import BaseCommand
from django.db import connections
from django.conf import settings
from ...constants import GEOCARS_DB
from ...utils.files import pickle_save
Q... | b74596545d9330e414353f48542be5e27eb1842b | [
"Python",
"Text"
] | 53 | Python | simonyilunw/cars_cities | 49e4c522d44f9a21fa76687fd83366dec3f12b84 | e8b5b630ec84c2edc6c5687cd40ab52f01d77c37 |
refs/heads/master | <file_sep>import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-slider-menu',
templateUrl: './slider-menu.component.html',
styleUrls: ['./slider-menu.component.scss']
})
export class SliderMenuComponent implements OnInit {
@Input() showMenu: boolean;
@Ou... | cab0f64db820044f44f4b29fd497b4595f289c27 | [
"TypeScript"
] | 2 | TypeScript | dlosh/github-showcase | 90229df2baf077e8c1cb9f263194573a24c611c8 | ec09b4c2fcb0470d49b6c4dca23f81fede6fbe05 |
refs/heads/master | <file_sep>class BlackJack
def initialize nombre
@nombre = nombre
@pregunta = ""
@opciones = ""
@preguntas = [
"Escenario: Crupier tiene una carta tapada y una carta 5. Jugador tiene dos cartas, 8 y 2.",
"Escenario: Crupier tiene una carta tapada y una carta 10, Jugador tiene dos cartas 8 y 5",
"Es... | 5a41532fc0b11078c2995f96d006ed2399f9aa21 | [
"Ruby"
] | 4 | Ruby | AlexaMateus/blackjack | cf0714a09e33943a410151acb8dab3e0afab4a08 | 76decdde7ba2b7f1fd480ce0d07ad996733d27d0 |
refs/heads/master | <file_sep>// The timer updates only the required fields, and does not update all the components of the timer, at the interval of one second.
var reset=0;
var myTimer = 0;
var message = function() { // Display end message, after the timer is over
document.body.innerHTML = "<br/><br/><br/><br/> <center><h1> Welc... | e15dbd85f58143c794f18dae60ebc229bade24fc | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | digaru19/webdev-task1-advanced | cda51b563ec2e984d1b9909ac5a80f71cf5838c9 | 278d509befc0e5a1239ec2b5d45973dddab90ae7 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CarBook.Data;
using CarBook.Data.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace CarBook.Web.Controllers.Api
{
[Produces("applicat... | 5add1962429599bf0acb84982f30990f7d5840b0 | [
"C#"
] | 4 | C# | MikhailMonchak/carbook | aeb9a1a8546ae73e4a42bc42ea9611d5d4a31d76 | fc04653a12827f6c731617e72201e1fefceb509a |
refs/heads/master | <repo_name>yvonturcotte/aws<file_sep>/Lambda/StopEC2/stop_instances.py
# Hautement inspiré de cet article : http://www.cloudberrylab.com/blog/how-to-save-up-to-50-on-your-non-production-ec2-instances-using-lambda-and-resource-tagging/
from __future__ import print_function
import boto3
def lambda_handler(event, conte... | cfa418b302a47c306d0b5685bec4300243afe54a | [
"Python"
] | 1 | Python | yvonturcotte/aws | 96d92e2d694d9c48dfb2ba83d95a86d71c87192e | 54dce6874f40c9f3ca87ee9d113f11c17b181aa3 |
refs/heads/master | <file_sep>package util
import (
"encoding/json"
"log"
"os"
)
// ReadJSON read JSON file into a struct
func ReadJSON(jsonPath string, s interface{}) error {
file, err := os.Open(jsonPath)
if err != nil {
log.Printf("unable to open '%s'", jsonPath)
return err
}
decoder := json.NewDecoder(file)
err = decoder... | 2179f351de441fea29f7988d9a9063ebda739940 | [
"Go"
] | 2 | Go | oneryx/go-util | d36b5344b601ac373179846171e39c58188ebcc0 | 488cda849c93c586a3d247137ec4fffd8baebc16 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
get '/(:order)', to: 'application#index', as: :root
resources :starred, only: [:update, :destroy]
end
<file_sep>class StarredController < ActionController::Base
def up... | 6b1a1e00a7dc97b4b5c7fd9c294147d2512103cf | [
"Ruby"
] | 4 | Ruby | kabeersvohra/mv-coding-test | 13dbaa5697c39e66eb82520276c6af2a5cfddfbf | 4bc65d2a79b366e728a97393aeff0a43389afc8a |
refs/heads/master | <repo_name>kenotron/repro-api-extractor<file_sep>/src/index.ts
/** @public */
export const a = 5;
<file_sep>/index.d.ts
export declare const a = 5;
export { }
| 08059518ff5e47e4132e380d66bd46d77640d510 | [
"TypeScript"
] | 2 | TypeScript | kenotron/repro-api-extractor | 5d77ba1fe9253d8018a8372d19ad7347d043f9ad | 24995a853006192dc07defb7ac1bc6ac2bb09a2d |
refs/heads/master | <repo_name>asalander/R0331-javascript<file_sep>/Projekti1/koodit.js
//Lisää-nappi html-tiedostossa onclick=createNewElement
var myToDo = document.getElementsByTagName("li");
var index;
for (index = 0; index < myToDo.length; index++) {
var span = document.createElement("SPAN");
var someTxt = document.createTe... | 050ecdd4f25dfbf215ace628cefa282ffaf91aad | [
"JavaScript"
] | 1 | JavaScript | asalander/R0331-javascript | 7e393e4963a19a868b08e2db281a143856facad4 | efc88af714eeeb540c5d33be438b2068ae9f3f3e |
refs/heads/master | <repo_name>ztnark/21Dashboard<file_sep>/21app2/SendViewController.swift
//
// SendViewController.swift
// 21app2
//
// Created by <NAME> on 1/6/16.
// Copyright © 2016 <NAME>. All rights reserved.
//IDEAS
// Ability to add new endpoints
//Ability to make and receive both on-chain and off-chain payments
import UIKi... | 727aab17bbab449357973bf29815992bb19c3ce9 | [
"Swift",
"Ruby"
] | 3 | Swift | ztnark/21Dashboard | c29e1d99e567b3a91383093dcf8ecfa6c69cb6d3 | ea66c660bd651e650ca456a1761c824b022d381e |
refs/heads/master | <file_sep>'use strict';
var expect = require('chai').expect,
getOutput = require('../../lib/get_output');
describe('getOutput', function() {
it('handles the case where there are no groups', function() {
var output = [],
formatted = 'formatted default task name';
getOutput(output, ... | 80eeedb593b681f473fb893d4b37cd8b80b89e6e | [
"JavaScript"
] | 1 | JavaScript | NickHeiner/grunt-available-tasks | 3cc070aba37612c15c04e374a53f114801b2a315 | 3a9d6d65d37b835825d92e449ffc05ecbc841124 |
refs/heads/master | <file_sep><?php
/**
* Plugin Name: Google Time Sharing
* Plugin URI: http://local.git
* Description: This plugin should add several pages to view schedule data stored in a database and block off your own and request others.
* Version: 0.0.1
* Author: <NAME>
* Author URI: http://theripper.info
* License: G... | 55c571b7278e1303d667626ea92ab95b642bf223 | [
"Markdown",
"PHP"
] | 3 | PHP | SirDianthus/cTimeShare | 42af5681cdbef8b4938abb890d765ded7433a749 | 24bf00a4cd5b9db5e7c63ccb4ae1f7011f4fcfe4 |
refs/heads/master | <file_sep>mkdir -p bin
cwd=$(pwd)
version='0.9.4'
pushd $GOPATH/src/github.com/influxdb/influxdb
# get the correct branch to work with
git checkout $version
git pull origin $version
# get the latest packages
go get -u -f -d ./...
# switch back to the current branch that the go get above just changed to master on u... | 92a3df9efaaafdedb86e31c801603081ba5d7297 | [
"TOML",
"Markdown",
"Shell"
] | 5 | Shell | influxdata/windows-packager | 0e6cad9b403f75096522f0e3485a496f4c6dea8c | 16fcbd6dd69029a1203d0f9053cfdd24b196a646 |
refs/heads/main | <repo_name>kvfasoulakos/Mean-Variance-Standard-Deviation-CalculatorPassed<file_sep>/mean_var_std.py
import numpy as np
def calculate(list):
if len(list) != 9:
raise ValueError("List must contain nine numbers.")
new_list = np.array(list)
print(new_list)
mean_axis1 = [new_list[[0,3,6]].mean(), new_list[[1,... | 1af1eea66ae343bb06f69ed6b25a15ec82e8c8ea | [
"Python"
] | 1 | Python | kvfasoulakos/Mean-Variance-Standard-Deviation-CalculatorPassed | 84930c2b817dc9702f9426aa8bfe70f6823ad203 | 95bae374096613a003b71583d911470d94b26717 |
refs/heads/master | <repo_name>hirohito-protagonist/snake<file_sep>/src/ui.rs
extern crate piston_window;
extern crate find_folder;
use piston_window::*;
use crate::theme;
pub struct UI {
width: i32,
height: i32,
}
impl UI {
pub fn new(viewport: (u32, u32)) -> UI {
let (width, height) = viewport;
UI{
... | b4707dcf08b4cd6f48816c206ce38fd43b995256 | [
"Markdown",
"Rust"
] | 9 | Rust | hirohito-protagonist/snake | ff2cf3a8577ef67d7f8bd2e0542c9ff877d41515 | 323390712f6ef178f3cbdda46af7871fe204c554 |
refs/heads/master | <file_sep>
module.exports.controller = function(app, passport) {
app.get('/', function(req, res) {
res.send('respond with a resource');
});
}<file_sep>var socket = io.connect();
var imageID = null
var userData = null
var mode = "RECTANGLE";
var imageObj = null;
var img = null;
var lastMouseDownX = null;
var lastMo... | 33695fa3b0a114eb7159612bbc0bee353a4db462 | [
"JavaScript"
] | 12 | JavaScript | pawelrychly/image-tele-consult | 851a519d1352fbec84365d80bf52041c526f2b82 | 02b84fa0b094e2c95c8f9c9b066778693527af2c |
refs/heads/master | <repo_name>c-johnson/mainst<file_sep>/README.md
mainst
======
Main Street Carpentry home website
<file_sep>/app/assets/javascripts/services.js
(function () {
var MainController = {
init: function () {
this.registerElements();
this.registerEventHandlers();
},
registerElements: function () {... | a32a69f4b115b2e368435c81c734f1aff08f8d42 | [
"Markdown",
"JavaScript",
"Ruby"
] | 3 | Markdown | c-johnson/mainst | e57879d40ba1693c509f58eada3f52c8cae98a5f | 467b245e21ae208e1271ecb151c3fa2c2c1ee1fd |
refs/heads/master | <file_sep>import unittest
import numpy as np
from src.agents.AgentMLPTF import AgentMLPTF
import tensorflow as tf
# agent.visualise_model()
# print(agent.summary())
class MyTestCase(unittest.TestCase):
def test_single_input(self):
# reset seeds
np.random.seed(1)
tf.random.set_seed(1)
... | d8bfceaa95f38f2e3908189e63f99a9a76480804 | [
"Python",
"Text"
] | 7 | Python | Sicelukwanda/action_priors | c066aa2e050fe899e1b954d40a9da208d782328a | 79d52a32686b23c7bdc84badd0e99164f0b52942 |
refs/heads/master | <repo_name>DaybitGure/backEnd<file_sep>/server.js
const Express = require("express");
const BodyParser = require("body-parser");
const MongoClient = require("mongodb").MongoClient;
const ObjectID = require('mongodb').ObjectID;
var app = Express();
const url = "mongodb+srv://keke:<EMAIL>/test?retryWrites=true";
//cons... | bc220bbf36e4873ea10410b3e1b4fb1cb8fe268b | [
"JavaScript"
] | 1 | JavaScript | DaybitGure/backEnd | 274ad870feb579a0aa1a7718a1aa7e6ddf09043a | 68bcfd15536d17bd0a77bb4d1ddc578e5704c86c |
refs/heads/master | <file_sep>/* ====================================================================
* Copyright (c) 2012 IEEE. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sourc... | dd53007118416fe3ae63cf1b96c596a5693dbd50 | [
"Markdown",
"C",
"C++"
] | 35 | C | obs1dium/IEEE_Taggant_System | 60b79c0709c092b796c982d9a2e74f27dca9c5e6 | 95452ea89a48e6e1c1180b3509b4cedef869e5f1 |
refs/heads/master | <repo_name>smwillson/mws-restaurant-stage-1<file_sep>/README.md
# Mobile Web Specialist Certification Course
---
#### _Three Stage Course Material Project - Restaurant Reviews_
## Project Overview: Stage 1
# How to download/clone the project?
In order to clone the project onto your computer via HTTPS URLs (recommend... | 763376083d1c48fe5d8f502a7cae3bf3a2ef1b9c | [
"Markdown",
"JavaScript"
] | 3 | Markdown | smwillson/mws-restaurant-stage-1 | 77af579bafe6c33ca9ee4896d72502f6e6b6f453 | a54c6164a79175c393b744b8e39a92e2c78583fc |
refs/heads/eco-develop | <repo_name>stephcyrille/fgi-ecosystem<file_sep>/resources/js/frontend/front_office/store.js
import {createReducer, createAction } from 'redux-act';
const initialState = {
developer: "---"
};
const actions = {name: "appCStoreActions"};
const store = createReducer({}, initialState); // stores are called reducers
a... | 26eba345c99f008a5f4fb35cbf21c9277054eed8 | [
"JavaScript",
"Markdown",
"PHP"
] | 17 | JavaScript | stephcyrille/fgi-ecosystem | 0d5bc40791f3f6bcf5354db9407b56d795bda20d | bb72bac81f93dc06e2b8414f2f48b79fe644c91e |
refs/heads/master | <repo_name>jenipharachel/FreeCodeCamp-JavaScript-Course-Challenges<file_sep>/primeSum.js
function sumPrimes(num) {
var sum =0;
for(var i=1; i<=num; i++) {
if(isPrime(i) === true) {
sum += i;
}
}
function isPrime(val) { //I googled how to check if a number is prime or not
if(val <= 1) return fa... | 38e4128b885529f922e810bc84d2d0367463a06c | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | jenipharachel/FreeCodeCamp-JavaScript-Course-Challenges | d0c9bc3edc7edca85b3155a755a1ee973e3d350d | de20ce8836cec67c51f2bc8a428e4bfebcdb5fde |
refs/heads/main | <repo_name>Blueberryy/SoundCloud-Player<file_sep>/lua/scplayer/cl_player.lua
function scb.play_track (info, tag)
if !istable(info) then
scb.showerror ("#scp_something_went_wrong_no_track_data_try_again")
return
end
local key = ""
if tag == "cl" then key = scb.primary_key else key = scb.reserve_key... | 7d57c6fbcc07289414af8b9f3951e5d4abc6431a | [
"Markdown",
"INI",
"Lua"
] | 9 | Lua | Blueberryy/SoundCloud-Player | 9d8fbccb54b95034aa71ba34fdaef303cc0da95a | 33d0bc5907dd23c7f73fb7f9dcb55c09c7886053 |
refs/heads/master | <file_sep>const state={
sliders:[],//首页的轮播
detail_sliders:[],//详情的轮播
hots:[],//首页热单品
disabled:false,//无限滚动指令
shops:[],//首页热店铺,
loading:false,//loading组件
nothing:false,//nothing组件
products:[],//我的商品
my_loading:false,
my_nothing:false,
busy:false,//my的无限滚动指令
list_loading:false,
list_nothing:fals... | daa6a4938c0b2b984eeecf5107ac35aa77f870a0 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | myLB/douban | 4f84d6845a93de36da4eaaf3fda82400f09fd1b4 | 7768a940dcc3ed4d01ea673e0fd0f4aa2c90c6c7 |
refs/heads/master | <file_sep>#!/usr/bin/python
import time
from dotstar import Adafruit_DotStar
import random
numpixels = 144 # Number of LEDs in strip
stepRange = 256 # length of program iteration
LEDcolors={'red':0x00FF00, 'green':0xFF0000, 'blue':0x0000FF, 'yellow':0xAAFF00,'pink':0x00FFBB,'white':0xFFFFFF}
Wheelcolors={'red':0,'o... | f77ef3247bf9cb2226f8643fafe148c1212beef9 | [
"Python"
] | 1 | Python | IAmBecomeJeff/BarLights | 23548a1239c4093427ed0459abea86efc51366b1 | bc6c653f3e061fec0bf575f38e0c9bb9e2c11124 |
refs/heads/master | <repo_name>Ciki/bitfinex-auto-lend<file_sep>/config.local.template.php
<?php
/**
* @internal Called from config.php only
* @param array $config
* @return array
*/
function appendLocalConfig(array $config)
{
$config['api_key'] = '<your api key>';
$config['api_secret'] = '<your secret key>';
return $config;
}
<f... | 36859ac060198ce6d194b5ee995dae5d18b0a03e | [
"PHP"
] | 5 | PHP | Ciki/bitfinex-auto-lend | e0a2452371e226fb9502cc402bc441e49feb4d8c | 742a625e4b11ec24bf37146443c36ef3f15e94c5 |
refs/heads/master | <file_sep>
// TYPED
// TYPED
var typed = new Typed('.typed', {
strings: ["Bonjour à toutes et à tous, je me présente je m'appelle Walter. Ayant terminé ma formation de développeur web, désireux de relever de nouveaux challenges, je suis à la recherche d'une expérience qui permettra de mettre en avant ma passion e... | 890917c95f4985bf8bbba4198856ea80797c97d8 | [
"JavaScript"
] | 1 | JavaScript | darkvador061/site-vitrine | 1754a8324cf327146e49c50e123606d419f48660 | 491a022c145ce1d121d1bd6381d7ddabcb5fff96 |
refs/heads/master | <file_sep>package com.wy.manage.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wy.manage.pojo.Goods;
public interface GoodsMapper extends BaseMapper<Goods>{
List<Goods> findGoods(@Param("startIndex")Integer startIndex,
... | c6d3891da2a5cdaefdda94fe2acd04b129c804f0 | [
"Java"
] | 5 | Java | zhuwencai/test | 96a2012c4f75411ee800de95af54a59769c4eba9 | ed7982ba2b0b3d18cf3bdf4081d643b2de944636 |
refs/heads/develop | <file_sep>README
======
**Twerp is the telephone hackers toolkit.**
Legal Notice: Crank calls are only legal if they are funny in some states.
Twerp is also:
* A tool that will revolutionize crank calling (only legal from California to the French parts of Canada. Note: IANALBISEEOC (I am not a lawyer but I've see... | 67a92e651213881f2ff6b61ad9c1e967cf171f82 | [
"Python",
"reStructuredText",
"INI"
] | 8 | reStructuredText | cakebread/twerp | 86cdcc64b619b01f2893aa11c9a63eb998ce34ad | 01d9be2566849ee29e2f9a20f1e2e5cebd5184c6 |
refs/heads/master | <repo_name>ctrung/interview-java<file_sep>/README.md
## 1.5
### Generics
See [dedicated page](generics)
## 9
### Jigsaw - modules
See [dedicated page](modules)
### Process API (new)
Before 9, OS specific
```java
// like
int pid = Integer.parseInt(new File("/proc/self").getCanonicalFile().getName());
// or
Process pr... | a1bc76a31e394a2e05abe57e770c9c710b8822bb | [
"Markdown",
"Java"
] | 4 | Markdown | ctrung/interview-java | 84107f5fc3134b11a85940a9dc7309b0baa35e07 | df78fa747b4e80b61f053b09c327e3adc982e66f |
refs/heads/master | <file_sep># NetworkSystem
发送接收网络信息
````c#
public class NetworkTest : MonoBehaviour, IEventHandler
{
public void HandlerEvent(EventBase eventid)
{
EventData<Package> msg = (EventData<Package>)eventid;
Debug.Log(BitConverter.ToInt32(msg.args[0].msg, 0));
}
void Start()
{
pr... | 4572b0ed56bc9e69570abd9be5ef4beb440548e1 | [
"Markdown",
"C#"
] | 13 | Markdown | wenanlee/NetSystem | 45394fbbd0671412aa8cf0c576f7178031befd31 | 87ff19867b1c3c6d38c2b93c34e62002d7cbdd5b |
refs/heads/master | <file_sep>const WHITE_KEYS = ['z', 'x', 'c', 'v', 'b', 'n', 'm']
const BLACK_KEYS = ['s', 'd', 'f', 'g', 'h']
const keys = document.querySelectorAll('.key')
const whiteKeys = document.querySelectorAll('.key.white')
const blackKeys = document.querySelectorAll('.key.black')
keys.forEach(key => {
key.addEventListene... | 93a65ea81e0713c11fd3af1db36eba224dba0471 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Girum-Haile/JS-Piano | d2562bbf722f36ebb4c1d5176da8f208989b7340 | 479eea62ecb9c45f391641c2a7b50257e9cdc745 |
refs/heads/master | <repo_name>tkkhuu/TrafficSignClassifier<file_sep>/traffic_classifier.py
import TKDNNUtil.DNNBuilder as DNNBuilder
from DataLoaderTSC import DataLoaderTSC
from keras.utils import to_categorical
data_loader = DataLoaderTSC()
# Preparing data
train_file = '../traffic-signs-data/train.p'
valid_file = '../traffic-signs-da... | 26b47fb21c4d2fa5c63ab85214c6c3360eb5d3c9 | [
"Python"
] | 2 | Python | tkkhuu/TrafficSignClassifier | 8405c608d95cf37214f0ed044f6e4c523d0bc4c4 | 44391a710b7622a57ee93cec849411d17c69b240 |
refs/heads/main | <file_sep>#include "ticket_topic_choose_state_processor.h"
#include "../translate.h"
#include "../context.h"
#include <Poco/Logger.h>
#include <Poco/JSON/Parser.h>
#include <inttypes.h>
#include <regex>
namespace NOctoshell {
TReactions TTicketTopicChooseStatesProcessor::OnStart(TUpdate update, TUserState& state) {... | dea7cbac3f1d04759642ceefc37332d2b75e7e74 | [
"CMake",
"Markdown",
"Dockerfile",
"INI",
"C++"
] | 41 | C++ | Izaron/octoshell-bot | 0d6e7c3fbca670146111e2e44c098e212011cd08 | 1905843adcba79045552182a2b2dfb02c485dcee |
refs/heads/master | <file_sep>package kz.bsbnb.usci.sync.service.impl;
import kz.bsbnb.usci.receiver.client.BatchClient;
import kz.bsbnb.usci.sync.service.BatchService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @author <NAME>
*/
@Service
public... | 785253804ad17feb9395439931b448188ca66828 | [
"JavaScript",
"Java",
"INI",
"Gradle"
] | 241 | Java | Kaliaskar/usci_2 | cf2ed14cffbf94bab679b0a688e34d82d4f7dc74 | 340660060f1b79145cf2612d79fea8c47729062c |
refs/heads/master | <repo_name>BGCX261/zope3tutorial-svn-to-git<file_sep>/ploneide.core/trunk/ploneide.core/ploneide/core/browser/navigator.py
"""
Simple navigator to allow easy navigation of code in
the file system.
"""
import os
import os.path
from zope.publisher.interfaces import IRequest
from five import grok
from plonei... | 100b052aa1fdb1c70251b7a3c7296529486e92ed | [
"SQL",
"JavaScript",
"INI",
"Python",
"Text"
] | 57 | Python | BGCX261/zope3tutorial-svn-to-git | a9c57eba51b70e4c31d13ba07979e0b2e5fceca4 | 2a9684ab78814c88549d3a46635f63d8cdac791e |
refs/heads/master | <file_sep>package com.wzq.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wzq.dao.UserMapper;
import com.wzq.model.User;
@Service
public class UserServices {
@Autowired
UserMapper userMapper;
public User findUser(Long id) {
... | 777bc859a363e98701401378d46b9f5a167d62bb | [
"Java"
] | 1 | Java | scauwzq/framework | ac7aa9154c6f388a9069774e3891e394d1d1b0ad | 150a886c9893d1ed47a4c13a0163f49950d087c7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.