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>/**
*
*/
package patrones;
/**
* @author DUSGAB
*
*/
public abstract class Impresora {
private String texto;
public String getTexto() {
return texto;
}
public void setTexto(String texto) {
this.texto = texto;
}
public abstract void imprimir();
}
<file_sep>/**
*
*... | 133896b3a3ba345f28cfbbc80d3d041f05ef30bd | [
"Java"
] | 11 | Java | LINSSE/Patrones-en-Java | d3571c4b0b7853867ce02751537efbca95ded8dd | d673f313d244a9d28d16bd6626d491e088a2a83a |
refs/heads/main | <repo_name>gaurav131/motor-services-app<file_sep>/frontend-react/src/cart.js
import React from "react";
import Button from "react-bootstrap/Button";
import Modal from "react-bootstrap/Modal";
function Cart(props) {
return (
<>
<Modal show={props.show} onHide={()=>props.handleCartButton('closing')}>
... | c1b290580a6d072a936410f43edf9723f1c643c0 | [
"JavaScript",
"Python"
] | 5 | JavaScript | gaurav131/motor-services-app | 2c229e6b7cf68f7df6480e3fe53663b6e1584c52 | 012c6dc04147717eaeea2e935cb1e6a038d66e97 |
refs/heads/master | <repo_name>uk-gov-mirror/informatics-lab.voilahub<file_sep>/voilahub_launcher/src/btn.ts
import {
DocumentRegistry
} from '@jupyterlab/docregistry';
import {
NotebookPanel, INotebookModel
} from '@jupyterlab/notebook';
import {
ToolbarButton
} from '@jupyterlab/apputils';
import {
IDisposable, Disp... | 6eee5778ad4c651239e456bbfc65dc27cb72e709 | [
"Markdown",
"Python",
"TypeScript"
] | 5 | TypeScript | uk-gov-mirror/informatics-lab.voilahub | 245c4dff9601ed52738104bcd2cea9bc305fa6be | 0034223596032dfad0b6bd6dd5c6c0b6dc9313c4 |
refs/heads/master | <repo_name>gabriellebk/hw0-python<file_sep>/main.py
celsius = float(input("Enter temperature in celsius: "))
farenheit = (celsius * 9/5) + 32
print(celsius, "° in Celsius is equivalent to ", farenheit, "° Fahrenheit.", sep='') | 004f5dd2e829b6541981e96f81e7ecd514a46b21 | [
"Python"
] | 1 | Python | gabriellebk/hw0-python | 300ab96397d040bfa166e1be4a7e0aa9a0ea76ff | a70f79c7d33799f2e98a225676fa7d4521bb923d |
refs/heads/master | <repo_name>ValTod/JS-Applications<file_sep>/04_EXERCISE REST AND HTTP REQUESTS/solution.js
function attachEvents() {
$('#refresh').on('click', funcRefresh);
$('#submit').on('click', funcSubmit);
function funcRefresh() {
$('#messages').empty();
$.ajax({
method: 'GET',
... | 1b17d67e55973160aff85ff4c996dfcae1bbb102 | [
"JavaScript"
] | 4 | JavaScript | ValTod/JS-Applications | 1a2fb8fb799df49e1fd1cb1eff5cbcd12e2db368 | 1bbf57c467fbdc153731449edcb8e85ccbef4eb6 |
refs/heads/master | <repo_name>isthatcentered/create-templates<file_sep>/typescript/src/index.ts
// import foo, { version } from "./foo.ts"
//
// export default function () {
// console.log( foo, version )
// }
import answer from "the-answer"
import "./index.css"
import src from "./img.jpg"
export default function ()
{
import("./fo... | e33125640c3e417312ccbd4f459b3d8c9fff4b9a | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | isthatcentered/create-templates | 98abbaeb4e420cdd618239ed31475f6f9be83ceb | 300125a8911868c7b4394da34c8bbe8a76137202 |
refs/heads/master | <file_sep>package com.hci.fitin.fitin;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
/**
* Created by Vikas on 11/23/2015.
*/
public class ListViewRow {
... | 45397a1224684fa3bfb0e9d4d0f85b9be4ab78ea | [
"Java"
] | 2 | Java | vpiddem/Fit-IN-App | 54e305159d82353222938e6b07c532000102aef6 | 1704469669c94314ad51b905bce28ba139da0ca1 |
refs/heads/master | <file_sep># dvr
Digital Video Recorder
<file_sep>import logging
logging.debug()<file_sep>
import logger
logger.configParser(loogin.DEBUG)
logger.debug('Test 123')
| 0c42d2a7d8ed1d7c4dce0a74b22631fb4ac8bfc3 | [
"Markdown",
"Python"
] | 3 | Markdown | hyseanlin/dvr | f09c7899995712fe3a72a0c603563a9292ee0a16 | e64b655869b2677e46db4cf1fb4849764513a9d6 |
refs/heads/master | <repo_name>rehylas/njsocket<file_sep>/testCli.js
var io = require('socket.io-client');
let socket;
const host = 'ws://localhost:8090/market'
// const host = 'ws://test.socket.hubdex.io:8090/coinxpMarket'
/**
*
* @param {Object} userInfo {userNameChain}
* @param {*} cb 回调函数 (err, type: 返回数据类型, data: 返回的数据)
*/
fu... | e355bc07ad0334d7151cd1f3a3d86c44fdeeacb6 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | rehylas/njsocket | eb2db2132bc53e1e5cec557c242de75b66c5fc7f | c57559e7b5ad4ae457596996eeff5b087a25e32a |
refs/heads/master | <file_sep>Redmine Scrum Metrics
=====================
Plugin para o Redmine que apresenta métricas e tabelas para monitoramento de equipes ágeis
<file_sep>class BurndownController < ApplicationController
unloadable
menu_item :burndown
before_filter :find_project
def index
respond_to do |format|
format... | 626e8086569ada60da7f272cb12217a27dba0430 | [
"Markdown",
"RDoc",
"Ruby",
"JavaScript"
] | 5 | Markdown | marcusjpl/redmine_plugin | 7be18d337697db2a73091e176a8153c16365ef57 | 5d928c819e6177a694303a49e3e03d9df5224ee8 |
refs/heads/master | <file_sep>using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using EventMaker.Annotations;
using EventMaker.Model;
namespace EventMaker.ViewModel
{
public class EventVM : INotifyPropertyChanged
{
private EventCatalogSingleton _catalogSingleton = Model.EventCatalogSinglet... | 47e180939cab8d94e5967c26e785be73100d0393 | [
"C#"
] | 6 | C# | NeskireDK/EventMaker | 345baf686869e95f7f4fe58d6b1b94fd59b1647b | 32a1a3cf9f409eb91a8350ef91fd2c243822db0e |
refs/heads/master | <file_sep>import { SharedService } from './../shared/services/shared.service';
import { Injectable } from '@angular/core';
@Injectable()
export class PostService {
url = 'https://jsonplaceholder.typicode.com/posts';
constructor(private sharedService: SharedService) { }
getPosts() {
return this.sharedService.get... | 9c63674c4edfd0c9dc818874fce86c55d9148c4e | [
"TypeScript"
] | 1 | TypeScript | anudeepvarma444/Angular-REST-Api | 389378bba4147808a18dfbd85b53705fbd2f8633 | 67f1201617c1c43492e25e62da28f75831b798ed |
refs/heads/master | <repo_name>RahulChandaTV/betterhomespro<file_sep>/assets/js/main.js
$(document).ready(function () {
var twitSlide = new Swiper('#twitSlide', {
slidesPerView: 1,
spaceBetween: 10,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
... | b762ef8e0e094b7780d47353f78557cddc9ba392 | [
"JavaScript"
] | 1 | JavaScript | RahulChandaTV/betterhomespro | bde21b3d54bf247561bb8cc202a0d8dbfb24df35 | b5022585986aab4a287b8c865147a533ae0c5d62 |
refs/heads/master | <file_sep>package model;
import java.util.ArrayList;
import java.util.List;
public class SubSting {
public void subString(String str){
for(int i=0;i< str.length();i++){
StringBuilder stb = new StringBuilder();
for(int j=i;j<str.length();j++){
stb.append(str.cha... | bb13298eb4442bb26e27bbc587a4f1c0ee0e3af6 | [
"Markdown",
"Java"
] | 13 | Java | sudha-bhargavi/git-github | 736464901306b847d912c628f304d6a0b3cb0b63 | 3671a1ed81e81e7b5691b4308d4283b91da6dbdc |
refs/heads/master | <repo_name>bjornfor/microscheme<file_sep>/src/models.c
#include <stdbool.h>
#include "models.h"
// typedef struct model_info {
// char *name;
// char *STR_TARGET;
// char *STR_PROG;
// char *STR_BAUD;
// char *specific_asm;
// } model_info;
model_info models[] = {
{
"MEGA",
"atmega2560",
"wiring",
... | 3063a370aadf2a330be024ad25fb09914c8ade1d | [
"C",
"Python"
] | 2 | C | bjornfor/microscheme | 0fe88e29a76fe0008be4f10a187420c3226e17aa | e0693e4fb5660a6237ed8254ab63e6b643001659 |
refs/heads/master | <file_sep>from hyper import HTTPConnection
import re
def average(array):
avg=0
for i in array:
avg+=i
avg/=len(array)
return round(avg,2)
def variance(array):
avg=average(array)
var=0
for i in array:
var+=(i-avg)**2
var/=len(array)
return round(var,2)
re_temp=r'<li class="sky skyid.*?">.*?<h1>(\d+).*?<s... | 24fb0c89eb3ade91be4d1a4d4b0d85236e42673c | [
"Markdown",
"Python"
] | 2 | Python | TravorLZH/temperature-analyzer | 4e3be69ef42171ac16b74b3cc34481bae56e0e7f | e2a3926cd4754c3e687a6b4893fb376609c4a0af |
refs/heads/master | <file_sep># CMake entry point
cmake_minimum_required (VERSION 3.5)
project (paradis)
## Add headers files
include_directories ()
SET(CMAKE_CXX_FLAGS -pthread)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_P... | 3f5e7d38fde9076b6c58f392dae71b123fb079b2 | [
"Markdown",
"CMake",
"C++",
"Shell"
] | 5 | CMake | albicilla/paradis_experiment | 546067daa7c6c8fd3419cac750e04919c5aa4a1a | 8229c58dd24001285be4625ac8d03af24f61348c |
refs/heads/master | <repo_name>bmontgomery/js-chip8<file_sep>/index.js
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/public'));
var port = process.env.PORT || 3000;
app.listen(port);
console.log('Express app listening on port ' + port.toString());
console.log('Navigate your browser to http:... | 7188986500dcba8171f789fc58aafb7ec48fe7eb | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | bmontgomery/js-chip8 | e1facde0a8d8a450583ae74c412c9d4aeb1b57ff | 2bfb0b0f14ea63db2f3645146beead349da6a8d4 |
refs/heads/master | <file_sep>
CC=gcc
CFLAGS=-Wall -g
.PHONY: build run clean
build:
$(CC) $(CFLAGS) ./arborelista.c -o ./arborelista
run: build
./arborelista
clean:
rm ./*.o
clear
<file_sep>
CC=gcc
CFLAGS=-Wall -g
.PHONY: build run clean
build:
$(CC) $(CFLAGS) ./ocean.c -o ./ocean
run: build
./ocean
clean:
rm ./*.o
clear... | c7f6345af429d0401c00d472ccee79645546e907 | [
"C",
"Makefile"
] | 6 | Makefile | alin-ciobanu/Tema1_Analiza-Algoritmilor | 46be0988a88401df2fac0fe74d869477f58e9f30 | cbcd32bb0465a5dab96ee4712668422302dc5f9c |
refs/heads/master | <file_sep>package Day2_0412;
public class Linear_Array {
public static void main(String[] args) {
//declare the empty string array variables first
String[] locations, countries, places;
//declare the empty int array variables first
int[] number, houseAddress;
//define the... | b045378ae2702116497a3570cb255f30c2c50f8f | [
"Java"
] | 5 | Java | sumon11218/Current_Batch_2020 | 36dbc4357754ae884a391817505e56ac764ec76a | c478d82762870d4eaf81269fd81ff20379a0c32c |
refs/heads/master | <repo_name>dtbrit/UnknownHeroesProject<file_sep>/UnknownHeroesPreview/PublishedFiles/BookPayload/8BA0BD2F2B93B04F85B322ECF3BCF966/1.1.1/OEBPS/assets/2/actions.js
var ua = navigator.userAgent.toLowerCase();
var touchDownEvent;
var touchUpEvent;
var isMobile;
var orientationDevice = getOrientation(PubCoder.isAndroidReade... | 764cdd958b6710c9856e10f0b91a89cb135cbc10 | [
"JavaScript"
] | 2 | JavaScript | dtbrit/UnknownHeroesProject | 2240d2bb3e9c2483be8b354f05d94b1567fdcd59 | 31e978716233d3bc13d859333daa80737ae99a96 |
refs/heads/master | <file_sep>import numpy
import matplotlib.pyplot as plot
import copy
import data_preprocessing
def plot_mean_cumulative_sales_over_time(sales):
copied_sales= copy.deepcopy(sales)
data_preprocessing.fill_nonsales(copied_sales)
cumsales = numpy.cumsum(copied_sales, axis=1)
mean_cumsales = numpy.nanmean(c... | c340c726a11e5c708cca567a04f93c61f092652c | [
"Python"
] | 5 | Python | axelgoblet/salesprediction | 8913662de9a4668fc8273f56f2b93a8a3e764abf | 1495207d5350577867aefba8e98a79aacf982509 |
refs/heads/master | <file_sep>require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe PicturesController do
def mock_picture(stubs={})
@mock_picture ||= mock_model(Picture, stubs)
end
describe "responding to GET index" do
it "should expose all pictures as @pictures" do
Picture.should_receive... | 76708f2df96bedfede27a130ec9be49534723bc4 | [
"Ruby"
] | 11 | Ruby | Nazrax/photo-blogger | 69a4b6fe7b29b980f20db0c78b58be3689916b85 | 58b434b817e4603666c34f2c19233a13d0d2acfa |
refs/heads/master | <repo_name>rzhou186/Helios-Voice-Command<file_sep>/js/helios.js
(function(){
if (annyang) {
var roots = {
"Google": "//www.google.com/search?q=",
"Wikipedia": "//www.wikipedia.org/wiki/",
"Wolfram|Alpha": "//www.wolframalpha.com/input/?i="
};
var listenSound = new Audio("/aud/listen.mp... | 079ac8c0feb11e09f8c2d4f6a0feb0bff32ac990 | [
"JavaScript"
] | 1 | JavaScript | rzhou186/Helios-Voice-Command | f72cac3dca9b663de8e6e680b9817d3b34b12d71 | 9099614060aed57253a4e6e5d2db5c8d00a44ba7 |
refs/heads/main | <repo_name>gabrielppd77/codeblog<file_sep>/src/main/java/com/web/codeblog/repository/CodeblogRepository.java
package com.web.codeblog.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.web.codeblog.model.Post;
public interface CodeblogRepository extends JpaRepository<Post, Long>{
}... | b401dcbc820dc33c62ba0815bd39c0feafa32cdb | [
"Java",
"SQL"
] | 2 | Java | gabrielppd77/codeblog | a6709ab7982b925730b09831ee3d89de5b84e08f | 98eba9abc70bdff1a129120e58c0301d3c730087 |
refs/heads/master | <file_sep>import java.util.List;
public class Goods {
private List<Good> goods;
private GoodsParser goodsParser;
public Goods(String shoppingList) {
goodsParser = new GoodsParser();
goods = goodsParser.generateGoods(shoppingList);
}
public Goods(List<Good> goods) {
this.go... | b517e5a8f8991b0c9cecdd0635d7460deb8c9395 | [
"Java"
] | 2 | Java | zhenyang/BillGenerator | 1fe8f5d2e98fbbd4954b3cd5c61e6f59db290af9 | b9fa5cb780e2754db43a0497209e508b7ddfd4d8 |
refs/heads/master | <repo_name>AudreyRBC/uppsta<file_sep>/dist/games/global/inscription.php
<?php
if(isset($_POST['register'])){
$_POST['user'] = stripslashes($_POST['user']);
$_POST['password'] = stripslashes($_POST['password']);
$username = $_POST['user'];
$password = $_POST['password'];
if(strlen($_POST['password'])>=6)... | 3a1127725d4e6a0ec1e388344c85e0bc257a6e9e | [
"JavaScript",
"PHP"
] | 6 | PHP | AudreyRBC/uppsta | ce8fa5823f931bb48752b7ab9098d14b2c4bed40 | 383c7e317225812690e3f93fdff49b8610acd4f6 |
refs/heads/main | <repo_name>matan1346/Medical-X<file_sep>/Lambda/index.js
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
//const Promise = require('promise');
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient();
const myData = [];
const patientsData... | cca3c67e9eb6be719c1281f92e847f1cd8c2d9d1 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | matan1346/Medical-X | 119887d0994f39a603d1d0b797406b6f6b96b726 | 67da9fade4c839a9205f2432f8e22553148046b9 |
refs/heads/master | <file_sep>import { Injectable, ViewContainerRef, ComponentFactoryResolver } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ArticleViewService {
constructor(private cfr: ComponentFactoryResolver) { }
async loadComponent(vcr: ViewContainerRef, component: any) {
// const { StickyFooter... | 517c608525d007d157a21526a0f76b0543fc932a | [
"TypeScript"
] | 8 | TypeScript | devriet/personal-website | 2b8e87c1e7b4a1b2f4637e76c8bf3a1a9c3ad176 | 1cab9a244d5e6b810e2c5f1af04c2db99ae18669 |
refs/heads/master | <repo_name>saratkiran/Data-Analyses-on-Defect-Data-with-Defect-Prediction-Methods<file_sep>/code/questiona.R
getwd()g
dir_share = "//home//saratkiran//Desktop//CS6890//pde//pde"
path = "/home/saratkiran/Desktop/CS6890/pde/pde/"
out_dir = "//home//saratkiran//Desktop//CS6890//output//pde"
setwd(dir_share)
getwd()
filen... | 6f4ee5f43cbafcdd2190feb7b3751ad944a9946a | [
"Markdown",
"R"
] | 4 | R | saratkiran/Data-Analyses-on-Defect-Data-with-Defect-Prediction-Methods | ee53f600c4d423871013faf424e4f34cab35b16d | f0476af628bdbd6c28297019ee036ab12a74ad84 |
refs/heads/master | <file_sep>package com.example.android.codelabs.navigation.demo.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.android.codelabs.navigation... | e7f9841fddc098f54d7b039c2f5d01e9b1ace046 | [
"Kotlin"
] | 4 | Kotlin | TsengPro/android-navigation | 1c86732be788abf6dd058f4e83288252858b8ba8 | 95a4c3fc7156255cae8582b08283e40324057fd5 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta charset="UTF-8"/>
<title>Ideal-M</title>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"/>
<link rel="icon" ... | 1a44baa9c8f139a88d4ce7c14262624b36ffa488 | [
"JavaScript",
"HTML"
] | 5 | HTML | greatschemer/ideal-m | e2f9a30549dad1620414006bcd2a877c94f89e3f | 829c30ba8cf2adcc67c7239626ca4320e7c082a9 |
refs/heads/master | <repo_name>fbion/sinopec-6<file_sep>/sinopec/sinopec-manager-web/src/main/java/com/oil/controller/oracle/BaseValueController.java
package com.oil.controller.oracle;
import java.util.List;
import javax.annotation.Resource;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.C... | bfd669d5fad82e5326e4dd43f54f7e3257142c9f | [
"JavaScript",
"Java",
"Maven POM"
] | 20 | Java | fbion/sinopec-6 | ddd8e83e9e257cdfd59077f72f0fb42e8a4ae672 | 42cd7c857a82313b153112aa2808ed7ff75dd0af |
refs/heads/master | <file_sep>import { Component, OnInit ,Inject } from '@angular/core';
import {AuthService} from '../../services/auth.service';
import {Router} from '@angular/router'
import {LOCAL_STORAGE, WebStorageService} from 'angular-webstorage-service';
@Component({
selector: 'app-company',
templateUrl: './company.component.ht... | 3c144b93ef15226a24606837545fd247769261a2 | [
"TypeScript",
"HTML"
] | 17 | TypeScript | avinashk29/tradefier-frontend | e40f275623185fcdd90b2c57387c14657a29c1a0 | 67ce1178fab7d3161b695ce835c2de61e821cf49 |
refs/heads/master | <repo_name>fridde/password<file_sep>/README.md
# Password builder
With this password builder you can create and recreate passwords in a deterministic manner using a secret salt and secret master password.
## Installation and setup
1. Clone or download this repo onto your local machine.
1. Copy the file ```confi... | c0a2b6208e8ecbc9d3708c87859e8b10861ec7ec | [
"Markdown",
"JavaScript",
"Shell"
] | 4 | Markdown | fridde/password | ea0dca42c23e7238eb4edf1206bfd543a22bd054 | c6cfdfaf85165a29f175aa300bb04c970bbce199 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import MenuListItem from "../menu-list-item";
import { connect } from "react-redux";
import WithRestoService from "../hoc";
import { menuLoaded } from "../../actions/index";
import "./menu-list.scss";
class MenuList extends Component {
componentDidMount() {
co... | d7da449d18ac6906221274d5c242562b168c73c3 | [
"JavaScript"
] | 1 | JavaScript | ghevondtunyan/restoran-app | 1a5e7c5667b46ce131eb2caa55aa09f19a38e2fb | 32dc4100f66e5f005f2508c34e1bf71e3b359633 |
refs/heads/master | <file_sep>
# coding: utf-8
# In[29]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from sklearn.decomposition import PCA
from sklearn.cluster import KMeans
from scipy.spatial.distance import cdist
from sklearn.metrics import silhouette_samples, silhoue... | 80816b9c8a1f508be3cfaf1cfa37ce272048c46a | [
"Python"
] | 1 | Python | shivnath-tripathy/project-4 | 9614e7307d9a3cb399edc18a9dde14fa8d76698a | 15b1ef373325b2a83a5799ca48aab9d804d3ed1f |
refs/heads/master | <file_sep>#!/usr/bin/python
"""
Show a camera preview using the same resolution and FPS settings
as will be used for training, but without randomly adjusting
the exposure (training_mode=False). Enable this to see what it does.
"""
from sys import stderr
from time import time
import pygame
from camera import Camera
... | 5f6ae94067b1749b15c9e9f352bf0691f9f032fa | [
"Python"
] | 1 | Python | MadRajib/machine_Learning | 781d90a8c7afe0ef3c4b6dcfae86eb534c078d66 | 540b187f593c748093f1be5ab542a0be9c6d5053 |
refs/heads/master | <file_sep><?php
/**
* libSSE-php
*
* Copyright (C) <NAME> 2016.
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software
* and associated documentation files (the "Software"),
* to deal in the Software without restriction,
* including without limitation the rights to ... | 7f8869b1913d57b4d6b95cab42e6c0e17863b5d2 | [
"PHP"
] | 5 | PHP | butch2k/libSSE-php | f296e29ff2c42a03d036dc126b44bfc9a2416045 | b57168d7f75449e3c97be3321a81213e5669fc76 |
refs/heads/master | <file_sep>
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from config import Config
from flask_moment import Moment
from flask_mail import Mail
#149
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy... | c6b82446b6469be2180b842726132dbd005cb82d | [
"Python",
"Text",
"HTML"
] | 4 | Python | Waseem0912-coder/website | 79ab9295fa3ac23743b91b8244b9714700794e96 | e5cfdeda54433b0113cc240575dac78a419a0b53 |
refs/heads/master | <file_sep>function Fruits(title) {
this.title = title
}
const Mango = new Fruits('Mango')
const Apple = new Fruits('Apple')
const Orange = new Fruits('Orange')
console.log(Mango.constructor.name)
console.log(Apple.constructor.name)
console.log(Orange.constructor.name)<file_sep>let myCar = {
na... | dae957bdf5f02b11d766ca9d7b36377242c32d12 | [
"JavaScript"
] | 5 | JavaScript | prajaktabramhe/DesignPatternJS | 9c3c1af0fd688c60abac24108133f401e6aa56c6 | f6907d07747191d3be2be27019374760540d4316 |
refs/heads/master | <file_sep>describe("loginCtrl", function() {
var $httpBackend;
var authService;
var scope;
beforeEach(function() {
module("angular-jwt");
module("controllers");
});
beforeEach(inject(function(_$httpBackend_) {
$httpBackend = _$httpBackend_;
}));
beforeEach(inject(function(_authService_) {
authServ... | 6e48f3c3f9aa02eaae2c8d98757273102735d607 | [
"JavaScript"
] | 12 | JavaScript | alEX860111/angular-security | bce852689c932690bf3c05f71e79c32d930a0b7d | d0df614984cb46fa51bfad5831c0ab2c50fa44ad |
refs/heads/master | <file_sep>task :default => :publish
task :publish do
sh "jekyll build"
sh "s3cmd sync --progress --delete-removed --acl-public --cf-invalidate _site/ s3://tangleofwire.net"
end
<file_sep>---
layout: post
title: The Ackermann Function
---
_This post was written a few years ago and lived (briefly) on my old blog. I... | d0e0c40875df6647760268a5598a03a9417f38a1 | [
"Markdown",
"Ruby"
] | 5 | Ruby | gar/tangleofwire.net | 4a53f7f201ed5595bc2fb3d5313206c38c252bf7 | bcbfb62f075150c42295eb1b4dd572a1eead8683 |
refs/heads/master | <repo_name>MinuraIddamalgoda/AlgoPrep<file_sep>/src/com/learning/datastructs/bst/Driver.java
package com.learning.datastructs.bst;
public class Driver {
public static void main(String[] args) {
bstNode root = new bstNode(5);
root.insert(4);
root.insert(10);
root.insert(2);
... | dda3f9195fff88f7bc88a897e2966e603253669d | [
"Java"
] | 10 | Java | MinuraIddamalgoda/AlgoPrep | a8636f39c8fcf0a408ea11ae65699b4acbb52f11 | 72bd9d8f31c78b1cf02142e263387d59909457f1 |
refs/heads/master | <file_sep>// Decorator eg. 1
// Advantages - D.R.Y - Don't repeat yourself
let sum = (...args) => {
return [...args].reduce((acc, num) => acc + num);
}
console.log('sum : ', sum);
console.log('sum(1, 2) : ', sum(1, 2));
const call_count = (fn) => {
let count = 0;
return (...args) => {
count += 1... | 76b1465f1bc38b40e027b43c7475f4cdfc6f0cdf | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | kushal-kamra/js-design-patterns | 37ba3902ef9f6b7cd1bcfe74dc50d58853072ef2 | b21e4eff2184b154a1e546425356a1e3ada92323 |
refs/heads/master | <repo_name>Vlad7766/WPF<file_sep>/WpfApp1/WpfApp1/MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.I... | 60ee94a51528ba6cbd416871390d8fbd0cbff348 | [
"C#"
] | 1 | C# | Vlad7766/WPF | 4c10dafce49cd7944729799d2e9f5535e6743d1b | 803401e6362d93f2d9accbfebc91269ecb666545 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
from __future__ import (
division,
absolute_import,
with_statement,
print_function,
unicode_literals,
)
import os
import tqdm
import cv2
import torch
import argparse
import torch.nn as nn
import numpy as np
import pickle as pkl
from common import Config, ConfigRandLA... | d9b584ededada0945a8e8d2e8d9010c309680c4a | [
"Python",
"Text",
"Shell"
] | 10 | Python | leonardoedgar/ffb6d | 5e045bd75f849ce7e4850a52d7b21c1bdee2e83d | 89d4b9f688490736b14b29b4e35dd94217e34e9f |
refs/heads/master | <file_sep>package stepDefinition;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class PageObject {
WebDriver driver;
public PageObject(WebDriver driver)
{
PageFactory.... | 2b524f730063d852ed4ecafaebcb60be818cb013 | [
"Java"
] | 1 | Java | B3Sarthak3105/CS_REPOSITORY | ace37e7e1a0327f111333c4a53282a9ce5eb1b2e | 2dde283e38b9e11536b1af3f936688795dc70021 |
refs/heads/master | <repo_name>SBC-VN/Portfolio<file_sep>/routes/html-routes.js
// Dependencies
// =============================================================
const path = require("path");
const mongoose = require("mongoose");
const PortfolioItems = require("../model/portfolioModel.js");
// Routes
// ===================================... | 91de8cf8a0b0c26a959d2b365e6453be9ffba688 | [
"JavaScript"
] | 6 | JavaScript | SBC-VN/Portfolio | 7960a31501b79e117cf35e3b993032510113e954 | 83600caafcee4cd890b5dae996facc9039a51ad6 |
refs/heads/master | <file_sep>import zepto from './zepto.min'
import flexible from './flexible_css'
import swiper from './swiper.min'
export default {
// designWidth:设计稿的实际宽度值,需要根据实际设置
// maxWidth:制作稿的最大宽度值,需要根据实际设置
flexible(designWidth, maxWidth) {
var doc = document,
win = window,
docEl = doc.documen... | 4a39a38fe911fec9b435560aae57a69f7b31d091 | [
"JavaScript"
] | 1 | JavaScript | janice-jia/jkVue | 5ba066f61260b28ad9de199bc860acac8b6a9fb4 | 92f1db26f8784198617e60552825514ea7e18ea1 |
refs/heads/master | <file_sep>#Condicional If Else
#Ejercicio 1
a = 2
if a == 2
puts 'La condición es verdadera.'
end
#Ejercicio 2
a = 5
if a == 5
puts 'La condición es verdadera.'
end
#Ejercicio 3
a = 'X9-by'
puts 'HOLA!' if a == 'X9-by'
#Ejercicio 4
puts 'Ingrese Contraseña: '
password = gets.chomp
if password == '<PASSWORD>'
pu... | e875526d208409dcb89db657558dfd29c6f394b5 | [
"Ruby"
] | 8 | Ruby | jotita28/desafiociclos | f02e0818c88ef45e84ed580ff8ecad8590d8cbb1 | 3eb1a348885f3c6528075746165b7a454fd2a97e |
refs/heads/main | <file_sep>import { cossin, TAU } from "@thi.ng/math";
import type { ColorDistance } from "./api";
import { luminanceRGB } from "./luminance-rgb";
/**
* Computes distance between two HSV colors, i.e. the eucledian distance between
* points in a cyclinder.
*
* @param a
* @param b
*/
export const distHSV: ColorDist... | 672d8e9bc190908f9c3799f41feaef2eeeb9648e | [
"TypeScript"
] | 1 | TypeScript | priikone/umbrella | 8280d98c09224b1601b635e16a660bc1c7ca61a5 | d1b3f3af125180ffb5d0d9f5e1f223db65aeb8b8 |
refs/heads/master | <repo_name>density215/ember-cli-build-info<file_sep>/README.md
# ember-cli-build-info
> Inject build info into your routes, controllers, and services.
*Note: this addon currently assumes you are using git for version control.*
Information includes:
```js
buildInfo: {
version: '0.1.4', // pulled from package.json
... | 94887a371bea63e17bb4798232f6c7b00eed8418 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | density215/ember-cli-build-info | 4c4e92afccddf191d7ec5aa8837872de570e9582 | 88c447eb247789ae0a1e32ba4a728d6f9c233b25 |
refs/heads/master | <repo_name>YleniaChitano/Weekly2ex2<file_sep>/Weekly2ex2/Weekly2ex2.cpp
#include <iostream>
int main() {
for (int numbers{ 100 }; numbers >= 1; --numbers) {
std::cout << numbers << '\n';
}
return 0;
}
| 4571e75b55c48cf7f5bd7209897da8239e4374b1 | [
"C++"
] | 1 | C++ | YleniaChitano/Weekly2ex2 | d2e60af798cd0f6c1b3cc0b89a17bfa7da596733 | 032a6c2657c761726a6c006df78668b78fc4dc62 |
refs/heads/master | <repo_name>pmarkun/fogonobarraco<file_sep>/js/main.js
function Game () {
this.turn = 1;
this.turn_lenght = 4500;
this.last_turn = 4;
this.players = [];
this.board = {};
}
function Player() {
this.name = "<NAME>";
this.fires = 0;
}
game = new Game();
p1 = ne... | af814394c8ff137e10c7afc744fec8e47a9ff50d | [
"JavaScript"
] | 1 | JavaScript | pmarkun/fogonobarraco | 8a594f97493b003a5ca3676c52076d6c69006734 | a29749d53260aeb6facd4f44a914b6ab24938cb6 |
refs/heads/master | <repo_name>Shantti-Y/tweeter<file_sep>/app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer
def account_activation(user)
@user = user
mail to: user.email_num, subject: "Please verify your email(or phone number)."
end
def password_reset(user)
@user = user
mail to: user.email_num, subje... | b1b2e414000fb4538822db1f40b88e4706f0531d | [
"Markdown",
"Ruby"
] | 25 | Ruby | Shantti-Y/tweeter | 0bdd2fff7af2d87e94c24ae92b6e285497934af0 | aeab6b9567f508fcd9036545b14e10f331a4d8c5 |
refs/heads/master | <repo_name>FukeKazki/jig-hackathon-c<file_sep>/src/algorithm.py
import csv
import io
import pandas as pd
import pprint
import sys
import random
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
args = sys.argv[1:]
if len(args) == 0:
exit(1)
data = pd.read_csv("./data/dummy.csv").values.tolist()... | 242493e182f257d765eb64025bc8a1b31ba7fabc | [
"Markdown",
"Python",
"Go"
] | 4 | Python | FukeKazki/jig-hackathon-c | 1abd1d0652dbab5508c9ad9a7a0bda0de9e2f75a | 5ee41a5daa59b1b95c7cc089aaab7780ac226c28 |
refs/heads/master | <repo_name>becerda/JobDB<file_sep>/BaseSingleton.cs
namespace Job_Application_Database.Singleton
{
/// <summary>
/// Base Singleton Class To Make Common Inheritance
/// </summary>
public class BaseSingleton : Singleton<BaseSingleton>
{
// Intentionally Left Blank
}
}
<file_sep>/JobBoa... | b75000806c853d8ec51d4b88af0e10873f3fdfe4 | [
"C#"
] | 35 | C# | becerda/JobDB | faa8cf7cbd15a0e30e71f91666a5be69e589d3e0 | f0cd40b9cbc0bf9101185149ff17f5234e88a1cf |
refs/heads/master | <repo_name>bhabig/devise_pundit_lab-v-000<file_sep>/spec/factories/notes.rb
FactoryGirl.define do
factory :note do
content "Test Note"
association :user
end
end
<file_sep>/spec/features/notes/note_new_spec.rb
include Warden::Test::Helpers
Warden.test_mode!
# Feature: User edit
# As a user
# I want to e... | cbc31197bde8e00a0f77df85cdc1633181639666 | [
"Ruby"
] | 6 | Ruby | bhabig/devise_pundit_lab-v-000 | 355981ff5ddd2c13ca51aeccd344adb76287800f | bb1ee178745016a911f0e57ac74a9f3ab531d97e |
refs/heads/master | <repo_name>finamoreivan/Python<file_sep>/SpeedTest/Test.py
from tkinter import *
from speedtest import Speedtest
def speed():
speed_test = Speedtest()
download = speed_test.download()
upload = speed_test.upload()
download_speed = round((download/1000000), 2)
upload_speed = round((upload/100... | 832a2caaeb07e85ce0496422f163cf7023658d5a | [
"Python"
] | 11 | Python | finamoreivan/Python | f05733ff2836bcd775773f75f5a694893147ffa6 | a5d87ca0258f1cd042dc5ba74e52ab06e5973513 |
refs/heads/master | <repo_name>imateus/unidas-git<file_sep>/scripts/filiais.sql
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 05-Nov-2018 às 01:01
-- Versão do servidor: 10.1.26-MariaDB
-- PHP Version: 7.1.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
STAR... | 1f2f8b7863871ce0ef172079710044266e09f9dc | [
"Java",
"SQL"
] | 18 | SQL | imateus/unidas-git | 1d81c624e7abc09f4ff3e107848e7b1403b25eab | b7aa31de8132bdc71d37407a685d9c9349ec9c48 |
refs/heads/master | <file_sep>
const int RCLK = 4;
const int CS = 6;
const int SDI = 2;
const int SCLK = 3;
uint8_t potChannel1 = 3; //would be passed from android app
uint8_t potChannel2 = 0;
uint8_t potSetting1 = 50; //5 hz
uint8_t potSetting2 = 50; // 21 hz
void setup() {
pinMode(CS, OUTPUT);
digitalWrite(CS,HIGH);
pinMode(S... | 8220a13fb81a355ac796701e22b32b635b3e8705 | [
"Markdown",
"C++"
] | 2 | C++ | robil024/Multi-Effects-Pedal-Arduino | ade2d481fd86ad1267e19c695002ca5ec9d9ec73 | 0ca7131b6e4580c841a468f7cab9ede524e21a25 |
refs/heads/master | <file_sep>var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
app.get('/', function (req, res) {
res.send('<h1>Hello world</h1>');
});
http.listen(3010, function () {
console.log('listening on *:3000');
});
var users = []
var start = false
var rooms = ... | 1fc9b9ceb3d9e042664928506eec1e1651e32e52 | [
"JavaScript"
] | 2 | JavaScript | SERAGORN/Hex_Game_Server | 267e9cc6b0db9612448703b6755296a3c92d11f7 | 0c9d0f6d7d67962c679ec90b4c9412476a08db84 |
refs/heads/master | <file_sep>
def reformat_languages(languages)
# your code here
# iterate through languages once, get oo and functional
new_hash = {}
languages.collect do |paradigm, language_info|
# iterate through each type, get languages
paradigm_array = []
paradigm_array << paradigm
language_info.collect do |languag... | 631be6f0b730410e5b5e2b7aa3608a4ec57d1cb6 | [
"Ruby"
] | 1 | Ruby | cmcorrales/programming_languages-prework | b7fccc56dac6d6fc62e7a2499359e3067f15d441 | 53bfc9ea5be273055653180944a9113afea7c7ca |
refs/heads/master | <file_sep>function wakeDog(dogName, dogBreed) {
String=`Wake ${dogName} the ${dogBreed}`;
console.log (String);
return(String);
}
function leashDog(dogName, dogBreed) {
String = `Leash ${dogName} the ${dogBreed}`;
console.log (String);
return(String);
}
function walkToPark(dogName, dogBreed) {
String = `... | 0828b035eefd86c62d7af10b58c8629efca235e7 | [
"JavaScript"
] | 1 | JavaScript | kane7890/fewpjs-fns-as-first-class-data-array-o-functions-online-web-ft-051319 | 5826b802d2f26af5ef58f8ef016f3ca8e4b50747 | 33a8c995d4571afc6eb6796240ce92124f49e810 |
refs/heads/master | <file_sep>
/**********************Includes**********************/
#include "warehouse.h"
/**********************Private MACROS**********************/
#define MAX_STOARGE 1000
/**********************Global Functions Definitions**********************/
void warehouse_Init(){
/* Set initial values for the Linked list */... | f1c6841295070ef101158ad49aaff1b57c0fc3c4 | [
"Markdown",
"C"
] | 9 | C | ammarshahin/WareHouse-Project | ea05d735ab21bde376c52e281d269c827fd333ce | 6f62a31730ba9161c7f348d77f2d659475aa76ac |
refs/heads/master | <file_sep># drills
thinkful-drills
<file_sep>'use strict';
function jediName (firstName, lastName) {
return lastName.slice(0, 3)+firstName.slice(0, 2);
}
console.log(jediName("Jonathan", "Lassen"));
// Write a function called beyond which takes a single argument, num and logs a different message depending on it... | 9a9cf5daa5826d36df4a150754e1d6a51941264b | [
"Markdown",
"JavaScript"
] | 5 | Markdown | thinkful-ei-cheetah/Jonathan-and-Kristof | 1f722f00c7674242dd46a448cd934bd7bba82a30 | 339bab7bfa92fb06866ec57f6f1940b96ac8bbe2 |
refs/heads/master | <file_sep><? die;
$sql = "SELECT SQL_CALC_FOUND_ROWS p.*, p.id AS id, CONCAT(SUBSTR(p.text, 1, 500)) as txt, u.name AS uname, k.name AS kname
FROM {$conf['db']['prefix']}{$arg['modpath']}_post AS p
LEFT JOIN {$conf['db']['prefix']}users AS u
ON p.uid=u.id
LEFT JOIN {$conf['db']['prefix']}{$arg['modpath']}_kat AS k
O... | 7b2f2439b5c0b6b6fec387f5c156f0d37c381138 | [
"JavaScript",
"PHP"
] | 213 | PHP | stden/mpak.su | e0c079f595568b763fcdef74d1fbf32447bd2ff3 | d324891e2344c16237197033bd9dfc21ed9fea50 |
refs/heads/master | <file_sep><?php
session_start();
$corp_code = $_REQUEST['corp_code'];
//$corp_code = 'sram';
$_SESSION["corp_code"] = $corp_code;
include "connect.php";
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
if($_SERVER['REQUEST_METHOD']=="POST" || $_SERVE... | f5505b9c5112f71c412fb649a21c0835b5028314 | [
"Java",
"PHP"
] | 67 | PHP | viijii/SampleSTMSCOde | b54f716b22beee4a7443bd3608a6c536fec594c1 | 05999d11c8e1c6c7256225ea46d815c04025e719 |
refs/heads/master | <repo_name>spiralx/lolwut<file_sep>/modules/format-string/format-string.test.js
/* jshint strict:false */
/**
* Unit tests for format-string.js
*
* @author <NAME>
*/
(function(window, undefined) {
/* globals test:false */
var fs = window.format_string;
function t_eq(output, format) {
/*jshint unused:v... | a8561c12d7869847434e05b74a1203f357d73893 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | spiralx/lolwut | efc9a67e113d7427309c81cd740a4f2fe8a3c877 | 05aee3e9f919eac95f1abab7f385f300bca2eeb1 |
refs/heads/master | <repo_name>aisnia/xq-music<file_sep>/vue.config.js
//判断是不是生产环境
const IS_PROD = ["production", "prod"].includes(process.env["NODE_ENV "])
//引入resolve
const path = require('path')
const resolve = dir => path.join(__dirname, dir)
module.exports = {
publicPath: IS_PROD ? process.env["VUE_APP_PUBLIC_PATH "] : "./",
... | 50e28027695b7bb262837c7d09c070bf39fa605c | [
"JavaScript"
] | 1 | JavaScript | aisnia/xq-music | 20e39ed833c11b01e5124cabfc1f1234da633215 | 7361729527cd46a14a8cf9e92efeb89097de14e9 |
refs/heads/master | <file_sep>from tkinter import *
import random
# Globals
# ширина экрана
WIDTH = 800
# высота экрана
HEIGHT = 600
# Размер сегмента змейки
SEG_SIZE = 20
# Переменная отвечающая за состояние игры
IN_GAME = True
#Сегмент змейки будет простым прямоугольником
#созданным при помощи метода create_rectangle
# класса Canvas... | cf09d039da7e5e74d54b417c1d4a04088687c96c | [
"Python"
] | 1 | Python | katepisova/Snake-1 | bde585bce5d744cd03e0f2eeecaa944983024035 | 187d9a23d253ab2da8dafd2fb986960f227d557e |
refs/heads/main | <file_sep>version: '2'
services:
db:
container_name: 'container_lista'
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- '3310:3306'
environment:
- MYSQL_ROOT_PASSWORD=<PASSWORD>
- MYSQL_DATABASE=lista
app:
build: ... | c3e2211b6f77be65fa77564f86c997dcc3347210 | [
"JavaScript",
"YAML",
"Dockerfile"
] | 4 | YAML | matheussantosmonteiro12/CRUDListatelefone | 157d148769109d6d93e5a06b2765cfe64cd931d2 | 8ddf5c71b23136f7e045886cfb63bc717386a6fd |
refs/heads/develop | <repo_name>syuchan1005/syuchan1005.github.io<file_sep>/scripts/generateIcons.py
import os
import subprocess
sizes = [16, 24, 32, 48, 57, 64, 76, 96, 120, 128, 144, 152, 180, 192, 195, 196, 228, 270, 512]
if __name__ == '__main__':
publicFolder = f'{os.path.dirname(os.path.abspath(__file__))}/../public'
filePa... | 7494e3efd8ca018d892559bebcc23e6b09480a04 | [
"JavaScript",
"Python"
] | 2 | Python | syuchan1005/syuchan1005.github.io | 0249a84f20f059382a2290ed53babfec14e8404e | 4692f2833548e920697ecf81e25afb8d25ac9035 |
refs/heads/master | <file_sep>'use strict';
const O = require('./omikron');;
module.exports = O;<file_sep># Omikron

JavaScript framework.
# Mirrors
* https://github.com/Hakerh400/omikron
* https://gitlab.com/Hakerh400/omikron
* https://bitbucket.org/Hak... | 0908c5469ed8849c31b9b3701dfafe59e42fb966 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Hakerh400/omikron | da533388b022321e5e3b108ebf1e76e2c6b3dafe | d78486a42ba17e79f15230ae6c6f5793978eae49 |
refs/heads/main | <repo_name>zeapherine/netflix-mern-UI<file_sep>/src/components/featured/Featured.jsx
import { InfoOutlined, PlayArrow } from '@material-ui/icons';
import './featured.scss';
const Featured = ({ type }) => {
return (
<div className='featured'>
{type && (
<div className='category'>
<span>{type === 'movie' ... | 775ae4b32989ae8415bb83be801088d60b6a19be | [
"JavaScript"
] | 1 | JavaScript | zeapherine/netflix-mern-UI | 38c34292cd10e7a06acd37777df3e0142347bd96 | c2ed4da695fe0327092dce591d362521e8609a74 |
refs/heads/master | <repo_name>simonmeoni/corea2d-docker<file_sep>/entrypoint.sh
#!/bin/bash
cd corea2d-indexer && USER_COREA2D=`jq -r .USER_COREA2D ../config.json` PWD_COREA2D=`jq -r .PWD_COREA2D ../config.json` SQL_COREA2D=`jq -r .SQL_COREA2D ../config.json` npm start
<file_sep>/README.md
# corea2d-indexer docker
execute the following c... | 1355cabc6aba716f660c161bc300ef0c349e0854 | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Shell | simonmeoni/corea2d-docker | 58f8f4bdd08146616811de5e76892d49148a12ec | 63627afd54bf7e425e243986192d9b3767386f35 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include "instruction.h"
#include "codegen.h"
#include "config.h"
#define ltype st->cl->type
#define ldata st->cl->data
#define lline st->cl->line
#define logInstr(i) log("\nemit: %s\t%d\t%d\t%d\n", i->op_name, i->r, i->l, i->m)
typedef struct state
{
symbol **sym_ta... | 14af26b59a24a0ca7560732d7d28257e97d8a9a6 | [
"Makefile",
"Python",
"Text",
"C",
"Shell"
] | 21 | C | Ovsyanka83/PL-0-Compiler | b687735b2e2effe81c3c2657d16dfef2bc7521f7 | 5b2ae700a2a1e6be804a8bedc57060e55a9fe1c4 |
refs/heads/main | <repo_name>krakphp/money-normalizer<file_sep>/README.md
# Money Normalizer
This contains a Symfony Denormalizer for the `moneyphp/money` `Money\Money` class.
## Installation
Install with composer at `krak/money-normalizer`.
## Usage
## MoneyDenormalizer
```php
$denormalizer = new Krak\MoneyNormalizer\MoneyDenorma... | 6b1b952110ac352dab2d8152a57c7717816b37fe | [
"Markdown",
"PHP"
] | 4 | Markdown | krakphp/money-normalizer | 227b6763dfe7a09e2df592f216856c6fcf1db82c | 8b61a798ac341105aec9aac818202c9476b373d8 |
refs/heads/main | <repo_name>ZaderRox1111/Lights-Out<file_sep>/lab4.py
import random
def main():
board =[[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0]]
board = randomize(board)
moves = 0
while is_solved(board) == False:
show(board)
row, c... | 54873857217abe3bbcdb910fa3b7065f233ecf5e | [
"Python"
] | 1 | Python | ZaderRox1111/Lights-Out | 048142172cd3adece1175e6c42b94d91910a1e8a | 620e5e3f02f275b02fb3548eb11523dc7f2acb27 |
refs/heads/main | <repo_name>brhamill/CM_urql<file_sep>/urql-client.js
import { createClient } from 'urql';
const client = createClient({
url: 'https://countries.trevorblades.com',
});
export { client };
| 8e35ede5486f69dc0d4596d7222d383e6b274d2c | [
"JavaScript"
] | 1 | JavaScript | brhamill/CM_urql | 9a2fb4babcefdeb9f25718ca5239776c28df4b8e | e896eb0299ac82202420d8f43c1ad80e944e0466 |
refs/heads/main | <file_sep>#define SECRET_SSID ""//enter Wifi name
#define SECRET_PASS ""//enter password
<file_sep>/*
SPPotApp
This code will create a web server that will print out sensor data coming from the SPPot.
It also sets the pot to check data within the Serial monitor as well as making the pot functional.
The ard... | b19e607dd89322fe139f57678e70691c6e2afd83 | [
"C",
"C++"
] | 2 | C | jcanton9/SPPot-Smart-Monitoring-and-Self-Watering-Pot | e1e35fc56fd5d637f9a0292b4fbb93174f40cb7f | 52cf42fd6f1b0964240570a73bd8b8d591688f3b |
refs/heads/main | <repo_name>312akim/react-native-todo-app<file_sep>/App.js
import { StatusBar } from "expo-status-bar";
import React, { useState } from "react";
import { StyleSheet, Text, View, FlatList, Button } from "react-native";
import GoalItem from './components/GoalItem';
import GoalInput from './components/GoalInput';
const Ap... | 81343b0ed27012fccb3b5cee398b538bcd6529bd | [
"JavaScript"
] | 1 | JavaScript | 312akim/react-native-todo-app | 18b55ed3a42d8f086c248acaa23719166b042645 | 0abe61840a4193630bc226ff91d43697db02e456 |
refs/heads/master | <file_sep>import pandas as pd
from sklearn.tree import DecisionTreeClassifier
from sklearn.neural_network import MLPClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.model_selection import cross_validate
# define variables
no_folds = 5 # Number of folds for the cros... | 63e6a1315fa059efe6a8c6c98d9dfc124f2daa63 | [
"Python"
] | 1 | Python | Abdul87/modeling_challenge | 99c5f88563e283170fff6bb4840bfb8bbaaf45e8 | 2d86b87dbb1a4375421c4c689b755fa76be11bb9 |
refs/heads/master | <file_sep>drop table TEST;
create table TEST
(
FIELD bigint
);
create unique index if not exists field on TEST(FIELD);
select * from TEST;<file_sep>package ru.ezhov.test.vacancy.xml;
import java.io.File;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attribute... | 24d7b6161db57a868ffc24863720c902674bd79d | [
"Java",
"SQL",
"Markdown",
"INI"
] | 9 | SQL | ezhov-da/test-vacancy | 2f0981b81c4971d582b6628e9b4f7f11b3de144e | 6814d44fbb912fa73764d898acda0ce6a1ed7c1a |
refs/heads/master | <repo_name>gitoku/trace02<file_sep>/sensor.h
#ifndef sensor_h
#define sensor_h
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#define IRLED_PIN 10
#define IRLED_on() digitalWrite(IRLED_PIN, HIGH)
#define IRLED_off() digitalWrite(IRLED_PIN, LOW)
#define maximum(a,b) a=max(a,b)
#define m... | ef2838a59865c391546cddcf968122726669a084 | [
"Markdown",
"C++"
] | 5 | C++ | gitoku/trace02 | e651bc90d18474e67a37109d72fc253407afc2ed | cae1f7acebfabc0f6ec873e7af629ebf04aaa141 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"github.com/codegangsta/martini"
"github.com/mostafah/mandrill"
"io"
"log"
"net/http"
"os"
"strings"
)
const contact_address = "<EMAIL>"
// MANDRILL_KEY must be set for execution
func init() {
mandrill.Key = os.Getenv("MANDRILL_KEY")
if err := mandrill.Ping(); err != n... | d9c14e186fa1b770d80489edfd4aa7f8d01f7ba2 | [
"JavaScript",
"Go"
] | 2 | Go | tech-angels/tech-angels-site | 464787f5e419175ebdf6af77aa78fe59e9adab21 | 5426e607accb84349ebe1a5b0b3007b0efa05fa3 |
refs/heads/master | <repo_name>thesunabove/BabbageBear<file_sep>/README.md
# BabbageBear
A camera streaming application intended for use in a raspberry pi zero.
<file_sep>/main.py
from flask import Flask, render_template, Response, flash, redirect, request, session, abort, url_for
from flask_socketio import SocketIO
from flask_uwsgi_web... | 4af2bd8802b137f08b6f0ee9e58c7f286c79e74b | [
"Markdown",
"Python"
] | 2 | Markdown | thesunabove/BabbageBear | e9c4a23f2629e56bda8a6d3eb6ca641ddc94a93a | 88977ce80067477ac681408d7df7bccdb41484de |
refs/heads/master | <repo_name>digineo/paypal_adaptive<file_sep>/init.rb
require File.expand_path(File.join(File.dirname(__FILE__), "lib", "paypal_adaptive"))
require File.expand_path(File.join(File.dirname(__FILE__), "lib", "paypal_adaptive", "config"))
require File.expand_path(File.join(File.dirname(__FILE__), "lib", "paypal_adaptive", ... | e56ab58cedb24730dda4bbcaa73585ba5619b57f | [
"Ruby"
] | 5 | Ruby | digineo/paypal_adaptive | 07aef312c68967399c1e431c40af29cba2d3797a | e7a756ab9c4e4d8a26b61faf0ff3149bf76798ca |
HEAD | <repo_name>MashiroWang/blog<file_sep>/.travis/deploy.sh
git clone -b master <EMAIL>:MashiroWang/blog.git .deploy_git
cd .deploy_git
git checkout master
mv .git/ ../public
cd ../public
git init
git add .
git commit -m "site updated: `date +"%Y-%m-%d %H:%M:%S"`"
git push origin master:master --force --quiet
rsync -rv --d... | 8ec1d45245462fe11dd79a38d999aad09ed5d843 | [
"Markdown",
"Shell"
] | 4 | Shell | MashiroWang/blog | 5fa4ff9e88b98b85ce023436e8c15ae05b4a6a91 | 678d25f56704e882814ddb5944876a031f640b95 |
refs/heads/main | <file_sep>const msg=document.getElementById("msgbox");
const sent=document.getElementById("sentbtn");
const tl=document.getElementById("timeline");
const time=document.getElementById("time");/*id=timeの値を取得する */
time.value="";
const timer2 = () => {
let ret;
if(num<10){
ret="0"+num;
}else{
r... | 60d8e27e56f1072826b8eb84e216396340958fa5 | [
"JavaScript"
] | 1 | JavaScript | NakagawaRyunosuke/Bulletin-board | 10acc07c364f114ff23fb1b501c6c1a8e47d96dc | 0275db954a691b43336035e9a4dcd1b8bb875ca9 |
refs/heads/main | <repo_name>eryck/Laravel-project<file_sep>/README.md
# Laravel-project
Study project in Laravel
<file_sep>/app/Http/Controllers/EventController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class EventController extends Controller
{
public function index(){
$nome = "Matheus";
... | 07c85e2d498647b8af1be5a8a5740833e7697927 | [
"Markdown",
"PHP"
] | 2 | Markdown | eryck/Laravel-project | 43fa724955b61650830e03b049c27d8c279cb834 | adc4316745a51eec18db032ac308c11752f53648 |
refs/heads/master | <repo_name>MarleyGreer/rails-mister-cocktail<file_sep>/app/models/review.rb
class Review < ApplicationRecord
belongs_to :cocktail
validates_presence_of :title, :user, :content, :rating
validates :cocktail, uniqueness: { scope: :user, message: ": You can only add one review per cocktail!" }
validates :user, leng... | 2ceeffd286feb1d4bc48b16dd7d8e5b45e458a1d | [
"Ruby"
] | 3 | Ruby | MarleyGreer/rails-mister-cocktail | 158168abbaa31c99cd770c05c1b3c65b439ce4c4 | 119a4eebdd0a713b6c3de6fb19f8087e53d860aa |
refs/heads/master | <repo_name>end18/Telepathy<file_sep>/Telepathy.Tests/UtilsTest.cs
using NUnit.Framework;
namespace Telepathy.Tests
{
public class UtilsTest
{
[Test]
public void IntToBytesBigNonAllocTest()
{
int number = 0x01020304;
byte[] numberBytes = new byte[4];
... | 7b6303cab432619c63d2a322c11abd8e54d36424 | [
"C#"
] | 1 | C# | end18/Telepathy | 8c20eb485d3ee37c0ea56ad79694a0a348e0be06 | 02e358768af3189586b725e192f51f99cf568739 |
refs/heads/master | <repo_name>sonwy102/scrolling-storybook<file_sep>/src/components/RadarChart.js
import Chart from 'chart.js';
import React, { useEffect, useRef, useState } from "react";
const options = {
scale: {
angleLines: {
display: false
},
ticks: {
suggestedMin: 1,
... | ed1d1103680518ce73bf15c32da3c0fc98a14dd8 | [
"JavaScript"
] | 2 | JavaScript | sonwy102/scrolling-storybook | dbfad6c25dd9f8d6a30cb04305442efce43b9bce | 0495ec6ecec6e58342f13283f43ecd4fceadcda7 |
refs/heads/master | <repo_name>RocketModPlugins/OwnerChecker<file_sep>/OwnerCheckerPlugin.cs
using Rocket.Core.Plugins;
using Rocket.API.DependencyInjection;
using Rocket.Core.Logging;
using Rocket.API.Player;
using Rocket.API.User;
using Rocket.Core.User;
using Rocket.Unturned.Player;
using Steamworks;
namespace SDPlugins.OwnerChecker
... | d6ea6665511a9bc80a1ac0b404b4a17271b0a665 | [
"C#"
] | 3 | C# | RocketModPlugins/OwnerChecker | 8802752d2515e569360d768550f970771c8502eb | 6a93278a48be3f486403c423830acffc87064c4e |
refs/heads/master | <file_sep>// Cookie Parser
// Morgan
// Debug
// htpp errors
var express = require('express');
var router = express.Router();
var Archive = require('../db.json');
var request = require('request');
/* GET home parge. */
// router.get('/', function(req, res, next) {
// var data = {
// title: "Pro-Soccer",
// arch... | 8cd44d7445ba59fffb9e0bf5a9b5b2a3c830f937 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Ebraheem01/football-blog | 7baa69956242464e287edcd66632b16b7c4b065f | ab233ae3433347f5e2d60e4afbcdfcfd2a45d672 |
refs/heads/master | <repo_name>redBorder/druid-dumbo<file_sep>/README.md
# Dumbo
* Validate segments generated by realtime against raw data in HDFS.
* Rebuild segments that have discrepancies from raw data in HDFS.
* Collapse existing segments into higher granularity segments.
## Usage
```
$ bin/dumbo
You must supply -s PATH!
Usage: bi... | 8b596d8ddb0a2122997f7cf1a49d66100cd4bc67 | [
"Markdown",
"Ruby"
] | 8 | Markdown | redBorder/druid-dumbo | d59950c9fb0e31921e32998a5951feec524f0107 | 4e908cd8f38a215f911f558bda92291f1c495420 |
refs/heads/master | <file_sep>import os
import sys
from shutil import copyfile
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from pulpadm.constants import PKG_NAME, PKG_DESC, BASE_DIR, TMPL_DIR
# Global variables
#
version = "0.1.1"
requires = [
... | 0066316229aa268c41542b9b18fc2e8062ef73dc | [
"Markdown",
"Python"
] | 6 | Python | nbetm/python-pulpadm | 972fc5ff9149c8b02e17c5ee7b66d9735a8114e0 | 516da8c6e9af66786335f424a0433841c8eb6b4e |
refs/heads/master | <repo_name>arumisasshi/getpost<file_sep>/routes/sqltest_prev.js
var express = require('express');
var router = express.Router();
// requireの設定
const mysql = require('mysql');
// MySQLとのコネクションの作成
const connection = mysql.createConnection({
host : 'localhost',
user : 'root',
password : '<PASSWORD>',
database: '... | 86d46c98c5e5de586d14346107002035ed2e0b76 | [
"JavaScript"
] | 2 | JavaScript | arumisasshi/getpost | 098afa882d852b6b483ff906751f3cff6969118d | f29d7ef3be53894f269709545f187e61511c21e7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.