branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>var PeerServer = require('peer').PeerServer;
var port = process.env.PORT || 5000
var server = new PeerServer({port: port});
console.log("----- Server port:" + port);
| 794476ebf038579a3d15542c10ebce5c92ae7d46 | [
"JavaScript"
] | 1 | JavaScript | DadaMonad/peerjs_heroku | 1b5b6945e504ed6efb1231f86b2da499278122d8 | f352630640a17141548b166a780a2ea8c8cd7574 |
refs/heads/master | <repo_name>BojianHou/pytorch-demos<file_sep>/visor/README.md
# visor
`python visor.py categories.txt -i 0`<file_sep>/visor/visor.py
#! /usr/local/bin/python3
import sys
import os
import time
import cv2 # install cv3, python3: http://seeb0h.github.io/howto/howto-install-homebrew-python-opencv-osx-el-capitan/
# add to... | d97dbf751bf6c3e8484f6bb269044753d941dfbf | [
"Markdown",
"Python"
] | 2 | Markdown | BojianHou/pytorch-demos | 512a03708d88e66a51aa7e76581799b2c7b2bd62 | 8886c29556ee3e265daafc215b3251c9647f87d8 |
refs/heads/master | <repo_name>KarimM7mad/ML_EEG<file_sep>/NEW different Time Windows DIFFERENT PCAs/toRun2.sh
#!/bin/bash
for (( COUNTER=180; COUNTER>0; COUNTER-=12 )); do
echo $COUNTER
python NEWallElectrodesDiffmsTraining.py $COUNTER > "NEWresultsOF_${COUNTER}_ColperElectrodeAllPCAs.txt"
done
<file_sep>/tgrobaFile.py
import n... | feae3a6f3153b5a434aeb3b10c12e82a2f606308 | [
"Python",
"Shell"
] | 3 | Shell | KarimM7mad/ML_EEG | 073acc93943cb65b9257413fbe0a28f71d35f816 | 38df08d1cc7fea34b724534711188d689575b2ea |
refs/heads/master | <repo_name>CarlKarlQarl/ruby-objects-has-many-lab-denver-web-111819<file_sep>/lib/environment.rb
require_relative "./song"
require_relative "./artist"
require "pry"
adele = Artist.new "Adele"
hello = Song.new "Hello"
hello.artist = adele
binding.pry
0
| eec671a28ea47c90b344fc0c655e87858903bb4a | [
"Ruby"
] | 1 | Ruby | CarlKarlQarl/ruby-objects-has-many-lab-denver-web-111819 | 7ea2f8bf3d5392dad380aba04eaa4b9c0001a4a8 | 0bcf13d81d8b2e8858d3b7281f191b955ea5c36c |
refs/heads/master | <repo_name>JainamJhaveri/Bottle-Compiler<file_sep>/run.sh
lex lex.l
yacc -d parse.y
gcc lex.yy.c y.tab.c -lfl
cat test.txt | ./a.out
<file_sep>/symtab.h
typedef struct
{
char NAME[80];
int value;
} table;
| 712af39f34a2787381b8341a253c60b13d5c07e1 | [
"C",
"Shell"
] | 2 | Shell | JainamJhaveri/Bottle-Compiler | 951b4560a7550bebf4d66cdc221e51905fe9caa6 | e2982586973cb4e7d72e1c9697ed7d88fd2f9096 |
refs/heads/master | <repo_name>ajinzrathod/googleLogin<file_sep>/login.php
<?php
require_once('head.php');
require_once('google-signin.php');
require_once 'vendor/autoload.php';
require_once('verifyGoogleUser.php');
# ----- Get Sub Functios Starts -----
function getSub($payload, $CLIENT_ID){
$sub = $payload['sub'];
return $sub;
... | e8076ad7644ed9e77fbbbb8cf98fed17e2b11e5b | [
"PHP"
] | 2 | PHP | ajinzrathod/googleLogin | c48affee936ffe36b732e9304c7142264514e8ec | 7b8b4812675edaa3b0a94d6bce3fbebb4ac2761c |
refs/heads/master | <file_sep>#!/bin/bash
echo "/nDelete Existing Tables.."
aws dynamodb delete-table --table-name Users --endpoint-url http://localhost:8000 --profile local
echo "\n\n Creating new tables now"
aws dynamodb create-table --endpoint-url http://localhost:8000 --profile local --cli-input-json file://user_table_creation.js... | d0fbfb77463cb8616198093b1be981347e0ce68e | [
"Shell"
] | 1 | Shell | shred22/dynamodb_ops | e182509e3c04cf6fc57e2386e26ab24a6ffd331e | cfe39978a3d9d1c7a2ad254137ee770d1c38883b |
refs/heads/master | <repo_name>RohKumar/VicRoadCodingTest<file_sep>/Nasa.MarsRover/LandingSurface/Coordinate.cs
namespace Nasa.MarsRover.LandingSurface
{
public struct Coordinate
{
public int X;
public int Y;
public Coordinate(int anX, int aY)
{
X = anX;
Y = aY;
}
... | db11cb3f5fb95a2d6b7fe0fbffcabc4296a836be | [
"C#"
] | 15 | C# | RohKumar/VicRoadCodingTest | e1cca44253fe82e99331df6312953e99ef006c9c | 0344fecffe39f26c3dd4a058581a9c53e3002cae |
refs/heads/master | <repo_name>davelab6/responsiveLettering<file_sep>/LTRMathShape.roboFontExt/lib/mathShape/makePage.py
import os
import json
"""
Because we need a way to preview a mathshape in a single page without having to load a json file locally.
"""
class PageMaker(object):
# XXXX does not need to be a class.
htmlPath = "te... | 6f3ee020dda244a0e93f0381123e73b8cc1528b1 | [
"Python"
] | 3 | Python | davelab6/responsiveLettering | 8b8cecbcf77b0cd4c54ef21cc3a393a17e2d035c | dae6f49adf20cc6f81c5527a450e01ffa1e69e73 |
refs/heads/master | <file_sep>package com.xiaoweng.project.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 角色表
*/
@ApiModel(value = "com-xiaoweng-project-entity-Role")
@Data
public class Role {
/**
* 角色id
*/
@ApiModelProperty(value = "角色id")
... | f303661b01d4570b1a15c3a7c980a7a90ba57af6 | [
"Java"
] | 10 | Java | moxiaoweng/TechnicalProject | 24a7fc37a445cdc025cb430258c69b9e08653204 | 996be38f8ac1c65b0253a7c0e93d64d72012809b |
refs/heads/master | <file_sep>package api.com.bairos;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author <NAME>
*/
public class Datas {
Dat... | b5f4772a236e7f37ae83354299542e324cce8bda | [
"Java"
] | 1 | Java | guigo82/DataAPI | a4c8b67206fd76250ca52e975a1a51a339982d92 | 4a66c05d27426851de67db3c04b4e8e312ba5072 |
refs/heads/master | <repo_name>Cecil0o0/miniprogram1<file_sep>/src/components/loadmore/index.js
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import './index.styl'
export default class Loadmore extends Component {
render() {
return (
<View className="loadmore">
<Text>加载... | a5756be22f97e40006a38d2f4d6573cb14c6bea1 | [
"JavaScript"
] | 25 | JavaScript | Cecil0o0/miniprogram1 | f3695a0e7b5cf754938e0d449436279735541627 | 2e78a90611eaf418f6179b276a1224b61c79a86a |
refs/heads/master | <repo_name>TahasinHafizAveins/FinancR<file_sep>/financrr/src/main/java/com/forbitbd/financrr/ui/finance/accountAdd/AddAccountFragment.java
package com.forbitbd.financrr.ui.finance.accountAdd;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import andr... | 9f09608732d28b46918f31551ac7cd1e1871adaf | [
"Java"
] | 2 | Java | TahasinHafizAveins/FinancR | d2b5cffb18d19eec2a279d7922b5438ef06c24a1 | 6039c7fb588ef0f2258fe12e7ad7456ad89ea644 |
refs/heads/master | <repo_name>y-2-j/DreamTeam<file_sep>/public_static/account.js
var topper;
var content;
var un;
var tn;
var balance=100;
var purse;
var players=[];
var auctiontable;
var teamdisplay;
var myplayers;
var myplay=[];
var nextpg;
var modalhead;
var modaltext;
var fillun;
$(function () {
teamdisplay=$('#team');
purs... | d346f1296bd45366a66e08bd643b4c16b136bf20 | [
"JavaScript"
] | 3 | JavaScript | y-2-j/DreamTeam | 1384d36c4b0baa82a6e88015e746fd954efa77f7 | d77e747c474e34520891614e43dab17087f4e3e4 |
refs/heads/master | <file_sep>A drone config extension to force drone use configuration from your primary branch.
This can protect your drone from running unwanted ci pipeline edit by unauthorized people from pull request.
You may find more infomation [here](https://discourse.drone.io/t/drone-protected-build-workaround/3585)
_Please... | 91542baf239723784c0b42c776e3beba244a0add | [
"Markdown",
"Go",
"Go Module",
"Dockerfile",
"Shell"
] | 6 | Markdown | Pivot-Studio/masterext | 0ba32a419fe7cbbf403f3abe75334f172e164083 | b8a612b50839033a6b6c4a06f04d057e89dacfc1 |
refs/heads/main | <file_sep><?php
namespace App\Http\Controllers;
use App\Http\Requests\InvoiceStoreRequest;
use App\Mail\InvoiceMail;
use App\Models\Buyer;
use App\Models\Invoice;
use App\Models\InvoiceDetail;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
class InvoiceController extends Controller
{
/**
... | d776325b0213203fd1f0d3fd165bc69151b49cf8 | [
"PHP"
] | 1 | PHP | GiancarlosJ/curso-laravel-invoices | 1005df8c0bb4c1ab2453c8440edcc80aa740d600 | e9447ef067cce4eab9971e63899bdc0a06ed0d3d |
refs/heads/master | <file_sep># Konputaziorako-Sarrera Matematikako Gradua 2019-2020
* Edukia ikusteko: [nbviewer](https://nbviewer.jupyter.org/github/mpenagar/Konputaziorako-Sarrera-2019-2020)
* Modu interaktiboa: [](https://mybinder.org/v2/gh/mpenagar/Konputaziorako-Sarrera-2019-2020/master... | 802bd90ecd70d3d565670f4b0ceddb6298a227bf | [
"Markdown",
"Python"
] | 2 | Markdown | mpenagar/Konputaziorako-Sarrera-2019-2020 | b7afefc89cc2aa333f6b6fbb4d5b7865e1e0c539 | ee56b14b06c34b70afbe2c9fc9e7825ffeb47afe |
refs/heads/main | <repo_name>TeodorVecerdi/saxion_procedural_art<file_sep>/Assets/Procedural Art/Scripts/Data/Arr3d.cs
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
public class Arr3d<T> : IEnumerable<T> {
private T[][][] arr;
private int length1;
... | a8f842d4cdf2f0b91b1577cc8b3c2a4e460c8ae9 | [
"Markdown",
"C#"
] | 51 | C# | TeodorVecerdi/saxion_procedural_art | 11eecd7fd652465c21a1b9c867c13932478abab2 | f23fe28c1aeec92adc930213b47803ee085b1ae2 |
refs/heads/master | <file_sep>const router = require('express').Router();
const Medico = require('../models/medico');
let { verificaToken } = require('../middlewares/middleware');
router.get('/', (req, res) => {
Medico.find({})
.populate('usuario ','nombre email')
.populate('hospital')
.exec( ( err, medicosDB ) => {
... | 268c3ff952fd26aa03a262e2dde20d6cdbbc7160 | [
"JavaScript"
] | 10 | JavaScript | ya1k96/backHtal | be96e37c7c38671a7889f5d4572feb583ad4e8b8 | cc2e9db434bafa5cdfc70b79ef8d753527e24b6d |
refs/heads/master | <repo_name>uehara1962/elocc_frontend<file_sep>/src/App.js
import React, { useState, useEffect } from "react";
import "./App.css";
import axios from "axios";
import { MDBDataTable } from "mdbreact";
function App() {
const [dados, setDados] = useState([]);
useEffect(() => {
const data = {
columns: [
... | ca8779e6de6799866713ead642ce7d9a574522fb | [
"JavaScript"
] | 1 | JavaScript | uehara1962/elocc_frontend | fb4ceefa0ce51105bd34a236509ae682c2ea5ef7 | bbdd7da1a2b7bf601733effcd37b1049b8c9b3e5 |
refs/heads/main | <file_sep>package Part_3;
/**
* Represents things that go inside separation bins.
*/
public class Thing {
private String type;
private Material material;
private Material material2 = Material.UNDEFINED;
public Thing(String type, String material, String material2) {
this.type = type;
... | a819d7b05f9704799ab3b38c0c6dbfec08b0f7f0 | [
"Markdown",
"Java"
] | 5 | Java | anna-petrakova/ProjectOKsystem | c8f1be493c52816d34ab2cc11a3143bc547fee9f | 406d26c1ef955f7cf2dc8c4bde51ce0b69c31070 |
refs/heads/master | <repo_name>CSpector/Computer-Science-II<file_sep>/lightsoutgame/LightsOut.java
package lightsoutgame;
/**
* Controls the exceptions and the pression on the game board
* @author <NAME>
* @author <NAME>
*/
class LightsOut {
/**
Is used in the LightsOut method to set the size of the board
*/
private... | 1e8209616cad69c84925bc7c38332d12628d0dc5 | [
"Java"
] | 5 | Java | CSpector/Computer-Science-II | 994ceabe3161af60edbcb1e3196cf519ef3edb45 | ab94055d746881271a4748f69666caf6abd7feab |
refs/heads/master | <file_sep>print("<NAME>ado 0907-21-15261")
print("Ingresa tu nombre")
nombre=input()
print("Bienvenido " + nombre + "este programa calcula el 15% y se lo resta al numero que indiques")
numero=int(input("Ingresa el numero:"))
print("Descuento del 15% su total es:", numero-(numero*15)/100)
| 33a3b2243002e52e41669809013542ae8d7ffc9c | [
"Python"
] | 1 | Python | JhonatanAlva/ExamenAlgoritmos1 | 90274fc9f2007dd58a63f9e5328b644247f91575 | 8a3f9f621bd831edb4331efd10363c252f4bea12 |
refs/heads/master | <repo_name>mahamniaz/TicTacToe<file_sep>/computer.h
#ifndef COMPUTER_H
#define COMPUTER_H
#include <iostream> // allows program to output data to th
using namespace std;
class computer{
private:
int pos;
public:
... | dd338dd12a025334163ead1c08b7eb805a0c6e78 | [
"C++"
] | 6 | C++ | mahamniaz/TicTacToe | 112c3cbaa8e42be95ef365482215f891571efddd | b89f0a013df049badf2551393641c53dd9bad77b |
refs/heads/master | <file_sep>package models;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Alan on 28/11/2014.
*/
@Entity
public class Semana {
@Id
@GeneratedValue
private Long id;
private String semana;
@OneToMany
@JoinTable
private List<Meta> metas;
... | 925a57bf3a71754e9a5fab206832625dfd32a66e | [
"Markdown",
"Java"
] | 3 | Java | AlanCintra/si1-lab2-parte2 | 65b111a7a5f6a9df4d5bf2272bdb375aa66cab08 | 0e51f73f0035240f412102f1a503b2a18f621e99 |
refs/heads/master | <repo_name>KiJou/UnityCommon<file_sep>/Assets/Scripts/TestSerializableMapDrawer.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityCommon;
public class TestSerializableMapDrawer : MonoBehaviour
{
public SerializableLiteralStringMap Map;
}
<file_sep>/Assets/UnityCommon/R... | ec452ecb041e320bccc9f54f10f200c72f588ff6 | [
"C#"
] | 9 | C# | KiJou/UnityCommon | 78dd9fdfae5498db43bc8044277a6a22ddc91d5e | e19fb0b2dfd0bccab4be5eaef6a3decfd524903c |
refs/heads/master | <repo_name>felipework/aulazend<file_sep>/application/forms/AulaZend.php
<?php
class Application_Form_AulaZend extends Zend_Form
{
public function __construct($options = null)
{
parent::__construct($options);
}
public function setAllDecorators()
{
$elements = $this->getElemen... | c60f87b84d0b1daf8641db63f260c6de8f609ede | [
"PHP"
] | 5 | PHP | felipework/aulazend | d5f97076935d213024f470d7ca5106c2b6dd2185 | 807a91a7c2d4fc87182e9282064169f455a5941a |
refs/heads/master | <file_sep>package CabInvoiceGenerator;
public class CabInvoiceService {
private static final double MINIMUM_COST_PER_KM = 10;
private static final int MIN_COST_PER_TIME = 1;
private static final double MIN_TOTAL_FARE = 5;
private RideRepository rideRepository;
public CabInvoiceService() {
this.rideRepository =... | f846e43bc322e7609b59bdfc08e26fca02a2f5d5 | [
"Java"
] | 3 | Java | jagriti04/Cab-Invoice-Generator | c2d33daee444d2b8c97e154ec0a098f3d15ececd | 7891697cc858feac9322009d615fbe61f9f6659b |
refs/heads/master | <repo_name>sirmmo/Android-OsCar<file_sep>/OsCarProject/settings.gradle
include ':OsCar'
<file_sep>/OsCarProject/OsCar/src/main/java/it/mmo/oscar/Collector.java
package it.mmo.oscar;
/**
* Created by admin on 27/11/13.
*/
public class Collector {
}
<file_sep>/README.md
Android-OsCar
=============
Open Source Car Tra... | b8f236ab97459ffff8bf0873a10eb9dffdf79607 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Gradle | sirmmo/Android-OsCar | 0348241b1568897845ff43e3b54c3a869bc00a44 | 395a44db7bfd3e9bd17bf531fbac54e07c08cb61 |
refs/heads/master | <repo_name>AntonioCS/puppet-development-stack<file_sep>/Vagrantfile
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html
config.vm.box_u... | 97786951dfd06850980b2f30a1e78f6d5406b327 | [
"Ruby"
] | 1 | Ruby | AntonioCS/puppet-development-stack | 52573b271409d8ff2466a79325695c93fc2bd77f | 0ad2ec29f0ca938b2be4d4ec1e96b2971dd6b75d |
refs/heads/master | <file_sep># ybb-cli
supply templates to create your application
## Installation
```bash
npm i ybb-cli g
```
## help
to help you how to use it
```bash
ybb-cli
```
## test
```bash
ybb-cli init vue-webpack-mpa test
```<file_sep>'use strict'
const exec = require('child_process').exec
const co = require('co')
const ... | 0b6c4a1d34e5a99ee030a42270c483c6ee42358c | [
"Markdown",
"JavaScript"
] | 4 | Markdown | yellowbeee/ybb-cli | b1a50631be388c0c5f0f892d48a1eee5d774191b | 1f8aafd5fd97dbaf536966e456b7399d6fd314e2 |
refs/heads/master | <repo_name>albertohenri/Projeto-de-Web1<file_sep>/app/controllers/default.py
from flask import render_template, flash, redirect, url_for, session, request
from app import app , db, lm
from flask_login import login_user, logout_user
from app.models.tables import User
from app.models.forms import LoginForms
import functo... | f44bd15f862149580263f9fcb54120b77823b84c | [
"Python"
] | 2 | Python | albertohenri/Projeto-de-Web1 | d053c8aa028dd6bf44858c06b60433b63c32b28f | 17cc42f3ea84ef4f7956432c214db803a3155099 |
refs/heads/master | <repo_name>Artik292/homework<file_sep>/index(old).php
<?php
require 'vendor/autoload.php';
$app = new \atk4\ui\App('Нажмите на любую кнопку!');
$app->initLayout('Centered');
If (isset($_GET['max'])) {
$max = $_GET['max'];
$min = $_GET['min'];
} else {
$max = 100;
$min = 0;
}
$med = round(($max+$min)/2);
$l... | 2fae1334d2417b1d5ca70002dc083850326d3e3c | [
"PHP"
] | 3 | PHP | Artik292/homework | 4052a5b7fd520320c8c066bdd07da39553fd7fe3 | 45ae777aa4f61dbc408542490308f5c0bec4ee02 |
refs/heads/master | <file_sep>package main
import (
"encoding/json"
"errors"
"fmt"
"github.com/hyperledger/fabric/core/chaincode/shim"
)
// SampleChaincode example Sample Chaincode implementation
type SampleChaincode struct {
}
// Init create tables for tests
func (t *SampleChaincode) Init(stub shim.ChaincodeStubI... | cfac635287ba835cf6f33dc1c21315f2ea754722 | [
"Go"
] | 1 | Go | suffiasameera/table | 10ab191cdf760251342039e82c26b2b4f39c9913 | aea960977490d3d895294720db77be7d8e34b5cb |
refs/heads/master | <repo_name>HerronTech/soajs.tidbit.demo<file_sep>/import/products/index.js
var devProducts = {
"code": "TIDDEV",
"name": "TidBit Dev Product",
"description": "This is a product for TidBit demo",
"packages": [
{
"code": "TIDDEV_PACK1",
"name": "Package 1",
"description": "This package is admin. It contain... | f1af909947440b18742a00b18162c046db9f2ee4 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | HerronTech/soajs.tidbit.demo | 6afe753c6b75d3dc2567a6922c0631fdb47250c4 | 1e98287ecd07cfe4925c9ee81cea8a28d36a13d2 |
refs/heads/master | <repo_name>mangeshrane/pyautomation<file_sep>/pyautomation/mobile/mobile_element.py
'''
Created on Apr 15, 2019
@author: mrane
'''
class MobileElement(object):
def __init__(self, by, locator, wait=10):
'''
Constructor:
Parameters:
----------
by : selenium.webdriver.c... | a03f949f57db29e2d112e6d91d4d11538ad88f6a | [
"Python"
] | 15 | Python | mangeshrane/pyautomation | df210523a3444f8633e81e0b6dcd632edd1a477c | bfe40f017859ee0df9f17641003bdfe2804f3694 |
refs/heads/master | <file_sep>#pragma once
#include<iostream>
#include<assert.h>
#include<vector>
#include<thread>
#include<mutex>
#include<map>
#ifdef _WIN32
#include<Windows.h>
#endif
//管理对象自由链表的长度
#define NLIST 240
//最大支持提供内存的大小
#define MAXBYTES 64*1024
#define NPAGES 129
#define PAGE_SHIFT 12
typedef size_t Pag... | 78450e4c233ae887041936d95f268b9512089b26 | [
"C",
"C++"
] | 24 | C++ | WyatWang/hahaha | e7e71cb006a49c07a83e7cf337ef299e9b005891 | 918ca6e332681fb4bcfeb60efdcb9232816c40a3 |
refs/heads/master | <repo_name>researchgate/unidriver<file_sep>/test-suite/src/index.ts
import { UniDriver } from '@unidriver/core';
import { TestAppProps } from './test-app';
export type SetupFn = (data: TestAppProps) => Promise<{driver: UniDriver, tearDown: () => Promise<void>}>;
export type TestSuiteParams = {
setup: SetupFn;
befor... | 03579f0dbb5b1a66f918d3fe1f4022a274e59511 | [
"TypeScript"
] | 1 | TypeScript | researchgate/unidriver | cf59c1a531c97374818a8d61825facc1bf10ec9b | dda198b319f933e8b9cabc9e5b374c9693787c88 |
refs/heads/master | <file_sep>//
// Created by twer on 5/15/15.
//
#include "LengthUnit.h"
#include "Length.h"
const int CM_CON_FACTOR = 1;
const int M_CON_FACTOR = 100;
LengthUnit::LengthUnit(unsigned int _conversionFactor) : _conversionFactor(_conversionFactor) {
}
unsigned int LengthUnit::toAmountInBaseUnit(Amount amount) const... | 9c24daa956d82721441237c6c8739fb6ae2f271e | [
"CMake",
"C++"
] | 8 | C++ | dwpplayer/LengthCpp | e807525b3019edad9fca70d8169dddb75edb311f | f312b73d2c17b4a13e0c7e3aec8095b0504bb3f8 |
refs/heads/master | <file_sep>## 1 - saveRDS
nrOfRows <- 1e7
x <- data.frame(
Integers = 1:nrOfRows, # integer
Logicals = sample(c(TRUE, FALSE, NA), nrOfRows, replace = TRUE), # logical
Text = factor(sample(state.name , nrOfRows, replace = TRUE)), # text
Numericals = runif(nrOfRows, 0.0, 100), # numericals
stringsAsFactors ... | 723f239e88cb761830c3bc9fcc3a3d95898e4411 | [
"Markdown",
"R"
] | 2 | R | leonafonte/write_read_data_frames | 7df5337447a70cae82342984dfcda77b601945f1 | e01d2439a01318df0096231530ec4b23faf4d7c7 |
refs/heads/master | <repo_name>meMuhammadkamal/CurrencyConverter<file_sep>/CurrencyConverter/Screens/Converter/ConvertViewController.swift
//
// ViewController.swift
// CurrencyConverter
//
// Created by <NAME> on 11/23/19.
// Copyright © 2019 SwensonHe. All rights reserved.
//
import UIKit
import IQKeyboardManager
class ConvertView... | b46359abd164ea6a1dd24472d9c2ffc3f80994c4 | [
"Swift"
] | 19 | Swift | meMuhammadkamal/CurrencyConverter | 68b5f698d5e21e342aec43ce789a8d1da7aee0bb | 566e5c776b6a029371593606ffe29ae8ab99af55 |
refs/heads/master | <repo_name>LazyZhu/azure-http-proxy<file_sep>/src/http_proxy_server_config.cpp
/*
* http_proxy_server_config.cpp:
*
* Copyright (C) 2013-2015 limhiaoing <blog.poxiao.me> All Rights Reserved.
*
*/
#include <memory>
#include <fstream>
#ifdef _WIN32
#include <Windows.h>
#else
extern "C" {
#inclu... | bffde890142733e92c36a0782cb1651da701929c | [
"Markdown",
"CMake",
"C++"
] | 18 | C++ | LazyZhu/azure-http-proxy | 2541b51a5c11fb14f0e1347041e6a863bff7bbc8 | 2e6fb53054b393d4b0b93077ad5698105693cb84 |
refs/heads/master | <file_sep># midpoint-filter
This function will filter the image by the nonlinear midpoint filter method. This function works only for monochrome images, 8 bit per bixel and 24 bit per pixel. The midpoint filter is typically used to filter images containing short tail noises such as Gaussian noise and uniform type. Th... | 77275bc1c7a9f15eda2cc0d908cbdc86bd2d6aa2 | [
"Markdown",
"C"
] | 4 | Markdown | yurilimace/midpoint-filter | b962acd76f0dedcd570125ead04892ee53d5b883 | fc86ad9ffd45f55c4bf3a550e656b0f5be087ada |
refs/heads/master | <repo_name>qdbest/study<file_sep>/auth/spring-auth/src/main/java/com/yucn/config/YucnAuthorizationServerConfig.java
package com.yucn.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
/**
* Cre... | 39e7d27e8881e87f47f8833166856f87f1e5100d | [
"Markdown",
"Java"
] | 2 | Java | qdbest/study | 80684866c187f3348c31731f00b19ee3922ac400 | 57331c95b0f815372a185998eba9726c1aa8f232 |
refs/heads/master | <repo_name>bsatrom/wall-of-things<file_sep>/wot-firmware/wot-neopixel-strips/src/soundtocolor.h
#ifndef SOUNDCOLOR_H
#define SOUNDCOLOR_H
struct color
{
unsigned int Red = 0;
unsigned int Green = 0;
unsigned int Blue = 0;
};
color mapNoteToColor(double soundFrequency);
#endif<file_sep>/wot-firmware/wot-neopixe... | 0f840e04a96c4a904a843db1e816d23c0bf67f14 | [
"Markdown",
"C",
"C++",
"INI"
] | 8 | C | bsatrom/wall-of-things | fb7f635125dec7005e83e225306226ed831e5200 | 735aaf823329ce8efb0fabb5d4b1cbc738d03bfe |
refs/heads/master | <file_sep>import java.util.Date;
public class HallBooking {
private Hall hall;
private Event event;
public HallBooking(){}
public HallBooking(Hall hall, Event event) {
this.hall = hall;
this.event = event;
}
public Hall getHall() {
return hall;
}
public void setHall(Hall hall) {
this.hal... | 2efd2f1f5ff69766f59f50d433b271809011a9a0 | [
"Java"
] | 3 | Java | ebox-online/pipelineUbuntu | c72e0746d1bf4d6c7fba90e00e7bc2c8b1f7b292 | 1664de3077778e5c1859d5bf82e5e95970ec5bae |
refs/heads/master | <file_sep>class CreateSearches < ActiveRecord::Migration[5.0]
def change
create_table :searches do |t|
t.string :keywords
t.string :country
t.date :arrival_date_from
t.date :arrival_date_to
t.date :visa_expiry_date_from
t.date :visa_expiry_date_to
t.integer :status
... | 8557686db9ae4a228b787aab5ada7b0e4460f3d8 | [
"Ruby"
] | 16 | Ruby | neerajmaurya07/amanat1 | 40608c2c4a103a4484d027b92f2218f32d084d76 | ad27c9ca02c07319eb908fcd161c03d8ce5e3a50 |
refs/heads/master | <file_sep>
# Uga\_Uga
Don't use this.
Use [Parslet](http://kschiess.github.io/parslet/) or [OMeta](https://github.com/alexwarth/ometa-js).
Here is a video on creating your own external DSL:
[Writing DSL's with Parslet by <NAME>](https://www.youtube.com/watch?v=ET_POMJNWNs)
## Installation
gem 'uga_uga'
## Usag... | 333df24600fd41b392a2ed74a16ad9d8c8dfa301 | [
"Markdown",
"Ruby"
] | 4 | Markdown | da99/uga_uga | 0cde36226736e764eb53753ac3650dda2a09f237 | ea828f82e10a42fd8adf5e698aabb8afe7e4c424 |
refs/heads/master | <repo_name>xiaxianyue/PyProject<file_sep>/day01.py
i = 8
i= str(i)
print(i) | d957564ed961080341e442b31b438ce0e79e1f4b | [
"Python"
] | 1 | Python | xiaxianyue/PyProject | dc68761f544de2a3c923f6d0fa77cd88211d6200 | b589b3ff58a2dc10033cde8c4abbd4d3bed6ca8a |
refs/heads/master | <repo_name>pincanna/investors-portal<file_sep>/app/views/encrypted_memos/_encrypted_memo.json.jbuilder
json.extract! encrypted_memo, :id, :uid, :title, :body, :created_at, :updated_at
json.url encrypted_memo_url(encrypted_memo, format: :json)
<file_sep>/test/decorators/users/role_decorator_test.rb
require 'test_helper'... | 7dfc412cd9ab3162ab09be22cd36769f97b7c846 | [
"Ruby"
] | 41 | Ruby | pincanna/investors-portal | ab58f73064f8f6c5e64233660006f6b06efb2b77 | b0c7e8d44034bdc57bde0e28a1209c804c90e05c |
refs/heads/master | <repo_name>jingyaqian2338893965/VI-Management-System<file_sep>/index.js
$(function(){
$(".liebiao li").click(function(){
var text=$(this).children().children()[1].innerHTML;
if (text=="首页") {
$(".right-2").load('pages/shouye.html')
}else if(text=="栏目管理"){
$(".right-2").load('pages/lanmu.html')
}else if(... | a33483da25a6ff1e8d6d45ad8d5b783968ff1f4e | [
"JavaScript"
] | 1 | JavaScript | jingyaqian2338893965/VI-Management-System | 577ddcfaa96985e993e04b73801ff21ceb8020a5 | b0741c0e364b7391f9ac9a417488b5f31b0587fd |
refs/heads/master | <repo_name>tpdi/posa2014w5a4test<file_sep>/README.md
I've put a lot of comments in the source to explain what the tests do and how they do it.
Please give it a read. Some tests will fail until you modify your AndroidPlatformStrategy code.
Code is copyright (c) 2014, <NAME>. You are granted a non-exclusive, non-tr... | 3ba47cdafd05e2a4f0e4fd1ae7cc8cd581e2e5d0 | [
"Markdown",
"Java"
] | 2 | Markdown | tpdi/posa2014w5a4test | 42bd7349bc6813c1cef4c101e5125a0780d6a347 | 1be3ae7ea19d8ff537cac2f879394958367b171a |
refs/heads/master | <file_sep>RoboLang
This project supposed to become a game that teaches programming one day.
PROJECT_HALT
err code: 0xe1b586e70f47d60d3463e851d49191e9
msg: non-free dependency 'Unity 3D' found
call stack:
[call stack dump removed for sedqurity reasons]
<file_sep>using UnityEngine;
using UnityEngine.EventSystems;
using... | fee8afda7876579ee9c0639ca615b468026ba61c | [
"C#",
"Text"
] | 2 | Text | mongoose11235813/RoboLang | ef455c957f5b3372f95340740f3fba0243f16340 | 516d7150a7ff433f786df16e42b5346ac4f93c5a |
refs/heads/master | <repo_name>cdanz/CPSC_5051<file_sep>/CPSC_5051/driver.cs
// AUTHOR: <NAME>
// FILENAME: driver.cs
// DATE: 4/29/2018
// REVISION HISTORY: 1.0
// REFERENCES (optional): EncryptWord.h EncryptWord.cpp
// www.tutorialspoint.com/csharp/csharp_quick_guide.htm
using System;
using ProgrammingAssignments5051;
namespace CPS... | d870898cba1e7300ba0963d7396d27df8cc00e63 | [
"Markdown",
"C#"
] | 4 | C# | cdanz/CPSC_5051 | cb25f806bf4c70e58f56955e6e79290931914173 | 5f4a9c8736ca9de6ccb9953a452ce6a630fc8a22 |
refs/heads/master | <file_sep>import numpy as np
import cv2
def order_points(pts):
rect = np.zeros((4, 2), dtype = 'float32')
s = pts.sum(axis = 1)
rect[0] = pts[np.argmin(s)]
rect[2] = pts[np.argmax(s)]
diff = np.diff(pts, axis = 1)
rect[1] = pts[np.argmin(diff)]
rect[3] = pts[np.argmax(diff)]
return rec... | 54e453b68b3f9344146071b1ac15fe31722259e1 | [
"Python"
] | 2 | Python | DennisLZL/opencvtest | 38405f256499f58419cb0d020db5840c434a456d | 50d81b2446a4896e3af012226cc11d2e7d2de264 |
refs/heads/master | <repo_name>dichque/sample-api<file_sep>/restapi/configure_minimal_pet_store_example.go
// This file is safe to edit. Once it exists it will not be overwritten
package restapi
import (
"crypto/tls"
"github.com/dichque/sample-api/models"
"github.com/go-openapi/swag"
"net/http"
errors "github.com/go-openapi/errors... | 05dd49da104bacbc4bfc48b02444b0d23258af37 | [
"Markdown",
"Go"
] | 2 | Go | dichque/sample-api | 448c919b5f95f174a99de0b8736ac53877452828 | 874802c337c1010f4324546f611948939f343285 |
refs/heads/master | <repo_name>G-MercyT/microposts<file_sep>/app/models/micropost.rb
class Micropost < ActiveRecord::Base
belongs_to :user
validates :user_id, presence: true
validates :content, presence: true, length: { maximum: 140 }
has_many :favorites, dependent: :destroy
has_many :favorite_users, class_name: "... | a7e710e8f93144c20b9a6e5cd071b488481c305d | [
"Ruby"
] | 1 | Ruby | G-MercyT/microposts | e202b595633cec581527fee5a597e65164fa248f | 8e15721e656e0b12fbcf4aa94fb8601a4dfc74e8 |
refs/heads/master | <repo_name>alaminzju/eQTLQC-1<file_sep>/ImputationScripts/Imputation_main_script.sh
# Steps for preparation of imputation based on Michigan Imputation Server, and post-imputation QC
# Author: <NAME>
# Step 1, run data preparation script, HRC-1000G-check-bim.pl
#
perl /home/tw83/twang/AMP/tools/HRC-1000G-check-bim.pl... | 1007580f6ae4769c3a114452601c68cff8fd7320 | [
"Markdown",
"R",
"Shell"
] | 4 | Shell | alaminzju/eQTLQC-1 | 86dcc388c8da7f1bd5b223f4b9b26f09c907eb15 | 35a17601fc2a15428ee3195e8079b67c1f2e4ebf |
refs/heads/master | <file_sep>def count_substring(string, sub_string):
count = 0
string_part = string
while string_part != '':
position = string_part.find(sub_string)
if position != -1:
count += 1
string_part = string_part[position+1:]
else:
string_part = ''
... | 74fd1f876bd2fbde71036e1a1ac835df3cf7235a | [
"Markdown",
"Python"
] | 7 | Python | chetankhilosiya/python-test | b32fffdf8b31d26a4b3dea380079d3f7bfd846ed | 80c2f59c4ec64309c1cd8f2cc42ee4decb34db73 |
refs/heads/gh-pages | <repo_name>mcanthony/Ammo.lab<file_sep>/demos/demo03.js
CLEAR({broadphase:"BVT", timer:false, timestep:1/60, iteration:2, G:-10});
function initDemo()
{
NAME("Ball pool");
// ground
ADD({ type:"ground", size:[20,3,20], pos:[0,-1.5,0] });
// wall
ADD({ type:"boxbasic", size:[20,10,1], pos:[0,5,-9.5]... | 0a91106f77149d40ad8b2b3fe6194c11c318cfe4 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | mcanthony/Ammo.lab | 24246f9864a3b1e5551fe458b2cc46425eb00889 | 2d59d7343594a9219652ecc7db68f8f74fd08f08 |
refs/heads/master | <file_sep>package Maekawa;
public class CriticalSectionViolationException extends Exception {
private static final long serialVersionUID = -5797829304832596538L;
}
<file_sep>package Maekawa;
import java.io.Serializable;
public class ScalarClock implements Serializable, Comparable<ScalarClock>, Cloneable{
... | c183078db20a0ff85b10865b547b731856a16668 | [
"Markdown",
"Java",
"Shell"
] | 12 | Java | simtron/MamoruMaekawa_DistributedMutex | a3eb92a725f9246306215e58079d552ce24e0386 | 01d4ca789224520bda89f573041c94c0302e9aa3 |
refs/heads/master | <file_sep># Scripting
This is one of my first attempts at automated web testing using Selenium.
## Usage
- Install the ```chromedriver```
- Run ```pip install selenium```
- Run ```python youtube.py``` or ```python facebook.py```
## Issues
See a bug? Feel free to create an issue request and we can look into it togeth... | e29f2b2687b3ec72d7b579541459305cd703623e | [
"Markdown",
"Python"
] | 3 | Markdown | vikas623/scripting | 8c5d9f3f6717f58bd72e9900411cfa16e1e8f7fd | b177b57923291d3707697f0e5e0d49ecfc235648 |
refs/heads/master | <file_sep><!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Oberfläche ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!DOCtype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/... | 558dd17b718f5df5430e0afe3bd9849595b40831 | [
"PHP"
] | 1 | PHP | Timmaaaa/PHP-Calculator | 419c645e9416f5231742a5e52231b874060c3dcb | 2a23fc57ec69eb70eb97a27fe8fbcd47bb6a1123 |
refs/heads/main | <repo_name>Svetlana-Ter/goit-react-hw-04-movies<file_sep>/src/pages/MoviesPage.js
import { Component } from 'react';
import SearchForm from '../components/SearchForm/SearchForm';
import MoviesGallery from '../components/MoviesGallery/MoviesGallery';
import queryString from 'query-string';
class MoviesPage extends Compo... | 5c47ece2919c3c259e75e08fc197b5470c52d2b9 | [
"JavaScript"
] | 5 | JavaScript | Svetlana-Ter/goit-react-hw-04-movies | 7bc01a43519f2c5e4f6e38fd8e6112c265e6bba5 | 8b1820aec074e62249061e90e189c91c0ec03ba1 |
refs/heads/master | <repo_name>krybicka/valentinesday-card<file_sep>/myScript.js
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
var x = canvas.width/2;
var y = canvas.height-30;
var dx = 2;
var dy = -2;
var paddleHeight = 10;
var paddleWidth = 120;
var paddleX = (canvas.width-paddleWidth)/2;
var br... | 26de1adb4a6887de8f51c5219ba4a26f7c83a647 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | krybicka/valentinesday-card | 20b48609a5d0b52b62e73faa7e49243ceeddf713 | 826e13489b0a42c8f0cc8ad449228907e24ab486 |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 11, 2019 at 10:57 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4010... | 745fa6c7d9821c4329c77516bed333ce118e16ff | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 11 | SQL | Ir001/pengelola-rekening-listrik | 5ad78de6f0a86b359709f2ffa525599b19fe4dfb | 88fc18fb84a8955d341e92bcfd24beaba6bc54b0 |
refs/heads/master | <repo_name>fablecode/yugioh-insight<file_sep>/src/wikia/processor/cardprocessor/src/Domain/cardprocessor.domain/Services/CategoryService.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using cardprocessor.core.Models.Db;
using cardprocessor.core.Services;
using cardprocessor.domain.Repository;
name... | 25a6ec7e2d7b6e527fdda8825829c70064b71e63 | [
"Markdown",
"C#",
"YAML",
"Dockerfile"
] | 448 | C# | fablecode/yugioh-insight | 16e7fadc2d5f97ded64d9149975d76b46a55b6cd | 77753640c6ff36fbf1ad1fee98c95d45a81cf8d0 |
refs/heads/main | <file_sep><?php
function pass($a){
echo $a+= 1;
}
$x = 10;
pass($x);
?> | 0906b3e99c3b12e2284bf6873b5db69a8da46f7b | [
"PHP"
] | 1 | PHP | hyurai/training8 | db3ccc601906bd90dde273cc6cb48567871af5db | e05d906aee00f13390fbecfe662d15d637b7102c |
refs/heads/master | <repo_name>kylethorpe/csc-360<file_sep>/p3/diskinfo.c
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "disk.h"
void diskinfo(char * filename);
void storeOSName(char * p);... | f3d10e0bf77e06131806739405c58b3a360eabb1 | [
"Markdown",
"C"
] | 15 | C | kylethorpe/csc-360 | b7143b6c3080787235b42684b76c390cc10ffda7 | dbb191e5e4b3253bcd2447cd49c9cd0d76b4b27e |
refs/heads/master | <repo_name>San-Diego-Web-Design/clementia<file_sep>/application/config/tests.php
<?php
return array(
'types' => array(
'text' => 'Test for the presence of a text string',
'element' => 'Test for the existence of HTML elements',
),
'tags' => array(
'' => 'Any',
'div' => 'div',
'h1' => 'h1',
... | 2ad6803b705a67147d915b2c317f30b2a81a1398 | [
"Markdown",
"PHP"
] | 15 | PHP | San-Diego-Web-Design/clementia | 265c6582ce9edb5aea9cf8f8f4321631b88c0d80 | 6f2f88c16ce833766bf79291bbc42e215a9913b8 |
refs/heads/master | <file_sep>package com.smtm.mvvm.data.remote.request
/**
*/
data class GithubUserRequest(
val keyword: String,
val pageNumber: Int,
val requiredSize: Int,
val isFirstRequest: Boolean
)<file_sep>package com.smtm.mvvm.data.db.transformer.error
import androidx.room.EmptyResultSetException
import com.smtm... | 5f7461a6d0d36c79b4fb2bd39a89825501b7c0b6 | [
"JavaScript",
"Kotlin",
"Gradle"
] | 67 | Kotlin | asus4862/MVVMArchitecture | c535bd319d7a77fb9d5df8524313026d1b3ce2da | f03312176116884246d649299f04f5cbb0d1a965 |
refs/heads/master | <repo_name>icelandcheng/test<file_sep>/break_time.py
import time
import webbrowser
num=1
while(num<3):
time.sleep(10)
webbrowser.open("https://www.youtube.com/watch?v=DDWKuo3gXMQ")
num=num+1
<file_sep>/circle_square.py
import turtle
def draw_circle():
window = turtle.Screen()
window.bgcol... | 285db85ea6290bcf41adde639ec746d2077b2663 | [
"Markdown",
"Python"
] | 3 | Python | icelandcheng/test | 9eb4b68c71d15a2d09668aa9bcc48a5c07427515 | 03822e78e5a6007ae89aa9d40d05ea4d2182ce48 |
refs/heads/master | <repo_name>oahmadseecs/Advanced-Programming-Labs<file_sep>/lab9_src/FormComponents/UserForm/userform.js
import React from 'react';
import './userform.css';
class UserForm extends React.Component{
constructor(){
super();
}
render(){
return (
<form>
<input type="text" name="Name" placeholder="Name" /> <br... | c7e4743ea2dae9624a055c75fad6f9f7ed0218da | [
"JavaScript"
] | 7 | JavaScript | oahmadseecs/Advanced-Programming-Labs | f32a8b8458d0c87b5707b2a2f4e52e1c2bf7f83a | 0758f508225fb3dd6456428f8314e59aa13aec81 |
refs/heads/master | <file_sep>print "new"
print "HI"
| be052f9b2e9f701838d42c30efb7d2bb9842a13d | [
"Python"
] | 1 | Python | Flap-Py/branchcheck | 40c98aef875cd63881d306da4b9a7c277a2cb244 | 2a10fa82667c322a03693595c9c7c2dbd6d69928 |
refs/heads/master | <repo_name>tchoblond59/MSRollerShutter<file_sep>/Shutter.cpp
#include "Shutter.h"
#include <EEPROM.h>
#include <core/MySensorsCore.h>
Shutter::Shutter()
{
}
Shutter::~Shutter()
{
}
void Shutter::init()
{
// Set relay pins in output mode
// Make sure relays are off when starting up
digitalWrite(SHUTTER_POWER_PIN, ... | e19dafb0eb4f282dab5a0644a02356a6cc2db15e | [
"Markdown",
"C++"
] | 4 | C++ | tchoblond59/MSRollerShutter | 9d5047f65d3ef97e4285f4bffa1394a42c84638f | 58d5d93505bfba5809c659bdf7ba775f69b8f706 |
refs/heads/master | <file_sep>#!/usr/bin/env node
const chalk = require('chalk');
const semver = require('semver');
const nodeVersion = require('../package.json').engines.node;
function checkNodeVersion (wanted, id) {
if (!semver.satisfies(process.version, wanted)) {
console.log(chalk.red(
'You are using Node ' + pr... | 9e3cb97ef9bb7a58312a4bcc9b37b82687ceb5d7 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | huochezaodian/my-cli | 1a3b5e6e40c61e068e5412ccba3197fd94fad0d6 | 7ec936e10aa84ef8898c2f53184a8c4b9b8f1afd |
refs/heads/main | <repo_name>vtamara/rails7a2_importmap<file_sep>/test/system/publicaciones_test.rb
require "application_system_test_case"
class PublicacionesTest < ApplicationSystemTestCase
setup do
@publicacion = publicaciones(:one)
end
test "visiting the index" do
visit publicaciones_url
assert_selector "h1", text... | 1ef1acc863488de24911df0167c7031fdcc51567 | [
"JavaScript",
"Ruby",
"Shell"
] | 11 | Ruby | vtamara/rails7a2_importmap | f0d0f55f91369f631ec001d28912633d51a1a5b2 | 2529e9128dd0d74d7ad20a17b75766c85f6bb203 |
refs/heads/main | <file_sep>#include <stdio.h>
#include <stdbool.h>
void print_array(char * pre, int array[], int length)
{
printf("%s[ ", pre);
for (int i = 0; i < length; i++) {
if (i != length - 1)
{
printf("%d,", array[i]);
}
else
{
printf("%d ]\n", array[i]... | 94b88c7c1f162e7f2c58cfe4c3ee97a75ceedb1d | [
"JavaScript",
"C",
"Python",
"Java"
] | 12 | C | QuisEgoSum/different | 8c9bf452b32f427db302100c6118a3b14a0c0657 | a7dd60b29449f64e35f04e63c97a669ae9256170 |
refs/heads/main | <file_sep>const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const helpers = require('../../../../../helpers/shared.js');
let nextTrack = await helpers.dequeueTrack(context.params.event);
if (nextTrack) {
await helpers.play(context.params.event, nextTrack.youtube_link, false)
}
<file_sep>const lib... | 78d533599dbb7ce8ce4e4ea732b825a17d10d4b5 | [
"JavaScript"
] | 4 | JavaScript | Zakaria-ElGhoul/Discord-Bot | 81e9db1b8a8b5562b191a895c4e73f711b9cd2b8 | 6af6abac7995beb795caad95bc6b94661b79ac89 |
refs/heads/master | <repo_name>varTommy/Web-server<file_sep>/WebServer.go
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
_ "github.com/go-sql-driver/mysql"
)
func checkErr(err error) {
if err != nil {
panic(err.Error())
}
}
//登录
func Login(w http.ResponseWriter, r *http.Request) {
db, err := sql... | 2c307a563febb1efdc95794cef16b874c6cad5a0 | [
"Go"
] | 1 | Go | varTommy/Web-server | 63ae6a6c30eb202512358f9ee566364de2ae2e11 | 66d2cb6b5157f15092d3c8f0bf37131d6ccbcd10 |
refs/heads/master | <repo_name>lin-shaojie/vuex_case<file_sep>/README.md
# vuex_case
Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式。
## 介绍
这是一个基于Vuex的一个小案例。案例中包含了Vuex中所有核心概念,全部在案例在体现了出来。
## 案例技术栈主要包括:
`Vue-CLi`,`Axios`,`Vuex`,`Ant Design of Vue`
<file_sep>/src/store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
V... | 0714ba868b722bae5642e54b9c466d7083c01d27 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | lin-shaojie/vuex_case | 2f28637087bf5118b2a4a8cdbc64e3c5479fa224 | 423d7dcf579ab21ed8daff171b7ea343f58ed48b |
refs/heads/master | <repo_name>xiaoxin-vue/xinxinmall<file_sep>/routes/api/profiles.js
const express = require('express')
const router = express.Router()
const passport = require('passport')
const Profile = require('../../models/Profile')
// $route GET api/profiles/test
// @desc 返回请求的json数据
// @access public
router.get('/test', (req, re... | 1f6512e60562ef01b01d48d5570fd31406277507 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | xiaoxin-vue/xinxinmall | 24542cfc9c48d859b8abfca2fbfe0e76c6defa46 | 744402318b3389172d22694a7bb69383d4f03a27 |
refs/heads/master | <repo_name>jewel-agi/SpotifyFellowshipChallenge<file_sep>/models/person.js
"use strict";
module.exports = function(sequelize, DataTypes) {
var Person= sequelize.define("Person", {
name: DataTypes.STRING,
favoriteCity: DataTypes.STRING
});
return Person;
};
<file_sep>/app/singlePerson.jsx
import Rea... | cbc213e599aaae290da99c78910ad0923fadff22 | [
"JavaScript"
] | 7 | JavaScript | jewel-agi/SpotifyFellowshipChallenge | 1e10c199cc1cb83995ceaa80e97e9d0ca94de70e | e00c47edfceb9f7a6406a0158bd9c1471682029e |
refs/heads/master | <file_sep>//
// Router+App.swift
// YiLuTong
//
// Created by SeanXu on 2018/11/19.
// Copyright © 2018 SeanXu. All rights reserved.
//
import UIKit
// sourcery: router="main"
class RouterMainViewController: UIViewController, CustomRoutable {
// sourcery: parameter
// home、message、user
var tab: String... | cea27522cfd66efc98aa99282a8cc4a6a2ebb003 | [
"Swift",
"Ruby",
"Markdown"
] | 23 | Swift | seanxux/AnnotationNavigator | 5b85777b90d01b8a7c1b52dd0d622da6708ac047 | 7ed52ae8827c83d14812d147699bbd5294eb34c6 |
refs/heads/master | <repo_name>AndreiViasat/ReactHolaMundo<file_sep>/docs/precache-manifest.42895a5a00cdc7c752c4fe6b00750fd4.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "10fbf7024888a6afdf0bb9be5afca7a2",
"url": "/index.html"
},
{
"revision": "a87bb1260d602abfd6ef",
"url": "/st... | 76143684a96ad6c756c55e675e1099203d0952ec | [
"JavaScript"
] | 5 | JavaScript | AndreiViasat/ReactHolaMundo | 9f307bd766918d10304186db4531431ccebada85 | 01752dea7badd3e8f2d05d6e2b870eaf68100623 |
refs/heads/main | <repo_name>KhalilGhanem/My-Project<file_sep>/index.html
<!DOCTYPE html>
<head>
<title>Football Around The World</title>
<link rel="shortcut icon" href="Images/flaming-football.png" type="image/x-icon">
<link rel="stylesheet" href="Css/style.css">
</head>
<body>
<head... | 9528a74f85499a771ceec212aa859526abd3c3cc | [
"JavaScript",
"HTML"
] | 2 | HTML | KhalilGhanem/My-Project | a0e62479ce6576c953267e3bdf9982b85e7e9405 | 3a814d95d08a016e28db418773eebf414bf984b4 |
refs/heads/master | <file_sep>#include <iostream>
#include <stdio>
#include <stack>
using namespace std;
asdasdasdasdasd
class stos
{
private int top; //szczyt stosu
private int elementy[]; //przechowuje elementy stosu
private int element; //pojedynczy element stosu
public stos() //domyslny konstruktor - tworzy stos 10 elementowy... | af7ea7fa61ae4b0c9ed6009758e74e7257821add | [
"C++"
] | 1 | C++ | BKozlovvski/repo_1 | a1e744759ba0537020ebdcb346734493670d081e | f251c9c32a3008be8ec7262db17d7bf0209030f6 |
refs/heads/master | <file_sep># coding_test_go
코딩테스트 with Golang
- 배열과 인덱스가 인자로 주어질때, 해당 배열에서 인덱스를 삭제한 배열을 리턴하라
- - [1,2,3], 2 => [1,2]<file_sep>package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestMain(t *testing.T) {
assert := assert.New(t)
tc := []int{1, 2, 3, 4, 5, 6, 10, 100, 200, 300}
// 음수값 삭제
... | 828ea3fb2cf12fcd8c8aaf2c1967100d9eec6ad2 | [
"Markdown",
"Go"
] | 3 | Markdown | mytkdals93/coding_test_go | 441f486c9ca1830ce2595c4769c54fc183770a33 | 4fe46d8a7e685ef2789709c9216ba4439ac94d19 |
refs/heads/master | <repo_name>andreasviglakis/borderlands<file_sep>/sql/querygenerator.sh
#!/bin/bash
set -eu
names=(
'Lower Colorado'
'Pacific Northwest'
'South Atlantic Gulf'
'Great Lakes'
'Tennessee'
'Arkansas-White-Red'
'Upper Mississippi'
'California'
'Missouri'
'Texas-Gulf'
'Ohio'
'New England'
'Upper Colorado'
'Rio ... | 751fcdada193d4074fc1e89e4bc298dea4d9ae27 | [
"Markdown",
"SQL",
"Shell"
] | 7 | Shell | andreasviglakis/borderlands | 89872f840f7d32d447ab1bf9072ec71bfca55105 | c0d788dc616c997e3eca39634aac51a6098c7288 |
refs/heads/master | <repo_name>decathect/Deflect<file_sep>/src/client/Render.java
package client;
import org.lwjgl.util.vector.Vector3f;
import static org.lwjgl.opengl.GL11.*;
/**
* Collection of static methods to create and render display lists.
*/
public class Render {
/**
* Display list assigned to the Mote entity.
*... | 98d91e3e83549feefc772c9e6a9b8cbcb88dd236 | [
"Java"
] | 7 | Java | decathect/Deflect | aca10caf77beadcb37c3d51f96722cf0edf35df4 | b381b55f5ee2dca6492d3666354734ccc30a73d4 |
refs/heads/master | <file_sep>Snake
=====
[Live Demo](http://robhdawson.github.io/snake/)
Classic snake game, built using jQuery. Features replay logic and local high-score keeping.
Particular problems included allowing for different sized boards, and switching between the several different render states, all accomplished through manipu... | f1cad00153b9bc3b3c16944e34c152db941c6a2d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | robhdawson/snake | 90c0f158c9a61623954673492008dc7c42a234e9 | 8ff48c82a87dfa96d682d72a0682d2c3582231a2 |
refs/heads/master | <repo_name>avanslaars/shmajax<file_sep>/index.js
console.log('coming soon-ish')
<file_sep>/README.md
# shmajax
Placeholder for the shmajax http client
| f43d9dde5ae1e1f7d091650443d714f9dff9fea8 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | avanslaars/shmajax | c60efe986eb7ef9f4b701f8de5b4cc41eabcfa98 | f6a91192aedf0e3c058b26a28bb899d5d4e1e756 |
refs/heads/main | <file_sep>package com.company;
public class Main {
public static void main(String[] args) {
Vehicle BlueOrigin = new Vehicle("Blue Origin", "ship", 0 );
Car ModelY = new Car("ModelY",4,"blue");
ModelS MyCar = new ModelS("Red", true);
System.out.println("ModelS is a part of "+ModelS.company... | 20bdddd02cc11847bdbc6c252c333dcab858f589 | [
"Java"
] | 10 | Java | atharva-bhange/java-practice | 6cb9c60cbd0ed08fe8b8aa6261b3ca729c2986cc | 6415d17a49333131b9942d6627d91c97458d3bb5 |
refs/heads/master | <file_sep>import React from 'react';
import moment from 'moment';
import Dropdown from './Dropdown';
import { useDispatch } from 'react-redux';
import { deletePost, likePost } from '../../../redux/actions/posts';
export default function Post({ post, setcurrentid }) {
const changeCurrentid = () => {
se... | 82376769fc8d19f6a7f0c9ee6626573b17cbc151 | [
"JavaScript"
] | 21 | JavaScript | swayam-coder/memories-project | e984f8aad7c8b2d490d357215e430f702d60685c | ccd3272160187cc7b4aaf2f2ae9a08ac919e4c8f |
refs/heads/master | <repo_name>rcmgleite/labSoft2_Estoque<file_sep>/models/order.go
package models
import (
"encoding/json"
"fmt"
"io/ioutil"
"github.com/rcmgleite/labSoft2_Estoque/database"
"github.com/rcmgleite/labSoft2_Estoque/requestHelper"
)
// OrderToSend ...
type OrderToSend struct {
Products []ProductToSend `json:"produto... | 7837114c19ef92b0a8dfe83425815e6e562e1ca8 | [
"SQL",
"Markdown",
"Text",
"Go",
"Shell"
] | 13 | Go | rcmgleite/labSoft2_Estoque | d23844973896f93f4ccba7dfcfca74589301eae5 | 9119bde26f6287c44213645dd94957fe3b46586c |
refs/heads/master | <file_sep>interface NodeModule {
// Inserted by React hot loader
hot: any; // TODO: Make this tighter
}
<file_sep>import { FSA } from 'types/redux';
export default async function runThunk(
action: FSA | Function,
dispatch: Function,
getState: Function = () => {},
) {
if (typeof action === 'function') {
... | 9fd7429ab94751329fe0389a7cc28a30c5c13574 | [
"JavaScript",
"TypeScript",
"Shell"
] | 23 | TypeScript | JingYenLoh/nusmods | 3880e588b42cfa1086cbc15710aa32fbc86d794c | 12233fc371955c274cdfce25d3b4e519fffd3b6b |
refs/heads/master | <file_sep>package semaforo;
public class LuzVerdeEnLa27 extends Thread
{
@Override
public void run()
{
System.out.println("********************************************************************************************************************************");
int paRojo = 50;
Thread... | 3464ef96cd29673dc4f7388f2730867f0e39fbfc | [
"Java"
] | 3 | Java | Sergio2805/Programacion1_Tarea4_Semaforo | 1132809cc661fc5873cce9fb82cf942e44921b30 | cdf1c3398575ef335f9e4a1274788ac3682519ae |
refs/heads/master | <file_sep>"""FruitsShop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='ho... | 90e1204e9ee58de633db8a8872d18e61c2c049f5 | [
"JavaScript",
"Python",
"Markdown"
] | 47 | Python | 917868607/login--django | 6356c4e13caac5921334d0298f8f05640e5f0938 | a897edbc85f53d7211640fdf2d6d4618d3da535f |
refs/heads/master | <repo_name>bjonamu/react-native-btns<file_sep>/LinkButton.js
import React from 'react'
import PropTypes from 'prop-types'
import { View, Text } from 'react-native'
import Button from './Button'
import { Colors } from './Themes'
import Styles from './Styles/ButtonStyles'
const LinkButton = ({ leftIcon, rightIcon, label... | cb8c7d6162f3922d2ee357da6cf8803e1a6e605e | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | bjonamu/react-native-btns | ab272f8a1c2849ff7a11042a9cc79e80bafaa81e | aaa733b48012a074f3422c7dc2366b683410fe1a |
refs/heads/master | <file_sep>select from tabl
| 2a80ce98bea4a4d2841ecc81f69663c01a99b154 | [
"SQL"
] | 1 | SQL | htc-mmellali/apollo14 | 972be8fb23cdee232663ee188b827140f42fd466 | f10be5c95be9d8c22faf59c1bc1c74145d03df9f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.