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 | <file_sep>import os
import random
import numpy as np
import tensorflow as tf
def load_alphabet():
alpha_file = open('alphabet.txt', 'r')
symbols = alpha_file.read()
alpha_file.close()
return symbols
alphabet = load_alphabet()
card_files = []
for dir_name, _, files in os.walk('cards'):
for f in ... | cda9d4c5236ed0d8eaa54de062a445f1405306ad | [
"JavaScript",
"Python",
"Shell"
] | 3 | Python | msmorgan/magic-gen | 3a0918fbfd5cb77b7f9c5db1fde7275d2be969bb | 3151aca2d1d4b63eeebf03d7eb3d43d285b6defa |
refs/heads/master | <file_sep>export type NucleoObjectType = {
name: string,
fields: any
};
<file_sep>import lawyer from './lawyer';
interface saveInterface {
contracts: any;
store: any;
listeners: Array<Function>;
saveMethod: 'update'|'dispatch'
}
export default function save({
contracts,
store,
listeners,
saveMeth... | 64decaff31036e5420ae4e7cd673df5157935eac | [
"Markdown",
"TypeScript"
] | 9 | TypeScript | rafaellincoln/nucleo | 1a4f942aa29ca11ca36732137b32374da8591f8c | df9eac7b7fd7ea47eb8c5f96183be91d653f867e |
refs/heads/main | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Provinces;
use Validator;
use Carbon\Carbon;
class ProvincesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Co... | 723b22c5458470226f3be866c194389b4d3ff83d | [
"PHP"
] | 4 | PHP | thoaidm/Laravel-Povinces-Login | 8f2a2a366905c73b4733d0eb284d5519728004e9 | 6171e8d5bb63729618fee05a1cd9390b22867b6f |
refs/heads/master | <file_sep>export const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
export const LOGIN_FAIL = 'LOGIN_FAIL';
export const REGISTRATION_SUCCESS = 'REGISTRATION_SUCCESS';
export const REGISTRATION_FAIL = 'REGISTRATION_FAIL';
export const LOGOUT = 'LOGOUT';
export const SET_USER = 'SET_USER';
export const AUTH_ERROR = 'AUTH_ERROR';
ex... | b9e118ca13bd4e632a0a8d50d365789795426a28 | [
"JavaScript"
] | 11 | JavaScript | vlad198/MERN-TODO | 48be286ab1f7e08da59e55aa71353fff9a5cf54c | 929ef594278fda538d1bfa508625565a5890daaa |
refs/heads/master | <file_sep># SSHKit::Sudo
SSHKit extension, for sudo operation with password input.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'sshkit-sudo'
```
And then execute:
$ bundle
If you're using Capistrano, add the following to your Capfile:
```ruby
require 'sshkit/sudo'
```
## Usage
... | fafd394d557aca1a1f5f93daf5e794e80137da18 | [
"Markdown",
"Ruby"
] | 79 | Markdown | amirjani/sitomeet | 4fb19580b737d76c28b9e7cd206c0909298f2bde | fcb406e3d897da7aa4a812e44b98cc10ec033dd7 |
refs/heads/master | <file_sep>#include <xc.h>
#include <pic18f4321.h>
#include <stddef.h>
unsigned char input();
void initialization();
void output(unsigned char);
void calculate(char);
unsigned char decoder[10] = {
0x7E, 0x30,
0x6D, 0x79,
0x33, 0x5B,
0x5F, 0x70,
0x7F, 0x73 };
unsigned char message;
void initializa... | ed3542152336dab2f320ca6cabbfad8987d21b1e | [
"Markdown",
"C"
] | 3 | C | Jestr117/mcu_work | 7ba6c286840ac4bf77476cbb26e0b13158aa7ea6 | ae1e7428a772492804d1ccf028e83a0bcf601dfd |
refs/heads/master | <file_sep>/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "Lice... | ace3a689d61caabbead8c2a1d387fa57cd9e8357 | [
"JavaScript"
] | 1 | JavaScript | zheng1040/hello-world | f035183350312d3d6ffe5ed4ca862a5e8f6c1a84 | 741225ae3a008afbea72a77acc1d7e43db999314 |
refs/heads/master | <repo_name>michalklim/schibsted-recru-task<file_sep>/client/src/sections/Home/index.ts
export { HomeSection } from './Home.section'
<file_sep>/client/src/sections/Search/index.ts
export { SearchSection } from './Search.section'
<file_sep>/server/src/items/items.router.ts
import { Router } from 'express'
import * as con... | 7a69912fac722ee19a204386e44e95dee7e2df1b | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 19 | TypeScript | michalklim/schibsted-recru-task | 145a7e722277c9b0d41495723bd64382fef85012 | e8642db1e133c24d558e75b17b43eb92eada8c14 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import './App.scss';
import TodoList from "./TodoList";
import ListsList from './ListsList'
import base from './base';
class App extends Component {
state = {
lists: {
deleted: {
listName: 'Deleted',
items: {}
},
default: {
... | 2c0f1d53413daae4a64c111961d11f300f826d2c | [
"JavaScript"
] | 5 | JavaScript | peterlozano/react-for-beginners | d2f13305b3c9646361c0dc5a1dd4474bc2da4a34 | ea9cf4bab3bdd4a99d123522a559af7eef800ddb |
refs/heads/master | <repo_name>weyewe/salorg<file_sep>/db/migrate/20120524032932_create_purchases.rb
class CreatePurchases < ActiveRecord::Migration
def change
create_table :purchases do |t|
t.integer :item_id
t.integer :supplier_id
t.integer :price
t.text :description
t.integer :discount, :default => 0... | 697cdaddb693ffac2ec8cbd0a772179056706133 | [
"Ruby"
] | 39 | Ruby | weyewe/salorg | e2fcd2766ed8b48e57e6ecae9857206eee68b453 | bffcb83e7b57a0cf50c90693e2542b43b70ca45e |
refs/heads/master | <file_sep># django-batch-uploader
Django batch uploading
#Features
1. Users can batch upload files / bulk upload files / upload
multiple files at one -- however you prefer to phrase it!
2. Users can specify default values to apply in bulk. For example, if
you're a photographer uploading multiple images from a sing... | d2c87894b1ed92ee8086e9c6a1f37291b266d78e | [
"Markdown",
"Python"
] | 5 | Markdown | ninapavlich/django-batch-uploader | 912503ab625a85b42721ef0b65d5ab5f0382aa3f | 91b1f32ec5c15cf31da93213bb2cccdadd66bb7b |
refs/heads/main | <repo_name>bomiteva/invoice-server<file_sep>/app/main.py
import os
from enum import Enum
from fastapi import FastAPI, UploadFile, File, HTTPException
from starlette.background import BackgroundTasks
from starlette.responses import FileResponse, JSONResponse
from app.process_invoice_file import ProcessInvoiceFile
from ... | 6fc5cdf5344d82e205482ecf049366837cd96fd5 | [
"Markdown",
"Python",
"Text"
] | 9 | Python | bomiteva/invoice-server | 5b0fe949bfd413b2fbfc85ea2e333006d8edc556 | ea38fb75e5ec9d1e8bd6f18b7f65e72667633954 |
refs/heads/master | <file_sep>import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class SampleClassOne {
// throws NullPointer Exception
public void invokeJackException() throws IOException{
Files.createFile(Paths.get("fileToDelete.txt"));
Path file... | 24d0ca7450f4ab9a976278e4330db473ee13eec0 | [
"Java"
] | 3 | Java | AlexanderDashkov/BlameWhoTest | 1262674fb7b39597fc73adf6615f2ce9287bce50 | 2b6aeb8710c8c929d142a32b8e5f7a26d83529d7 |
refs/heads/master | <file_sep>/*
create database if not exists mcoffe default character set utf8 default collate utf8_general_ci;
create table if not exists estoque (cod smallint not null auto_increment,pro varchar (30) not null,pmp decimal(6,2),pre decimal(6,2) not null,qua smallint not null,qum tinyint,primary key (cod)) default chars... | ef7d25bd37fffd732d8c79f5358ed91b8b8799bb | [
"Java",
"SQL",
"Markdown"
] | 7 | SQL | AsonCS/Mcoffe | b24614d335b90ee15c3034dfdd1196c01755c53f | 2bbad81b6a40a1d11de1476aec816ee1a837cba4 |
refs/heads/master | <repo_name>lukesmyth9/Ass1PartA<file_sep>/src/test/java/Tester.java
import com.mycompany.softwareengassignment1.*;
import org.junit.*;
public class Tester {
/**
* @param args the command line arguments
*/
@Test
public void Test(){
Student student = new Student("Luke", 21, ... | ac951c2b0b95089a7b6cb9c23fba9fcba3db2650 | [
"Java"
] | 2 | Java | lukesmyth9/Ass1PartA | 3bd1f8c9b3354434e6397dece92b57887cdb11fe | 3dc63ec4d31e85a06310d73868c4c1bd123978af |
refs/heads/master | <repo_name>lizvdk/LA-good-eats<file_sep>/spec/features/homepage_displays_all_restaurants_spec.rb
require 'rails_helper'
feature "Homepage displays all resturants", %q{
As a user
I want see a list of all the resturants
So that I can choose a resturant that looks interesting
Acceptance Criteria:
- [x] /restura... | d6f7771a268bffdf128ee092f6cee0f00eac3868 | [
"Ruby"
] | 8 | Ruby | lizvdk/LA-good-eats | 0645a6116f79bc06178c2c1fe2edc9ade369462a | e4b2b08c1a54a716a915290bb1c00fb153ee3471 |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 10, 2020 at 11:23 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4010... | bdf8f733bdc1c3e94e259e9d935321a41a1351eb | [
"Markdown",
"SQL"
] | 2 | SQL | herisn/vietgram-herisn | e17c92fd506f0b2dff9453d88255b25bccd2d2fe | 53e3a2d2022af043f0dfd9d78aa8f522fd94f43a |
refs/heads/master | <repo_name>Asror-bek/mostbyte_seria<file_sep>/app/Http/Controllers/CashController.php
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CashRequest;
use App\Http\Resources\CashMovementResource;
use App\Http\Resources\CashResource;
use App\Service\CashService;
use App\Models\Cash;
class CashController exten... | fc059a3c4ab1bc5a42c1808a8b6976e6ac420c06 | [
"PHP"
] | 5 | PHP | Asror-bek/mostbyte_seria | b9a5f18e3c11c72ee8ef196a570cb03770939ebc | 86d3450acb81685bb02f9537b35b88f2d4f5b594 |
refs/heads/master | <file_sep>Pushover Server
===============
A webserver to expose pushover notifications
Usage
-----
Create a config file
``` json
{
"buffer": 50,
"cache": "/var/tmp/pushover-server.json",
"host": "0.0.0.0",
"port": 8080,
"pushover": {
"secret": "secret here",
"device_id": "device id here"
}
}
```... | 0f32c3d727f5305681a45e49d169de01c4e6505f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bahamas10/node-pushover-server | bf69b78959e66d4007d6401df0955b31f38e4889 | 41c2602400ddf927531df5422073212ba71b212b |
refs/heads/master | <file_sep>var app = angular.module('warhead');
app.controller('BrowserController', function($scope)
{
(function constructor() {
})();
});
<file_sep>var app = angular.module('warhead');
app.controller('AnyRequestController', function($scope, $http, $sce, $location, $stateParams, dialogs) {
var highlightJson ... | 4662393dda3d3ad74a10170bb1a6d4482df00bde | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | alaingilbert/warhead | 0b3259648870754a62999d0ac487f1e1d7f7e1a4 | dd0a4443300d227b604420c7b7bf658be5b16743 |
refs/heads/master | <repo_name>williballenthin/govt<file_sep>/README.md
govt - VirusTotal API for Go
============================
`govt` is a go module to use the [API](https://www.virustotal.com/documentation/public-api/) of [VirusTotal.com](https://www.virustotal.com/).
Implemented Features
====================
| *Resource* | *Descr... | c29cc06fdaa5de5d1c97ae43aa6bb8061835d55e | [
"Markdown",
"Go"
] | 12 | Markdown | williballenthin/govt | 3ca547fdfb8744273f8dfcdcaf0d2062bcc664b2 | 0e7dc362c3d7ada595661e4694365c04c49c2adc |
refs/heads/master | <repo_name>weiyuanGarage/algorithmPratice<file_sep>/src/main/java/solutions/medium/mergeIntervals.java
package solutions.medium;
import solutions.template;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class mergeIntervals implements template {
public class Interval {
... | 9a6694d8fa301b97ed1008a4ab604aea1c85af51 | [
"Java"
] | 34 | Java | weiyuanGarage/algorithmPratice | 67bbe84b440e29c61b1827de4a8d58b7c0eb6c19 | f8372db1dd82968ab4aa53de7a6361e1389922af |
refs/heads/master | <repo_name>Beauxie/spring-cloud-study<file_sep>/microservice-eureka-authenticating-client/readme.md
# mircoservice-eureka-authenticating-client
> 简单的微服务示例,将服务注册到需要登录认证的Eureka Server中。
* 集成了Eureka服务,可以自动注册到服务中心,需要登录验证服务,此时`defalutZone`的配置为:
```yml
http://user:password@EUREKA_HOST:EUREKA_PORT/eureka/
```
... | aeb127feff93905e738010a70e2a6f7f19e8ad29 | [
"Markdown",
"Java"
] | 18 | Markdown | Beauxie/spring-cloud-study | f80aafefc4eb9f6067f4065549cb0d8e5dde69f9 | c98955cb3a8d5cf4c047f694e0008fcb723e775e |
refs/heads/master | <file_sep>## Apriori Algorithm
<NAME>, 114117098
### Task
To implement the Apriori algorithm and use it to mine category sets that are frequent in the input data. The minimum support to be used on 0.01
### Input
A dataset(“categories.txt”) that consists of the category lists of 77,185 places in the US. Each line c... | 49caa82475482d2044d19ac0a28f4cdc98f178e4 | [
"Markdown",
"Python"
] | 2 | Markdown | yagneshlp/bdaAssignment2 | 36d77c79ab98e159cfccc73a65af120ff83b60d8 | 53d9daa8c21e8482872216bf26bb3849d14563ba |
refs/heads/master | <file_sep># JS-Online-Test
https://arman-melikyan.github.io/JS-Online-Test/.
<file_sep>import { questions } from './questions.js'
import { innerText, answerResult } from './helpers.js'
const buttons = document.getElementsByTagName('button')
const answerButtons = document.getElementById('question-content')
const star... | 1e195316d0932f7018a0e603a34a6f3b37cbe18e | [
"Markdown",
"JavaScript"
] | 3 | Markdown | arman-melikyan/JS-Online-Test | fcc341fed298ee9f9b7adabf738a1322842bf0ac | 3644dcf34bc8fdfd0f5a8ed1b798c32d37f7321a |
refs/heads/master | <file_sep># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name... | 71cb440409564e0a0c5cfc4fc76bfc6a83222ef6 | [
"Ruby"
] | 4 | Ruby | fbobg05/myfavoritebooks | 1e7d2d1917720cec32545062a972f8e8560c2542 | 17d272c7b68d7347a82044c66a7d0befca9ebc66 |
refs/heads/main | <file_sep>#!/usr/bin/env python3
"""
Check that a merge request's POM artifact version is greater than
the target branch's.
"""
import pomversion
import os
import subprocess
import click
from sys import argv, stdout, stderr
from subprocess import PIPE
def eprint(*args):
"""Prints to stderr"""
print(*args, ... | 4ba4b31c5aa48d0eec7041fbb1b462a05babaadc | [
"Markdown",
"Python"
] | 7 | Python | johncarney/python-play | 7b9172b55be0c0d34baba583d1c5a8f1a794f6f2 | 221cb13488214c0cce953c6a4095df53a17af68c |
refs/heads/master | <file_sep>/******************************************************************************
** Much of the structure of this JavaScript is related to the ajaxcode file
** demo.js posted from the CS 290 lecture.
*****************************************************************************/
var favorites = null;
funct... | 2a6b22f948b9afd7cc488713687be88cd8069eb2 | [
"JavaScript"
] | 1 | JavaScript | friendoflore/github_api_interaction | 44057762e1fa7e8ed9a16719bd2c3ccf4dbb92e6 | 46a1cae9bc34e557b526e55cea1466d1d6e73d79 |
refs/heads/master | <repo_name>DoughtCom/z-rocks<file_sep>/src/main/copier.js
import { app } from 'electron';
import path from 'path';
import actions from '../renderer/store/actions'
import getSize from 'get-folder-size';
import fs from 'fs';
const dateformat = require('dateformat');
//Todo: Have the system search under /media/pi for th... | 4ec2d821e78fbed857d3a3a1f036b54965a33244 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | DoughtCom/z-rocks | d5107e24720062d2a740762bdb3217e6e45b90cf | 5ee688f18e65722aa131d668dee2fe7601d50f67 |
refs/heads/master | <repo_name>cognitom/riot-action<file_sep>/demo/src/action-menu.js
import Action from 'riot-action'
/**
* Actions
* - actions are triggered via events
* - actions are automatically registered to its view as an events
*/
export default class $ extends Action {
/** provides the setting when mounting */
mount () {... | b57873df8881386ad10634f18048659424957bf6 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | cognitom/riot-action | 6b3540187b14a0a160a8e53a2d877e591f40a9c3 | 67212da0bc10a76cd6115e80a37a8156c9584354 |
refs/heads/master | <repo_name>paulchenpmc/YT-Downloader<file_sep>/README.md
# YT-Downloader
### Wow, what the heck does this tool even do?
Great question. This tool is a user-friendly wrapper for the [youtube-dl command line program](https://github.com/ytdl-org/youtube-dl) with a couple extra bells and whistles. The intent of this tool ... | a6fb58125cc0cb7df3f199685dc29e5419dc0cc3 | [
"Markdown",
"Python"
] | 2 | Markdown | paulchenpmc/YT-Downloader | 9e96818a0a4d0d2ee4db8efc7b0007eec1f79b7c | 05e2c1f26b025329ed430b455ca315cf6cfe370c |
refs/heads/develop | <file_sep>import {Component, Input, OnInit} from '@angular/core';
import {BehaviorSubject, interval, Observable, Subject, timer} from 'rxjs';
import {delay, map, takeUntil, tap} from 'rxjs/operators';
@Component({
selector: 'app-crossfade-buttons',
templateUrl: './crossfade-buttons.component.html',
styleUrls: ['... | bfedf8826c180faa7a7bebc8c3f3f480e7da75c9 | [
"TypeScript"
] | 9 | TypeScript | Froopity/youtube-mixer | b0108f561ecb15aad036adefc62c9c69d78e9b70 | 68da4d6b56e827d2b5b892b8fc6b382f9ed30493 |
refs/heads/master | <repo_name>GerryHolt/upby<file_sep>/wp-content/themes/uppababy/template-locator.php
<?php
/*
Template Name: Retail Locator
*/
get_header(); the_post(); ?>
<div id="lcly-button-0"><a id="lcly-link-0" href="http://www.locally.com" target="_blank">Powered By Locally.com</a></div>
<script id="lcly-script-0" src="http... | 4c124ee7b10f5dddf0bff7f6ec67205dc7635f0b | [
"Markdown",
"JavaScript",
"HTML",
"PHP"
] | 38 | PHP | GerryHolt/upby | df9dd7f46ebac2a19ddc9e3fcd6b54412f73ed2e | b59f11151b96d08812a36a93f1177df469825671 |
refs/heads/master | <repo_name>f-xyz/console-mock<file_sep>/README.md
# consoleMock
[](https://travis-ci.org/f-xyz/console-mock)
Mocked console.log, .info, .table, etc. for node and browsers.
```javascript
// basic use
var consoleMock = require('console-mock');
var console = ... | ce479cbf5acf91537b8a52ae1fea9d854bdc4790 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | f-xyz/console-mock | 69d5d12204fae2800c3cecbee3e03256b18969cb | ae603d500d22c2fe5c24fee1293b605ff465be3c |
refs/heads/master | <repo_name>jw8903/Distributed-Travel-Reservation-System<file_sep>/src/project/transaction/TransactionManagerImpl.java~
package transaction;
import java.rmi.*;
import java.util.*;
/**
* Transaction Manager for the Distributed Travel Reservation System.
*
* Description: toy implementation of the TM
*/
public cla... | 4c5a01b53b2556623dac9924cd86d2be9d98c683 | [
"Java"
] | 1 | Java | jw8903/Distributed-Travel-Reservation-System | 59193672afc614a9315ccfcb599e502b87d065b1 | e6ef5df2156470373014d2ad648bf268aa414cb1 |
refs/heads/master | <repo_name>eliseak/eh-loja<file_sep>/index.js
const express = require('express');
const expressMongoDB = require('express-mongo-db');
const cors = require('cors');
const ObjectID = require('mongodb').ObjectID;
const bodyParser = require('body-parser');
const app = express();
//app.use(expressMongoDB('mongodb://local... | 54b2949c08493345bc88cb5468c2a7ec7ab8ff7b | [
"JavaScript"
] | 1 | JavaScript | eliseak/eh-loja | 0700616abf44b6c4895afd3fdf4e0c1d725a5638 | a9ad7b709532c61c158f7da7be3b265af5b8a5fa |
refs/heads/main | <repo_name>castillo05/giphyApp<file_sep>/src/hooks/useStorage.js
import { useState, useEffect } from "react";
const useStorage = (category) => {
const [state, setstate] = useState([]);
useEffect(() => {
if (localStorage.getItem("categories")) {
const data = localStorage.getItem("categories");
const... | 111950344febac619057480589e7bc7c06c73882 | [
"JavaScript"
] | 2 | JavaScript | castillo05/giphyApp | cd9d42ef5dbedc0c9b39ba2bd0b5fdf8db606cbf | 11181b2f39d71415c24245dbdedadc51ce2c9df1 |
refs/heads/master | <file_sep>export * from './event.service';
export * from './event.modal';
export * from './restricted-words.validator';
export * from './duration.pipe';
| 3150744a630c13f8e9dbba4b4ec37e69cd5cdf6d | [
"TypeScript"
] | 1 | TypeScript | collinewait/fundermentals-ng | b58ce1caa5c0f52cfb60090dfa545725161800af | a869a5d89ff4b7e7e5ede38d0822c8703c949351 |
refs/heads/master | <repo_name>gergelykoncz/deepstream-rxjs<file_sep>/src/record/test/record.spec.ts
import { Observable } from 'rxjs';
import { Record } from '..';
import { Client } from '../../client';
import { EventEmitter } from 'events';
interface TestData {
foo: string;
name?: string;
}
describe('Test Record', () => {
let s... | 8bd0b71b6ced32ccb68452e077ec81d49e232ae4 | [
"Markdown",
"TypeScript"
] | 13 | TypeScript | gergelykoncz/deepstream-rxjs | 2df417109bc72eba276d8061e17daba44a1c5d45 | 4e3c15097954ee54de9a0912354eadd244a7cc43 |
refs/heads/main | <file_sep>import sys
num1 = int(input("Enter number 1:"))
num2 = int(input("Enter number 2:"))
n = int(input("Number of registers:"))
def checknumber(val):
global n
if val > 2**(n-1)-1 or val < -(2**(n-1)):
print("Input value out of range ")
print("Input must lie between " + str(2**(n-1)... | e38315d99c02b9361c8e27099111fd99d217c03c | [
"Python"
] | 1 | Python | Sambhav307/Booth-Multiplication-Algorithm | b2a4505956bca60ea7c7f7653414480058a4fa11 | fed561819f983fc7daac693ba852529748cffe09 |
refs/heads/master | <repo_name>lhdgriver/leetcode<file_sep>/easy/count_and_say_38.cpp
class Solution {
public:
string countAndSay(int n) {
if (n == 1) return "1";
string prev_say = "1";
string now_say = "";
for(int turn = 2; turn <= n; turn++) {
char prev_char;
int prev_count = 0;
for(int i = 0; i < prev_say.length(); i+... | 8f6c1679a7e39d75d929ada14ef2c1197f9fb8bb | [
"C++"
] | 70 | C++ | lhdgriver/leetcode | ba11bdfbd7de9bcd0f42ffe4990ade7232804fe0 | 6446c237eff4d78bdaeabdf6f1c12b965e48eaad |
refs/heads/master | <repo_name>adit77799/codetastrophe<file_sep>/bob/2009/03/hha_physfs/hha.c
/*
* HHA support routines for PhysicsFS.
*
* This driver handles Hothead archives (HHA), developed by
* Hothead Games, Inc.
*
*
*
* Based on grp.c and zip.c
*/
//#if (defined PHYSFS_SUPPORTS_HHA)
/* TODO move this */
# define HHA_AR... | ec33df4246376ebb800361478a0757a6f9238e77 | [
"Java",
"C"
] | 6 | C | adit77799/codetastrophe | 3a5c0a042e7393b3c4bc5062da76dc3c859c5958 | 42f2e02fadd9c317d42eac385aed8373dd4bc4f6 |
refs/heads/main | <repo_name>Heesu-H/D3-challenge<file_sep>/README.md
# D3-challenge
This project is to create a scatter plot using D3.js based on data taken from the 2014 American Community Survey (ACS) 1-year estimates to show any trends between different variables.
[Link to visualisation](https://heesu-h.github.io/D3-challenge/D3_da... | 688d1675931532b12cc046bd333633fa7aab6fc7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Heesu-H/D3-challenge | 930dc2c3ca0af906004b71059b68c69962adf1b1 | d4192d143d85c9bb49a6207e69d890321ff4edfe |
refs/heads/master | <file_sep>import turtle
def drawSquare(t, sz):
for i in range(4):
t.forward(sz)
t.left(90)
def Instruct(t, sz, axis, iter):
for j in range(iter):
drawSquare(t, sz)
t.penup()
t.goto(axis, axis)
t.pendown()
sz = sz + 20
axis = axis -10
... | 89f6e05f49c37d5c722671f6f139454a2c2a6105 | [
"Markdown",
"Python"
] | 2 | Python | iamanissa/squareDesign | fae0eb5cf3da00fce0a8a7ef5b3f982cd6ea44fb | 3f6637fd7cba5261948d26e4a69963256986658f |
refs/heads/master | <file_sep>package autosms.ankur.com.autosms;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Ar... | 06338bd12e30ecee59b009ad919ffed1dc5c6672 | [
"Markdown",
"Java"
] | 4 | Java | ankurshukla1993/AutoSms | 026ba07f5129749d5270d7f042b1f202bd2ef668 | a38459339e561efe040d5e9f303c7d8271473c99 |
refs/heads/master | <file_sep>const EXTENSION_ID = 'ggofbbndaeneibofhcakocmknlcoleaa'
let programList = []
let isRepeat = false
let isSound = false
let isPlay = false
let timer = null
/**
* プログラムタイマーのプログラム要素
*/
class SettingProgram {
constructor (time, defaultTime, token) {
this.time = time
this.defaultTime = defaultTime
... | a32a5b0e10264a0a857247927d6c3e333fe8c0ba | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | belltreeSzk/chrome-program-timer | 0fede0fb3e81aef8c4f5d8432faa28aa8f6a62ac | a4d24e7fe491b81c85811c1be8ba2730a60100c4 |
refs/heads/master | <repo_name>Chacaroon/DevArtNotepad<file_sep>/MyNotepad/Presenter/Interfaces/INewFileNameView.cs
using System;
namespace MyNotepad.Presenter.Interfaces
{
public interface INewFileNameView : IView
{
event Action<string> SetNewFileName;
}
}<file_sep>/MyNotepad/View/OpenFileForm.cs
using System;
usin... | d4c1d0b93fd09fad3619019a38de8dc3b7fac4b0 | [
"C#"
] | 17 | C# | Chacaroon/DevArtNotepad | 4cab3cfcb8d68952f45d137cd4d09c4fdc1fcd66 | 5153ced4cfdb064e8e8c52a9b099f8a33559ed41 |
refs/heads/master | <file_sep>package nl.bongers.testdome;
import java.util.function.Function;
public class Train {
//private Hashtable<Integer, Integer> wagons;
private int[] wagons; //Van hashtable naar int[] niet veel sneller.
public Train(int wagonCount, Function<Integer, Integer> fillWagon) {
//wagons = new Ha... | 021e4348a57f3a4ad945157e38875ee9e5baa959 | [
"Java"
] | 2 | Java | JanBongers/TestDome | 1cccb18d766b82dd733c35e7d0f2adbe617e1696 | 893577bedac492a08522acf5b1a4654e74a50a5f |
refs/heads/main | <file_sep>namespace FinalYearProject.Enums
{
public enum ControlStage
{
Completed,
InProgress,
InReview
}
}<file_sep>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Word = Microsoft.Office.Interop.Word;
using System.Threading.Tasks;
using Fin... | d334b32195dc26088ffc39fecc0f34a39c53031f | [
"C#"
] | 21 | C# | LeonWinstanley/Audit-Controls-Gen | e26677863b034a00176713f03c8face5a3d0aba9 | 38b488713f6e0f0f76cb205b8d04328f1009f99b |
refs/heads/master | <repo_name>diemorales/copyloto<file_sep>/www/templates/infraccion.html
<ion-view view-title="Infracción">
<ion-content ng-controller="InfraDetCtrl">
<div class="card">
<div class="item item-divider item-text-wrap titulos">
{{nombre}}
</div>
<div class="item item-text-wrap desc">
... | 82d9bbd3651f7d5208e6dfb62861c2e0831f56e2 | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | HTML | diemorales/copyloto | 4a8bd23c809c7139a359d49f0a52ce72a1409817 | 91e03086bf8073cb254306834acd17585d791ed2 |
refs/heads/master | <file_sep>// JavaScript Document
$(document).ready(function(){
$('#demo1').flexImages({rowHeight: 140});
//logoimg定位
/*$(window).scroll(function(){
var scrollTop = $(this).scrollTop();
if(scrollTop>366){
$(".logoimg").css({"position":"fixed","top":"0","z-index":"1000","height... | 3369c84acd8fb7f59ac636ad87079381079b3b95 | [
"JavaScript"
] | 1 | JavaScript | TaoyuProxy/Taobs-site | 98639990f98a595bb10cee03b6095f06808db137 | cf6351ce27a47fb28bf9f05290cabc26ed9ca2ec |
refs/heads/master | <file_sep># Endomondo-Analyzer
A project developed in Python to analyse trainigs on endomondo.com and compare them to each other
## How to use it
Either download the python file and config file to run it in Python. (You need to enter your credentials into the config file). Or download the folder containing the exe fil... | c30a47060a7cfeafefbece265ec999ed60de85d8 | [
"Markdown",
"Python"
] | 2 | Markdown | lade043/Endomondo-Analyzer | ce91770f4f712d18917507d80dde1e75134aca37 | 8cd0b8de8cd3e0793531921bb8196928c00bb83d |
refs/heads/main | <file_sep>#include <stdio.h>
int main() {
int test;
scanf("%d", &test);
while (test--) {
int n, m, sum = 0, count, k;
scanf("%d", &n); // n은 가로, 세로길이다.
if (n % 2 == 0) { // m은 출력하는 최고 숫자
m = n / 2;
}
else {
m = n / 2 + 1;
}
if (n == 1) {
printf("1\n");
}
else {
for (int i = 1; i ... | aa9a5e20429bcf2daa49991dfe12757d4dd235a9 | [
"Markdown",
"C",
"Python"
] | 97 | C | YooJ-K/lavida.us | edd9048f2409ab8d84491220629c59b453e37fb1 | 2f35ca44e14cf54168108be8ebc6f2f614069604 |
refs/heads/master | <file_sep>SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema forum_system
-- -----------------------... | 776fd53f9bcded5d769e83ac07bd2efb63633288 | [
"SQL",
"PHP"
] | 2 | SQL | evgenitochev/Forum-System | 320c10f58f3559f2ae04a51cbd681726e44cc85e | 1a740c8770cb9e9da6a1cee7092cd9dd9aa32512 |
refs/heads/master | <repo_name>rgynn/golang_vagrant<file_sep>/README.md
## Golang dev enviroment with vagrant
This is a project explaining how to easily setup a golang dev environment running:
* Ubuntu - 16.04.1 LTS
* Golang - 1.7.4
* Vim-Go
* Delve
* Gin
<file_sep>/bootstrap.sh
#!/bin/bash
# install git
sudo apt-get install -y git
# g... | 65f24b98c2fb61f14247772620519b6ddf6935c8 | [
"Markdown",
"Shell"
] | 2 | Markdown | rgynn/golang_vagrant | 666baef710af6e44efac6054bc58a457233a5528 | 7297a01dd06b17747c151437470e84dc8e6f74f4 |
refs/heads/master | <repo_name>jdruid/AppStudio-SoundCloudAPI<file_sep>/AppStudio.Shared/Common/ActionCommands.cs
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PU... | 377d1ea3338996959bf3cc65bd50dd8df6a840ae | [
"Markdown",
"C#"
] | 14 | C# | jdruid/AppStudio-SoundCloudAPI | 7a7dcb30699af687305741cd4ed917927638be5c | 0fdfde614621cef7487a39da95238ec823406545 |
refs/heads/master | <repo_name>carello/cicd-virl<file_sep>/cicd-virl-prep/cleanup.sh
#!/bin/bash
docker-compose down
rm -rf gogs
rm -rf drone
#rm -rf .git
<file_sep>/cicd-virl-prep/tmp-container-builds/virlstart.sh
#!/bin/sh
echo "Starting script...."
#virl ls --all
#virl up -f virl/topology.virl
#virl ls --all
#virl up -f ${VIRL_FILE... | 544126adc9a44fca35815ef1fa154e11c8bea9d9 | [
"Markdown",
"Ruby",
"Dockerfile",
"Shell"
] | 6 | Shell | carello/cicd-virl | 4e368340b9e9103e9cc051bd52f3e8c70a0c4bd2 | 88cee1e5d1d1ca193d1155f8ab15af2dd8586683 |
refs/heads/master | <file_sep>-- MySQL dump 10.13 Distrib 5.5.57, for debian-linux-gnu (x86_64)
--
-- Host: 0.0.0.0 Database: mvc
-- ------------------------------------------------------
-- Server version 5.5.57-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS... | 55909522785572381cf7530acf4e484d40ae071b | [
"SQL",
"PHP"
] | 11 | SQL | Pashkalab/PHPAcedemy4 | 32ec0878a5862035ec7bea0308cb0dddf2bc4105 | f292c930b649081b5d61d9e552cc76d70ba3c259 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using mshtml;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Drawing;
namespace RankHelper
{
public class Qihu : WebBase
{
public Qihu(WebForm webForm, string ... | f7b489a8a354874e726b7c15a1671a49b4953f7a | [
"Markdown",
"C#"
] | 30 | C# | Unwatch/RankHelper | a78a0d2fa7b3d5a4bc6e5dd6bb27296a4285585c | 57795307b9c03b40df93826fdfe1752d9b5a5708 |
refs/heads/main | <repo_name>KanikaChoity/kanikachoity<file_sep>/app.js
const menuBarIcon = document.querySelector(".mobileMenuBar");
const subMenuIcon = document.querySelectorAll(".dropdown");
subMenuIcon.forEach(function(node){
node.querySelector("a").innerHTML += "<i class='fas fa-chevron-down'></i>";
node.addEventL... | 9d29ad9bf09dcc750fd1ad4545516555e0f47e3a | [
"JavaScript"
] | 1 | JavaScript | KanikaChoity/kanikachoity | 475f91c4eda67f49d58014d035b2182f55743500 | 5243130a7506cad239c41bdcf99cec5c0cfae463 |
refs/heads/master | <file_sep># /usr/bin/env python
# -*- coding: utf-8 -*-
# author__ = '<NAME>'
from openpyxl import load_workbook
from openpyxl.chart import PieChart,Reference
def pie_chart(wp):
table = wp.get_sheet_by_name(wp.get_sheet_names()[0])
#生成饼图对象
pie = PieChart()
#图的标题
pie.title = "API接口测试统计"
'''行数和列... | 65b62647f4c9976e92ca6d624b98af241a31373a | [
"Python"
] | 2 | Python | hanshoukai/api_interfaceframe | 3fc1555e43fc370974aa935bdeef2754ed578b42 | 55d38c90d7467146f1f7e700e99794b33920a561 |
refs/heads/master | <repo_name>SlaSerX/highlight<file_sep>/main.go
package main
import (
"bytes"
"io"
"log"
"os"
"regexp"
"sort"
"strconv"
"strings"
"github.com/augustoroman/ansi" // change back to "github.com/mgutz/ansi" when PR is accepted
"github.com/fluxio/iohelpers/line"
)
var usage = `
Usage: highlight <config> <pattern... | a4123a9a0b9f7903d5cd4ed7919953ae1dd3f2a0 | [
"Markdown",
"Go"
] | 2 | Go | SlaSerX/highlight | 780a6a9269988fdea23b089138b5e4d46aefeb6e | 920f86b919938870f92ecc58fbafde1c74a06a2c |
refs/heads/master | <repo_name>MetalMichael/RegenAwsCredentials<file_sep>/RegenCredentials/Program.cs
using IniParser;
using IniParser.Model;
using Newtonsoft.Json.Linq;
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
namespace RegenCredentials
{
class Program
{
const string FILENAME = "creden... | ea68e61a0876628894ebf52438c3d1f99f07289b | [
"C#"
] | 1 | C# | MetalMichael/RegenAwsCredentials | 4ed899e6feb31f6c9a58a9dce8cf16ca2e9a104a | 50ad0c533148dde875329411cb80c1262cc250f8 |
refs/heads/master | <repo_name>BarakpaevOlzhas/ContWor<file_sep>/DataGrid/DataGrid/Curse.cs
using System.Xml.Serialization;
using System.Collections.Generic;
namespace DataGrid
{
public class Curse
{
public string Id { get; set; }
public string Name_Kaz { get; set; }
public string Edinica_Izmeren... | 0b227f18481c90d5710a573c7e971ca591b1472f | [
"C#"
] | 2 | C# | BarakpaevOlzhas/ContWor | b88a14ba3ef3f890503f9bb54bff96fba3dc027c | c14685f8563021f2e399f3dbecbd67f21e8e8a08 |
refs/heads/main | <file_sep># test-orionX
NestJS MicroService to get price (buy and sell), RSI, TypicalPrice and Spread of Bitcoin
| 845f87b9c4ddbed020b1564803964213b73f1841 | [
"Markdown"
] | 1 | Markdown | GustavoVerdugo/microservice-nestjs | f31ca06392c556892a41d0f31641ecb49bd4eccb | aeb588ad8419f3e4f9c7c90f6ed3d2305547bf82 |
refs/heads/master | <repo_name>sbremner/NextStep<file_sep>/nextstep/core/utils_test.py
import unittest
from nextstep.core.utils import rebuild_cmdline
class UtilsTests(unittest.TestCase):
def test_rebuild_cmdline(self):
self.assertEqual(
rebuild_cmdline(['/c', '--input', 'filename with spaces.exe']),
... | 520b0bfc127de2931e545efde879190dcce40b6a | [
"Markdown",
"Python"
] | 12 | Python | sbremner/NextStep | 1946dac4ab24610247464a1f3e98284983f01411 | 569606688338a39b31dc9a598f7b72349ff1f69c |
refs/heads/master | <repo_name>tatellog/myWebsite<file_sep>/src/components/navigation/NavigationBar.js
import React from 'react';
import { Route, Link} from 'react-router-dom';
import HomePage from "./../../pages/HomePage";
import AboutPage from "./../../pages/AboutPage";
import SkillsPage from './../../pages/SkillsPage';
import ContactP... | 78c225a6062f51f1d854b65fd427b4f4dc651c2f | [
"JavaScript"
] | 2 | JavaScript | tatellog/myWebsite | 35b99e8d219ba33bca1d370751513dbaa35a5089 | ab7c0a97476cf67cc8ee738e9c9a845797159e67 |
refs/heads/master | <file_sep>## AdmitKard Project
- Clone repo from https url to the local machine
- open terminal and go inside project(AdmitKard) folder
- type yarn or npm install to install the required dependencies (make sure you have npm/yarn installed)
- type yarn start or npm start to start the application locally
- open [http://... | e8967f85f3918c53de8af8f0495db8b74532356d | [
"Markdown",
"TypeScript"
] | 3 | Markdown | xXD4rkC0d3rXx/admitkard | 36758a0c51c6325d1749485b5c3c86c844c76134 | 7012994c8c7600daf741cb786ab0249ecf7a2ad5 |
refs/heads/master | <repo_name>nightosong/CNNSkeleton<file_sep>/utils/data/data_cursor.py
import os
import random
import threading
from utils import path_utils
class DataCursor:
def top(self): pass
def down(self, span=1): pass
def up(self, span=1): pass
def point(self, spec_dir): pass
def __iter__(self): pass
def __next... | f93e5e3d5087d50aa2f7c454fd6be07e45ecc8c2 | [
"Python"
] | 3 | Python | nightosong/CNNSkeleton | 7e9f8fbacaca712e120a0575eb9d5a6826ff8a54 | c9b881438741e2118da04a235eac065fd9aa8f45 |
refs/heads/master | <file_sep>/*
Nama : <NAME>
NIM : 118140087
IF : B
Program : Aplikasi Bill Rumah Kayu Itera
*/
#include <iostream>
#include <conio.h>
using namespace std;
void opening(); //mendeklarasi fungsi dengan nama fungsi opening()
void opening() { //fungsi opening
cout<<"(*)(*)(*... | 9e10178132621711dbfafb5d8a73e86831825cef | [
"C++"
] | 3 | C++ | tubagusDindaMaulid/Tugas-Besar | 605eddbd6e547af2fff5b6d9735b446a5e54ae96 | b2b7a72896eed735f480cb1ed20a5831fcd009f8 |
refs/heads/master | <file_sep>#<NAME>
#CS498 - MCS-DS - April 7th, 2018
#HW7 Problem 1
#Import Libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Load data
pd_doc = pd.read_table("docword.nips.txt",header=None,sep=' ')
pd_voc = pd.read_table("vocab.nips2.txt",header=None,sep=' ')
docword = np.a... | de0ad8bc84ce0b8e48da2240bc9882380eebdf56 | [
"Markdown",
"Python"
] | 3 | Python | mattbitter/Expectation_Maximization_fromScratch | 90a261ce438944d6ba68129e4de66d785594e83a | 8ab9ba30c226ffc9ea1ab43f18127dbbe85a9f8d |
refs/heads/master | <file_sep>import request from '@/utils/request'
export function getTask(params) {
return request({
url: '/Task/getTasks',
method: 'get',
params
})
}
export function taskStart(params) {
return request({
url: '/TaskState/taskStart',
method: 'post',
params
})
}
export function taskComplet... | a16d5c69af94f6152e43b7e3262cb49c4002ec32 | [
"JavaScript",
"Java"
] | 10 | JavaScript | liu0916/syncoOA_ee | 512ca2d51e20169fdd6fecfc82f22188f2b7664f | 6270576eed99384ea465b11f2ffbbf8ea6106bcf |
refs/heads/master | <file_sep>import React, { PropTypes } from 'react';
import AppBar from 'material-ui/AppBar';
import Counter from './Counter';
import { connect } from 'react-redux';
import { CounterManipulationToggle } from './action';
class App extends React.Component{
constructor(props){
super(props);
this.con... | e37cf86db1eb3089b8680a4e76abadb86e24535b | [
"JavaScript"
] | 6 | JavaScript | NikitaCoder/React-education | 500d5b7f14a3ecdb5f19e55f2460c62316d23250 | 8c4b285ce4acbcd207a69f8fb9e2961a94b73b05 |
refs/heads/master | <repo_name>Windrist/UET-CAM-Demo<file_sep>/checkAlign.py
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 23 15:02:43 2021
@author: Administrator
"""
import numpy as np
import cv2
import os
import sys
import matplotlib.pyplot as plt
def resource_path(relative_path):
""" Get absolute path to resource, works for dev... | 00bd8e4942347a662deec5cd56da078ca414cd55 | [
"Python"
] | 6 | Python | Windrist/UET-CAM-Demo | f207c275f46757d9740b69a67d04bd2ad6e15aaf | 8a3eb47695273b829e3f210eb7fc57812122cee1 |
refs/heads/master | <file_sep>#!/bin/bash
filename=residue.dat
echo ${filename}_backup
<file_sep>#!/bin/bash
if grep -q 'bash' /etc/passwd; then
echo 'bash found'
fi
<file_sep>#!/bin/bash
# 日記データの保存ディレクトリ
directory="${HOME}/diary"
# 保存ディレクトリがなければ作成
if [ ! -d "$directory" ]; then
mkdir "$directory"
fi
# 日記ファイルパス
diaryfile="${directo... | 223aae6a987116673d7f2afada78530fc0d9f324 | [
"Markdown",
"Shell"
] | 15 | Shell | HagiAyato/LinuxShellPractice | 4e4dbb72ab4bcd4896d6de1cebccf24e76eb636d | bd422f20c24ee2518c7bf3e02f7aa55489d4ac10 |
refs/heads/master | <repo_name>thomasdane/algoDataStructures<file_sep>/tests/algorithmsTests/pathFinding.test.js
import {getNeighbours, findShortestPathLength, Point, transformGrid} from "../../algorithms/graphs/pathFinding.js"
describe("findShortestPathLength", () => {
const fourByFour = [
[2, 0, 0, 0],
[0, 0, 0, 0]... | 3fba8facb9c167c1aecf2763249f3b894b4b4bf8 | [
"JavaScript"
] | 40 | JavaScript | thomasdane/algoDataStructures | c0dcc2b4970743d40326e02f44cb3e5a8ee1fd5d | 55b2138092ad276fa427e2d66e5ddfd97c910228 |
refs/heads/master | <file_sep>//默认每页显示数据行数
var pageLimit = 20; //用户表行数
//资源搜索
var store_login=new Ext.data.Store({
proxy:new Ext.data.HttpProxy({url:'../inside.php?t=json&m=login&f=search',method:"POST"}),
reader:new Ext.data.JsonReader({
tatalProperty:'total',
root:'data'
},[
{name:'uid'},
{name:'username'},
{name:'subname'},
... | 6efda62a6f19ab2a0e61dad930a834086f77ccff | [
"JavaScript",
"SQL",
"PHP"
] | 53 | JavaScript | yezige/ecs_admin | 93aef735c71186526ca788ec94ae2afe09e4d18e | 0a9492ac1f76ecadb0e47e6747f3108ccec00e28 |
refs/heads/main | <repo_name>MadhavJivrajani/grofer<file_sep>/src/display/misc/keybinds.go
/*
Copyright © 2020 The PES Open Source Team <EMAIL>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.o... | e77668e58c132eb37884d31270aa93a136716ed4 | [
"Go"
] | 11 | Go | MadhavJivrajani/grofer | 34c886c484cefd0a59e45e2da54fd490ed873d00 | 933a2d3ca8bd89e41d8244fb9ae11ba0cb709f0b |
refs/heads/master | <repo_name>kourbou/zookeeper-bot<file_sep>/zookeeper-bot.py
#!/bin/env python3
import os
import sys
import time
import cv2
import numpy as np
from copy import deepcopy as copy
from itertools import groupby
from enum import Enum
from threading import Thread
from pykeyboard import PyKeyboardEvent
from pymouse import PyM... | aa9d14252bbadcdf8e701a9c991148957acf6d14 | [
"Markdown",
"Python"
] | 2 | Python | kourbou/zookeeper-bot | 8d7e6779a2927c1d1fa4eb9eb2b3f39bae2ff4ad | e3a7603ca33fd359b1768852cc4117b02e2f73b6 |
refs/heads/master | <file_sep>package com.example.empty.hotfix3;
import android.app.Application;
import android.content.Context;
import android.os.Environment;
import android.util.Log;
import cn.jiajixin.nuwa.Nuwa;
/**
* .
* <p/>
*
* @author <a href="mailto:<EMAIL>">David.Yu</a>
* @version V1.0, 29/12/15
*/
public class HFApplica... | cd7332691aad7eefa5129c9110edb52d703837e8 | [
"Markdown",
"Java"
] | 2 | Java | linzhikuan/HotFix | cff373f2ea0556fa193a709a7ae2a5cb6d341fb7 | 6072f7f7ee3b960138cd4f5aac2b4d7e16a3cc8b |
refs/heads/master | <file_sep>/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
... | 773c44fe29267f987452c0df9e90e7c2eddec2ea | [
"C++"
] | 4 | C++ | papplaci93/hhvm | be8b41e78768560a04f037a9ef839e61f55969bf | 6755c45595ea9af3007948f3d09ad7401b57fc16 |
refs/heads/master | <repo_name>R-16Bob/my_maid<file_sep>/README.md
# my_maid
a robot maid, can also see as your wife
一个可爱的机器人女仆程序,她会关心你,爱你,使你更方便。
功能:
1. 报时,并根据不同时间作出不同可爱的问候
2. 通过计算得出当前所在的教学周
3. 与你聊天,她还需要更多训练
4. 给你说很多土味情话
5. 为你打开couldmusic
6. 告诉你她爱你。
7. 每天考研倒计时提醒
8. 开发中
---------------------------------
#设定
* 名字:爱丽丝
* 职业:女仆
* 生日:2020... | 40cbfb99fdce5b8b2963e8ab66d7268409d462f9 | [
"Markdown",
"Python"
] | 2 | Markdown | R-16Bob/my_maid | 0bddbfbab8e5f93297bd9ee31532839726d7b005 | 2057c6ebee166c05cbff54c148dc1a9229380ee7 |
refs/heads/master | <file_sep>package com.example.varsh.singitforme;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import andr... | e86a45005f1aa3d35772e84bea36b03218c6c2d8 | [
"Java"
] | 1 | Java | Varshini-v/andr | 07ad855bd053daf7cbb74ff3cbf3aff438681831 | d6c8f710fe3ab1a8d1268f7df65fd97bb8ce1285 |
refs/heads/master | <repo_name>andymost/CTDA_3_course_work<file_sep>/stats/sherman.py
import numpy as np
def stat(sample):
variation_series = np.sort(sample)
n = len(variation_series)
one_by_n = 1 / (n + 1)
w = 0
i = 0
while i < len(sample):
u_cur = variation_series[i]
u_prev = 0
if i != ... | 49541efe3dbc2437549da3271cddf0fe8a85f7a1 | [
"Python"
] | 6 | Python | andymost/CTDA_3_course_work | d7a8b898dafd54b3b1770ff67c887f2f693e6ea0 | d8e9b72595c0b16287908fa908a395b3f4af3331 |
refs/heads/master | <file_sep># Answers
1. What is React JS and what problems does it solve? Support your answer with concepts introduced in class and from your personal research on the web.
> React JS is a frontend javascript library that is maintained by Facebook and a community of individual developers and companies. It is used t... | 8a397aea19f8e465a27819e5a27c6548fe90aa51 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | CloudGang/Sprint-Challenge-React-Wars | 73460b6a8dc09687ee5134117cc8df7262467fac | a3cb6ccbc9dc687826832baabbb1b7662309b1e6 |
refs/heads/main | <repo_name>sriniwas14/NodeJS_Express_API_Boilerplate<file_sep>/README.md
# NodeJS_Express_API_Boilerplate
An Express RestAPI Boilerplace with JWT Based User Creation and Authentication
## Introduction
As the name implies this application is a boilerplace that I use to get started with creating an API for my Web Applic... | fdf1eeddfef35035326b30e6a414d2d399521d79 | [
"Markdown",
"SQL"
] | 2 | Markdown | sriniwas14/NodeJS_Express_API_Boilerplate | cf2bf932340fc20b82c23c2dc20cb9406c285645 | 5a9c460e17ae1e95b62df4d0de2d102a9b5ac643 |
refs/heads/master | <repo_name>aisleypay/for-each-lab-web-040317<file_sep>/index.js
function iterativeLog(array) {
array.forEach(function (element, index) {
console.log(`${index}: ${element}`)
});
}
function iterate(cb) {
var array = ['Beyonce'];
array.forEach(cb);
return array;
}
function doToArray(array, cb) {
array.... | 0026d65985bdf70b9c06577b9ecf4c7cd6b05288 | [
"JavaScript"
] | 1 | JavaScript | aisleypay/for-each-lab-web-040317 | 9c4ef129bf1d82ed325eecb70a757c6cb0e323b9 | 710a7bab6d2d78bb47b8f4b3a572557a4ecad075 |
refs/heads/main | <file_sep>// burger bar & navigation
let toggleButton = document.getElementById('toggleButton');
let navbarLinks = document.getElementById('navbarLinks');
toggleButton.addEventListener('click', function(){
navbarLinks.classList.toggle('open');
})
const menuBtn = document.querySelector('.burger-bar-div');
const logo... | 2cb8d8b897b0c26d62fca2fea3936e31b74f6a74 | [
"JavaScript"
] | 1 | JavaScript | LindaGiorgadze/GeolabPage | 0f998c81b7c0ed1d8b2cc074cef49fdd081c9001 | 378495c1240febf8852057958a21ff86e38cc4be |
refs/heads/main | <repo_name>raja1111111/dom_assignment<file_sep>/js/index.js
const siteContent = {
nav: {
'nav-item-1': 'Services',
'nav-item-2': 'Product',
'nav-item-3': 'Vision',
'nav-item-4': 'Features',
'nav-item-5': 'About',
'nav-item-6': 'Contact',
'img-src': 'img/logo.png',
},
cta: {
h1: 'DO... | fa4a7e2ee45f8bb411eb3fdd1d6e3012268349c4 | [
"JavaScript"
] | 1 | JavaScript | raja1111111/dom_assignment | ba7aec143e68a7ef9a06074ee355177c38fd34f1 | 1f0e1d014e5b877daaccee7373ee112749332dcc |
refs/heads/master | <file_sep>package com.pi.activity.DAO;
import android.content.Context;
import android.content.DialogInterface;
import android.util.Log;
import androidx.appcompat.app.AlertDialog;
import com.pi.adapter.PecaAdapter;
import com.pi.model.Peca;
import java.util.List;
public class PecasDAO {
public void RemoveItem(f... | 7c66c681eddf4a5f96f84be6803e13d21be35a48 | [
"Markdown",
"Java"
] | 8 | Java | chown-coffee/PI-20211 | af332535bf1844870a75333615bf522f58f0d8cc | 2916f996ed8bd08a47283436a220a9f9596532cd |
refs/heads/master | <file_sep>#include "ackerman.h"
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
Allocator alloc;
int main(int argc, char ** argv) {
// input parameters (basic block size, memory length)
srand(std::time(nullptr));
int b = 128;
int M = 512*1024;
for (int i=1; i<argc; i+=2) {
... | 63ecfde536fb3ba9fbce9cb7070d9de7f2d9aa3a | [
"Markdown",
"Makefile",
"C++"
] | 5 | C++ | srawls1/BuddySystemAllocator | f65415155445fcd4fa0e35e7484863692972408e | fcd34dc605f3095214dc0b87f37b1809b02e4b06 |
refs/heads/master | <repo_name>fgoncalvesaf/simple-blog<file_sep>/app/models/post.rb
class Post < ApplicationRecord
has_attached_file :avatar, styles: { cover: "1000x500>", thumb: "250x250>" }
validates_attachment_content_type :avatar, content_type: /\Aimage\/.*\z/
end
| 105ecbb81e5f2b5b2bd2d3a2cf446df5186a20bc | [
"Ruby"
] | 1 | Ruby | fgoncalvesaf/simple-blog | d9b8320c84b6c401abff7c0235547638abe70886 | 97102fb95fb606754e3856c3b22bbff2cb52a429 |
refs/heads/master | <repo_name>LiewJunTung/dodgy<file_sep>/app/src/main/java/dodgy/com/dodgydetector/splash/SplashActivity.kt
package dodgy.com.dodgydetector.splash
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import dodgy.com.dodgydetector.R
import dodgy.com.dodgydetector.init.vi... | 8bacd84e3681b143cbf79f10c02521d76b25ac8a | [
"Kotlin"
] | 1 | Kotlin | LiewJunTung/dodgy | 72f78b992bafc1af1f79636a111269d0f8e73c5c | bb78fbeaded21834eed12a83a9af8d72b90334c2 |
refs/heads/master | <repo_name>MOsmanis/Permanent-Overdrive<file_sep>/README.txt
Terminal game made with Python library Curses. Originally made for Trijam17 in 6 hours. (https://itch.io/jam/trijam-17)
Later re-made into server-client 2 player version for computer networks class.
Video: https://youtu.be/OF8FJNXGzyM
Requirements
1. Install... | 97d25f20fe7811d96513c09ba0deb94c4ffccdc0 | [
"Python",
"Text"
] | 4 | Text | MOsmanis/Permanent-Overdrive | 2f411dcba275fe0a5182f85837206fb2d5b8735a | 99050f2f895d9fa43f646888906c97a3164db2a2 |
refs/heads/master | <repo_name>ThomasDahll/AngelApp<file_sep>/Repository/PokemonsRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AngelApp.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace AngelApp.Repository
{
public class P... | 3b55b407156ceb604951389c488b32ff53a9abfe | [
"Markdown",
"C#",
"TypeScript"
] | 11 | C# | ThomasDahll/AngelApp | 27831b96ab5d40a61163f13ee7f851839b01cb01 | 8871fbe6089cf012c3d70d8d50eb4ea2724bcea6 |
refs/heads/master | <file_sep>library(tidyverse)
library(RSQLite)
library(dbplyr)
# Open the database connection
connection <- dbConnect(SQLite(), 'sql_assignment.db')
# List the fields in the alignedannot table
dbListFields(connection,'alignedannot')
#dplyr method test
results <- tbl(connection, sql("SELECT * FROM alignedannot
... | 76aac71323c1a38c053279103b2f672c2e879447 | [
"SQL",
"Python",
"R",
"Shell"
] | 5 | R | EPLeyne/sql_assignment | d71f843bab1c0c41705ae915ebef476410706eb9 | a5a0408cf686ff2ccbedc779ee5359c4b9c5b8a5 |
refs/heads/master | <repo_name>mariarudenko/dividend-calculator<file_sep>/src/TextHandler.java
/**
* Created by <NAME> on 20.04.2015.
*/
public class TextHandler {
}
<file_sep>/src/XMLHandler.java
/**
* Created by <NAME> on 20.04.2015.
*/
public class XMLHandler extends TextHandler {
}
<file_sep>/src/Claim.java
/**
* Created by <NAME... | bde815cd0c7cee0c3aa69d80e430a4f7f72bc4cd | [
"Java",
"Text"
] | 7 | Java | mariarudenko/dividend-calculator | 165054ba3d4826f0acbe5d99edde0d764c913be2 | 3ff359de9a3969efe62843e4cc03d2e464d79391 |
refs/heads/master | <file_sep>package com.example.mvppractice;
public interface Contract {
interface View{
void showAToast(String message);
}
interface Presenter{
void buttonClicked();
}
}
| dcfbc3060a1c38436d876ae104d18722493c20be | [
"Java"
] | 1 | Java | onilp/MVPPractice | f13a1c7249ffc670ae7b2068a1110f65d1c4d70a | 741f5022933c3e4879ee829b3cf2c182a827d0f2 |
refs/heads/master | <repo_name>pramodramdas/asset_transfer_android<file_sep>/src/components/asset/search.js
import React, { Component } from 'React';
import { connect } from 'react-redux';
import { View, Text } from 'react-native';
import { Container, Picker, Item, Form, Input, Button } from 'native-base';
class SearchRequests extends C... | c36ac93b4ca60337bfed7721bec8d929a0d67edf | [
"JavaScript",
"Markdown",
"Gradle"
] | 20 | JavaScript | pramodramdas/asset_transfer_android | 12085294821c8d2a8824b7f000d72ccfc97d8db6 | a39b7a0e269707767bcccafb2357b03b1856a3f1 |
refs/heads/master | <file_sep>from django.db import models
from django.contrib.auth.models import User
from django.dispatch import receiver
from django.db.models.signals import post_save, pre_delete, pre_save
class Profile(models.Model):
user = models.OneToOneField(User)
website = models.URLField(blank=True)
image = models.I... | 180425b6af13bf8d0ec5c756e6f152d4782ac715 | [
"Python"
] | 9 | Python | mihilbabin/pyread | 9d1aa58ffe8783cf4b942a1eb49dcfe87296611d | 265c182539a6ca9407a164a4a16d134275de1527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.