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>alfonsorognoni/test_jest<file_sep>/fizzBuzz.js
function fizzBuzz(start = 1, stop = 100)
{
let result = '';
if (stop < start || start < 0 || stop < 0) {
throw new Error('Invalid arguments');
}
for (let i = start; i <= stop; i++) {
if (i % 3 === 0 && i % 5 === 0) {
... | 11aab707dcbf2f6c72d81ec259fe4fff69eab7b1 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | alfonsorognoni/test_jest | 058bdf9404feb37ef8e6211452f5c1e99a3a2fdd | 4db0949aafa0f0c7074a877c185470711c04c6cf |
refs/heads/master | <file_sep><?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Etat extends Model
{
public $timestamps = false;
protected $fillable = [
'idpartie', 'carteg1', 'carted1', 'carteg2', 'carted2', 'carteg3', 'carted3', 'carteg4', 'carted4', 'defausse',
'nbdefausse', 'nbpioche'
]... | 19b7ea8fef6bc7eba036fe8f0c737c121f36ba43 | [
"Markdown",
"PHP"
] | 17 | PHP | Kleyment/love_letter | 611c77760f7c5e51f2f688e0b8c87a7a63180faf | 26e4a7a0eec0885587985121db789abc8004b7e6 |
refs/heads/master | <file_sep><?php
session_start();
include('controller/c_WorldHistory.php');
$c_worldHistory = new c_WorldHistory();
$content = $c_worldHistory->index();
$slide = $content['slide'];
$menu = $content['menu'];
$first_new = $content['first_new'];
$content = $c_worldHistory->CTGD_option();
$CTGD = $content['CTGD'];
if(iss... | be4141c535b3cdc4c42bb0fc5e941cf034f66cd9 | [
"JavaScript",
"Markdown",
"PHP"
] | 11 | PHP | yyater97/World-History-Website | 9e3b34376d6cf1e06eb9c7fc7c1e88995a5d4332 | 97538bc92e4caf3af40d35f804c02cf83bfd815f |
refs/heads/master | <repo_name>SuperHenry2333/maml_new<file_sep>/maml.py
""" Code for the MAML algorithm and network definitions. """
from __future__ import print_function
import numpy as np
import sys
import tensorflow as tf
try:
import special_grads
except KeyError as e:
print('WARN: Cannot define MaxPoolGrad, likely already def... | 2e2a98d4459b3b6da2c37ba78d739a72fd2dccb7 | [
"Python",
"Shell"
] | 4 | Python | SuperHenry2333/maml_new | 376b37b612dc23c0f0b34390a13ad3ea0ec0f7cb | f7356ea2be4305fbf306b7f5d85d5d1ecd70d5ab |
refs/heads/main | <repo_name>GOJABoop/Portfolio<file_sep>/src/sections/index.js
export * from './Navbar';
export * from './Hero';
export * from './ProjectsSection';
export * from './TechnologiesSection';
export * from './ContactSection';
export * from './Footer';
export * from './Main';
<file_sep>/src/sections/Hero.jsx
import { LineTer... | f4bf7c67e8720b9c8f31e4842b5bea87ca9ac056 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | GOJABoop/Portfolio | 9e174ee83035f4293e9a8f36dc1f15bf2373757d | 231b72497ebcd9e6ba3f40f3b516d4bca5abc600 |
refs/heads/master | <repo_name>dmanning23/DepthBasics_KinectMonogame<file_sep>/Game1.cs
using Microsoft.Kinect;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
namespace DepthBasics_KinectMonogame
{
/// <summary>
/// This is the main type for your game
/// </summary>
public class Ga... | 0b5510cf98869a561e790ff93c4c6002c183b5ba | [
"C#"
] | 1 | C# | dmanning23/DepthBasics_KinectMonogame | 58d66f8124d66a949ceaa7c932b213b19090646e | 19accdaecab5620515e305a13a8baa7bd9175f3f |
refs/heads/master | <file_sep>const gulp = require('gulp');
const elm = require('gulp-elm');
const flatten = require('gulp-flatten');
gulp.task('default', ['elm', 'html']);
gulp.task('elm', _ => {
return gulp.src('src/frontend/Main.elm')
.pipe(elm())
.pipe(gulp.dest('build/'));
});
gulp.task('html', _ => {
... | 8b606f75d0899c39c2e7c538f2fcf356d84a0bae | [
"JavaScript"
] | 1 | JavaScript | ryantriangles/disc-log | 40312cd5aa54ad9730c28f8c78ca53b7c83ca38f | f90323ef18264a4935792c441ee01f75420f9bd9 |
refs/heads/master | <file_sep>use_frameworks!
platform :ios, '8.0'
target 'KYUtilityKit_Example' do
pod 'KYUtilityKit', :path => '../'
target 'KYUtilityKit_Tests' do
inherit! :search_paths
end
end
| b2fe631698f73bc04eda1301a0ce804ce2f88ce8 | [
"Ruby"
] | 1 | Ruby | echoingtech/KYUtilityKit | 890a45a8bd48ab4c610c644a6713ba49b9cf8fd2 | 2f9e92298aeb27ca4982265e8ecc98c128106c3a |
refs/heads/master | <file_sep>// Generated by BUCKLESCRIPT VERSION 4.0.1100, PLEASE EDIT WITH CARE
'use strict';
var Reprocessing = require("/Users/chihching/reprocessing-fruit-ninja/node_modules/reprocessing/lib/js/src/Reprocessing.js");
Reprocessing.hotreload(undefined, "src/index.re");
/* Not a pure module */
| ddf555bdf5641ff8140ddb9bd1a2c338a5c60c66 | [
"JavaScript"
] | 1 | JavaScript | eyeccc/reprocessing-fruit-ninja | 74641484afb1314898f4244fa29f9e1c1883b647 | fbf5584e404beb3a6634325df62a8e05f2a8a091 |
refs/heads/master | <file_sep>#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
CREATE USER avenuecode WITH PASSWORD '<PASSWORD>' NOCREATEDB;
CREATE DATABASE avenuecode_database OWNER avenuecode;
EOSQL
<file_sep>package com.avenuecode.entities.mappers;
import com.avenuecode.dtos.RoutesDto;
import com.av... | 661b9e60618c0673c31d81a8c4742c204a0f99f6 | [
"Java",
"SQL",
"Dockerfile",
"Shell"
] | 14 | Shell | alveesrenan/lannister-carriage-services | fa9e797056d603b5a5e2e85d4c9115c4152812fa | e1859a410feb2994e9f1ea88a5a4b686a476ceec |
refs/heads/master | <file_sep># !/usr/bin/env python
# Created by: Manuel
# Created on: November 2019
# this is "The Hello World" program on the PyBadge
def main():
# this function prints to the screen and console
print("\n\n\n") # 3 blank lines
print("Hello, World")
while True:
# repeat forever, or you turn i... | 7460ae4fe1eedb06e1e37ed2673c9fed9c970ee7 | [
"Python"
] | 1 | Python | manuel-garcia-yuste/ICS3UR-FP1 | 1ba9e9121accc092141527059fba0a584c69a260 | a8442a5bc2c2187d4f3f3f1f8f3bc2b6588ddbbc |
refs/heads/master | <repo_name>it-academy-htp/demo-samples<file_sep>/GlobalMotorcycleServiceModule/MotorcycleConsole/Program.cs
using GlobalMotorcycleServiceModule;
using System;
namespace MotorcycleConsole
{
class Program
{
static void Main(string[] args)
{
MotorcycleService service = new MotorcycleS... | 8beb655ab43a173c247de5221f2f148745a48a61 | [
"C#"
] | 3 | C# | it-academy-htp/demo-samples | 162b17821c961f4c41148418058f84775e34e433 | f1804a8035a459c7860ad9f273608acce91ca390 |
refs/heads/master | <file_sep>SPA made with JS, HTML5, CSS3(SCSS). JS code is written in the "older version" just to make it work on IE but modern one is also in the js file but commented out :)
Page is fully responsive.
<file_sep>
'use strict';
//gallery handler
(function () {
var currentImage = document.querySelectorAll('.main-img ... | b824d8374f5b9efd3130dd909483c24ae7dbc4a9 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | AdamKniec/newRegosteel | 6374602d8b1938136c5dab77471423c96528655b | bdb58c1c2e86a113faaf48e1c85bd19b81a0d75b |
refs/heads/master | <file_sep># Autoform jQuery Knob
This is a simple integration of the excellent [jQuery Knob](https://github.com/aterrien/jQuery-Knob/) plugin for Meteor [Autoform](https://github.com/aldeed/meteor-autoform).
## Installation
meteor add jameslefrere:autoform-jquery-knob
## Schema
An example field in the form's ... | cd52bdd0048ae956fcd69daa5dd2eb6d7099f62e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JamesLefrere/meteor-autoform-jquery-knob | 922d9580bf70a6a196ad8f8e17279a04b761035b | 87fb08dc0e752a2448c4d7da2f53c3833d9e5443 |
refs/heads/master | <file_sep>const arr = [0, 10, 3, 5];
const number = document.getElementById("number");
const send = document.getElementById("send");
const showAnswer = document.querySelector("#answer");
let index;
send.addEventListener("click", function () {
showAnswer.innerHTML = "";
for (var i = 0; i < arr.length; i++) {
if... | e75f64ef8cec09459a3e5ec59ca59af8a3080428 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | colorlessenergy/linear-search | 125f2112644ac5f511bc2e82b2a9b10415d51f5e | 900e912dbd4f731046c9c75bb59e707e6a857a03 |
refs/heads/master | <file_sep>var React = require('react');
module.exports = React.createClass({
getImage: function() {
return 'img/products/' + this.props.data.id + '.png';
},
getTitle: function() {
return this.props.data.title;
},
getPrice: function() {
return this.props.data.currencyFormat + ' ' + this.props.data... | d0c38767c1fa3d0a432798a622cc44321365b545 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | fpedroso/front-end-recruitment | 73827dec4ec946e979eee251294c93802c4cb20c | af951bb75057a62f4f539d7949242045a6b07a80 |
refs/heads/master | <file_sep>import React from 'react';
import ButtonSet from 'components/ButtonSet';
import inputHandler from 'actions/inputHandler';
import logMessage from 'actions/logMessage';
/*
** Creates a connected set of buttons from the given set of internal values and display values
*/
const createButtonSet = (buttons, spacing... | 01ee9290fea472dcef91744650803934219348b2 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | tilr-corp/tilybot-client | 89bf58e62a9b8f1d681405f1d92aeb69b261fae7 | 2865c8f8734eba9ae29aa4afd62d0c42b0523cb0 |
refs/heads/master | <file_sep># DumpMash Collection Points Scrape from Pulse
Scrape garbage collection point location information from pulse article.
## Useage
Install scrapy and firebase_admin
```
pip install scrapy
pip install firebase_admin
```
clone the repository and make the necessary changes in the [pulse.py](pulselocations/sp... | ab5bf3afaf5667d9c6ec7cd0fd2d9ee8c852f253 | [
"Markdown",
"Python"
] | 2 | Markdown | arcslash/dumpmash-pulse-scrape | f4fe25e4b67bc9da3b6b4ee3a6053171cb86a5ee | fea8b35683ead0cba6bcb5aaf661fe7e58b506d9 |
refs/heads/master | <file_sep>/*
Template: Car Dealer - The Best Car Dealer Automotive Responsive HTML5 Template
Author: <EMAIL>
Version: 1.0
Design and Developed by: <EMAIL>
NOTE:
*/
/*================================================
[ Table of contents ]
================================================
:: P... | a66b74081c19341bb539bd325aea3315951af8b9 | [
"JavaScript",
"PHP"
] | 2 | JavaScript | mroloff09/landing_page | fa15103fd286676ef125c5742d7fb6a3df457144 | 62f3ef51c8a07b24cb5e273b56c8bfa5e7d127ad |
refs/heads/master | <repo_name>eunhye4422/9.23<file_sep>/10.1/제이쿼리/js/script.js
$('.posts li').on('click',function(){
console.log('dpdpp')
var index = $(this).index();
$('.post_content div').eq(index).show();
$('.post_content div').eq(index).siblings().hide;
})
//var doc= document;
//var menu = doc.get... | cdfc409a985bd3f120540b789a96b0c418940e0b | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | eunhye4422/9.23 | b45d52b3d36a4c9389ae76aee9b388e86b4893d9 | 45c7d171e3967a3923d36cc09655d17f5aea3aa4 |
refs/heads/master | <file_sep>def create_an_empty_array
my_array=Array.new
end
def create_an_array
my_array = Array.new(4) { |i| i += 1 }
end
def add_element_to_end_of_array(array, element)
array=array << element
end
def add_element_to_start_of_array(array, element)
array=array.unshift(element)
end
def remove_element_fr... | e6728d3c6624db640841adf95a9dfb7ea3be82ad | [
"Ruby"
] | 1 | Ruby | lawrend/array-CRUD-lab-v-000 | 29519a88cfd94a686bf06bb39f78e368205b6593 | 8d0a57a1c01763da65d04ed61309bfba75ffe4c8 |
refs/heads/master | <file_sep>package com.jorge.exam;
public class Order {
String value = "t";
public int a(int a){ return 2;};
public int a(){ return 2;};
final String value1 = "1";
static String value2 = "2";
String value3 = "3";
final String value4;
{
//value1 = "d"; //No se puede, value1 es FINAL y ya está i... | f4f58567bfa0aca8bf8ea4a2c1af696e695cbafd | [
"Java"
] | 2 | Java | Yorso/oca2 | ddd45da07ee20df6053ea4dbac34d376a92cd65f | 58f690efa7689cdf0c1722bc54dac50bfccbeb35 |
refs/heads/main | <file_sep>package com.husd.controller.project;
import com.husd.domain.Req;
import com.husd.domain.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.core.io.InputStreamSource;
import org.springframework.web.bind.annotation.*;
import java.io.File;
import jav... | 68f5b309930b82795c59a7c2d15cf8f89982241b | [
"Markdown",
"Java",
"INI"
] | 10 | Java | husd/postman-tool | 7b2eb3ef106caa0997a2e52429e3faadad12effb | 84ffd4658f7a5edb8361c45c168068bd9d35e6ab |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import 'rxjs/add/operator/first';
@Component({
moduleId: module.id,
selector: 'seed-simple',
templateUrl: './simple.component.html',
styleUrls: ['./simple.component.scss']
})
export class Simple... | 3cdd2e3d66c19919b77f6e28abf8a42d17e4d109 | [
"TypeScript"
] | 7 | TypeScript | theinternetgy/angular-native-seed-examples | 6fdde4e33e9ab92095748b39039c8c32aef96eed | 45e8d0f30da1f584d6b7d31c0a339b8e964f1f6e |
refs/heads/master | <file_sep>class AdminController < ApplicationController
include AdminHelper
def new
if signed_in?
redirect_to blogs_path
end
end
def create
if !request_user.nil? && authenticate(request_user)
sign_in request_user
redirect_to blogs_path
else
render 'new'
end
end
def destroy
sign_out
re... | 82812c8ad91fffcc0809ae9710a42a88732d47f7 | [
"Markdown",
"JavaScript",
"Ruby"
] | 20 | Ruby | jerryshew/SweetHome | 973c4524e96573cfce38000844dd4b9b02baeffc | 32de6c7d191dbe07a8444b022cadf7c6f91cd6e6 |
refs/heads/master | <repo_name>tiantiantian808/test3<file_sep>/EclipseWorkspace/Test1/src/com/daidai/Mytest.java
package com.daidai;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Scanner;
public class Mytest {
public static void main(String args[]) throws ParseException {
// 根据判定条件给出乘客的距离起飞时间短近... | 5e6b77ab254bde7d38aab1558752c576cb27adf1 | [
"Java",
"INI"
] | 3 | Java | tiantiantian808/test3 | be8e4de66d6f80d2ebce6d1601e5016fa58ccbfb | 96226c9f8ce44bffad8710dd2f6f587597930a2e |
refs/heads/master | <repo_name>Tonmaiipc/Python-Codes<file_sep>/NonRecursiveTowerOfHanoi7Lines.py
max = int(raw_input()); moves = {}
def ABC(max,n,i):
if (max%2==0)^(n%2==0) == True: return 'BCA'[i%3]
else: return 'CBA'[i%3]
for n in range(1,max+1):
for i in range(0, 2**(max-n)): moves[2**(n-1) + (2**n)*(i)] = str(n)+ABC(max,n,i)
for i... | b5e6ea683f31ae0ce1f54641cde52aaecf6edeb6 | [
"Markdown",
"Python"
] | 10 | Python | Tonmaiipc/Python-Codes | 322eec4f961057458cb0af38ed6dc30dc156db67 | 85dfa2538e8dcb7d9ebd0079cef7f2767e08c1b9 |
refs/heads/master | <file_sep>package com.jiuhe.atcrowdfunding.controller;
import com.jiuhe.atcrowdfunding.bean.BaseResponse;
import com.jiuhe.atcrowdfunding.bean.Page;
import com.jiuhe.atcrowdfunding.domain.User;
import com.jiuhe.atcrowdfunding.service.UserService;
import com.jiuhe.atcrowdfunding.util.CollectionUtil;
import com.jiuhe.at... | 57e4957d7ae86b2161e36335e6e9404ba1059cc8 | [
"Markdown",
"Java",
"JavaScript"
] | 9 | Java | Num17/atcrowdfunding | bad6d5f1096ee66b2939fdf929b6e188e79d1d3c | 5487ac8709f48fca92b3a3f4ffef8dfbf67c34cc |
refs/heads/master | <repo_name>goodsogi/GoogleAnalyticsPythonTest<file_sep>/SendEventToGoogleAnalyticsTest.py
from PlusGoogleAnalyticsManager import HitClient
# Set your Google Analytics Tracking Id here
GA_ID = "UA-116081388-1"
def run():
hit_client = HitClient(GA_ID)
try:
# Test with required params only
r ... | d8e19a6035209b77d08e2afbc424a65908be4934 | [
"Python"
] | 1 | Python | goodsogi/GoogleAnalyticsPythonTest | 35d5768bd56d4c027e59bc7ff0d6053f5c2b2788 | 263f55700b8cfa60b65c906244129c047f2b0377 |
refs/heads/8.x-1.x-dev | <file_sep><?php
/**
* @file
* Contains \Drupal\interswitch_donate\DonationInterface.
*/
namespace Drupal\interswitch_donate;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface defining a Donation entity.
*/
interface DonationInterface extends Conten... | 866b4b9bfd83173cab535892f4499fdbec27c15a | [
"PHP"
] | 1 | PHP | timplunkett/interswitch_donate | ae7b84a22a5adbb653148ef698153528c50e0049 | 9cdf03c845c13bcc6818750abb37033896fccfb0 |
refs/heads/master | <repo_name>iseabock/pollapp<file_sep>/app/controllers/answers_controller.rb
class AnswersController < ApplicationController
def results
@answer_id = params["poll_answer"].values[0]
@poll_id = params["poll_id"]
@answers = Answer.all.order("vote_count DESC")
@question_id = Poll.find(params["poll_id... | 354a8346d6b25e62877b995a67c7cc3bb469b816 | [
"Ruby"
] | 2 | Ruby | iseabock/pollapp | b482654702ab6ceb06bec92073d81b77dd4c0130 | 5604a7ca9f35245ab4a293b88276568798c92bca |
refs/heads/master | <repo_name>LachowskiTomekPL/tomeklachowski-kodilla-java1<file_sep>/kodilla-testing/src/test/java/com/kodilla/testing/shape/ShapeCollectorTestSuite.java
package com.kodilla.testing.shape;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class ShapeCollectorTestSuite {
@Test
public... | fa54cda6594024f329a53bf0297e85d1faf531d1 | [
"Java"
] | 2 | Java | LachowskiTomekPL/tomeklachowski-kodilla-java1 | 522b8d53e8c0bdd8eb9e7859dcae83f6e6a7fb39 | f61ea3d5845b4c9255cd88362702bc177a816e6e |
refs/heads/master | <repo_name>fengweijp/autorest<file_sep>/src/modeler/AutoRest.Swagger/Validation/AnonymousTypes.cs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using AutoRest.Core.Validation;
using AutoRest.Swagger.Model;
... | 52b23a18d02f8887f68745514fc35349651d1e78 | [
"C#",
"Ruby"
] | 17 | C# | fengweijp/autorest | 34f56eaa0dece0f471b2b30202af1e223864b0e1 | de9d40a4378dc29d2b55d5645eb79fb67f893b64 |
refs/heads/master | <file_sep>n=int(input("Enter the start range:"))
m=int(input("Enter the end range:"))
def na(d):
print(d**2)
for i in range(n,m+1):
na(i);
<file_sep>n=int(input("enter the first range:"))
m=int(input("enter the last range:"))
total=0
for i in range(n,m):
total+=i
print("the total is" ,tot... | b8baed88074d8bdb08432dfec00bb08dfc16f97a | [
"Python"
] | 9 | Python | Sanlook/guvi | 441e1b63178767dea06c35b734e559cc13774cb7 | 0d8e1ebcc1f7ca0d733747b4e710c5c5593ba532 |
refs/heads/master | <file_sep># DonAM
Web Project
Development of a web application for a restaurant service where you can see the menu and contact, pick food and send orders and post comments about the service only if you are login with an account. Using HTML, CSS, Php, Javascript and Bootsrap components.
<file_sep>CREATE TABLE Users (
... | f6195fa9246f83521a11d2a425d8720139a8bc27 | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 5 | Markdown | GalaRamos/DonAM | 00c26e81a84dcce0f9443f0242dde6b0e18c0800 | 7fdf9544ba5c1aa5468baba25000fffe4571ee3c |
refs/heads/master | <repo_name>DevinMui/git-slack<file_sep>/bot.js
var SlackBot = require('slackbots');
var mongoose = require('mongoose')
var exec = require('child_process').exec
mongoose.connect("mongodb://localhost/gitslack")
// define the schema for our user model
var channelsSchema = mongoose.Schema({
channel_id: String,
name: St... | 37e16f94b779e29136fffc0d39c5864d9a730c20 | [
"JavaScript"
] | 1 | JavaScript | DevinMui/git-slack | 69eb86c58e5fbfcedbb66d28df22d879805513d7 | b88c040aff8b88866efe53870c4e2e15a98d5c42 |
refs/heads/master | <repo_name>Jobayer-Ahmed/URL-Shortener-Microservice<file_sep>/README.md
# URL-Shortener-Microservice
freeCodeCamp Backend Project: Apis and Microservices Projects - URL Shortener Microservice

**We... | 66a46042f2890944c76c79cc6866a4e51c3a63fc | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Jobayer-Ahmed/URL-Shortener-Microservice | 084e88444afc6822f6664eb581904620ebf35584 | baba261462cfe8b084ab6503b08b481015e575dd |
refs/heads/master | <repo_name>Orphist/pixelprinter<file_sep>/lib/extensions/shopify_login_protection_ext.rb
module ShopifyLoginProtection
def shopify_session
if session[:shopify].blank? or shop_overwritten?
original_request = "#{request.path}?#{request.query_string}"
session[:return_to] = original_request
redirec... | 01ff3cb2b6095f6569845d246c7a75044a15a592 | [
"JavaScript",
"Ruby"
] | 42 | Ruby | Orphist/pixelprinter | 4370a50ac3b50ee297fd69d064f25aa633923065 | 99d70c6517902f4f11fc48930264f5204067e326 |
refs/heads/master | <repo_name>django-tagtools/djtt-tagging<file_sep>/tagging/management/commands/normalize_tags.py
from django.core.management.base import BaseCommand, CommandError
from tagging.models import Tag
from tagging.utils import TagNameNormalizer
class Command(BaseCommand):
help = 'Normalizes all tag names using the curr... | ee5ed56835ce5586f5fd87112f7cb928396c9bba | [
"Python",
"Text"
] | 4 | Python | django-tagtools/djtt-tagging | d1306a80ef5c4b87f46c85ea50c7e23ae3f9a389 | e4f667edd18da937b8060273ea08029a9478991b |
refs/heads/master | <file_sep><?php
namespace App\Repositories;
use App\Models\Task;
use InfyOm\Generator\Common\BaseRepository;
class TaskRepository extends BaseRepository
{
/**
* @var array
*/
protected $fieldSearchable = [
'title',
'description',
'priority_id',
'user_id',
'to... | 0efe8c459e6d4b9350316df612af54f9df15854d | [
"Markdown",
"PHP"
] | 2 | PHP | jsagithub/infiOm_tasks | f8094b9d4c687e3107437df958e287ffa3d8c57b | 185899bc7ce4584ce3995d0930947d5439db7445 |
HEAD | <repo_name>GR2015/pythonBasic<file_sep>/day2/exercise/print.py
#coding=utf-8
#打印口图形
print "打印口图形n=2"
n=2
for i in range(n):
print '*',
print '*',
print ""
print "打印口图形n=4"
n=4
for i in range(n):
for j in range(n):
if j==0 or i==0:
print "*",
elif j==n-1 or i==n-1:
print "*",
else:
... | 785d004e1dad84422eefb4f63d6e99a2b78059ac | [
"Python"
] | 40 | Python | GR2015/pythonBasic | b4fe4d4b366a5fd7b8db8fdb3e46a4d8b0d97ac1 | 189c9d68069976c8f7adeb6bdff6adec19d215a5 |
refs/heads/master | <repo_name>dmyersturnbull/codons<file_sep>/src/main/java/org/beng183/codons/Species.java
package org.beng183.codons;
/**
* The name of a species.
* @author dmyersturnbull
*/
public enum Species {
E_COLI("E. coli"), S_CEREVISIAE("S. cerevisiae");
private final String name;
private Species(String name) {
th... | c0ba4d3c11b19b71b0cc6d51151f960c832fad89 | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Java | dmyersturnbull/codons | d127f6fc77cce22c087fd07908ccc9db6fe519e8 | 5c2afb30308162908e44eca03b2e07b615d28fa9 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: inhere
* Date: 2017/5/21
* Time: 上午1:26
*/
namespace Inhere\Queue;
/**
* Interface QueueInterface
* @package Inhere\Queue
*
* @property string $driver
*/
interface QueueInterface
{
/**
* Priorities
*/
const PRIORITY_HIGH = 0;
const PRI... | f37e20eec7aa8ba0dcb3cc58afa9a76f0f6f2fd6 | [
"Markdown",
"PHP"
] | 13 | PHP | phppkg/queue | 61eb3787cda32b469382c8430a663ea2154dc288 | 5fc0bfaddb7848de42512a8ab102e8924108109d |
refs/heads/master | <repo_name>manikandanravi94/Export-Excel-Audit-PDF<file_sep>/src/main/java/com/audit/service/ExcelReaderService.java
package com.audit.service;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.MathContext;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import com.a... | bedd7174fe8363e97631f927a8ec9d467ada8153 | [
"Markdown",
"Java"
] | 4 | Java | manikandanravi94/Export-Excel-Audit-PDF | f68b9598a610dfe71fcf57b8381a479eb7177e41 | bee11f78051ae4d467ad7325a54174e5fdec845e |
refs/heads/master | <repo_name>l-grem/ttt-6-position-taken-rb-q-000<file_sep>/lib/position_taken.rb
def position_taken?(board, position)
if board[position] == " "
taken = false
elsif board[position] == ""
taken = false
elsif board[position] == nil
taken = false
else
taken = true
end
end | c38c3a8476a76c2e1e29b9478c1b34c1fe14faec | [
"Ruby"
] | 1 | Ruby | l-grem/ttt-6-position-taken-rb-q-000 | b4b34c5192069e02d69a00956aa5d61b58eac10c | 4f1d1719ed95cb6662a3730626bc7ca2ecd809e7 |
refs/heads/master | <repo_name>Sweetman/codeforce<file_sep>/282A.java
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner input = new Scanner(System.in);
int lines = input.nextInt();
input.nextLine();
String word = "";
int result = 0;
for(int i = 0; i < l... | dc2591e6a92b31c322daaf7a610ec6590946f60a | [
"Java"
] | 3 | Java | Sweetman/codeforce | 57c2d43d5ca5b4600b932e8b5e0f06e153486085 | af1db7f077da38b7d41a63d1014e9542d01d066d |
refs/heads/master | <file_sep>var container = document.getElementById("container");
let x = 0;
function createTable(num) {
var div = document.createElement("div");
div.id = "table";
div.setAttribute("name", num);
container.appendChild(div);
setActive(div)
}
function size(amount) {
for(let i = 0; amount > i; i++) ... | fe4efda6dba7dc3e06186552d0b3133251719ab4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | MasonK21/Etch-A-Sketch | dfa1d500f01a345825730f48099b45aea533ed17 | 7fab8107097f6d64a355288461c4cddfb451783f |
refs/heads/master | <file_sep>class VideosController < ApplicationController
before_action :authenticate_user_or_admin, only:[:index]
PER = 9
def index
if current_user && current_user.is_quit == true
redirect_to retire_logout_path
end
@new_video = Video.new
# @videos = Video.page(params[:page]).per(9)
# @q = current_us... | 553d200300bd4eae2ee6f6a7891d8e174672e15b | [
"JavaScript",
"Ruby"
] | 16 | Ruby | yuzuki-0903/yuzukiTube | 7326d11d2ee91b3e836be1d25dfe9229aee4afbc | 9c9dcaff06e7a432d8e621fccc1e4f19938b8b31 |
refs/heads/master | <repo_name>roadman/setup_script<file_sep>/chef_install
#!/bin/bash
vagrant plugin install vagrant-omnibus
rbenv exec gem install chef berkshelf knife-solo --no-doc --no-ri
<file_sep>/fabric_install
#!/bin/bash
sudo yum install make gcc
sudo yum install python python-devel
sudo easy_install fabric
<file_sep>/z_in... | ab18ec6b5edadf0e49f1a8596a1c8fd4c0280299 | [
"Shell"
] | 9 | Shell | roadman/setup_script | 16b7376e4c1270aa192103676b86888def17f13c | fa6b80848a7c71f753d5d0a6caab364a2319d772 |
refs/heads/master | <repo_name>EONIQ/spree_gateway<file_sep>/app/models/spree/order_decorator.rb
Spree::Order.class_eval do
# Redefine Payment States
# self.send(:remove_const, :PAYMENT_STATES)
PAYMENT_STATES = %w(balance_due credit_owed failed paid void disputed)
# Reset validator for payment state
_validators.delete(:payment_... | 98650ec05772d7b09f964f8462dd1412efb1bf1b | [
"Ruby"
] | 7 | Ruby | EONIQ/spree_gateway | e7e17439c48c8d75dca0040b4d1c1aef2dc71413 | c4681c7a69715d5b04f8eb0cb8d4cef4c743b48b |
refs/heads/master | <file_sep>class ChangeUri < ActiveRecord::Migration
def change
change_column :tweets, :uri, :string, :null => true
end
end
<file_sep>source "https://rubygems.org"
gem "rails", "~> 4.0.0"
gem "sass-rails", "~> 4.0.0"
gem "coffee-rails", "~> 4.0.0"
#gem "turbolinks"
gem "jbuilder", "~> 1.0.1"
group :production... | f7ec552b8e5c84736b5c038d4dd12daaa77036f0 | [
"Ruby"
] | 13 | Ruby | lamont-granquist/sickstarfish | 14b5b5fbcb6a12009367d35d4102bc78f093c94d | da96796d810cd74092000a8ca345d0e7ad62de6b |
refs/heads/main | <file_sep>#include <iostream>
using namespace std;
class str3WP
{
public:
void str1(char nbi[11])
{
nbi[10] = '\0';
cout << nbi[0]<<"$"<<nbi[1]<<"$"<<nbi[2]<<"$"<<nbi[3]<<"$"<<nbi[4]<<"$"<<nbi[5]<<"$"<<nbi[6]<<"$"<<nbi[7]<<"$"<<nbi[8]<<"$"<<nbi[9]<<"$"<<nbi[10];
... | b20fe76cd5b62e1f1e21e4305d8663e51b91e2ea | [
"C++"
] | 1 | C++ | arianchemist/cryptographyA1 | 15615366c564a09c01fa7b0543ba80748139a507 | 1075dccfe0f9ed3c026f75b7fb69e9cefe074c8c |
refs/heads/master | <repo_name>wklTomorrow/basic<file_sep>/leetcode/leetCode61.js
/*
1,2,3,4,5 k=2
4,5,1,2,3
*/
function createNode() {
this.next = null
this.size = 0
}
function LinkNode(val) {
this.val = val
this.next = null
}
createNode.prototype.getSize = function(n) {
let v = this.next
for (let i = 0; ... | 28124d5728c7edf0ee9251ae09436d674190f437 | [
"JavaScript",
"Markdown"
] | 72 | JavaScript | wklTomorrow/basic | a7808701bdcc15e252347f1546bedc9a35e30540 | c901c223195b344aa47374117180c351a4a94162 |
refs/heads/master | <repo_name>annarice/model_adequacy_dev<file_sep>/copy_for_sanity.py
import os
import gzip, tarfile
import shutil
from utils import *
l = []
for i in range(1000):
l.append(str(i))
lst = ["Aloe","Phacelia","Lupinus","Hypochaeris","Brassica","Pectis","Crepis","Hordeum"]
lst = ["Pectis"]
d = model_per_genus()... | 3f2cd75d685164c973bfbed60bcf14d85ca0e005 | [
"Python",
"R"
] | 29 | Python | annarice/model_adequacy_dev | a013987c4ffd6712e0dd9d2796a5bd4e0cceb568 | da2150581c2c4704d3ff837b314233e272723ee8 |
refs/heads/develop | <file_sep>package com.reo.running.mvvm_training
data class Message(var thanksMessage: String = "")<file_sep># -Voluntary_Training_MVVM
MVVMの学習用です
<file_sep>package com.reo.running.mvvm_training
import androidx.databinding.ObservableField
class MainViewModel {
var message = ObservableField("thanks")
fun butt... | e97cb1d8ec8152eac77cb463b021051426da9d4d | [
"Markdown",
"Kotlin"
] | 3 | Kotlin | lion-king-IT/-Voluntary_Training_MVVM | 97419a6577cf35e21a2191e888cd438d09ac25d2 | 5e2cd5cc117ddcd40125eb10ad0e8de8c44e7478 |
refs/heads/master | <file_sep>// maintAct.ts
// maintAct page for manipulating data
import { Component, OnInit } from '@angular/core';
import { ActivesService } from '../services/actives.service';
import { Router } from '@angular/router';
@Component({
moduleId: module.id,
selector: 'maintAct-cmp',
templateUrl: 'maintAct.html'
})
e... | 29fdd2623740e6784b9777c753403f8425994700 | [
"JavaScript",
"Python",
"TypeScript"
] | 27 | TypeScript | kberger03/autotracker | 71aeab32b9b15fa2dc50778a81f10d66e5c5fa0a | 17476da2d35228c25b90a94973bd3aa7ef2bb143 |
refs/heads/master | <file_sep>VERSION=2.1.14
<file_sep><?php
// Twitch authentication requires an oath token for logging in to the IRC chat. You can generate
// a token at: https://twitchapps.com/tmi/
// if you plan to use the Bot under a different username than your personal account, make sure that when you
// use the above t... | f6f78f80cc258632484d96f2cf3dd373afb90692 | [
"Markdown",
"PHP"
] | 3 | Markdown | rmarcou/twitchbotbet | 42bd9375b47bb10bf8b5e54b8fb44234527584d6 | 4035f000ef9c2c5d225170ef1ecc01134792f87f |
refs/heads/master | <file_sep>public class hello01 {
public static void main(String[] args) {
int[] a = new int[10];
for (int i = 0; i < a.length; i++) {
a[i] = (int) (Math.random() * 100);
System.out.println("数组中的各个随机数是:"+ a[i] );
}
int b = a[0];
for (int i : a) {
... | 020fa4e746894e83dce86ba7465de060bbea6ac6 | [
"Java",
"HTML"
] | 4 | Java | daveme0816/how2j_basic | 353ca2e1f99357fa29fdb75eaa68556823e04531 | e6d47c5fb65e73d7294f8ed033b55d4e4b8ebe96 |
refs/heads/master | <repo_name>miloszrak/Insectify-Shop<file_sep>/src/components/Layout/Layout.style.jsx
import { makeStyles } from '@material-ui/core'
export default makeStyles(theme => ({
header: {
borderBottom: '2px solid black',
}
}))<file_sep>/src/components/pages/UnauthorizedRoots/UnauthorizedRoots.jsx
import React ... | 5f49b62706ed8aa73da5d8d2b82d2b1b348ba4cb | [
"JavaScript"
] | 8 | JavaScript | miloszrak/Insectify-Shop | 5182dd5bd5293c21b6e5d2909ddaad235c523611 | 9a4cefae1d436c4d3bc3d7758a73b741559a5abd |
refs/heads/master | <repo_name>MoshiXu/Study<file_sep>/QuickSortAlgorithm.java
package com.in28minutes.spring.basics.springin5steps;
public class QuickSortAlgorithm implements SortAlgorithm{
/*
public int[] sort(int[] numbers) {
//quick sort
return numbers;
}
*/
public String sort(int[] numbers) {
//quick sort
... | e34fcbaa16437837b3757e66ca8702645eb1bdd3 | [
"Markdown",
"Java"
] | 4 | Java | MoshiXu/Study | 7b95da1e69b54627e3db5f26ce114a8028d9bd61 | 46c80a8b2c552fc4db053ba9de38173e740b6fbb |
refs/heads/master | <repo_name>B-Rich/WatsonBox<file_sep>/app/models/item.rb
class Item < ActiveRecord::Base
attr_accessible :box_id, :description, :name, :owner_id, :picture
belongs_to :box
end
<file_sep>/app/models/box.rb
class Box < ActiveRecord::Base
attr_accessible :description, :name, :user_id, :picture
has_many :items
bel... | 3d602c8821818fc1b57ae2ff868cf16c2a0c3576 | [
"Ruby"
] | 3 | Ruby | B-Rich/WatsonBox | b92e13344a592bf8a3d4b5c751296e6422d494a3 | 9b6b865b2551512b45b690f5bfce5bbf977ef3fc |
refs/heads/master | <repo_name>My-Particularities-techniques/Horizone<file_sep>/Horizone/Migrations/201912191306148_ChangePronoun.cs
namespace Horizone.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class ChangePronoun : DbMigration
{
public override void Up()
{
... | cf78d6ab385ab1c6351e092e9d906aad33d09b13 | [
"C#"
] | 120 | C# | My-Particularities-techniques/Horizone | 52e23ebcf06ef73ed3bd4aa242e3b7bc7b6d326f | 6580af3ffa0a5532588a7d50dd0117f69d1e92fa |
refs/heads/master | <file_sep><?php
class Login_model extends CI_Model
{
function can_login($userName,$password)
{
$this->db->where('Username',$userName );
$this->db->where('Password',$password);
$query=$this->db->get('register');
if($query->num_rows()>0)
{
return true;
}
else
{
return false;... | f4d3427155b1437faf515527bae7dda786ce20f0 | [
"Markdown",
"PHP"
] | 46 | PHP | LaknaGammedda/3rd-year-ITPDM-me | 4ce00f98670b99c7d625f45dadf6ac0e6d82a3fe | 3cc087a626489e0624ebaa538eb9956801d5792e |
refs/heads/main | <file_sep>const express = require("express");
const https = require("https");
const bodyParser = require("body-parser");
const app = express();
const ejs = require("ejs");
app.set("view engine", "ejs");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static(__dirname + "/public"));
app.get("/", fun... | 592c548a3da312f89afe02e63d5b72e6396c28df | [
"JavaScript"
] | 1 | JavaScript | 01naveen10/weather-app | 286237d77ed7233d747070331e6f4516016c99f6 | 13932149a0b1357bbe61a786561975674c0c8985 |
refs/heads/master | <repo_name>dyelax/dqn-question-6-17-16<file_sep>/dqn_model.py
import tensorflow as tf
import numpy as np
from dqn_constants import *
from dqn_utils import *
class DQN_Model:
def __init__(self, action_space):
self.num_actions = action_space.n
self.define_graph()
def define_graph(self):
"""
Sets up the DQN ... | 5c41daaa03e786e780845423003ef5aa1400d196 | [
"Markdown",
"Python"
] | 5 | Python | dyelax/dqn-question-6-17-16 | 19d61afc72793ee1e9f647e49a56cf16ce06a561 | 378a6de2a9438bb8f9ae4a4c553556117b5dc939 |
refs/heads/main | <repo_name>fsdarif/advance-javascript<file_sep>/map-filter-object-property.js
const students = [
{id: 20, name: "Arif"},
{id: 21, name: "Sharif"},
{id: 22, name: "Shanto"}
];
const names = students.map(s => s.name);
const ids = students.map(s => s.id);
// filter
const idNumber = students.filter(s => s.id ... | 92dddb99ccd5f8388fa3627a7835ea975968cd7f | [
"JavaScript"
] | 3 | JavaScript | fsdarif/advance-javascript | e02d1db1b37827db6dc696d4cd69bf86c467e9d3 | daf43dc6a0e05575db274995dfbdecbf074570d9 |
refs/heads/master | <repo_name>nikhilrayaprolu/duplicate-elimination<file_sep>/code/hash.py
from SqlException import SqlException
import itertools
import sys, time
hashmap = {}
INT_SIZE = sys.getsizeof(int())
def getNext(line, records_per_block, output_buffer):
if line:
sum = hash(line)
try:
if sum:
val = hashmap[sum]
except:... | eb3dd72a1745eaa0fd16fc6a399755508725e0d0 | [
"Python",
"Shell"
] | 5 | Python | nikhilrayaprolu/duplicate-elimination | 408acc71f64593608654160f85b497c0281d41f7 | c2fcf6deae7ece986dfbe5d00b64f3c96f51873c |
refs/heads/master | <file_sep># bucky-react-creator
Create buck-react webpages.
<file_sep>#include <iostream>
#include <experimental/filesystem>
#include <string>
#include <cstdlib>
using namespace std;
class CreateProject{
private:
string ex_no;
string files_dest;
string files_origin;
public:
Cr... | ceb71ba3bacfd3b7d36270a20839b73b3ecce32b | [
"Markdown",
"C++"
] | 2 | Markdown | Borwe/bucky-react-creator | e4fbd91cfeed83fb4bf135d7b80e1f0529fb0944 | 76a1dc13f61453cad0f755f80eb0c3ef90754a6e |
refs/heads/master | <repo_name>ff-uva/Consulting-Cases-Presentation<file_sep>/Project3.R
#***************************************************************
#
# Project 3: Simulation & Bootstrapping
# A Case Study: Transplant Center
#
#***************************************************************
#****************... | 8398c10e287ab43220aa89d0761bc6265d73390c | [
"Markdown",
"R"
] | 2 | R | ff-uva/Consulting-Cases-Presentation | c523ae13d954d15c72cfb4bca455a13ceedec7d8 | 463616f44b86e2325ed7fa33eff9b91230837924 |
refs/heads/master | <file_sep>#include "omp.h"
#include "iostream"
#include <stdio.h>
using namespace std;
const int NMAX = 50;
const int LIMIT = 1;
void main()
{
setlocale(LC_ALL, "Russian");
int i, j;
float sum;
//Переменные для расчета времени
double start;
double end;
//<NAME>ский, потому что иначе будет Stack Over... | b863ddb411ccfbb3e07e2fbb7bc84830b1beda9d | [
"C++"
] | 1 | C++ | Stuthemp/openMP_labs | e7fbd019a3273206f2d0b3b959799bfca1028d7c | 5c183cb9ff08e7e54df2a7cad531d57ebb07b8ef |
refs/heads/master | <file_sep>import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
backlog: null,
todo: null,
doing: null,
done: null
},
mutations: {
setBackLog (state, payload) {
state.backlog = payload
},
setTodo (state, payload) {
state.todo... | 096c4da72800eb4a2c52f3c7b9b45fb74007c7fe | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | fuadinaqi/kandang | f9ac281189d9c5c2f80aa89f10c890378050ecf1 | b76a343cf401d46b8472c8b12a8124c8598d22c5 |
refs/heads/master | <file_sep>// when sampling, how wide/long is a single sample? note: splat is centered
// around a randomly drawn coordinate
// 0 -> 1 pixel, 1-> 3 pixels, etc...
var SPLAT_SIZE=1;
// colors
var MODEL_COLORS = ['#e41a1c','#377eb8','#4daf4a','#984ea3','#ff7f00','#a65628','#f781bf','#999999'];
// maximum height of a gau... | 764da945bc243ef20fdd8f1aa3f48fe562c496a3 | [
"JavaScript",
"PHP"
] | 21 | JavaScript | liok889/ScalarVisTools | b18cfe38a291317d8cf43017e68b5555b0a5d114 | af3de98a46988bdd1741e31d13108613a0963489 |
refs/heads/master | <repo_name>lprabha/Instagram<file_sep>/src/main/java/com/prabha/instagram/LoginApi.java
package com.prabha.instagram;
import com.prabha.instagram.models.UserModel;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public interface LoginApi {
//for Register
@POST("inst... | e2b0829e2d5c7dd78927183b073d20068f477ba0 | [
"Java"
] | 1 | Java | lprabha/Instagram | b46dcea3b730ce668a1dede54e907a23184d4ea2 | 36bdff9fc991f92a10097917336aae80d4af6866 |
refs/heads/master | <repo_name>kchenery/nagios<file_sep>/README.md
Nagios
======
This is just a repository of nagios checks, plugins etc that I have created and use.
<file_sep>/pnp4nagios/templates/check_slingshot_usage.php
<?php
#
# Copyright (c) 2006-2010 <NAME> (http://www.pnp4nagios.org)
# Plugin: check_load
#
$opt[1] = "--vertical-l... | 00bc49d73023be732c4ca1ef9ae7427d597dcbfa | [
"Markdown",
"PHP",
"Shell"
] | 3 | Markdown | kchenery/nagios | 0d826d551e5e008f02a772c8fb4eb8bd9d9caf2f | f3cf49605ce73297c9b1024b8ea93ff1868a036b |
refs/heads/master | <repo_name>sungmin-park/WTForms.java<file_sep>/src/main/java/kr/redo/wtforms/utils/ObjectUtils.java
package kr.redo.wtforms.utils;
import java.util.Optional;
public class ObjectUtils {
public static <T> T get(Optional<T> optional) {
if (optional.isPresent()) {
return optional.get();
}
... | 1e87714a520e2816f047317a97db05eea8f9c98f | [
"Markdown",
"Java",
"Maven POM"
] | 29 | Java | sungmin-park/WTForms.java | 4100e11f7f7b45790baf0e16f71d76e77e8abfc0 | 738644719f4c0c8278fba84638b37e0920f102b0 |
refs/heads/master | <file_sep>virtualenv==15.1.0
<file_sep>/*+------------------------------------------------------------------+*/
/*| Random Password Generator |*/
/*+------------------------------------------------------------------+*/
/*| Developed by C.Lawshea. ... | 071024307e25349e00378d54d97ad49e7ced3c07 | [
"JavaScript",
"Python",
"Text",
"HTML"
] | 7 | Text | law35/final-design | bc71759c85832fb409cb3e758f801920326fac8d | 9f1331402f4e50f5c0ce6faef50b4616fd901e97 |
refs/heads/master | <file_sep>#pragma once
#include <iostream>
#include <string>
#include <vector>
#include "MessageBuilder.h"
#include "MessageConstants.h"
using namespace std;
enum Command
{
NULL1 = 0,
LOGO = 0x11,
VAT = 0x12,
DEPARTMENT = 0x13,
PLU = 0x14,
CREDIT = 0x15,
MAIN_CAT = 0x16,... | 90857e2d74a3200ed0a22e023f27b46a2a0e5005 | [
"Markdown",
"CMake",
"C++"
] | 20 | C++ | mhunesi/restgmp3 | 63d68f15ea697f788aca79081aa507dc28277a1c | 10e1998b623dde4a60f556c2c28d08939b9f7c72 |
refs/heads/master | <file_sep>package com.example.scheduleapp
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.CalendarView
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AppCompa... | 28ec63594ceba39dbb9a064efc10d90ab570c990 | [
"Kotlin"
] | 4 | Kotlin | sss-szk/ScheduleApp | efe48cac9a9184728fc1d75d3825b2076d300c78 | e302c66677ea12600026cb54edc1ccba3c1a0e9a |
refs/heads/master | <file_sep># beerReview
## Table Breakdown
* User
* Beer
* Brewery
* Post (User <> Beer)
* Created (Brewery <> Beer)
* Likes (Brewery <> User)
* Friend (User <> User)
This describes the tables in the database. Intend to scrape internet for all known breweries and beer.
<file_sep>/**
* Objects:
* Beer: Name, Type
... | 197af0171f314a3d1ac19631d502a67e8ee144c3 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | Dokopuffs/beerReview | a843b14451e3c4d5909468738fe549f5caa8f257 | ca8343b1238991c11f6fd3b2da3773328b143a2b |
refs/heads/master | <repo_name>yonekurayuki/blockchain-work<file_sep>/Fabric/sdktest/secure_token_manager/lib/table/tables.go
/*
* tables.go
* secure_token_manager(table)
*
* COPYRIGHT 2018 Fujitsu Laboratries Limited
*/
//構造体定義のためのパッケージ
package table
const (
USERTABLE_PREFIX = "userTable"
GROUPTABLE_PREFIX = "groupTable"
WALL... | 5ed14f5eedc6d67fa5ebe884dc9a36b176ec3d4a | [
"YAML",
"JavaScript",
"Markdown",
"Gradle",
"Java",
"Go",
"Dockerfile",
"Shell"
] | 41 | Go | yonekurayuki/blockchain-work | b247fd0c71b7876696b8afdce980dec8ad042c6c | 07ea208e6c336b587a5fed65f224cf65e61f68fa |
refs/heads/master | <repo_name>amirnd51/277project<file_sep>/src/router/index.js
import Vue from "vue";
import Router from "vue-router";
// Containers
const DefaultContainer = () => import("@/containers/DefaultContainer");
// Views
const Dashboard = () => import("@/views/Dashboard");
const Scientist = () => import("@/components/Scienti... | 90f8b36e07016d099c72fd046e48f3947f826df7 | [
"JavaScript"
] | 2 | JavaScript | amirnd51/277project | 52e6a12a6294e42165a16aec133426314b68f410 | 7e9b90c3b73dab0ec7c6bd986a0ed2645827833f |
refs/heads/master | <repo_name>Streamote-extension/Front-end<file_sep>/emote/drop physics/animation.js
import pogchamp from './pogchamp.png';
import BabyRage from './Babyrage.png';
import React,{Component} from 'react';
import Matter from 'matter-js';
let images = {
'BabyRage': BabyRage,
'PogChamp' : pogchamp
}
class Animatio... | 3bb6d77c02aba07db99d5d99e2426287cb863435 | [
"JavaScript"
] | 2 | JavaScript | Streamote-extension/Front-end | 419bf5d28fa3fd08eb8024b86c7f6fe0313e978b | 7a76f8d36e0d6f90d82d7638b6371f68604b7342 |
refs/heads/master | <file_sep>const express = require('express')
const mongoose = require('mongoose')
const router = express.Router()
const Story = mongoose.model('stories')
const {
isAuthenticated,
isGuest
} = require('../helper/auth')
router.get('/', isGuest, (req, res) => {
res.render('index/welcome')
})
router.get('/dashbord... | e4c7896f9fe44ddd071ebb752c4759029171a700 | [
"JavaScript"
] | 2 | JavaScript | sureshn04/story_body | 746370163e0bff61ed159a20f5192103af8651d4 | 376bee0f948df3a04b393680e68e6c222c3fb18d |
refs/heads/master | <file_sep>const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const morgan = require('morgan')
const cors = require('cors')
morgan.token("body", (req, res) => {return JSON.stringify(req.body)})
app.use(cors())
app.use(bodyParser.json())
app.use(morgan(":method :url :stat... | 23aaea73de43458bc78c3c7b97c872e6be989766 | [
"JavaScript"
] | 1 | JavaScript | Murzum/FullStackOpen2019_Osa3 | cb9e6551fcb066cf2f064326ef0d74fe28dc60b6 | 1935bf595efcaad573264af28117d2a0f047c309 |
refs/heads/master | <repo_name>YoungGyuLee/inno_seminar7th<file_sep>/app/src/main/java/com/yg/a3rdseminar/ChatActivity.kt
package com.yg.a3rdseminar
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_chat.*
class ChatActivity : AppCompatActivity() {
override fun o... | 49fefc34cfd989bdd6be09bb251528ea62f58b8e | [
"Kotlin"
] | 4 | Kotlin | YoungGyuLee/inno_seminar7th | 731324b93610f5cfc956e7b1a4cbf75dc40b67ef | e9725741e358b03d60ad4f0784573a00418d4e5a |
refs/heads/master | <file_sep>import math
import dieletric
class FDTD():
def __init__(self, dieletrico, showGraphic, KE, NSTEPS):
self.dieletrico = dieletrico
self.showGraphic = showGraphic
self.KE = KE
self.NSTEPS = NSTEPS
self.ex = []
self.hy = []
self.dic = dict()
de... | 76930ba42be5113a5fbae685ec281a7a5b0f0437 | [
"Python"
] | 8 | Python | UFC-PyFDTD/Sullivan-Programs | 90c06d96c176b8235dd6d9cf4a429d14ddd2e70e | 6cb674a2ae2170ac34d2bc93e8d6d7125c0b0e3b |
refs/heads/master | <repo_name>andreealupu/LinkedList<file_sep>/LinkedList.py
class Node():
def __init__(self, data):
self.data = data
self.next = None
class LinkedList():
def __init__(self, data) :
node = Node(data)
self.head = node
self.tail = self.head
self.length = 1
def a... | 76eaf2d95db47c42264f4a3303d4d62e630d6568 | [
"Python"
] | 2 | Python | andreealupu/LinkedList | dc7c6e690a3eafe8487856671fcd79e50de7dc4f | 4d0150617229d2b4a2dabb6ecfcc4df189746482 |
refs/heads/master | <repo_name>LuffyGitHub/regCenter<file_sep>/regCenter/src/main/java/com/sigis/entity/ServiceInfo.java
package com.sigis.entity;
import java.util.List;
/**
* 获取各个信息返回值对象
* @Title
* @ClassName:PortType
* @author Luffy
* @Description:TODO(用一句话描述这个类作用)
* @date 2018年1月4日 上午9:30:46
*/
public class ServiceInfo {
/... | cd3062db3a910975b23e41d78e7e01f63fcb82d7 | [
"Java"
] | 5 | Java | LuffyGitHub/regCenter | a271cfa8eebeab058669a4ca29e3948ea83faa0e | e5ea281c53f0dd88735d178a9ebb5abd7b8cb35c |
refs/heads/main | <repo_name>weiinblack/COU_21_5_MoveableCameraInUnity<file_sep>/README.md
# COU_21_5_MoveableCameraInUnity
FPS般的基礎攝影機控制for Unity3D <br>

<file_sep>/MoveableCamera.cs
using System.Collections;
using System.Collections.Generic;
using UnityE... | c99320c16f09453aef482b5b2120de383ad98b6f | [
"Markdown",
"C#"
] | 2 | Markdown | weiinblack/COU_21_5_MoveableCameraInUnity | ec309ae73ce713c7e0e547c4bb068ab82f31e2ae | 0bd929021eecdd2aac6df36eebd6b6976bf86714 |
refs/heads/master | <file_sep>(function() {
'use strict';
var DIR = '../',
cl = require('./cl'),
place = require('place'),
rendy = require('rendy'),
shortdate = require('shortdate'),
Info = require(DIR + 'package');
module.expo... | 08bda73c5c2469af38ef971f0e67456be7b96feb | [
"JavaScript"
] | 2 | JavaScript | circleride/cloudcmd | 7d2f6c5ab0a6fd3660bb6a8c2f408c3d853b2b76 | be46387b7815bc1b3bd70d7f8f4fee46e77ca794 |
refs/heads/master | <file_sep>#! /bin/bash
set -e
# A script to configure openNetVM
# Expected to be run as scripts/install.sh
# CONFIGURATION (via environment variable):
# - Make sure $RTE_TARGET and $RTE_SDK are correct (see install docs)
# - Set $ONVM_NUM_HUGEPAGES to control the number of pages created
# - Set $ONVM_SKIP_FSTAB to ... | 8dc46578a2206c8b20af191e7c21819471dfc34b | [
"Markdown",
"C",
"Shell"
] | 11 | Shell | sameergk/REINFORCE_SOURCE | 4665ff935d60afd463c2afbb7cf6f16b9fef3836 | 4e8c8e0f05d6dda37f6467c9748e4b43417f502a |
refs/heads/master | <repo_name>sammazhao/CSharpLearning<file_sep>/StartNow/StartNow/ClassDemo.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StartNow
{
class ClassDemo
{
}
abstract class Animal //抽象类,只能继承,不能实例化,没有构造函数
{
public ... | 917398661033da5ac8e563b45fafe21fd21736e5 | [
"Markdown",
"C#"
] | 22 | C# | sammazhao/CSharpLearning | 32e68283a5a954913a4b6b54540f6040d0ffa5d5 | 731d79e669bd471d1a802c7f45413905900591c5 |
refs/heads/main | <repo_name>amitbdj14/shorten_URL<file_sep>/src/main/java/com/shortner/controller/URLShortenController.java
package com.shortner.controller;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframewo... | 1fd16664d534fa07d192fdcf4c9b67247e1a399a | [
"Java"
] | 1 | Java | amitbdj14/shorten_URL | 8813887975c4a675bd7fea854509ccac273d8850 | 75885a2ed174d09188c44a4821dcc92dd1961f00 |
refs/heads/master | <repo_name>Muqiu7890/node-demo<file_sep>/new/readdir.js
// var fs = require('fs');
//
// fs.readdir('./www',function (err,files) {
// if(err) {
// return console.log('not exist')
// }
// console.log(files)
// })
var http = require('http')
var fs = require('fs')
var template = require('art-template'... | a7f9897d2d9715d65841fa9af5a5c50467295ada | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | Muqiu7890/node-demo | 058e098e5f57ef0e6d5ff768ace508351c9d4252 | 789148f51eb3dfa4652e00d02ab9d8026d15375c |
refs/heads/master | <repo_name>vilenhakobyan4444/ISTC-JS-Fundamentals<file_sep>/homeworks.js
console.log("Hello World !!!");
//output 5,10,15
function numberInc(num) {
var n1 = num;
var res = num+=num;
console.log(n1,res,num+n1);
}
numberInc(5);
//averageSumm
function averageSumm(x,y,z,h,l) {
var summ = x+y+z+h+l;
... | e37c8af0422855a4e2b56ee0712b91b04eaa79a4 | [
"JavaScript"
] | 3 | JavaScript | vilenhakobyan4444/ISTC-JS-Fundamentals | 3ea3b1298b5114451008525e6866a07581ccfcb6 | aae09f6662334895c9016b41667cca90f98df265 |
refs/heads/master | <repo_name>mapic/docker-mapic-xenial<file_sep>/install-nodejs.sh
#!/bin/bash
# # NodeJS version
# NODE_VERSION=6.10.3
# # install
# gpg --keyserver pool.sks-keyservers.net --recv-keys <KEY> <KEY>
# curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \
# && tar -xzf "node-v$NODE... | bd65a5f7ae07dfbe8adbb9c8ab044a9770da73b4 | [
"Markdown",
"Shell"
] | 3 | Shell | mapic/docker-mapic-xenial | 873c0f66142649cca15c1a4e97e08e58f7d3100b | aec28677a874d69413529ebb50185622bc715259 |
refs/heads/master | <file_sep>sudo apt install vim
sudo apt install git
sudo apt install tmux
sudo apt install make
sudo apt install cmake
sudo apt install build-essential
sudo apt install vlc
sudo apt install curl
sudo apt install mupdf
sudo apt install texlive-full
sudo apt install nodejs
| 4380e3b2dc666bb9db18288ed6698854ca3dda75 | [
"Shell"
] | 1 | Shell | tewidis/dotfiles | a145023734a09a078a7d34c5227caf8498cc3305 | f137becc65befcaa934794ee258219d95dda0f51 |
refs/heads/main | <repo_name>kuplevich-max/TestTask<file_sep>/README.md
# Proxy Parser
# Using scrapy and scrapy-splash.
## To run project you need run splash server in docker.
### Than you need to open project in terminal and use:
### <i>scrapy crawl proxyhttp</i>
## The result will be saved in <i>proxyhttp.json<i> file.
<file_sep>... | 432bd226bab2dc01656d549ed660efd444eab16c | [
"Markdown",
"Python"
] | 2 | Markdown | kuplevich-max/TestTask | 159023ab9f1d72c2b7cff5f2fa3ae24d04b88d87 | 4d71c606cf4ccf1be44977de345ea5188c4d74e4 |
refs/heads/master | <file_sep>import express from "express";
import transfer from "../domains/transfer/ApiRoute";
const router = express.Router();
router.use('/transfer', transfer);
export default router;
<file_sep>import express from 'express';
import Auth from './ApiController';
let router = express.Router();
router.post('/', Auth.... | 381bed6751ac52e79088522849a7d23a0671b5ae | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | Iagocarvalholima/BLC | 2a451678edc0d6d995e76ca871fc6407cd13d96b | 4136a85a13a205213d66c6301a9af0206eee2d4b |
refs/heads/master | <file_sep># Final Project-Alsarraf: Adjustable Sound FX
## Project Goal/Description
This project is aimed at people with recorded audio that is facing various normal issues such as loudness or consistent background noise. My original motivation for such a project was that during a gaming or podcast session, the audi... | f5642e384118d6d85cebd1d43a4637abb9b41803 | [
"Markdown",
"Python"
] | 4 | Markdown | SulimanCS/cs410-final-project-soundFX-suite | e1bb25a58cb1f95bbb57b084a0fadf468491cdaa | 6f94fa3823fe7705b2e171d0be260357ba66cdfc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.