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>elidoran/cosmos-path-helpers<file_sep>/README.md
# Unlinked from Atmosphere
I no longer use any of these and won't be making any updates.
Also, FlowRouter is busy growing its API and I expect they'll make a "helpers"
package soon.
# Path Helpers [
export class UserService {
constructor(
private http: HttpClient,
private config: Confi... | 076c286256eab992cd104ceda50c500574fcec23 | [
"Markdown",
"TypeScript",
"PHP"
] | 17 | TypeScript | PauloAK/SisMEI | d6958b7257b086cc960f001d6aff5a7929f160ea | 5d16e7e053b7bd1e77c63649d29c1b31acebddef |
refs/heads/master | <repo_name>mshiihara/classwork_sound<file_sep>/openal_playstream/main.cpp
#include "OpenAL.h"
int main(void) {
OpenAL openAL;
// OpenAL初期化
openAL.init();
// 再生
openAL.play("sample.wav");
// OpenAL終了
openAL.clear();
return 0;
}<file_sep>/openal_playstream/OpenAL.h
#pragma once
#include... | ef8089ca12b845bbb40e9754d179b909f883cc9c | [
"C++"
] | 5 | C++ | mshiihara/classwork_sound | b0e536467e1200891872bfccab8cedf78cd55914 | ac9f27ff278f6a608412d5d19132c4c973eee62b |
refs/heads/master | <file_sep># beat-brain
Converting a beatbox wav file to a MIDI beat through the use of a neural net
Record a beatbox and bounce to wav file, break up wav into pieces representing each "hit" of said oral instrument, and feed a matrix of
frequencies and their intensities (through a Fast Fourier Transform) to a neural n... | 4237b1f680fd0aff8bb2e9816e84c7e929e222f7 | [
"Markdown",
"Python"
] | 2 | Markdown | oconnorg1/beat-brain | d38925e7082f388ad785d82e3d2cf9fe2eb6b351 | 6144af6ba7ac24626fe5ef739d481023bad0a5b3 |
refs/heads/master | <file_sep>package com.example.EstudoManyToMany.model;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
@Entity
@Getter @Setter
public class ItemPedido implements Serializ... | 57e6c86e2087943f9b4c747018202a0705f3c6d1 | [
"Java"
] | 5 | Java | lucasmaia19/estudo-uml | 5ad88936946121ea43a98faea0093e960a567d1a | e5c64420d75a9454cb49fab8a813afe4deae9227 |
refs/heads/master | <repo_name>bseymour/nextjs-1234<file_sep>/pages/imagetest.js
import Image from 'next/image'
function Home() {
return (
<>
<h1>My Homepage</h1>
<Image
src="https://storyus-core.s3.eu-west-2.amazonaws.com/core/site/_v1/family-sunset-austria.jpg"
alt="Picture of the author"
width... | a160e2823cd777342e8d6460dd1b0af20f55e82e | [
"JavaScript"
] | 2 | JavaScript | bseymour/nextjs-1234 | bdf13a28758549f1f3ed339c86461bb4c39567ee | 626a4d5ce21ab5d41d70a34c3ff0dfdc0942e4ee |
refs/heads/master | <file_sep>const ToDo = require("../models/db");
const path = require("path");
const bodyParser = require("body-parser");
let slugOne = {};
function showAuth(req, res) {
res.sendFile(path.join(__dirname + "/auth.html"));
}
function getUsersFromDB(req, res) {
ToDo.dbUsersModel.find({}, (err, users) => {
if (err... | c239b7da4be78abb785f79660f207bd2e97fa90b | [
"JavaScript"
] | 3 | JavaScript | grynyk/mersee | 0437fbbda0b809e2c4632197e51196afe73822e6 | 381925badfe6902aee188cdfefad2c7747c1d58d |
refs/heads/main | <repo_name>tisya207/c97-project<file_sep>/game.py
import random
number = random.randint(1,9)
#print(number)
print('GUESS A NUMBER: (you random no. range is 1-9)')
chances=1
while chances <=5:
guess=int(input('enter your guess '))
print(guess)
if guess == number:
print("congo you've guesse... | 59a8cc640aea65ec105e2e28fd667adf335dc0a2 | [
"Python"
] | 1 | Python | tisya207/c97-project | c4bdb71228923e8580e90b70dad65c3693c3a3b4 | 59b8e7d0668fc8c3604ccc87e8ada1ef787279e9 |
refs/heads/master | <file_sep>#First:
#cur_weather = %Q{ It's a hot day outside
#Grab your umbrellas...}
#
#cur_weather.lines do |line|
# line.sub! 'hot', 'rainy'
# p "#{line}" # Actual Line
# p "#{line.strip}" # removes \n and any leading and trailing space
# p "#{line.lstrip}" # removes the leading space
# p "#{line.rstrip}" # removes... | 88eb01de92968e5d0b22d2758a9ef456931266b7 | [
"Ruby"
] | 3 | Ruby | indieNik/fullstack-course1-module2 | 9c2c0d6ff00c3379f0dff1d46793faa5bcb5e7b2 | 46688e6994acc2a2daa40fa4971c4f78e8019960 |
refs/heads/master | <file_sep>## Loading S3 file with Airflow to ETL with Redshift
The purpose of this project is to build an adapted data model thanks to python to load data in a JSON file format and wrangle them into a star schema (see the ERD) with the pipeline written as a code thanks to [AirFlow](https://airflow.apache.org/).
### M... | 774041cfdf1e5b1ee799bab6ebb90845e40c7d01 | [
"Markdown",
"Python"
] | 5 | Markdown | Allhabiy/DEND-Data-Pipelines-With-Airflow | 7f611ff2f10eddcdaee70a6aab78dfeee4fb35a4 | a821c3f26ff3aa971dd5c767f9dd055844b819af |
refs/heads/master | <repo_name>ericeslinger/localForage-getItems<file_sep>/src/localforage-getitems.js
(function() {
'use strict';
// Promises!
var Promise = (typeof module !== 'undefined' && module.exports) ?
require('promise') : this.Promise;
var globalObject = this;
var serializer = null;
va... | bd47940f5736216f9ae3238c269a9e2ea44c5cba | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ericeslinger/localForage-getItems | 748fc839eb900cad5a931aa09c0869c0c8f832ca | fbabb9712948665b1d48de998a466adbac7cf0a2 |
refs/heads/main | <file_sep># ZOLA
A simple high level language which is statically compiled to x86_64 and arm64. It focuses on producing efficient code for iterative algorithms.
## The Language
### Arrays
### Vectors
### Iterators
### Generators
## The Backend
<file_sep>#ifndef __codegen_H_
#define __codegen_H_
struct SEXPR;
v... | a21629ec4c5e0925bd875410321a3b45a634eb2f | [
"Markdown",
"C"
] | 18 | Markdown | tr00/zola | f8ef1a3828001fb90ae7444a02d8d5a28c2edc8d | 1f7845e2f54e2d94645dead818ae68055af4996d |
refs/heads/master | <repo_name>martinfelbaba/gs-jpa<file_sep>/README.md
# gs-jpa
Demo project for Spring Boot Jpa, Rest
To run:
mvn clean package
java -jar target/gs-jpa-0.0.3-SNAPSHOT.jar<file_sep>/src/main/java/com/mf/gs/domain/package-info.java
/**
* Domain/model classes.
*
* @since 1.0
* @author martin
* @version 1.0
*/
packag... | 8f5cb3b13b921bfe31a63bf8e4cb21f31eeee823 | [
"Markdown",
"Java"
] | 2 | Markdown | martinfelbaba/gs-jpa | e66a2041ad12a069eba62e868b198a2768ce6261 | e8eff8162dd4b88a1eda5a4e2d38873a413039d6 |
refs/heads/master | <file_sep>/**
* @desc This js document is used for creating ajax jQuery functionality for online chat
* @author <NAME>
*/
$(document).ready(function(){
//Hiding elements that represents errors
$('#error1').hide();
$('#error2').hide();
getMessages();
getUsers();
//V... | ac21da91a30eadb7b68228c5d9806df9185af6f9 | [
"JavaScript",
"PHP"
] | 6 | JavaScript | brankozecevic/online-chat-with-php-jquery-ajax-codeigniter | 1d1728e2ea1fa43782a3db2510d3bf4643a835d9 | 152b9b7c04cb34c43d2c93c6d5aca96d0e067dae |
refs/heads/master | <repo_name>JunaidGool/shoeCatalogue<file_sep>/revised_ShoeCatalogue.js
document.getElementById("addStockButton").addEventListener("click", addStock);
document.getElementById("addStockButton").addEventListener("click", getSum);
document.getElementById("addStockButton").addEventListener("click", totalQuantities);
docu... | bd1333388cbcb5ed97ed6a9fc8b0192d968c9e02 | [
"JavaScript"
] | 1 | JavaScript | JunaidGool/shoeCatalogue | 886befdbcb4cd153addd9cbfbfb8b1537b802e08 | d58b4ae7236a53c81aafd946b1948a7649f8c13a |
refs/heads/master | <repo_name>shaiksameer46/coditas<file_sep>/src/App.js
import React, { Component } from "react";
import "./App.css";
import { Dropdown } from "react-bootstrap";
import axios from "axios";
class App extends Component {
state = {
username: "",
users: [],
repos: [],
toggle: false,
currentPage: 1,
... | fcfafd1f4a4b380a8aea443339a74ac730b2a25f | [
"JavaScript"
] | 1 | JavaScript | shaiksameer46/coditas | 95c21c0295e13b20923da2a140dd60b5f3733a6b | 4a1335351e0042080ef1ee189ff3682fa6523992 |
refs/heads/master | <file_sep># Page-Replacement-Algorithms
implementations of FIFO and LRU algorithms
<file_sep>import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
class FIFO
{
// Method to find page faults using indexes
static int pageFaults(int pages[], int capacity)
{
// If the u... | 7cf265d4be48ecd2cc2370ce200172f0b4c0e316 | [
"Markdown",
"Java"
] | 2 | Markdown | nikopetr/Page-Replacement-Algorithms | a7064e20d7a7c4190f6ca8de58d545a4934ef195 | c34d18ecfb72500ca0ff30ac55b741e312683add |
refs/heads/master | <file_sep># npm-install-cached
Cache node_modules and symlink it to app instead of using npm's caching strategy.
# Example
``` yaml
deploy:
steps:
- npm-install-cached
```
# License
The MIT License (MIT)
# Changelog
## 0.1.3
- Prune after install
## 0.1.0
- Initial release
<file_sep>repo_node_modules="$... | c3e5982ea20b93813aa2a624dfa4c90a7fadac87 | [
"Markdown",
"Shell"
] | 2 | Markdown | p60/step-npm-install-cached | 521086c50fafd7187c35be8086aafa5bedb368af | 3d1ed409d9af74ef72c437777558a7cfe3df463b |
refs/heads/master | <file_sep>let deskop = document.querySelector('.deskop');
let deskop_leftbox_inputcontainer_citiselect_submit = document.querySelector('.deskop_leftbox_inputcontainer_citiselect_submit');
let deskop_leftbox_inputcontainer_citiselect_text = document.querySelector('.deskop_leftbox_inputcontainer_citiselect_text');
let de... | d94027d1c1ae2f19c9b776f22c4ce655a52c6d63 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | phase8/weather-app | 0462e2679576e20ca9e5dcb24d562012ee13214d | 49a1d184aa05207341c22b7f3a3a48df3670cba6 |
refs/heads/master | <file_sep># App
App subida a Heroku
<file_sep>angular.module('App')
.controller(
'clientesCtrl',['$scope','clientesServer',
function($scope, Clientes){
$scope.clearCliente = function(){
$scope.cliente = {};
}
$scope.clientes = Clientes.list();
$scope.addCliente = function() {
if($scope... | 974a4ae3d35b8562d3b461c757f1c855fd95d727 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | cachi87/App | dd3ef485c9990805e78797550e6fe852d44e72c5 | 902a882d969698c7c016b90fb8b17792a0d50ccb |
refs/heads/master | <file_sep>json.extract! @comment, :id, :content, :photo_id, :commenter_id, :created_at, :updated_at
<file_sep>json.extract! @favoriting, :id, :photo_id, :favorited_by_id, :created_at, :updated_at
<file_sep>Rails.application.routes.draw do
devise_for :users
root 'users#index'
resources :photos
resources :follow... | ece644dd8d85f2aff3707b4bdb8b18c97a3e071d | [
"Ruby"
] | 13 | Ruby | eubanksanator/myst | 94cf0c99bc4da729a89b0c5d62d28addbbfdbdbc | cc374bdb97cea4cec8b1ebf5219e57d094659f43 |
refs/heads/main | <repo_name>olympic-games-navarro/olympic-games-navarro.io<file_sep>/script_streamgraph.R
# Load libraries ----------------------------------------------------------
library(tidyverse)
library(ggplot2)
library(lubridate)
library(devtools)
#install.packages("remotes")
#remotes::install_github("hrbrmstr/streamgraph"... | 854c6ddf0e0477f63c6a7e63cd848fae5dd9d717 | [
"R"
] | 1 | R | olympic-games-navarro/olympic-games-navarro.io | d9784423ff98b83068bba13120e3174f2c0ed7c7 | 5e9a49e1a9267eea955f640c4212953e3b5bd741 |
refs/heads/master | <file_sep>from django import forms
class FeedbackForm(forms.Form):
name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Enter your name'}))
email = forms.EmailField(widget=forms.TextInput(attrs={'class': 'form-control',
... | 8997b800ae041d2df6f5ee7cfe557499353c3569 | [
"Markdown",
"Python",
"Text",
"JavaScript"
] | 12 | Python | kxue4/ssw695_smart_campus | afc715a637dac090c2e14f15a85e29c12a6ced1a | 8be30fe47a6963d63c2231fbcade43d9afa87306 |
refs/heads/master | <file_sep>// Tagua VM
//
//
// New BSD License
//
// Copyright © 2016-2016, <NAME>.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the abov... | e9430bfb5922e3b2fd8c39ce5bbf3407449fbdf1 | [
"Markdown",
"Rust",
"TOML"
] | 5 | Rust | ammarfaizi2/tagua-vm | a8f7e50dd9331d49a34ac02d49c638270b8019fb | cdbde24492e3a804a669f3ee3cb3fb3d83ae39ed |
refs/heads/master | <file_sep>using System.Text.Json;
using System.IO;
using System.Text.RegularExpressions;
using DigitalerPlanstempel.Utility;
namespace DigitalerPlanstempel.Template
{
/// <summary>
/// Erzeugen und speichern der Schablone
/// </summary>
public class ModelTemplate
{
public string JsonTe... | 8d08d32a92bc3d734fa8149e42b17dc6e2c3fa4c | [
"C#"
] | 18 | C# | kilianSieben/DigitalerPlanstempel | b97221ddfff23ad54b43378d4c5dead15ac43a3e | 005a4cb7b939044cd45a77c3261932869a9add4a |
refs/heads/main | <repo_name>AaronBison/TejUtRendszer<file_sep>/app/src/main/java/com/example/tejutrendszer/adapters/BottleItemAdapter.kt
package com.example.tejutrendszer.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget... | 7670b2486509af2658928449d39e2f3594058d7b | [
"Kotlin",
"Gradle"
] | 11 | Kotlin | AaronBison/TejUtRendszer | ff1d180533fd0e1aedd0311bc1ef011f345c8c70 | 9c80dad8934f1f15c8de52b59103d37732dd68d7 |
refs/heads/master | <repo_name>ankutalev/16208_kutalev<file_sep>/Befunge/MoveRight.java
public class MoveRight implements Command {
@Override
public void execute(BefungeEnvironment context) {
context.move(Direction.RIGHT);
}
}
<file_sep>/gui/controller.cpp
#include "controller.h"
#include <fstream>
#include <iostream>
#in... | 03e92eca1c566dc5621d70f6b9e700f7ea4fa04e | [
"Java",
"CMake",
"C++",
"C"
] | 87 | Java | ankutalev/16208_kutalev | e36ecdc14960175074bb0a6a62c31bddb77db1bf | 15610a5075bb9dd50c37998a06ce8ee5996e081e |
refs/heads/master | <repo_name>repanareddysekhar/Intro<file_sep>/OOPS/src/Interns.java
public class Interns extends Employee {
@Override
public void netSalary() {
System.out.println("Stipend");
}
}
| 2927464d029dab59db6695b60cf573731b4464f4 | [
"Java"
] | 1 | Java | repanareddysekhar/Intro | e79e61297358dde550cbd994344c9e5c1ebefe86 | 6973b3a5864d873d3c6cd1ea15fb3ede52ad6ffd |
refs/heads/master | <file_sep># Python-Password-Generator
Python programm to generate password without GUI

<file_sep>import random
from tkinter import *
a='ABCDEFGHIJKMNLOPQRSTUVWXYZ'
b='<KEY>pqrstuvwxyz'
d='0123456789'
s='&~#{[|`^@]^$ù*;:!,?./§%µ£+°@^'
liste = []
print('''
▄████ ██▓███ ... | cf5ba3e8849881009ef0c84c52e5900231545585 | [
"Markdown",
"Python"
] | 2 | Markdown | Spocsk/Python-Password-Generator | c253af6f729f24380dd8ae81dfa523882e088223 | 94658da0b9b3b9048085e510120fa48c72e4eb21 |
refs/heads/master | <repo_name>Ayushjain2205/2-Runway-Airport-Simulation<file_sep>/header.h
struct Plane
{
int id;
int time;
struct QNode *next;
};
struct Queue
{
int count;
struct Plane *front, *rear;
};
struct Plane *newPlane(int id, int time);
struct Queue *createQueue();
void enQueue(struct Queue *q, struct Plane *... | 54ee2e795a903df3bdad96c1af40c792f265ecae | [
"Markdown",
"C"
] | 4 | C | Ayushjain2205/2-Runway-Airport-Simulation | d2efcc7825782f7cfe2531e0e680314588a357c8 | 14c0edb14fb3b7a6002e9e5560fbdce70c98da7d |
refs/heads/master | <repo_name>revelrylabs/Harmonium-RN<file_sep>/src/Button/index.js
import React from 'react'
import { PropTypes } from 'prop-types'
import { Text, TouchableOpacity, View } from 'react-native'
import { transparent } from '../styles/colors'
import withTheme from '../styles/withTheme'
function getStyles (props) {
const ... | 3fa7c3df32fc316877fcd16e3c741e136d58e4ec | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | revelrylabs/Harmonium-RN | 2ecda72b349cd810f627bb0338cecbb85fb69246 | a99bbb5e8b798038c9bf8257917e60bae92afc56 |
refs/heads/dev | <file_sep>import IdentificationSuccessMessage from "@/protocol/network/messages/IdentificationSuccessMessage";
export default class IdentificationSuccessWithLoginTokenMessage extends IdentificationSuccessMessage {
public loginToken: string;
constructor(
login = "",
nickname = "",
accountId = 0,
co... | 8490df8058b336a1d33322be4dfc4adcab09dbc5 | [
"Markdown",
"TypeScript",
"INI"
] | 103 | TypeScript | Bazaltic/cookietouch | 3e8bd960c2765cc98b68cda37aebe67a293c74f5 | bb57ad6c4fd3418e4734d0fd7647dd352ac58aaf |
refs/heads/master | <repo_name>bkbiggs/BF-Camera<file_sep>/camera.py
from picamera import PiCamera
from time import sleep
from datetime import datetime
import array as a
import subprocess
import sys
# this data file is generated by sunrise.pl on the import system
file = open("sunrise_sunset.data", "r")
a = file.read().split(",")
file.cl... | 693701fe53c63b2ef8c98613bc5b4b1a79403c60 | [
"Markdown",
"Python",
"Shell"
] | 6 | Python | bkbiggs/BF-Camera | ef7b8058643ab1a7eaec96f02c12fea54aa7b08d | 74fb3832db31455b26f1f6b4bfb56e5c1de48e97 |
refs/heads/master | <repo_name>chris1287/thr<file_sep>/Cargo.toml
[package]
name = "thr"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
[dependencies]
alsa = "0.2.0"
getopts = "0.2"
[lib]
crate-type = ["rlib", "dylib"]
<file_sep>/src/main.rs
extern crate getopts;
extern crate thr;
use thr::*;
struct Option {
pub short: &'static ... | 69d4f8c9ffbbc2bf9756911b71be2f8e0c6f00e5 | [
"TOML",
"Rust"
] | 3 | TOML | chris1287/thr | 7095462b17078e0def2e40ded9f4907bc4ffbd3e | e882502cdd9de42ff38bd40f9b36dc946b732bd0 |
refs/heads/master | <file_sep>const ENTER_KEYCODE = 13;
document.addEventListener('DOMContentLoaded', () => {
const form = document.querySelector('.form');
const items = document.querySelector('.items');
text.init(form, items);
});
const text = (() => {
let items;
function init(_form, _items) {
items = _items;
_form.... | ef4be73129827c8ed73f82602f434786b632f0e8 | [
"JavaScript"
] | 1 | JavaScript | mimozah/verkefni8 | bcb6db6fa78707cc7d15fb3353850ba63018a3f0 | 6883ad3c9a8905352ef697c698ca7e015103d35a |
refs/heads/master | <file_sep>
//1.Single element selector
let element = document.getElementById('myfirst');
// element = element.className
// element = element.childNodes
// element = element.parentNode
element.style.color = 'red'
element.innerText = '<NAME>'
element.innerHTML = '<b><NAME> a <NAME></b>'
// console.log(element);
let sel... | e87a841f1505278e4b42a3fcc04f3a2e950f6f27 | [
"JavaScript"
] | 1 | JavaScript | mku306ukm/html-element-selectors | ffdd6df2e589e7be306bdee9f6fdce09f58da25b | 9d516907acbeeefe8e6657bfd8257e8e96f5109f |
refs/heads/master | <file_sep>package ru.napoleonit.common.ui
import android.content.Context
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentTransaction
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.android.... | 52a44354eab3755ae74938d5e0b2bdceeb01239f | [
"Kotlin",
"Gradle"
] | 48 | Kotlin | valya1/MultimoduleTest | d30ac957ab7e56a92ca377c6b8c8d1d487b56586 | 0f606660940059160dc5c7d3403a2d9495ad729b |
refs/heads/master | <file_sep>platform :ios, '8.0'
pod 'libPusher', '~> 1.5'
<file_sep>//
// Test2ViewController.swift
// PusherTestSwift
//
// Created by <NAME> on 01/03/2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
import UIKit
class Test2ViewController: UIViewController, PTPusherDelegate { //PTPusherPresenceChannel... | 0545036ff15b778786146ed24e05f1c244fb86ce | [
"Swift",
"Ruby"
] | 3 | Ruby | a1exb1/PusherTestSwift | 66a8c9029cca3845e8c503e3da134c115ae0dc01 | cf2dc60fcd48d20d3573867685939c839e2b6d37 |
refs/heads/master | <repo_name>explore-node-js/node.js-parameter-handler<file_sep>/src/processor.js
const fs = require('fs');
const deepmerge = require('deepmerge');
const File = require('./file');
const chalk = require('chalk');
const overwriteFieldValue = require('node-object-field-resolver');
module.exports = class Processor {
con... | b059c27f1a66de3d04d40628c36d1d731f127ca3 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | explore-node-js/node.js-parameter-handler | 88da17fd114cb86d8d6d285cc66e721ca1de341a | 1c7e6b4264c01a2da19ec29348942cd6c60374b9 |
refs/heads/master | <repo_name>aswinleojohn/PythonOCRPdf<file_sep>/ocr.py
import cv2
import pytesseract
from pdf2image import convert_from_path, convert_from_bytes
from PyPDF2 import PdfFileWriter, PdfFileReader
import uuid
#image = cv2.imread('DoraBootsForever.png')
text = None
images = convert_from_path('data.pdf')
for page in images:
... | 4205bf3e1943992d5ce67221c4c647d63f10a5ba | [
"Python"
] | 2 | Python | aswinleojohn/PythonOCRPdf | 8167fd369675b04411c962d1a6ec84863820d695 | 71b004ce5e1310ac91153625dc5c3c8efc8698e2 |
refs/heads/master | <repo_name>Lakshamana/spm<file_sep>/tmp/service/mapper/ToolDefinitionMapper.java
package br.ufpa.labes.spm.service.mapper;
import br.ufpa.labes.spm.domain.*;
import br.ufpa.labes.spm.service.dto.ToolDefinitionDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link ToolDefinition} and its DTO {@link ToolDefi... | b0d7ca2e5f19a4676c903b70d526e3e8080ea0e3 | [
"Java",
"Shell"
] | 265 | Java | Lakshamana/spm | ba98a47557f196fa1429670e52549c188bbf00a1 | 366f425e66d40a50c1248eb47a677315639555df |
refs/heads/master | <file_sep><?php
/*
CHAPTER WEBSERVICES: SAMPLE OUTPUT PAGE
*/
// include helper functions
require "functions.php";
// CUSTOM PARAMETERS
// date_default_timezone_set needs to be defined if timezone is not in php.ini configuration
// change to whatever timezone you want
date_default_timezone_set('Europe/Zurich');
$Ema... | fef3e64d9484566dc42d98cdb07bcd1ae6546d4c | [
"Markdown",
"PHP"
] | 4 | PHP | InternetSociety/ChapterWebservices | 1729bb41333101bd892cc8307eb9c58a37aa7d15 | ba77a771aca5466b96ce42698fba985512eb9424 |
refs/heads/master | <repo_name>enixdark/simple_django-angular<file_sep>/README.md
simple_django-angular
=====================
A simple project use Django and Angularjs for practices
<file_sep>/apps/snippets/views.py
from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exem... | 9ba322af6c35d522dd94daa683dbfc190fe69ab2 | [
"Markdown",
"Python"
] | 3 | Markdown | enixdark/simple_django-angular | b398f76e538ae4c0ef5510860fffe4cde0de4cbd | 8824c9f8196df948c906759ef066db3f860eaf6d |
refs/heads/master | <repo_name>geekmlle/TEST01<file_sep>/HelloWorld/src/main/java/com/michelle/InsuranceServlet.java
package com.michelle;
/**
* Created by blondieymollo on 2/21/16.
*/
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;... | dd2fd331c556f8d93b1327c28c0ec01c406732f5 | [
"Java"
] | 3 | Java | geekmlle/TEST01 | 56e75cbfbf9ad71541909ad9c3fd814d57f8c958 | 43564736ab00ae9ff0b1969714113c84e7c579ac |
refs/heads/master | <file_sep>#include<ESP8266WiFi.h>
#include<ArduinoJson.h>
#include<PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#include <DHT.h>
DHT sensor(D1, DHT11);
DynamicJsonDocument status(16);//接收继电器
DynamicJsonDocument json(32);//接收灯
DynamicJsonDocument dhtjson(32);//dht
WiFiClient client;
PubSubClient mqttclient(client);
A... | c35a6cc5e993607c89ad9f322f5a82083ad009a1 | [
"Markdown",
"C++"
] | 2 | C++ | Henry630401/Arduino_SmartHome | 7f0f971d736454bf0c7b27a8d95b6996000120aa | 5b28cf62f610885ca953c37f027fd1d55595f4ae |
refs/heads/master | <file_sep>## Autor
* <NAME> <file_sep>using Microsoft.AspNetCore.Mvc;
using practica1.Models;
using practica1.Data;
using System.Linq;
namespace practica1.Controllers
{
public class MatriculasController : Controller
{
private readonly ApplicationDbContext _context;
public MatriculasController... | ad3ff245c537a2e354a90a2413d6d34844567d8f | [
"Markdown",
"C#"
] | 2 | Markdown | armaneeuu/practica1 | 5c34b009896dfb89472b859a14c6b1f16fdea601 | 941ce6be84be1cdfe16ce6e2de75623e376343d0 |
refs/heads/master | <repo_name>ewsol/szkolenieWawa<file_sep>/src/it/systems/kuchenka/Kuchenka.java
package it.systems.kuchenka;
public interface Kuchenka {
void ustawCzas(int minuty);
void ustawTemperaturę(int temperatura);
void uruchom();
void wyłącz();
}
<file_sep>/src/it/jsystems/dziedziczenie/inter/Student.java
package it.... | d1c9f5c6dfe8028db9dfa2e0e83234b7d405444f | [
"Markdown",
"Java"
] | 22 | Java | ewsol/szkolenieWawa | 324fb02b2e30761964113aca2f8b305442cc410e | 2c0f981f7009cfd9502d84c8cbcad5c108a0bd2b |
refs/heads/master | <file_sep>//
// Created by john on 7/31/18.
//
#include "sherlock-tiles.h"
#include "util.h"
#include <cmath>
#include <string>
using namespace std;
int sherlockTilesDriver() {
int s1, s2, l;
l = 1000000;
s1 = 1000004;
s2 = 1000003;
vector<long int> qs(1, 258385599125);
vector<double> ts = ... | ff061347d057a29dd8dc9354a9e751af0d4c28f5 | [
"C",
"C++"
] | 16 | C++ | johnmasiello/NativeCPlusPlusPlayground | 4358330a7b2949e19d9a35b384552879a18b7856 | 08d85b9089f164a9a8f807c4cfddcc3675f69953 |
refs/heads/master | <file_sep>SET client_min_messages TO WARNING;
-- table
CREATE TABLE IF NOT EXISTS wikidata_classes (
wikidataId VARCHAR(128) PRIMARY KEY,
found_in VARCHAR(128)[],
class_name VARCHAR(255)
);
-- adding classification
INSERT INTO wikidata_classes VALUES ('Q5', '{"P31","P279"}', 'human') ON CONFLICT DO NOTHIN... | 476cb1ff5a9f54c5619e78772bfa523a96565f79 | [
"SQL",
"Python",
"Shell"
] | 20 | SQL | britiger/osm_wikidata | 01878034a265b9a84d523465f5651dcd19ff44e6 | fc0cdf4f151da73b621c282e1dd6c7fb5f8c1412 |
refs/heads/main | <file_sep>#!/usr/bin/env bash
echo '{:a 1}' | lein jet --from edn --to json
<file_sep>#!/usr/bin/env bash
curl https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein > lein
sudo mkdir -p /usr/local/bin/
sudo mv lein /usr/local/bin/lein
sudo chmod a+x /usr/local/bin/lein
<file_sep>#!/usr/bin/env bash
... | 8cbe1ce21ea51595a611140b93f1e241e568df1d | [
"Markdown",
"Shell"
] | 11 | Shell | lasiltan/pod-babashka-aws | e119d08f738ed4fc6bb533a99288ccbd7794c18f | 3cc63a6c9116e43bf678b580a18e4464fed8cb90 |
refs/heads/master | <repo_name>morihara-y/binary-only-sample<file_sep>/src/github.com/po3rin/hello/hello.go
// package hello is sample of binary-only package
//go:binary-only-package
package hello
<file_sep>/README.md
# Golang Binary-Only Package
Go1.7 から Binary-Only Package が導入されています。Binary-Only Package はパッケージのコンパイルに使用されるソースコードを含まずにバイ... | bdf2e31c7ac62d339b573eb06a8c871cfe11a940 | [
"Markdown",
"Go"
] | 2 | Go | morihara-y/binary-only-sample | 6622b3bbd9b21256235b211b71f830e92aa15a77 | 8d2155f283eead79a002e1610ce6492cdb07aa1e |
refs/heads/master | <file_sep>package pl.inoshi.newyear.listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
public class PlayerBlockDestroyListener implements Listener {
@EventHandler
public void onBlockD... | 8ed062f2ec6453c4f515f466b0649e65c2e598e6 | [
"Java"
] | 4 | Java | 0VERR/InoshiNewYear | 9bb08808b34ca889f30fc91136ed58a5ce608cc9 | 09d6813c06ace7ca9275d919e0afd001d0ae79cf |
refs/heads/main | <file_sep>#!/usr/bin/python
# -*- coding: utf-8 -*-
# get reviews from Rakuten ichiba
import time
import json
import csv
import re
from selectorlib import Extractor
from dateutil import parser as dateparser
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from webdriver_manager.chrome impo... | 7975110c5c881289ce0d47c2d5d77f96485fdcaf | [
"Markdown",
"Python"
] | 9 | Python | jhc-shou/data-mining | 5b33324e2d165b663647a381bd1b193b4811f1da | e14a80a6ada3ac248aa614623bb13e1365f6f845 |
refs/heads/master | <repo_name>joaolucasl/komp<file_sep>/webpack.config.js
const webpack = require('webpack');
const path = require('path');
const config = {
entry: __dirname + '/src/index.js',
devtool: 'source-map',
output: {
path: __dirname + '/lib',
filename: 'komp.js',
library: 'Komp',
},
module: {
loaders: ... | 4693a6be3b8a8303076128c7e365bacebeb654d1 | [
"JavaScript"
] | 5 | JavaScript | joaolucasl/komp | b5c7ee21953026439bef4b27656a355dbc14c42f | 0145419dfd64ea02a301061d8d8ec1cbd192deed |
refs/heads/master | <repo_name>evilscientress/PyAT<file_sep>/ltestatus.py
#!/usr/bin/python
from PyAT import PyAT
modem = PyAT('/dev/sierra_internal_AT')
SYMBOL = ''
rssi = modem.get_signal_quality()
if rssi is None:
print ('%s no signal' % SYMBOL)
else:
rssi_range = PyAT.dbm_to_range(rssi)
rssi_range_name = PyAT.SIGNAL_RAN... | ce42dfae99c26936c6293d4b5b5a5e7dc4ce5737 | [
"Markdown",
"Python"
] | 3 | Python | evilscientress/PyAT | 18e76f9ff034c78b7e2b422d0817a25f3edbbdae | 75d28c5d082ddac30c16c2a28c9a2b2bdc9ac7bd |
refs/heads/main | <repo_name>GalaxyGamingBoy/Block-Destroyer-C<file_sep>/SECURITY.md
# Security Policy
## Supported Versions
Use this section to tell people about which versions of your project are
currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 0.2.x | :white_che... | a5699e1ac3c4f17e2a7f255d79af42b79360010c | [
"Markdown",
"C"
] | 2 | Markdown | GalaxyGamingBoy/Block-Destroyer-C | 92b241a81a236f9e19d21924aa2310c9f3512d1b | f2037b73b4004064250e131ca710979aab17af4e |
refs/heads/master | <repo_name>crtahlin/medplot<file_sep>/man/plotPropPositiveCI.Rd
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{plotPropPositiveCI}
\alias{plotPropPositiveCI}
\title{Plot of confidence intervals for proportions for groups an measurements.}
\usage{
plotPropPositiveCI(data, groupingVar, measurementVar, selecte... | 2e4ca04aaff834b3e0a8177d1ebb6f86c057e674 | [
"Markdown",
"R"
] | 81 | R | crtahlin/medplot | 1c8365ca0c79459170b2108ac12fe2db982303ba | 60691530bc273a056143883c15f451d966b1e009 |
refs/heads/master | <repo_name>sysudatabaselesson16/FPTree<file_sep>/prepare/report.md
# 论文阅读与前期工作总结
### 姓名:陈扬, 陈伟松, 牛凌宇, 陆记
### 学号:17343017,17343015, 17343091, 17343080
---
## 前期工作
### 使用示意图展示普通文件IO方式(fwrite等)的流程,即进程与系统内核,磁盘之间的数据交换如何进行?为什么写入完成后要调用fsync?

普通文件io方式通过缓冲区对文件进行间接操作以此提高文件读写效率,当进程fwrite写文件时,首先要向系统... | 9f249e9703ab4dfb4b59425a3b2a69a246d961d7 | [
"Markdown",
"C++"
] | 4 | Markdown | sysudatabaselesson16/FPTree | 346d44b5b49ee71ce08b9a8aca2db77bdee933dc | 7466291202787c38cd1763a4e41162077cbf5942 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { LugaresService } from '../services/lugares.service';
@Component({
selector: 'app-lugares',
templateUrl: './lugares.component.html',
styleUrls: ['./lugares.component.css']
})
export class LugaresComponent {
title = 'app';
lat: number = ... | 977806833a17b260cbc542e95324509462be05ad | [
"TypeScript"
] | 2 | TypeScript | Danielapariona/PlatziSquare | ddf1fff69be38deac68115fe58c95b2a80b98ad0 | 232223de4e99f40f9ef1d242a113396842e65441 |
refs/heads/master | <file_sep>#include <iostream>
using namespace std;
class ArrayRect
{
int** table;
public:
ArrayRect(int e, int n)
{
table = new int*[3];
for(int i=0;i<3;i++)
{
table[i] = new int[n+1];
table[i][0] = n;
for(int j=1;j<=n;j++)
{
table[i][j]=e;
}
}
}
ArrayRect(int **arr, int n)
{
t... | 3b1ea81a782ae5a1576d75787a5be0d1207a97e8 | [
"C++"
] | 1 | C++ | LukaszSac/Random-exam-solution | cec7ba35adf473e211e994010a0395f76c38f70d | df5fe9d8220df9d74167054f80cd24cb6bf96c9d |
refs/heads/master | <repo_name>flaab/py-alien-invaders<file_sep>/play.py
# Dependencies
import pygame
from pygame.sprite import Group
# Imports
import game_functions as gf
from settings import Settings
from ship import Ship
from alien import Alien
# Runs the game
def run_game():
""" Runs the game"""
# start a screen object
... | 5d9b85987166cbc5701583ab1fcb15cf94c3930a | [
"Markdown",
"Python"
] | 5 | Python | flaab/py-alien-invaders | 006094756f272f91267df4e366e62ce14c3b6743 | c9009efc23f065c37f30601f7b04b6cbdb32492c |
refs/heads/master | <file_sep>$(function() {
var workCarousel = $('.work-carousel:not(.more-works-carousel)');
workCarousel.owlCarousel({
items: 1,
nav: true,
margin: 8,
smartSpeed: 50,
animateOut: 'fadeOut',
navText: ['<i class="icon-arrow-left"></i>', '<i class="icon-arrow-right"></i>']
});
$... | edcfb56e0853a579714c4d5754d22d2778ce3cf4 | [
"JavaScript"
] | 2 | JavaScript | Linpeizhen/peizhen-lin.com | bf4c7dbda4f257ed80289e57d97bb473e2773a41 | 4f81e9b3a6482c9cd45e97aee98ce52e9b2ae921 |
refs/heads/master | <file_sep>import HTMLTestRunner
import os
import sys
import time
import unittest
from selenium import webdriver
class Baidu3(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.implicitly_wait(30)
self.base_url = "http://172.16.17.32:8080/sis/public/index.ht... | e1ef695562c7765ce6fb5f3c7d878e8f1faa75ec | [
"Python"
] | 11 | Python | Mxxxxx/PycStudy | 5e7d51501ce40dc12ba47a868057b5c8062890b1 | c4de425d8dde4c37d22dd0d44b24dbbffe3c69e0 |
refs/heads/main | <repo_name>odiak/map-and-set<file_sep>/src/set.test.ts
import { Set } from './set'
import { makeHashAndEqualFunction } from './util'
test('basics', () => {
const set = new Set(
[{ a: 1 }, { a: 2 }],
makeHashAndEqualFunction(({ a }) => [a])
)
expect(set.has({ a: 1 })).toBe(true)
expect(set.has({ a: 3 }... | 6980adc5b43f811971852c4d0f644030e6e75622 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | odiak/map-and-set | e6dfb1357805bb13a0816790d8c861b5c160f76e | 4f0e016ac346413d8c61d282aa4d0331f5a47062 |
refs/heads/master | <repo_name>tedb/etcd<file_sep>/server/release_version.go
package server
const ReleaseVersion = "0.4.2+git"
| f4d31630f33180af3afd66b5c9a347fb13178c7f | [
"Go"
] | 1 | Go | tedb/etcd | 16c2bcf951548d1c298b46c3e579fd2ef06d5839 | 578c47b60cbfbfa289c70ad191ddb58cf5695d21 |
refs/heads/main | <repo_name>LexAndYacc/EssentialCpp<file_sep>/2/2.5/main.cpp
#include <iostream>
#include <algorithm>
#include <vector>
int max(int a, int b);
double max(double a, double b);
const std::string &max(const std::string &a, const std::string &b);
int max(const std::vector<int> &elems);
double max(const std::vector<double> ... | cb29c25645e20c0dda8ba38bae3d3546169ed646 | [
"C++"
] | 7 | C++ | LexAndYacc/EssentialCpp | fafa9e2d49038c7627f0731f081f5fb15c4f3080 | 22285fadcd359c0b34f5d0f60d3f80b3ca3527e1 |
refs/heads/master | <file_sep>package com.digitalone.kasiranto.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class AdminMessage {
@SerializedName("error")
@Expose
private boolean error;
@SerializedName("message")
@Expose
private String message;
pu... | 70f917f3d9190d759630c0d8b89a3ada244f0ea8 | [
"Java"
] | 35 | Java | imdvlpr/kasiranto | 24e560049a1d4c2fc4245058ed761540fff78098 | da364cf03082232be79d1b22c9565c8c87207eec |
refs/heads/master | <file_sep>{###############################################################################
# test-timing.R
# This file is part of the R package harvestr.
#
# Copyright 2012 <NAME>
# Date: 8/14/2012
#
# DESCRIPTION
# ===========
# unit testing for function to tests correct timing functionality.
#
# LICENSE
#... | 778e0d3344c4cf7db1ef170cb74b1bb867cb4f44 | [
"Markdown",
"R",
"RMarkdown"
] | 24 | R | halpo/harvestr | 6c19cee53727b97e5391214ab90ea8ded30c2e2a | 6cb2386f5d54b4909ede1cf80fedc7249f2f0d21 |
refs/heads/master | <repo_name>dandrewgarvin/oop-css<file_sep>/README.md
# OOP-CSS
*Cascading Style Sheets.* The bane of many web-developers' existence.
Mugs, T-shirts, Stickers, and Gifs have all been made to show the high level of loathing these developers have toward this piece of technology. My personal favorite is this gif of <NAME... | 0155871747fcf7631a5dee22314432efe8929b51 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | dandrewgarvin/oop-css | 8af93ad67fa575687611fbb8991d1f5e71b7a3d9 | b5f43f00ab24a379945fa7aaa6314971c0572923 |
refs/heads/master | <repo_name>spriore/fun-projects<file_sep>/langtons_ant.py
import tkinter as tk
from random import randint
from time import sleep
class App:
def __init__(self):
self.root = tk.Tk()
self.root.attributes("-fullscreen", True)
screen_width = self.root.winfo_screenwidth() - 20
screen_height = self.root.winfo_... | 6e2b051836c5c9124d1904aff92456e9d707da11 | [
"Markdown",
"Python"
] | 4 | Python | spriore/fun-projects | fd0424cba3d69be0e8e44ddde698c209556affbe | 4746cc23328fc4d32bdc9a71f42155fa0febc63b |
refs/heads/master | <repo_name>McKnightRider/Test-Geolocation2<file_sep>/README.md
# Test-Geolocation2
Revised geolocation app to try to improve accuracy
To view website go to mcknightrider.github.io/Test-Geolocation2
<file_sep>/src/scripts.js
const holeBtn = document.getElementById("holeBtn");
const distBtn = document.getElementById("di... | b761b80d7471283b791df01041c66f0e622ed9ba | [
"Markdown",
"JavaScript"
] | 2 | Markdown | McKnightRider/Test-Geolocation2 | 4d26ffc2eb35d0191e08d7dedb0441d70681f5ea | 94274ea9f0b8b0556db662d26ce65a944a838638 |
refs/heads/main | <repo_name>Abadi11/JavaScript-Core-1-Coursework-Week3<file_sep>/3-extra/credit-card-validator.js
function isCreditCardValidate (numberCard){
let output;
numberCard = numberCard.toString().split("");
let newArr=[];
for (let i = 0; i < numberCard.length; i++){
numberCard [i]= parseInt(numberCard[i])
newArr.push(n... | 0f521ed1111e4059e8226adbbdb0d344f6117b60 | [
"JavaScript"
] | 1 | JavaScript | Abadi11/JavaScript-Core-1-Coursework-Week3 | 746c2c47b5b8d7ae62f939a28ced896e49949052 | de557b5579de158b15fa125bf61250656930ade1 |
refs/heads/master | <file_sep>import math
coords = input().split(" ")
coords = [int(i) for i in coords]
assert len(coords) == 4
for i in coords:
assert i <= 1000
print(round(math.sqrt((coords[2]-coords[0])**2+(coords[3]-coords[1])**2)))
<file_sep>import math
procents = int(input())
money = int(input())
assert 1 <= procents <= 99
... | 37e92e37a3f81585da005fc3167dedda0810075f | [
"Python"
] | 3 | Python | TrashboxBobylev/Olymp2018 | 6c1ce96f850f621fbd016e2b38a6480b85e05701 | 45165c0ba192ad42d186013d11cd94addfb61d7b |
refs/heads/master | <file_sep># first attempt
# References:
# **** https://www.youtube.com/watch?v=JtiK0DOeI4A&ab_channel=TechWithTim ****
# https://www.redblobgames.com/pathfinding/a-star/introduction.html
# https://www.youtube.com/watch?v=P4d0pUkAsz4&ab_channel=RANJIRAJ
# https://www.youtube.com/watch?v=-L-WgKMFuhE&ab_channel=Sebas... | d7f3ad4ce08ade9ca185d48d4c2e184f8c05ddfe | [
"Python"
] | 3 | Python | jasonskipper/artificial-intelligence | 44fab638e3bcb1de31f6e0f31489c8f1e88f1a7f | ca50a42b90612c1287950e3f74990192d1667cf5 |
refs/heads/master | <repo_name>SteveAmor/raspberry-pi<file_sep>/ultrasonicDistanceSensor.py
#Libraries
import RPi.GPIO as GPIO
import time
from pythonosc import osc_message_builder
from pythonosc import udp_client
GPIO.setmode(GPIO.BCM)
#set GPIO Pins
GPIO_TRIGGER = 4
GPIO_ECHO = 17
# send to sonic pi
sender = udp_client.SimpleUDP... | 4eb121bf2ebcb35c383632f03dceeb21726887ac | [
"Markdown",
"Python"
] | 2 | Python | SteveAmor/raspberry-pi | bb5575b4f3cb8a212a5f20c4d63e3c99355bf4d6 | 1f072d043321acb1fa34f414a9f9b09cb47e6065 |
refs/heads/master | <repo_name>wanghaibo1991/HBGOGO<file_sep>/Example/Podfile
use_frameworks!
platform :ios, '8.0'
target 'HBGOGO_Example' do
pod 'HBGOGO', :path => '../'
pod 'TRUNetworking', :path => '../../../Lib/TRUNetworking'
target 'HBGOGO_Tests' do
inherit! :search_paths
pod 'FBSnapshotTestCase'
end
end
<file_sep... | 6981036ec799fef89b2fe220cf75a52c904d187f | [
"Markdown",
"Ruby"
] | 2 | Ruby | wanghaibo1991/HBGOGO | e32282853ccf99fb4129089b87ef671a3cd87fee | 357ab8cb4fd9ae95fc29640e8fa9aef7315a661f |
refs/heads/master | <file_sep>function populate (){
$('table').empty();
var start = $('#start').val() || 10;
var end = $('#end').val() || 100;
if(start > end){
$('#test').append('<tr><td>Start MUST be less than the end!</td></tr>');
return;
}
var counter = start;
for(var j=1; j<=Math.ceil(end/10); j++){
$('#test'... | dfa9019684603dbe5a16ee96bf716ceeba34bc51 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | joellamathellama/DrWhoChallenge | de0d17dd7d316abb76a7addb4104d92fbc0c9258 | e7f68b70eb2f246141a7d8ed3d5c59c149d38b75 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace WarsztatyViewModel
{
public class ContactViewModel
{
public string Name { get; set; }
public int Number { get; set; }
public string Email { get; set; }
... | 5a799a60407ac8ecfcbffb5b124a52fec06fb573 | [
"C#"
] | 5 | C# | Kamil01491/AzureWorkShopUnit4 | 3615e3fdb72d5b2c063987d7142ff5563f1ad96b | 32bde2420482ca4b0074c8460797fa0f7503103d |
refs/heads/master | <file_sep>package com.lagou.test;
import com.lagou.mapper.IOrderMapper;
import com.lagou.mapper.IUserMapper;
import com.lagou.pojo.User;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFac... | 706b840db609174b344cbb7f1c91b4ca219a50eb | [
"Java"
] | 4 | Java | MaoLixin1998/mybatis_multitable | 0112fe582cc9a3f13af1435f73da57fb7ccdb9f9 | cd9b433a9d2e91483804cc984855b62b36f06d8d |
refs/heads/master | <file_sep>package com.thomsonreuters.ce.dynamic_wrapper.test;
import java.util.HashMap;
import java.util.Map;
public enum CmdStatus {
WAITING(1, "WAITING"),
RUNNING(2, "RUNNING"),
FINISHED(3, "FINISHED"),
FAILED(4, "FAILED");
private int id;
private String name;
static final Map<Int... | a0d727e1e244336dcaf1435d362f5600197912ec | [
"Java"
] | 3 | Java | sihanwang/dynamic_wrapper | 66d736b1fad2ac901e8ee24aa31da8fadeaf070e | f10927d8583d690d7022814660b3d26788dc2619 |
refs/heads/master | <file_sep>using Microsoft.AspNet.OData;
using Microsoft.AspNet.OData.Extensions;
using Microsoft.AspNet.OData.Query;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Phx.People.API
{
p... | f92643248ad99fd6dfa83f473e18188f34fb2602 | [
"C#"
] | 14 | C# | denious/sf-ocelot | 35baf186cd73c5b3e3e4ac6434171a008f112b30 | 42ffb5429f9dfa25a4962f4593d121c82c75a9b4 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ANDREICSLIB;
using ANDREICSLIB.Helpers;
using ANDREICSLIB.Licensing;
using ANDREICSLIB.NewControls;
namespace Timezone_... | 3ea31800ad2cae79d28acbb1c53eca635ac5ddd4 | [
"Markdown",
"C#"
] | 3 | C# | andreigec/Timezone-Sleep-Converter | 7d1860d14a5c3d10202954263c8a3e96126bbbbb | e4646ae073fcc5d134ecf852118667f6156e401d |
refs/heads/master | <repo_name>jolin1337/php-rest-api-lib<file_sep>/Response.php
<?php
namespace gd\rest;
use Exception;
class Response {
private $app = null;
private $ended = False;
function __construct ($app) {
$this->app = $app;
}
public function getApp () {
return $this->app;
}
public function hasEnded () ... | 3d5c407d0f007202ef0fb8c5a3520e94f2b7a183 | [
"Markdown",
"PHP"
] | 5 | PHP | jolin1337/php-rest-api-lib | 6d96567a284c236fd3aac996f28a1a47c0724d3a | 15ce2253bb444c476e36fbef13feb199280e6280 |
refs/heads/master | <repo_name>tmwayne/shell_scripts<file_sep>/config_vms.sh
#!/bin/bash
USAGE='Usage: send_setup_files [-f files] [-d dirs] [-p vm_path] vm1 [vm2]'
while getopts ":hf:d:" opt; do
case $opt in
h)
echo $USAGE
exit 0
;;
f)
FILES=$OPTARG
;;
d)
DIRS=$OPTARG
;;
\?)
... | 9aaef375a8f3f9f52e7de2ff85cfc3c048afb71c | [
"Shell"
] | 12 | Shell | tmwayne/shell_scripts | 2f77b8e5ad452dd7f28a1be1983da4328b995491 | 124277c415ab48179e1ea2ff3c7308000df79642 |
refs/heads/master | <file_sep>#include <TimerOne.h>
#include <Ethernet.h>
#include <UbidotsEthernet.h>
#include <SPI.h>
/***** POST *****/
char const * TOKEN = "<KEY>"; // Assign your Ubidots TOKEN
char const * VARIABLE_LABEL_1 = "temperature"; // Assign the unique variable label to send the data
char const * VARIABLE_L... | e244822dae47c054373596656182999fb745598c | [
"C"
] | 1 | C | JonnyMarques91/PID_Ethernet | ac3400720b810fa84cf05a5cb901d30ac68c502c | 3b1d3b282dd6f28e7907ac7785a66a25bd8d1a64 |
refs/heads/master | <file_sep>################################################################################
## fitfun.SP functions
##
## a function to obtain the solution paths for the SPSP algorithm. These
## functions need to take arguments x, y, family, standardize, and intercept
## and return a glmnet object that has the solution... | 0fb62e67999a48444bd39608cafe15ce5bedc8a2 | [
"Markdown",
"R"
] | 8 | R | XiaoruiZhu/SPSP | 37f503666a4c7d991131bebbeea130ad4f34b8cc | f57729b368fd80333b740d5b32418b6b2c0d9bbf |
refs/heads/master | <file_sep>source 'http://rubygems.org'
gem 'jruby-openssl'
gem 'sinatra'
gem 'trinidad'
gem 'json'
gem 'rest-client'
gem 'mongo'
gem 'spreadsheet'
gem 'pony'
<file_sep>#!/bin/sh
jruby -S gem install bundler heroku
jruby -S bundle install
git init
git add .
git commit -m "Initial commit of repository"
heroku create --st... | b639742d5efb0f11238d510bd6a81f2288660094 | [
"Ruby",
"Shell"
] | 4 | Ruby | codingricky/jruby-expenseit | 16f3936f7dcfe1e1b76f6aa1a00fa4a383640828 | 8d90c366793479baffa4c967cc73fd3af979c718 |
refs/heads/master | <repo_name>learrsan/WebPart00<file_sep>/WebPart00/WebPartNoVisual/WebPartNoVisual.cs
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
namespac... | d82bb6382330e722e69584b5dffb4d81eeb47525 | [
"C#"
] | 1 | C# | learrsan/WebPart00 | 63296976310ed5fcbb077e0a07e19e67c8b42d39 | dfaa153f7ed00efbd72a717e702f3db9a47a74da |
refs/heads/master | <repo_name>rossgoodwin/rossgoodwin.github.io<file_sep>/csv_to_json.py
import csv
import json
from collections import defaultdict
import datetime
import calendar
import StringIO
import requests
response = requests.get('https://docs.google.com/spreadsheets/d/1W2e4HI2pCrI2zTISdif4D4rcKJ_2K2Lq07E-fr-ZGQ0/pub?gid=134809897... | 82a0f3dd6c676b99773f43429b4cbbf5b65a88d7 | [
"Python"
] | 1 | Python | rossgoodwin/rossgoodwin.github.io | 2af8e1471e8a920d05833b7ff67e9c9677042997 | a1e9543d2bd74d8b37bcead29b00033a12456845 |
refs/heads/master | <file_sep>/*
--------------------- Factory -------------------------
-----------------FactoryIntermediate-------------------
-------------ClassUsedByFactory {1...n}----------------
*/
// the html file uses DOM 0
// creates the objects and switch between them
// acts like an interface
// to keep the me... | d72b0bdfc343d927e6b18e947becb5ccee471595 | [
"JavaScript"
] | 1 | JavaScript | joaovicenteft/designpatternsJS | e72d1f585e11f58e0e5f0ef5c8b392355dc71f0a | 6ea166162469ebf2df6f1bce8cc7dce5e426bfb4 |
refs/heads/master | <file_sep>import React, { Component} from 'react';
import { connect } from 'react-redux';
import WeatherChart from '../components/weather_chart';
class WeatherList extends Component {
renderCityWeather(city_weather) {
const temps = city_weather.list.map(data => data.main.temp);
const humidities = city_weath... | 19a6070718cc52a99a77cad9522098766fe5302c | [
"JavaScript"
] | 2 | JavaScript | ericchen0121/weatherSearchReactRedux | 2e4f405015c8b6a34e4e4fd6150759997572086f | 2c4f1e9f6a7a2774e70724666394c2c906be15a8 |
refs/heads/main | <repo_name>abhilashkrishnan/blaze<file_sep>/src/debug.h
#ifndef DEBUG_H
#define DEBUG_H
#include "vm/chunk.h"
void disassembleChunk(Chunk* chunk, const char* name);
int disassembleInstruction(Chunk* chunk, int offset);
#endif<file_sep>/README.md
# Blaze
Blaze Programming Language will be a compiled and interpreted ... | 29d7ec629ae170fbf1a03cb0667741d8c9bc215f | [
"Markdown",
"C",
"Makefile"
] | 4 | C | abhilashkrishnan/blaze | 03379038750e003ff23b80e9c28602420c46bae4 | 12ac3487ccc9fb9d980eca78620622ba6618a658 |
refs/heads/master | <repo_name>paulosevero/vagrant_examples<file_sep>/vagrant-for-rails-apps/lang/README.es.md
# Entorno virtual de desarollo para Rails en Vagrant
[English][en] |
------------- |
Archivos de configuración para construir automaticamente una maquina virtual flexible con las herramientas básicas para desarrollar proyectos... | 0ba91fcc53002d9455d9ad1c10a08a743e887a67 | [
"Markdown",
"Ruby",
"Shell"
] | 5 | Markdown | paulosevero/vagrant_examples | 43019420801f0269179d893becc3170b00b47dc9 | c72d32f135ce9a177622eae9bdb94c546405b288 |
refs/heads/master | <file_sep>package pageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import resources.Base;
public class Register_Page extends Base{
public Register_Page (WebDriver driver) {
super();
this.driver = driver;
}
By fullName = By.xpath("//inp... | 1b3be079b8cfa5a781af1d49b4b01b84a02c5072 | [
"Java",
"INI"
] | 5 | Java | dungdoan68/Aspire | 8701da18a8302ae8c9f7a9585dcef320ff364f0b | ce6832418bee388b949e3e217dc9e2c0dac100f1 |
refs/heads/master | <repo_name>bmehler/jenkinstest<file_sep>/src/test.php
<?php
echo 'Nochmal von ganz vorne';
echo 'An den Anfang';
echo 'Zurück! Von ganz vorne!';
echo 'Beginnen wir nochmal';
echo 'Nochmal beginnen';
echo 'Und wieder von vorne!';
echo 'Heute ist ein schöner Tag!';
echo 'Hoffentlich morgen auch';
echo 'Es regnet nicht!'... | fb5efa810317bfdaaf8ca8a93e019b7ea65eca5c | [
"PHP"
] | 1 | PHP | bmehler/jenkinstest | 61682b9a3ce9e08046447344129b6148496517bf | e76dbde7914fadb767163072143ccc6c703be129 |
refs/heads/master | <repo_name>k0div/BOT<file_sep>/index.js
const discord = require("discord.js");
const bot = new discord.Client();
bot.on("message", (message) => {
if(message.content == "!teste"){
//message.reply("Teste Concluido!");
message.channel.sendMessage("Teste Concluido!");
}
});
bot.login(process.env.B... | 8e212f6800cd8439738a7f94dc7addef35fb7d7b | [
"JavaScript"
] | 1 | JavaScript | k0div/BOT | 0f3b83e3e962c278a058ab156cbc81ea0cf57b94 | 26efe18db15b6093b6cb86eea7ffb216573881d4 |
refs/heads/master | <repo_name>Nepeus/querido<file_sep>/conectar.php
<?php
$nombre_bd = $_POST['name'];
$conn = mysqli_connect($_POST['host'], $_POST['user'], $_POST['pass']);
if (!$conn) {
echo 'No se pudo conectar a mysql';
exit;
}
$sql = "SHOW TABLES FROM $nombre_bd";
$resultado = mysqli_query($conn,$sql);
if (!$resultado) {... | 191a5888c1a2a548ab5dab65633f54ad506ba3a7 | [
"Markdown",
"PHP"
] | 7 | PHP | Nepeus/querido | f7a625bed737bb08df80059be98906e85a499423 | 1c83db1311c5a08fa37e5d44a51e6a5d0e802154 |
refs/heads/main | <file_sep>const trailHeads = ['Bell Canyon', 'Rock Mouth', 'Hidden Valley', 'Little Willow Canyon', 'Draper Alpine', 'Dimple Dell', 'Temple Quarry', 'Alpenbock Loop']
const pathBtn = document.querySelector("#path-finder")
function pathFinder(){
alert("You should Try " + trailHeads[Math.floor(Math.random() * trailHea... | 077f166855a187852c7cf517d582db08aacc7fbe | [
"JavaScript"
] | 2 | JavaScript | owenutley/Assessment-week-3 | 9453d2f3fdf6b80c5efad4336f60f640817a2278 | 568ed1d2a73890ab0b91bae62c974147194efb88 |
refs/heads/master | <file_sep># Dot Product Experiment
用不同的硬件和方法计算不同长度的向量点积并计算其消耗的时间
c = [a1, a2, ..., an] * [b1, b2, ..., bn] = sum(a1×b1, a2×b2, ... an×bn)
程序分别用以下三种方式计算点积:
+ CPU单核暴力运算
+ OpenMP多线程运算
+ CUDA GPU运算
## 编译环境:
+ CMake 3.17 or above(CLion自带的好像编译不出OpenMP,自己装的可以)
+ CUDA版本不是太低应该都行
+ 须在环境变量中设置`CUDA_PATH`为CU... | c3fd58e5289a3894923ff8af6c866a486af8d593 | [
"Markdown",
"CMake",
"C++"
] | 3 | Markdown | lonelyion/dot-product-experiment | f64b62ace32ad26d8394b3dff8a52b06e0b43d4f | 09af57374015bb4d8282bcea9704de3386a1de7e |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Facturation.Shared
{
public class Facture
{
public static int DEADLINE_WARNING = 14;
public static int DEADLINE_A... | 42d008dc0fe71496646f50e5ed8fc0830813b520 | [
"C#"
] | 7 | C# | AqVScipio/NET_Facturation_Atelier4 | a96b662cbf40cff73243e35aaad17d8577fc6e07 | 226da137b9199dbcdc041c336809cd487d58463a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.