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>kd01gh/CoreDataTest<file_sep>/DataManager.xctemplate/___FILEBASENAME___.swift
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
//___COPYRIGHT___
//
import UIKit
import Foundation
import CoreData
@objc(___FILEBASENAMEASIDENTIFIER___)
class ___FILEBASENAMEASID... | c909a385af0494bc545b4b287bd85fd46618781d | [
"Swift",
"Markdown"
] | 5 | Swift | kd01gh/CoreDataTest | e1dbca6f0675a99c29d6ab1773ba54600dcd2c20 | e2bee7a138f574d4f1cc0e751701a81cbca2731e |
refs/heads/main | <repo_name>vshalt/pomodoro-clock<file_sep>/README.md
# Pomodoro Clock

> A pomodoro clock app to make you more productive.
> hosted project: https://vshalt.github.io/pomodoro-clock
---
## Table of Contents
- [Description](#description)
- [Technologies](#technologies)
- [How ... | d03eb4118d5b04e5a6dd5013723100f472ce254d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | vshalt/pomodoro-clock | 040cc83a4fae72e561629c322aed333263067783 | a4417ff13ec4eb1392137f27f6f3a672661409b4 |
refs/heads/master | <repo_name>dmonitha/RoboFriends<file_sep>/robots.js
export const robots = [
{
id: 1,
name: '<NAME>',
username: 'BossMan',
email: '<EMAIL>'
},
{
id: 2,
name: '<NAME>',
username: 'Big Tuna',
email: '<EMAIL>'
},
{
id: 3,
name: '<NAME>',
username: 'D',
... | 6cb2a3788896ec081d3c33381e7a81e2c92bd699 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dmonitha/RoboFriends | 2fcb7421eb140bbd876eef888effd09fa5b67459 | 8c2b99d9d7daa57bccfd0dffd8ce7c2af6865307 |
refs/heads/main | <repo_name>LoopGlitch26/Twitter-Bot-Custom<file_sep>/bot.py
import tweepy as twitter # Basically that's all you need to pip install
import secrets
import datetime
import time
auth = twitter.OAuthHandler(secrets.API_KEY,secrets.API_SECRET_KEY)
auth.set_access_token(secrets.ACCESS_TOKEN,secrets.SECRET_ACCESS_TOKEN)
api ... | 0eb5e64d4d9d49c36b92f310481877262ff2e430 | [
"Markdown",
"Python"
] | 3 | Python | LoopGlitch26/Twitter-Bot-Custom | e36797ef7fc06f71de239d5f55997a90d3ed4b9a | 9e9cf6fd7a392178446dc46ceaf9565503d545f9 |
refs/heads/master | <repo_name>TaricaTarica/vacunasuy-backend<file_sep>/comp-cent-ejb/src/main/java/datos/ReservaDatoLocal.java
package datos;
import java.time.LocalDate;
import java.util.List;
import javax.ejb.Local;
import entidades.Reserva;
@Local
public interface ReservaDatoLocal {
public List<Reserva> obtenerReservas();
pub... | 019f6a2d49a7bfafc72a1728a74ed009f8a212ff | [
"Java",
"SQL"
] | 79 | Java | TaricaTarica/vacunasuy-backend | 7944d658b493007444230b708fca02d532aa8dc4 | 0605398e4a8f7f7a2fb7551672c5c5c6f5a59765 |
refs/heads/master | <repo_name>thankslana/the_sixth_redrock_homework<file_sep>/接口文档.md
请求url:http://localhost:8888/
参数:username,password
username:用户名 password用户密码
请求方式:Post
注册成功返回登录界面
登陆成功自动进入成功界面,自动跳转进入小x网,手动点击进入普通页面
失败返回fail<file_sep>/src/RegisterServlet.java
import java.io.IOException;
import javax.servlet.ServletException... | 1c0705ed8c1caf71544be42c6b15648245732401 | [
"Markdown",
"Java"
] | 3 | Markdown | thankslana/the_sixth_redrock_homework | 261e966653699ea616de24116429080210a62efc | 25a267fe43e68789ddcd97015e4af721afb2a5b6 |
refs/heads/master | <file_sep># Header 1
@cirosantilli
<file_sep>This repo is only for testing how Github works.
# markdown tests
# h1
## h2
### h3
#### h4
## 012 UPERCASE underline_hyphen-spaces others%%%end
new line
<file_sep>def f(x)
return x + 1
end
| 0e43b8ad5043d91322c497a7b81c207244fd6dbd | [
"Markdown",
"Ruby"
] | 3 | Markdown | cirosantilli-puppet/test | 7a4b6e436a365cecd9591dbaa1934dfe2c278bf0 | ecc9050baf454ef9ae09144497f74b4dd7b409d1 |
HEAD | <repo_name>ushis/silo<file_sep>/app/reports/application_report.rb
require 'prawn'
# The ApplicationReport is parent class of all reports. It intializes the
# prawn document and sets the global content and style.
class ApplicationReport < Prawn::Document
include AbstractController::Translation
attr_reader :title
... | 4dc3dc414c929fbcdf0a110433dadcf0d812ded9 | [
"SQL",
"Ruby",
"HTML"
] | 170 | Ruby | ushis/silo | 700fa2e1b8bef16f924fb0663d0ca0e55a37142c | 6d2c8b351ee76892468e172e854b3ab6df1036ac |
refs/heads/master | <repo_name>vitorarins/RevenueCrawler<file_sep>/README.md
RevenueCrawler
==============
A web-crawler for getting revenue data of companies from a specific website.<file_sep>/pars.py
#!/usr/bin/python
#coding: utf-8
from bs4 import BeautifulSoup
def check_doctype(html):
"""This function will check which document t... | ac5ac934fab95727030d0f74f593246dc7bcecc3 | [
"Markdown",
"Python"
] | 3 | Markdown | vitorarins/RevenueCrawler | 969cb56b5d695d508276d0159a5a8f02cdb01016 | 6774401260c8162a6787a7e8a37b2e9bfedcf8c0 |
refs/heads/main | <repo_name>rdjennings/StockChart<file_sep>/server/index.js
const express = require('express');
const app = express();
const yf = require('yahoo-finance');
const port = 3010;
const cors = require('cors');
const fs = require('fs');
const path = require('path');
app.use(cors());
let symbols = [];
let jsonPath = path.joi... | d9bbf8ada5d12072fce81e2a1bc3d990c45fb123 | [
"JavaScript"
] | 1 | JavaScript | rdjennings/StockChart | 6e08476ba511136072254894aa5fd9e2438c0923 | d410bebb12179a649622e7561e2be55aeebf8139 |
refs/heads/master | <repo_name>battyone/pious-squid<file_sep>/src/test/propagator-test.ts
import * as assert from "assert";
import { DataHandler } from "../data/data-handler";
import {
EpochUTC,
J2000,
KeplerPropagator,
RungeKutta4Propagator,
Vector3D
} from "../index";
import { InterpolatorPropagator } from "../propagators/inte... | 80c8eb142f4af8ace9ff2a224cbb6a4335335d74 | [
"Markdown",
"TypeScript"
] | 43 | TypeScript | battyone/pious-squid | 2e39c63c5a342a180e26b4d984c6ed58df937fd5 | ee15074a107060a1103c6c6ca81481ac4902a919 |
refs/heads/master | <file_sep>package com.example.camera.application;
import com.example.camera.domain.Camera;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.sql.SQLException;
public interface CameraService {
/* 서버 <-> 카메라 서비스
* 1. 서버->카메라 실행, 유저아이디
* 2. 사진이 찍힌후, 카메라에서 오는 유저아이디와 경로 저장
*/
... | c49fe6ec64c2a20e16a8b36e427093e606a11945 | [
"Java",
"Gradle"
] | 16 | Java | hst2570/whatSuda | fcf2416264be7d446eda478ca446bc03636bd7aa | 7e7cd8896271bc2dfb53d37eed8225fa995d0779 |
refs/heads/master | <file_sep><?php
include("includes/database.php");
include("includes/init.php");
include("includes/config.php");
session_start();
$_SESSION['last_active'] = time();
if (time() > $_SESSION['last_active'] + $config['session_timeout'])
{
//log out user
session_destroy();
header("Location: login.php?timeou... | 2605749de254b6683ed54b06d99a100a88337afd | [
"PHP"
] | 14 | PHP | riderby/mvc-login-system | 3de2730fc698ae559e59a3f8245cde443905fc05 | 43eba9b0b364f3545aab5a993dd99b6118913f92 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <math.h>
float calculaDistancia(int x1, int y1, int x2, int y2){
return sqrt(pow(x2-x1,2) + pow(y2-y1,2));
int main()
{
int x1, y1, x2, y2;
float distancia;
printf("Informe as coordenadas do ponto A");
scanf("%i %i", &x1, &y1);
printf("Informe as coordenadas do ponto B")... | bf1016455d96db9e27d21a313ebce3529bb3d111 | [
"C"
] | 1 | C | DiRenan/Projeto-Teste | 2405f9bc929f5104ab9bf21e5f70a12a82cc7e68 | e0499b141144723b7cfb0618534bda4b589fbc91 |
refs/heads/master | <repo_name>gusssar/table-gms<file_sep>/src/components/StringTable/index.js
import React,{Component} from 'react'
class StringTable extends Component{
render(){
const {obj} = this.props;
return(
<tr>
<td>
{obj.Name}
</td>
... | fb2595f5d93c0a55fa8bc135a164b70f54b4a22f | [
"JavaScript"
] | 1 | JavaScript | gusssar/table-gms | 0ff15d0d9fd247a77924404e4d396de291e8304b | e66ba4b7d397e6b8b6cb981cbcc5ce507601e536 |
refs/heads/main | <file_sep>let btn = document.getElementById('btn');
let wave = document.getElementById('wave');
let ship = document.getElementById('ship');
let text = document.getElementById('text');
let Username = document.getElementById('Username');
let number = document.getElementById('number');
let rollNumber = document.getElemen... | 6fc370e57e490e03865cd27ce7bbee84b58ca1ee | [
"JavaScript"
] | 1 | JavaScript | nancygos/TripForm | 6df1fb8e1ac5ca21e26ce02838b43565a323dd8e | 7fe732fdd02d0a2415b1e79437c6b7be171d9604 |
refs/heads/master | <repo_name>NorbertasL/TicTacToePy<file_sep>/Run.py
class ScoreTracker:
# Scoring class
# Positive score is X, negative score is 0
# When a score of |3| a winner is announced
grind = [[None, None, None],
[None, None, None],
[None, None, None]]
def __init__(self):
s... | ee12e1987de09e2563b424c887ede8710381cb15 | [
"Python"
] | 1 | Python | NorbertasL/TicTacToePy | 2a01fc2261754e79bfb9d03b1f8d978730214303 | e9995292dbcb5103e19a0de517f6bf99212378d0 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite3.h"
#define CREATE_TABLE_PERSONA \
"CREATE TABLE IF NOT EXISTS persona " \
"(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL" \
", nombre TEXT NOT NULL" \
", edad INTEGER NOT NULL)"
typedef struct Persona Persona;
str... | ff6dd28156401b88abf59a1a03ff2a0707449cac | [
"C"
] | 1 | C | cedoduarte/EjemploBaseDatosSQLite | af11a581c247350ee6f5298d0e08ad837494da96 | 3dca09b2e95b235ccb00ac46d5d5e9ccad4a756a |
refs/heads/master | <file_sep>var bio = {
'name': '<NAME>',
'role': 'Software Developer',
'contacts': {
'mobile': '(319) 331-4863',
'email': '<EMAIL>',
'github': 'mullans',
'location': 'Iowa City, IA'
},
'welcomeMessage': 'Hi, my name is Sean!',
'skills': ['JS', 'CSS', 'HTML', 'Respo... | a5400a59f99cc1c92e6619de69cf2233d30ccd5f | [
"JavaScript"
] | 1 | JavaScript | Mullans/frontend-nanodegree-resume | 9188bdc8997ff5b8471f0023a18174b4dd5ac789 | 8cef722c8b54165efb143d2b45cfe7c972eb2edd |
refs/heads/master | <repo_name>drat/sharedcount-daily-reports<file_sep>/scripts/sharedcount.py
#!/usr/bin/python
import sys, os, getopt, csv, datetime, errno
from datetime import timedelta
import xml.dom.minidom as minidom
import urllib, urllib2, socket
import json, re, string
from urlparse import urlparse
def fetch_sitemap_url( url... | 8099472293cc386a118245fc9048b6ae1cd42edd | [
"Markdown",
"Python"
] | 3 | Python | drat/sharedcount-daily-reports | 5c812482c178224fa6eb5c41dc57a21cace54943 | d878832ed552784d90b27a139ab69ee215770c4e |
refs/heads/main | <repo_name>katevoskresenska/perfsys_test<file_sep>/api_files/postblobs.py
import json
import os
import uuid
import boto3
from botocore.client import Config
from botocore.exceptions import ClientError
dynamodb_client = boto3.client("dynamodb")
BLOBS_TABLE = os.environ["BLOBS_TABLE"]
response_bad_request = {"statusCod... | 9edda951fc594463e25ae22e3f1edb20f805a53d | [
"Markdown",
"Python"
] | 4 | Python | katevoskresenska/perfsys_test | 71adc2ff165afd240242326fac8771039e954e92 | 52b1d0f42a2a782ed53306e0c7837303dc93bdf7 |
refs/heads/master | <file_sep>CC = g++
CXXFLAGS = -std=c++11 -Wall -O2
SOURCE_FILES = serv.o http.o event.o conf.o
serv : $(SOURCE_FILES)
$(CC) -o serv $(SOURCE_FILES) $(CXXFLAGS)
%.o:%.cpp
$(CC) -c $(CXXFLAGS) -o $@ $<
clean:
rm *.o
rm serv
<file_sep>A static HTTP server
====
a HTTP server implementation used by epoll
## Intro... | 1dc5ed5d3904fb540244b3a94e24324fa041fe2a | [
"Markdown",
"Makefile",
"C++"
] | 9 | Makefile | jwFon/static_server | 7599d603538e5c8d3fda165c13c50881ecef3ca7 | 67761d75c6ec1f0cc26d89eb53292778d23d122c |
refs/heads/master | <repo_name>mjyc/tabletrobotface-userstudy<file_sep>/lib/cycle-chartjs.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symb... | b6ec567f47905906d457fa2b8589da7312e94a70 | [
"JavaScript",
"Markdown",
"Shell"
] | 26 | JavaScript | mjyc/tabletrobotface-userstudy | 17f08cbd3cb5bd4a90dec1befb979643c8061a5b | 8cff7b5a69a8f605263c2e7460e93c9cc6ee84ae |
refs/heads/master | <repo_name>kissinpublic/kissinpublic.github.io<file_sep>/js/scripts.js
$(window).load(function(){
var $container = $('#isotope');
// init
$container.isotope({
// options
itemSelector: '.photo-link',
masonry: {
columnWidth: '.grid-sizer',
gutter: 0
}
});
}); | d116c0249d62ebd0fc011140bb2a67df8a265e9b | [
"JavaScript"
] | 1 | JavaScript | kissinpublic/kissinpublic.github.io | 6f69d8de2fd36b67f3885c8dc283dc166abc3985 | e7ef910822ccc068289104d569d9e0e0111b5bcf |
refs/heads/master | <repo_name>swilcox/omz-custom<file_sep>/home/.zshcustom/themes/scw.zsh-theme
function prompt_char {
git branch >/dev/null 2>/dev/null && echo 'λ' && return
hg root >/dev/null 2>/dev/null && echo 'Њ' && return
echo '$'
}
local ret_status="%(?:%{$fg_bold[green]%}●:%{$fg_bold[red]%}●%s)"
PROMPT='[%{$FG[154]%... | cff9a13e6f44383a5eb2a3e523259d9599ca6f2d | [
"Markdown",
"Shell"
] | 2 | Shell | swilcox/omz-custom | 990d34b0b1ce9d176686a387a5d13de1b9d72d99 | da96442b1f6c27c1f054bfe0c5d4352daf494cf7 |
refs/heads/master | <repo_name>ArmanSadri/coinme-node<file_sep>/src/js/data/Identity.js
import CoreObject from "../CoreObject";
import Address from "../Address";
import Utility from "../Utility";
import URI from "urijs";
import Lodash from "lodash";
/**
* This class represents a User pointer.
*
* One user could possibly have more than... | c8c7d825139e20dab46c58b05b2c9b1160a623e0 | [
"JavaScript",
"HTML",
"Markdown"
] | 59 | JavaScript | ArmanSadri/coinme-node | b8bc43c41fa08cfdc3818c2aaea95e8461c06203 | e1c92dced00bcb23049609e9d2686cbaa582a909 |
refs/heads/master | <file_sep>source 'https://rubygems.org'
ruby '2.6.6'
gem 'rails', '6.1.1'
gem 'pg'
gem 'sass-rails'
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'rack-cors', :require => 'rack/cors'
gem 'rack-timeout'
gem 'rails_12factor', group: :production
gem 'puma', group: :production
| 4a4e7e0fe0c8964d93b95cce725197e43f8c5037 | [
"Ruby"
] | 1 | Ruby | simboutin/lewagon-chat | ec587b42d7d39d4a6d31fd7b1d79d6e9190222cc | dd21ce10e5288427b7a06a06ef53a6da1ecdf7c8 |
refs/heads/master | <repo_name>abdullahturel/mvc<file_sep>/Application/models/uye.php
<?php
class uye extends Model
{
public function uyeListe()
{
$query = $this->db->prepare("SELECT * FROM uyeler");
$query->execute();
return $query->fetchAll(PDO::FETCH_ASSOC);
}
}
?><file_sep>/System/Core/Model.php
<?p... | 0ff8ed8b80d9f56aa87c0537d7c8abbb94441b8f | [
"Markdown",
"SQL",
"PHP"
] | 15 | PHP | abdullahturel/mvc | 0f9c1bbc854ba5e11f9dfda07f953e502a587de5 | bae8cebcd3e2fe197074db5bf88ea559f9c63f9e |
refs/heads/master | <file_sep>package com.mybank.logic;
/**
* Created by <NAME> on 07.01.18.
*/
public class TransferException extends Exception {
public TransferException(String message) {
super(message);
}
}
<file_sep># myBank
myBank-Demo
<file_sep>package com.mybank.logic;
/**
* Created by <NAME> on 08.01.18.
*/
p... | fd1263a29155c61a3bd3983276b49c34ce66fc15 | [
"Markdown",
"Java"
] | 6 | Java | StanislawLeja/myBank | 9ad88c6d79a1a5fa8a38611f3f451a19e08749e5 | 6bed7252244be2e87ec1731386ec10a015d1c719 |
refs/heads/master | <file_sep># moodyReact: React Boilerplate
Check [ONLINE VERSION](https://moody-react.netlify.com/)
React Boilerplate with React Router and Webpack with Hot Reloading and precommit hook with linter and prettier to force clean code
Added Docker example for production deployments
Follow [Installation Guide](INSTALL.md)... | a1a64ce6d44d00b36005bfcefeae7ced6c485931 | [
"Markdown",
"JavaScript",
"Dockerfile",
"Makefile"
] | 17 | Markdown | moodydev/moody-react | 416d86dd69a58988ad1d4d8f815a2da741ee0a41 | 1d136b79db14083461727bb6ce7afb2a8141023e |
refs/heads/main | <file_sep>import requests
import unittest
class TestStringMethods(unittest.TestCase):
def test_create(self):
r = requests.post('http://petstore.swagger.io/v2/pet', data = {'id':'1616',"name": "valera"})
assert r.status_code == 200
def test_read(self):
r = requests.get('http://petstore.swagger.io... | 899a367c11c3e1d4899a5c6f67f50d88613c2c52 | [
"Python"
] | 1 | Python | isyts/QA | 53f054a9399517a635b0f3ae71d3f8ba3e9b66a3 | a20ce989b1585a42d4b8d34aff083334c2bdfe30 |
refs/heads/master | <repo_name>bhorkar/udacity_item_catalog<file_sep>/populate_database.py
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import datetime
from db_setup import *
class Populate_database:
engine = create_engine('sqlite:///ItemCatalog.db')
Base.metadata.bind = engine
DBSession = se... | 32f679af3357dec73ead210fb63e220988445249 | [
"Markdown",
"Python",
"Text"
] | 6 | Python | bhorkar/udacity_item_catalog | 162090204f4fc5f565e84fc60e5bb5b2ffbf6445 | 2b63fdeb6611e5784927cd11a9de33ff9093301c |
refs/heads/master | <repo_name>ruhenheim/kadai-html<file_sep>/main.js
$(document).ready(function() {
alert("DOM ready!");
});
| 647c8e79b1bf0eb7571fde6529930300b4254b3f | [
"JavaScript"
] | 1 | JavaScript | ruhenheim/kadai-html | 54e9ef1047a6339d5d6cf45214569790c81b0cc5 | c8ad188e822a12cec5c2ebfb71e662315f21ae85 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='img/mod.png' rel='icon' type='image/x-png'/>
<title>Clash of Clans - XMOD Games Cheat</title>
<script src="j... | 374b97bed5e5c4ec5482bf32c16981252222365c | [
"PHP"
] | 1 | PHP | instagen/Generate-Instagram-Follower-for-Free | 460e2383bdc9310c075e9ee832c18f8637f1bd22 | d180e33943372c51772a3faea70cf9bc7dfe63a6 |
refs/heads/master | <repo_name>pgostovic/webapp<file_sep>/src/server/services/authenticate.ts
import { search } from '@phnq/model';
import { IAuthenticateParams, IAuthenticateResult } from '../../model/api';
import Session from '../../model/session';
import Connection from '../connection';
import Service from '../service';
const authenti... | 05815f531ad6478d8add84ff85cdf1cfbbba2471 | [
"Markdown",
"TypeScript"
] | 17 | TypeScript | pgostovic/webapp | 15b28b7897da344f15fbb8c12e31c82909f1a9e3 | 463951033d36471375eea90033e2a73f137a7f8c |
refs/heads/master | <repo_name>traviswhatley/Change-Maker<file_sep>/ChangeMaker/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChangeMaker
{
class Program
{
static void Main(string[] args)
{
ChangeMaker(3.18);
... | e00bf4111e85b2cda578027dd90209c79ef599ea | [
"C#"
] | 1 | C# | traviswhatley/Change-Maker | 90367e9024cc995bc2d3442d7156cfa636117edb | c1a2b94e98867d861ebd2900ad545b84bb051bf6 |
refs/heads/master | <repo_name>prfraser/lodash_challenges<file_sep>/indexBy.js
/*
Index By
Given a list, and a property name, returns an object with an index of each item.
Example:
const stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}];
indexBy(stooges, 'age');
=> {
"40": {name: 'moe', age: 40},
"50": {name: 'larry', age: ... | 4652e68b673673fcf04fea34c1a8bf0a2e3c68ff | [
"JavaScript"
] | 2 | JavaScript | prfraser/lodash_challenges | b477184932ce78e30366f731f55e6fdcc5b1a565 | f4ba8796c02933bcc24c1f40fb30eff45740d22c |
refs/heads/master | <file_sep>describe "Spotify::API" do
describe "#image_data" do
let(:image) { double }
it "reads the raw image data" do
api.should_receive(:sp_image_data) do |img, img_size_pointer|
img.should eq(image)
img_size_pointer.write_size_t(8)
FFI::MemoryPointer.from_string("image data")... | 12c64befc08d3675a12d451b2ba75b57b369a275 | [
"Markdown",
"Ruby"
] | 12 | Ruby | victhevenot/spotify | 4fbb16d212f8aee0e0fdd5b18b17f09b8e1a743b | f5415a43cb55bed6bbcc90a919a028aded37e421 |
refs/heads/master | <file_sep>#pragma once
class AFD
{
};
<file_sep>#include "AFD.h"
#include <fstream>
#include<tuple>
#include<iostream>
#include<string>
AFD AFD::CitireDinFisier(const std::string& Fisier)
{
int Contor1, Contor2, Contor3, Contor4;
std::string Aux, Aux1, Aux2;
std::ifstream Fis(Fisier);
std::vector<std::string>... | 4698707f5f1ee4ba1e23fd919fe86763da7c6934 | [
"C++"
] | 14 | C++ | Theodorx/LFC | 079a49e2a089f103071e0168f6f6d3204acad397 | 51053ff34a1a56bebff2bc5e63cb4716d84d612c |
refs/heads/mac | <file_sep>Install brew
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
Install zsh and oh-my-zsh
```
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
Install missing plugins for zsh
``... | ed10de841b2fd055c4c1d4346b6925eb9a56d31c | [
"Markdown",
"Shell",
"Lua"
] | 9 | Markdown | SargeKhan/dot-files | 9cfe322b0453e5988ede5ac67b4bb726fae2aa4e | 839c7e322895e4294dcc6fe2588041945d3b34ee |
refs/heads/main | <repo_name>VladyslavSarbash/goit-react-hw-04-hooks-images<file_sep>/src/components/API/API.js
const MY_KEY = '23120149-b9b49e6d85d17734323f46136';
const BASE_URL = 'https://pixabay.com/api/';
export default function FetchAPI(searchInput, page = 1) {
return fetch(
`${BASE_URL}?q=${searchInput}&page=${page}&key=${... | b394e39e3074f11a475cb7376b1734097399054c | [
"JavaScript"
] | 7 | JavaScript | VladyslavSarbash/goit-react-hw-04-hooks-images | e881cd45ff6721656ee7b723ddb727f3c652e6bf | 8859217a7cf8cc96ab5b1ea07b93813b3b30005d |
refs/heads/master | <repo_name>svekr/asset-bundles<file_sep>/Assets/Scripts/Editor/BuildTools.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Diagnostics;
public class BuildTools {
[MenuItem("Tools/Build Asset Bundles Standalone")]
public static ... | 59e71db234d3c8705fea61b993db1984e696192f | [
"C#"
] | 2 | C# | svekr/asset-bundles | 4db97fe88594af59c36af795443cfbf3f86187d2 | 208eecf2f78c1c762202743ceb28e63e952d1bbc |
refs/heads/master | <repo_name>jjrun1/s2-portal<file_sep>/business-api/src/main/java/s2/portal/factory/SmtpSessionFactory.java
package s2.portal.factory;
import s2.portal.data.Feature;
import s2.portal.service.FeatureService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.... | 04d0beed4af3a879562c354b78f79238a718dbd8 | [
"SQL",
"Markdown",
"Maven POM",
"Java",
"Text",
"Dockerfile"
] | 71 | Java | jjrun1/s2-portal | bc7f1b248c7fc4d34c680a667b597b0d4b73d045 | d9fa042882fd639783e9ae061690cb5b8c710c02 |
refs/heads/master | <repo_name>ddsky/zeroclickinfo-spice<file_sep>/share/spice/spoonacular/spoonacular.js
(function (env) {
"use strict";
env.ddg_spice_spoonacular = function(api_result){
var query = DDG.get_query(),
query_encoded = DDG.get_query_encoded();
var searchTerm = query.replace(/recipes|recipe/i,'').tri... | 544a82eda33f5d34782e99f7306e582eca4b0195 | [
"JavaScript"
] | 1 | JavaScript | ddsky/zeroclickinfo-spice | fa8d8fdcc24d7ec837053e0b181b4858a342b67d | 03f92fde2a82a93788a475690d61f75592b870f6 |
refs/heads/master | <repo_name>IvanShumilov/HWRoom<file_sep>/app/src/main/java/ia/shumilov/sberbank/ru/hwroom/activityes/ShowSettingNote.java
package ia.shumilov.sberbank.ru.hwroom.activityes;
import android.arch.persistence.room.Room;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivit... | 63bd6854482df2c525f831671d9f8d413580c7d5 | [
"Java"
] | 3 | Java | IvanShumilov/HWRoom | c1be5f98464b51a3c77dcb23cf56990b1375d22b | 07e37bbd4402f7250ac323af1e84b9759a3aa580 |
refs/heads/master | <file_sep><?php
// Constantes conexión con la base de datos
define("server", 'localhost');
define("user", 'tutosWeb');
define("pass", '<PASSWORD>');
define("mainDataBase", 'tutosWeb');
// Variable que indica el status de la conexión a la base de datos
$errorDbConexion = false;
function userLogin($data,$dbLink){
// ... | fa94fccf13606f05d00dba46ec6939d5f0a5be16 | [
"PHP"
] | 4 | PHP | CazaresLuis/ui_php_y_mysql_ajax | a747220d8c37a2bd90c49508d45dfcfacdbb0e46 | 09422f7fcc5c3841c80cfae8cd1d43844ca12be1 |
refs/heads/master | <repo_name>BlinfoldKing/Nature-of-Code<file_sep>/README.md
# Nature-of-Code
my implementation and practice based of the book "Nature of Code" by Shiffman
<file_sep>/sketches/chapter2/chp2.js
function draw() {
if(isReset)
reset()
ellipse(0, 0, 100)
}<file_sep>/sketches/chapter3/chp3.js
function draw() {... | 2de4dda52c192faa2472562ba5253a1991229474 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | BlinfoldKing/Nature-of-Code | c69a0e1020b50291fe4e333eee635dd8a9d8fef8 | e1e8c744ed2f0e28aa188207f95ce3c6a4463aff |
refs/heads/integration | <file_sep>Geocoder.configure(lookup: :test, ip_lookup: :test)
Geocoder::Lookup::Test.set_default_stub(
[{
"coordinates" => [55.79288, 49.11048],
"address" => "Bauman St, Kazan, Russia"
}]
)
Geocoder::Lookup::Test.add_stub(
[55.78787607694294, 49.12356007675169], [{
"coordinates" => [55.7878760769429... | 9d384ded3c1fb4d43c16e5fab2a1c4803b3d6da8 | [
"JavaScript",
"Ruby"
] | 67 | Ruby | Ryazapov/hot-coffee | 42ecccf1a81176bd436ab1d060cd9ac6030067f6 | 743a448f917f706116741d24029b0186c3bb8653 |
refs/heads/master | <file_sep>package game.controllers.examples;
import game.controllers.HeroController;
import game.system._Game;
import game.models.Game;
import java.util.List;
public final class RandomNonRevHero implements HeroController
{
private int action;
public int getAction() { return action; }
public void init() { }
publi... | f5c2509c98d3599438e1e587ed26a1113ed56cb6 | [
"Java"
] | 7 | Java | erikhiggy/pakupaku | 2542084634e68324eda636e838eb8db6b7d60975 | f4089aedc880d53f0f6890a0c3fc6072db395fb2 |
refs/heads/master | <file_sep>/* P3 materials example - see SetMaterial and fragment shader
CPE 471 Cal Poly Z. Wood + <NAME>
*/
#include <iostream>
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <Math.h>
#include "GLSL.h"
#include "Program.h"
#include "MatrixStack.h"
#include "Shape.h"
#include "BoundingSphere... | 531dd9c0d129108de95aa745b2309f2503726c57 | [
"C++"
] | 3 | C++ | negiusti/Final-Project-471 | 4640c9deec94515ee30d91f664d04aaea1004104 | 5fefbc89d66751c79731185ac6623f3ce76932c5 |
refs/heads/master | <repo_name>pahlevikun/TMdb<file_sep>/app/src/main/java/com/udacity/themoviestage1/DetailActivity.java
package com.udacity.themoviestage1;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.Intent;
import android.net.Uri;
import android.support.design.widget.AppBarLayout;
im... | fcb6fa755976fc91cb27b061068fe2c8da69d92b | [
"Java"
] | 10 | Java | pahlevikun/TMdb | 622a36f204ca86f51b610bf7bddd951888a2ff1d | 79b788f4ea1b050fd68f18222cbef4f0ef9e8a01 |
refs/heads/master | <file_sep>ServiceManagerID=e8a07142-c74c-4f32-ad79-0d53b9853c8e
TransportName=TCP
PeerTypeId=HARDWARE_SERVER
UserName=thomm
Port=3121
Host=127.0.0.1
OSName=Windows 10
ID=Local
AgentID=e8a07142-c74c-4f32-ad79-0d53b9853c8e
Name=Local
ServiceManagerID=e8a07142-c74c-4f32-ad79-0d53b9853c8e
TransportName=TCP
PeerTypeId=LINU... | baa77142a3de97e07129bdd92e8cb13d25b187c7 | [
"C",
"INI"
] | 3 | INI | thommauldin/SPI_ADC_Driver | 4488f4365185e660cf793366b590ca36575d6a74 | fb773c5c1946ce6f68136b4fdc0603b69ee41b36 |
refs/heads/master | <file_sep>#!/bin/bash
rm -rf result
mkdir result
cd src
javac Main.java
time bash ../test.sh
echo -e "\n### 期待値との差異 ###"
diff ../data/out ../result
qnum=$(ls ../data/in/ | wc -l)
oknum=$(($qnum - $(diff ../data/out/ ../result/ | grep -o -i diff | wc -l)))
if [ $oknum -eq $qnum ]; then
echo "差異なし"
fi
echo -e "\n#... | 762b331d1a80bf49e9895450e232a6deb1e1bb36 | [
"Markdown",
"Shell"
] | 3 | Shell | asjuri/CodeReview1 | 2d222774a428bf7aa7fe167376357876c22cec5c | 47c533679ddebfa4e499f08a4b1e81e72b7e5158 |
refs/heads/master | <repo_name>AkshadaRK/Dotnet<file_sep>/database/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace database
{
class Program
{
static void Main(string[] args)
{
Dc d = new Dc();
while (... | 7e43b862b76eac81d8b94bdc847221678020f3ce | [
"C#"
] | 2 | C# | AkshadaRK/Dotnet | 4c82df1a4a23f83a8347321558e2ffee099e73cb | 4e19615f867bb6b3604aec6a4799885e8c31ac11 |
refs/heads/master | <repo_name>svaarala/minisphere<file_sep>/src/debugger/source.h
#ifndef SSJ__SOURCE_H__INCLUDED
#define SSJ__SOURCE_H__INCLUDED
typedef struct source source_t;
source_t* source_new (const char* text);
void source_free (source_t* src);
int source_cloc (const source_t* src);
const char* sou... | b2b2590a5a7b95c9b8e1aae5f49ae4c8a479cd0c | [
"Markdown",
"JavaScript",
"Makefile",
"INI",
"C#",
"C"
] | 141 | C | svaarala/minisphere | 87ae7f3c81808e90fec59f59d09f134adb852e28 | 539d4ef6b020e7873c255e7a6b747b7796fa0dd1 |
refs/heads/master | <repo_name>jm-cruz-d/pipelines-project<file_sep>/src/cleanWS.py
def subChar(DF, column, old, new):
DF[column] = DF[column].str.replace(old, new)
return DF
def changeType(DF, column, types):
DF[column] = DF[column].astype(types)
return DF
def combCol(DF, nameNew, column1, column2):
DF[nameNew] = D... | b068547980a428c5b2532fc552113703725d5cfe | [
"Markdown",
"Python"
] | 5 | Python | jm-cruz-d/pipelines-project | ad1ef1c45f3762f3e2738d00a45d7fc5f4f5b86e | 3d4ecb1656636610c721bfc661fa274c0f0e2146 |
refs/heads/master | <repo_name>islamshu/maba<file_sep>/app/Http/Controllers/SliderController.php
<?php
namespace App\Http\Controllers;
use App\Slider;
use Illuminate\Http\Request;
class SliderController extends Controller
{
public function __construct()
{
$this->middleware(['permission:read-slider'])->only('index');
... | 26fa6b73a7688e2d3950d4666feeeb76925d65af | [
"PHP"
] | 5 | PHP | islamshu/maba | 9c0cf048e8d7ff939704ec4a2dd206b2829bb079 | f52b5a7ad4bbb30ae5a2c15127efa3d1a3d1113f |
refs/heads/master | <file_sep>$( function () {
$('form').submit( function (e){
e.preventDefault();
var programType = $('.programType').val();
var educationLevel = $('.educationLevel').val();
if (programType === null && educationLevel === null) {
console.log('all logos light up');
$('.logoWrapper')... | 87984e3c6d3a5a8940a901e9022a347a44546cde | [
"JavaScript"
] | 1 | JavaScript | ryeh88/Society-Education-Programs | ad195de83352b6c7c2119ee82c07ab94b27af111 | fd9e7fb6880c8b149bcc903e8e97aab84c0d6a7f |
refs/heads/master | <repo_name>nolanjacobson/thegraph-cryptogoats<file_sep>/cryptogoats-nextjs/components/CryptoGoats/index.js
export { default } from './CryptoGoats'
<file_sep>/cryptogoats-nextjs/pages/index.js
import React, { Component } from "react";
import { gql } from "apollo-boost";
import { ApolloClient } from "apollo-client";
impo... | b243f66f10a6f91b21da1ef89cb287ec4fd474a6 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | JavaScript | nolanjacobson/thegraph-cryptogoats | 0b66550689d70e92647092b29cdb756b214a5f2e | 4eef5219fb13b6ed914a979ab695b81c2aeb2ddd |
refs/heads/main | <file_sep>import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router';
import Home from '../views/root/Home.vue';
const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'Home',
component: Home,
redirect: '/index',
children: [
{
path: '/index',
name: 'HomeVi... | 6539c1d6e6f26bddb449f1699b7551afc3eee90b | [
"TypeScript"
] | 5 | TypeScript | ssieie/zx_blog | b45365bb80bb3f0609221e15794758dd98804d48 | 587ab797ca0aaf33d2f3f8da9e40006cc8320f3c |
refs/heads/master | <repo_name>gmavkitx/vwkit-matrix<file_sep>/matrix-module-common/src/main/java/matrix/module/common/helper/Assert.java
package matrix.module.common.helper;
import java.util.regex.Pattern;
/**
* @author wangcheng
*/
public class Assert {
/**
* 判断不为空
*
* @param content 内容
* @param varName 参数名称... | 4bbb268891f8b5e402f3e4e829b35cbe0c6b88e1 | [
"Java"
] | 3 | Java | gmavkitx/vwkit-matrix | 7b72f1aa9dc213f15818d320001772fc1f6e0e95 | e08385fcaaa3eecc5c4692d0cc752436bf0c3d55 |
refs/heads/master | <file_sep>package br.com.service;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.google.gson.JsonObject;
import br.com.queue.RedisMQ;
import br.com.repository.model.DefaultResponse;
@Service
public class PubService {
... | 64cf137774bcaa5c7378a9566a9a936af3fcf7fa | [
"SQL",
"YAML",
"Markdown",
"INI",
"Java",
"Dockerfile"
] | 12 | Java | ManoelSilva/redis-pubSub | 4eaea0df6978b44dc5c46266a6577cbc5e7472d5 | dbc8e0f134f61439cf3231096c80834e26a6c07d |
refs/heads/master | <file_sep>import View from 'beff/View';
import template from 'hgn!../templates/zoom-slider';
export default View.extend({
mustache: template,
init({ cropWidth, cropHeight, allowTransparency, initialScale }) {
this._cropWidth = cropWidth;
this._cropHeight = cropHeight;
this._initialScale = initialScal... | e989eaca92051c69c7ae7f2e3be97cd1d8fa3850 | [
"JavaScript"
] | 1 | JavaScript | mrjoelkemp/helicropter | 231fe405f613db66f82c1f3eef986ce5e0e4c0f6 | acf64fbbd62fae333b13f00b37149440c517205c |
refs/heads/master | <repo_name>ZhangCrystal/react-redux-promise-demo<file_sep>/app/index.js
import React from 'react';
import {createStore, applyMiddleware, compose} from 'redux';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import promiseMiddleware from "redux-promise";
import rootReducer from "./reducers";
imp... | 400e72c972690b2b73564476ffde39b70c5b3cdb | [
"JavaScript"
] | 1 | JavaScript | ZhangCrystal/react-redux-promise-demo | a3da0c7629c328cfd322d8eb64a4dfb44a04fa7d | 7dc6174b6767878431ede0d050e94c538c0c5995 |
refs/heads/master | <file_sep>import '@testing-library/jest-dom';
import { getHeroeById, getHeroesByOwner } from '../../base/08-imp-exp';
import heroes from '../../base/data/heroes';
describe('Tests in heroes functions', () => {
test('Must return an hero by id', () => {
const id = 1;
const heroe = getHeroeById(id);
... | 7fb84c1029c64688a42256c35ea2894b266be547 | [
"JavaScript"
] | 4 | JavaScript | Ernech/Counter-App-React | c566f64311b8958e781554745fa0dccb0431da6a | f87f50f048f5497b122246fd1e72ba2361d06030 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
devise_for :users
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root to: "pages#home"
get 'bookings', to: 'bookings#index'
resources :bikes, only: [:index, :show, :new, :create] do
resources :bookings, only: ... | 3fb276c71aa8f385592bbb7388f6d585eaeda584 | [
"JavaScript",
"Ruby"
] | 7 | Ruby | akspyro/bikebnb | cd3815e0b85dd5421cb0698b60738fa82037fc7b | 57e514fa59b91c9475ac93df4916d1bec3541d9b |
refs/heads/main | <repo_name>ocamlmycaml/adityadharacom<file_sep>/src/lib/firebase.ts
import { initializeApp } from 'firebase/app';
import { getAuth, GoogleAuthProvider } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
const firebaseConfig = {
apiKey: 'AIzaSyCR6gf0bRO5Jixgm1p3WEOnksaKyG59LkY',
authDomain: 'my... | 250d49397b9b008ef01bc56b1f299544af66a370 | [
"TypeScript"
] | 1 | TypeScript | ocamlmycaml/adityadharacom | fa4950b4d3e7b0b3da94b921d80ca9c839bf03e5 | 9471e6b9957281541451eb6fe2b7dbe9e175fe9a |
refs/heads/master | <repo_name>Szpansky/quiz<file_sep>/app/src/main/java/com/apps/szpansky/quiz/Tasks/GetQuestion.java
package com.apps.szpansky.quiz.Tasks;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentManager;
import com.apps.szpansky.quiz.ShowQuestionActivity;
import com.apps.szp... | 8e8bb9ef4a89c52a7c749b7b3151c67957a241ce | [
"Java"
] | 2 | Java | Szpansky/quiz | 1f220224356a1d4a55ba92318834ad69128411b6 | 5024f91332e1cd59a46a64835d756944b4a1b3ab |
refs/heads/master | <file_sep>#Load the data
TrainData <- read.table("C:\\Users\\ivyzh\\Desktop\\Machine Learning\\HW1\\GradedHW1-Train-Data.csv",
header=T,sep=",",stringsAsFactors = F,na.strings="")
ValData <- read.table("C:\\Users\\ivyzh\\Desktop\\Machine Learning\\HW1\\GradedHW1-Validation-Data.csv",
... | 7c7f24dbb1aebd287812eadecf3fb08184871855 | [
"R"
] | 1 | R | ivyzhou0220/Machine-Learning-1 | 48e6f452177189d36cdae98fd5a6f5a74b98604c | 2ec866dc7cdc8f58bbc132d10b1126ee42dd0e00 |
refs/heads/master | <file_sep><?php
namespace frontend\models;
use yii\db\ActiveRecord;
/**
* This is the model class for table "topic".
*
* @property int $id
* @property int $area_id
* @property int $type_work_id
* @property string $topic_name
*
* @property Keyword[] $keywords
*... | 5d9ea7e14a7b3327ae604f3de97a32cf2726caa3 | [
"PHP"
] | 16 | PHP | Pushkarev-Ilya/FOS | 848229adac615d9c0d6e8a76e00bee7049825d31 | e7904f01f70335941507b88a5e5f3b3dc1e9a5fc |
refs/heads/master | <file_sep># WalkCalculator.github.io
walk distance calculator
<file_sep>package com.WalkCalculator.demo.entity;
public class WalkDetailDto {
private int distance;
private String dateTime;
private int personId;
public int getDistance() {
return distance;
}
public void setDistance(int distance) {
this.d... | aa97b1e097db3dce76c07c50f9a46f200570416f | [
"Markdown",
"Java"
] | 4 | Markdown | ashutoshnp/WalkCalculator.github.io | de74c2bb59a7bbc98984d159ab699409cdbb4df3 | 038df4716f18d8d242aced436f055b19124f45cc |
refs/heads/master | <file_sep>function showMessage(m){
alert(m);
}
showMessage("Zure datuak:") | 0d4eb170319efce61a08662e7190ce67ec07c91a | [
"JavaScript"
] | 1 | JavaScript | Jauregi13/Lab01JSF | 37618416343df002f1044bc80846905ec3dcf991 | 72514a99fc822a17c6e5a51de4724fdb39686dfc |
refs/heads/master | <file_sep>CFLAGS = -Wall -Werror
DFLAGS = -g
all:
gcc shell.c -o shell
shell:
gcc shell.c -o shell
gdb:
@echo "Entering GDB"
gdb ./shell
leaks: shell
@echo "Calling Valgrind to check for leaks"
gcc shell.c -o shell && valgrind ./shell
clean:
rm -f shell
<file_sep>#ifndef shell_h
#define shell_h
#include <s... | 28eadb584616fc111a00d6293a587a9802ee4c86 | [
"C",
"Makefile"
] | 3 | Makefile | p0dxD/shell-2 | d358c5937183b1ed12ad0171ab69c95d4b71566e | f1b6a7727ed74f104a2dec82390b96297cf5f8ad |
refs/heads/master | <repo_name>somenumboola/usersgate<file_sep>/README.md
# usersgate
[](https://img.shields.io/badge/development-In_progress-yellow.svg)
[](https://img.shie... | 913a6b2106960153eb6de934d60a4c8b4576ce9c | [
"Markdown",
"PHP"
] | 14 | Markdown | somenumboola/usersgate | 832b8f809fbc9cff82f1a90ccb364adf05c81e4e | 0608a682d7812d0bc0991fae012cdac10b86c6ac |
refs/heads/master | <repo_name>aravindanil816git/challenge-dictionary-lookup<file_sep>/index.js
import fetch from 'node-fetch';
const srcTxtUrl = "http://norvig.com/big.txt";
const specialChars = /[`~!@#$%^&*()_|+\-=?;:'"0123456789\n,.<>\{\}\[\]\\\/]/gi;
const dictLookUpBaseUrl = 'https://dictionary.yandex.net/api/v1/dicservice.json/loo... | 210cb7f72f566bd01c5f0e517750a3122f934f32 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | aravindanil816git/challenge-dictionary-lookup | f868594234523f761fb098d6de6657fef17343cc | 201953e1dc53cc7b335a9c5d0b6590f54ae23b28 |
refs/heads/master | <repo_name>rew4332/contestApp<file_sep>/src/main/java/com/example/loveyoplus/myapplication/Test9Activity.java
package com.example.loveyoplus.myapplication;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import andro... | 754fc19cf40b4254f27e5bb3362e04b98810ec55 | [
"Java"
] | 3 | Java | rew4332/contestApp | 02cd30f77d41f0792ef937df60043f82383628e5 | 7d12a09f408966bb70683fe519dedea872cd9a17 |
refs/heads/master | <file_sep>import {child_process_tools} from "./index";
let cmd = new child_process_tools({type: 'console', cwd: './'})
cmd.spawn('dir')
cmd.spawn('mkdir test')
cmd.spawn('cd test')
// cmd.end()
cmd.on('command', (d) => {
console.log(d);
});
<file_sep>'use strict';
import {spawn} from "child_process";
import {Ev... | 45f820ad31075123f5fb3ae0f4f3f8e00b6a6dd5 | [
"TypeScript"
] | 2 | TypeScript | RoueSu/node_child_process_tools | 3a45c8e5ee52ab881172148e855a5e967df920cc | af016df597fa9c88a07161cbe0f5b8e0ab3795c9 |
refs/heads/master | <repo_name>fireworld/Mvp<file_sep>/app/src/main/java/cc/iceworld/mvp/toolbox/net/Callback.java
package cc.iceworld.mvp.toolbox.net;
import android.support.annotation.NonNull;
/**
* Created by cxx on 16/7/13.
* <EMAIL>
*/
public interface Callback<T> {
void onStart();
void onSuccess(@NonNull T t);
vo... | 3fc15c7ea721006a08d0c6e0b4e767c9bf8a3fdb | [
"Java"
] | 8 | Java | fireworld/Mvp | 81ec82ae892a0b198c8c6f13d76758c04874451c | e0ad6a021cd951400e516018e5be525e3eaf3375 |
refs/heads/master | <repo_name>Server4001/in-place-with-mongoid<file_sep>/app/models/user.rb
class User
include Mongoid::Document
include Mongoid::Timestamps
field :first_name, type: String
field :last_name, type: String
field :bio, type: String
field :country, type: String
field :privacy, type: Boolean
field :birthday, ty... | c02260c0014bf2b1d6f09e9afcd1e8acf7272153 | [
"Ruby"
] | 1 | Ruby | Server4001/in-place-with-mongoid | df89c3ee92214dbf876b92ce9a88fac1c501ed95 | 136566f659ebe06af6631527719870f81b24a5bc |
refs/heads/main | <file_sep>
# <NAME>
def main():
#escribe tu código abajo de esta línea
papel = int(input('Dame el número de papeles:'))
plumones = int(input('Dame el número de plumones:'))
maximo = plumones * 35
print('El número máximo de tarjetas que se pueden hacer es:'+ str(maximo))
if __name__ == '__main__':
... | 708ec0aa2835218bd2e44ac84c24390583f9c09c | [
"Python"
] | 3 | Python | C-CCM-TC1028-102-2113/tarea-3-programas-que-usan-funciones-Diegozaldivar | 2719b0f03988d6d6e7bcb6f3bc13cc2c7305865e | ab00ee040436f4909496949e3564434e328fc52d |
refs/heads/master | <repo_name>lotharJiang/Question-Answering-System<file_sep>/answer_questions.py
import csv
import gensim
from gensim.models import Word2Vec
import utils
import json
import math
import numpy as np
import spacy
import re
from nltk.tokenize import word_tokenize, TreebankWordTokenizer, sent_tokenize
import sys, getopt
from ... | ffcc0366b6e14d75f42fc3edc9dff165c82a579d | [
"Markdown",
"Python"
] | 6 | Python | lotharJiang/Question-Answering-System | 2692f5799af7c75c2cd3ee8ff3064d6ab23776b1 | 5d9d89d6d2c8544b649db7f351d13cc26d588415 |
refs/heads/master | <repo_name>dmbarrett/gatsby-starter-mdblog<file_sep>/src/pages/blog.js
import React from "react"
//import { css } from "@emotion/core"
//import { rhythm } from "typography"
import Layout from "../components/layout"
export default () => {
return (
<Layout>
<h1>This is de blog mon.</h1>
</Layout... | 0ba5657c4fa01cfc4020a34b650a7aaad12c8f00 | [
"JavaScript"
] | 4 | JavaScript | dmbarrett/gatsby-starter-mdblog | 208d5b3208ef2726a4cc3c18299c62e85e7e8900 | 9465eb65cabf4d6411317117feedce3705661afa |
refs/heads/master | <file_sep>import { PermissionTable, PermissionList } from '../models';
export function createPermissionTableWithStatus(
allow: boolean
): PermissionTable {
return {
read: allow,
create: allow,
delete: allow,
update: allow,
};
}
export function createPermissionsList(allow: boolean): PermissionLis... | 05dfec6f197502365f3cabc7dfe4fa84637df39a | [
"TypeScript"
] | 64 | TypeScript | alexander-shch/xtra-server | 74f072b7403ba5546f4be17a28fb117a08d57468 | ede8d64c62d281edb2321e9b258a2d37d4dd4f76 |
refs/heads/main | <file_sep>import styles from '../styles/Header.module.css';
export const Header = () => {
return (
<header className={styles.header}>
<strong className={styles.strong}>Torre</strong>
</header>
)
}<file_sep>This is a [Next.js](https://nextjs.org/) project
To run the development server use:
```bash
... | 6fc57c1d28d19abfe42be00637da8760e00fe25d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Alberthor47/TechnicalTets | 72dd813109026c23638f6d49065e2551c741c029 | 8734585245392d70051ce94c244b031b683aaefc |
refs/heads/master | <repo_name>captjvmoore/noob-_-brother<file_sep>/main.js
// SLIDESHOW
var slideIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
slideIndex++;
if (slideInde... | f4f17193077096df5835ae1287e6af29f2a12cdf | [
"JavaScript"
] | 1 | JavaScript | captjvmoore/noob-_-brother | 68d5fd067a8004035f9383297676a4f96c9d136e | 3fc17147f796288a9afb0cdff0750192bb171ff1 |
refs/heads/master | <file_sep>var nophp_server = "https://nophp-server.herokuapp.com/server.php"; // change this to your own nophp server
function nophp(code, server) {
var xhttp = new XMLHttpRequest();
xhttp.open("POST", nophp_server, true);
xhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhttp.onl... | 9be7f585506518d2997473163550c32359d45df5 | [
"JavaScript",
"PHP",
"Markdown"
] | 4 | JavaScript | Bluppie05/nophp | a8c57771df6d3c030ef49d92c65664a3925302aa | 8cbd2205b2837d5e8ca6dff9be50a643485c8a1d |
refs/heads/master | <file_sep>import paho.mqtt.client as mqtt
import json
def on_connect(client, user, data, flags, rc):
print("Connected with result code" + str(rc))
client.subscribe("chat")
client.publish("chat", json.dumps({"user": user, "say": "Hello, anyone!"}))
<file_sep>flag_i = 0
flag_i_group = 0
flag_i_it = 0
flag_i... | caca9d12d8ba567dd7174f8f4b93b68a4fdd8989 | [
"Python"
] | 3 | Python | ASaiun/wx_qq | 3dd1f4f6f515e909ad753bd09a2217604e078379 | edcc95ec08887bfa6ac2ed6597f5d07ba304650d |
refs/heads/master | <repo_name>isaachaberman/DeepGoogol<file_sep>/hpc/eval/q_b21_t101010_eval.sbatch
#!/bin/bash
#SBATCH --job-name=qb21t101010
#SBATCH --nodes=1
#SBATCH --cpus-per-task=2
#SBATCH --mem=12GB
#SBATCH --time=24:00:00
#SBATCH --output=slurm_q_b21_t101010_%j.out
#Run.A
PYTHONPATH=$PYTHONPATH:. python agent_eval.py \
--ag... | a9a93f0a2dafc592bd3f3efa69670cfd0bcb0b95 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 6 | Shell | isaachaberman/DeepGoogol | dda5744e0d9f09f45d043ae5f41e986b71e87be0 | 8de86a4d406e3e1d2fc6e5bfcb67155ddc7d6cbf |
refs/heads/master | <repo_name>MosheBlumbergX/JenksTest<file_sep>/source.py
import urllib2
import os
username = 'testss'
server = '@<IP>:'
pathtop = '/auto/artifacts/'
dir = os.listdir(pathtop)
def versionname():
print "printing all paths of NimOS"
for directory in dir:
if directory.startswith('package-dev_rel'):
... | 9fd793aaa72716c2c89a05eb4b077a49b25a57a1 | [
"Markdown",
"Python"
] | 2 | Python | MosheBlumbergX/JenksTest | a699ecb700309705f32873d5da8adebc064fba07 | a2495af0363c6bda122ec6b1222a6bc2a38b2023 |
refs/heads/master | <file_sep>#include "stm32f10x.h"
static void NVIC_Config(void){
NVIC_InitTypeDef NVIC_Struct;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
NVIC_Struct.NVIC_IRQChannel = TIM1_CC_IRQn;
NVIC_Struct.NVIC_IRQChannelPreemptionPriority = 1;
NVIC_Struct.NVIC_IRQChannelSubPriority = 1;
NVIC_Struct.NVIC_IRQChannelCmd = ... | 2c56b2e44e6054d4c5efe7daa9407b08962cb22b | [
"Markdown",
"C"
] | 7 | C | Sean-Huan/STM32-TIM-DetectPWM | bbffb9da69137817b97f8348ce9dafb5911de0ae | 0ad3012cc9fdbf311ab249f5444843dee96b869a |
refs/heads/main | <repo_name>z0mi3ie/nightnick<file_sep>/src/components/NightNickContainer.js
import React from "react"
import LinksList from "./LinksList"
import Header from "./Header"
import bubble1 from "../images/tiger_bubble_1.png"
class NightNickContainer extends React.Component {
state = {
links: [
{
... | 2e6eb9a7ad2285e16b581cdd31c2fbe05af3b7a8 | [
"JavaScript"
] | 4 | JavaScript | z0mi3ie/nightnick | c99c4ffc764caf8bab9ab5ff5bc815ce687cb593 | 0ce1b90366997549dc0331aad79bfc5f9485491e |
refs/heads/master | <file_sep>class CommentsController < ApplicationController
before_action :require_user, only: [:new, :create, :edit, :update] # or except: [:index, :show]
def create
@post = Post.find(params[:post_id])
@comment = Comment.new(comment_params)
@comment.post = @post
@comment.user = current_user
if @comment.sav... | 4befb6ea6994beb80bab71ad027373dbb12304c8 | [
"Markdown",
"Ruby"
] | 8 | Ruby | jasonrobinett/mypostit | 1389c6845e38ea7919ba96882c3e3aeb4a663c9d | 9ec7209d5d5921d38411b32097b987813b641b60 |
refs/heads/master | <file_sep>const express = require('express');
const app = express();
const notebooks = require('./routes/notebooks');
const home = require('./routes/home');
const mongoose = require('mongoose');
app.use(express.json());
app.use('/api/notebooks', notebooks);
app.use('/', home);
mongoose.connect('mongodb://localhost/no... | 63d55780915a92dc6d36d5c8418a1137a9dec2d8 | [
"JavaScript"
] | 2 | JavaScript | chlodnywiatr/TAUtology | d3af1a8387a465222b6b47b2bde19aff0ff6d978 | 8128b6d9f6bd263975391f921e9836d54a183ab9 |
refs/heads/master | <file_sep>#!/bin/bash -x
echo "Enter Number"
read num
for (( i=2; i<=num/2; i++ ))
do
if [ $((num%i)) -eq 0 ]
then
echo "$num is not a prime number"
fi
echo "$num is a prime number"
done
<file_sep>#!/bin/bash -x
for files in 'access.log.1
ls -l /etc/passwd
echo "access.log.1"
<file_sep>#!/bin/bash -x
isPresent=100
rand... | 7d8c575f4e48f0b55844ecbaf138504ec35459f5 | [
"Shell"
] | 16 | Shell | sami687/Terminalcommands | 9fcf904192b6306b11ac33d9c78839bb98a0c010 | 9df089b2c0ff41e58179faffe3475cfb48219e16 |
refs/heads/master | <repo_name>Build-Week-Spotify-Song-Suggester-5/Data-Science<file_sep>/app/app.py
# imported libraries
from flask import Flask, jsonify
import sqlite3
import pandas as pd
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
import numpy as np
from sklearn import preprocessing # for category enco... | 0bdcf0e5c5b678b4fb8f78c929b8a0b17c3da5e7 | [
"Markdown",
"Python"
] | 2 | Python | Build-Week-Spotify-Song-Suggester-5/Data-Science | 45403f2fafafdfcb0d2cc3de26d6583d76db5195 | 3a8d29423f970cc8beb92ba5fd662ea96e8dde65 |
refs/heads/master | <file_sep>var JSUTILS = {}
function trace(val)
{
console.log(val);
}<file_sep>/**
* ShaderLoader.js v1.0
* An asynchronous shader loader for WebGL using AJAX with jQuery.
*
* Copyright (c) 2013 - 2014 <NAME> / http://andre-cruz.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... | 3f8513bf60ffc4a7fcb4bd745099d7bc8b9ed42d | [
"JavaScript"
] | 3 | JavaScript | codecruzer/webgl-starfield | 1380c94c55c8a3ae7057ca07c3d16552843d531b | b914dfad81ece9b215fc69155ce2bb3b6f767275 |
refs/heads/master | <file_sep>import "tachyons/css/tachyons.min.css";
import React, { Component } from "react";
import { Modal } from "basic-react-component-library";
import JiraForm from "./jiraForm.js";
class App extends Component {
constructor(props) {
super(props);
this.state = { modalHidden: false }; //TODO: in production... | e81d37f6fc33ef57235f916fedb81800ef2cd926 | [
"JavaScript"
] | 2 | JavaScript | mistahchris/ffv2 | 418620075138a9e405c74e833f0cee3e7bfac309 | d82bffa6a36f20542b1fa100e14e52b4304616e5 |
refs/heads/main | <file_sep>package com.alves.project.entities;
public class Cliente {
private String nome_cliente;
private Telefone telefone;
private Conta conta;
public void setNome(String nome_cliente) {
this.nome_cliente = nome_cliente;
}
public String getNome() {
return this.nome_cliente;
}
public voi... | 2c24f60a7eefbf2c1e46559f79405fe4a5addca3 | [
"Java"
] | 2 | Java | GustAlves/QAEnginnerTestPl_Teste1 | c84c28ce22751463c09094279767fbc4ffb06242 | cef474f7fed5093a796a550000fc07a4aa48b7a8 |
refs/heads/main | <repo_name>Poppy850/lab9_web<file_sep>/README.md
# lab9_web
Nama : <NAME>
Kelas : TI.19.C1
NIM : 311910687
Pratikum 9 & 10
Tampilan Halaman Home

@domain = domainname
@regex = regex
@num = num
h = Hash.new
end
def parse_line(logline)
@m["sent"] = 0
@m["recieved"] = 0
@m["discarded"] = 0
@m["seen"] = 0
end
if @domain = ""
@num = @num - 1
puts @num
if line = /(<[-\w.... | 0d71816593ff701698de4e60643bfba8243224dc | [
"Markdown",
"Ruby"
] | 8 | Ruby | rOmAn2193/Ruby | 880e77615e1d5a2cebb8791c7fde8b1eaa7939cd | 83b3066ed63e79fe1372c76a3a83b9ac2b6d11c4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.