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>const express = require('express');
const app = express();
const path = require('path');
// const db = require('./models')
// const exphbs = require('express-handlebars');
const PORT = process.env.PORT || 3000;
let manatees = [
{
name:'steve',
color:'grey',
favoriteFood: 'seag... | 8de66c3fc02011f328d6704167543738f894c2c0 | [
"JavaScript"
] | 1 | JavaScript | Rufasa85/manateePicsExpress | 6c4d7e716c4b44b098bec278443c7ae83481cd19 | 93bc680fef43cf2d19e387154b0f8576c6b76b7a |
refs/heads/master | <file_sep>import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import rootReducer from './reducers';
import * as actions from './actions';
import * as sagas from './sagas';
import * as selectors from './selectors';
const sagaMiddleware = createSagaMiddleware();
const c... | 55078ef0f89af2728c01fb43fd16da8435e78abc | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | nisil-thaing/leaning-advanced-react | 919aa8391ae73fe0772a237e78108e4498c7ae54 | 0eb53d7d18b2db254083ad068cb593c5f0edc1ef |
refs/heads/master | <file_sep>module.exports = [
{
role: "harvester",
roleMinimum: 2,
taskMinimum: 0,
body: [MOVE, MOVE, CARRY, CARRY, CARRY, CARRY, WORK, WORK, WORK],
precedence: 8,
startingMemory: {
role: "harvester",
task: "harvest"
}
},
{
role: "builder",
roleMinimum: 2,
taskMi... | de9d2959d7ef0b932bd90de108fd525607fddfde | [
"JavaScript"
] | 7 | JavaScript | McMainsLiam/Liam-Screeps | 57739199796218519e7c52652aa373fb5830ab3a | 3e410ee1d11d5a684dddd4dc91a69c9a4db3ea2e |
refs/heads/master | <repo_name>oliviervanbulck/IoTHackTheFuture<file_sep>/tts.js
/**
* Created by olivier on 8/12/16.
*/
var SpeechToTextV1 = require('watson-developer-cloud/speech-to-text/v1');
var fs = require('fs');
var speech_to_text = new SpeechToTextV1({
username: 'a19c0feb-6802-4c57-bd2d-c5621e9f020a',
password: '<PASSWO... | 4449c58426ab31e45988b0f285df2ededa607990 | [
"JavaScript"
] | 1 | JavaScript | oliviervanbulck/IoTHackTheFuture | d9ad4b17edd93c00a7fc91de45822196b626c828 | e619cbc8a59a143e08941dad93dc25b04d120e32 |
refs/heads/master | <file_sep>//
// Needle.swift
// Truth-O-Meter
//
// Created by <NAME> on 02/09/2021.
//
import Foundation
import GameKit /// for GKGaussianDistribution
import SwiftUI
class Needle: ObservableObject {
/// The NeedleView uses @ObservedObject
/// Views that change the value use the singleton, but do not use @... | 8bb6f19b3ae4526ef5874e193a2c13a4b638ccc8 | [
"Swift",
"Markdown"
] | 24 | Swift | joachimneumann/Truth-O-Meter | 9188688ea83d36578772cdd067fbc052a5b10a15 | 56cc0e0d92f1f05599faaed4acf5c9fbeb026b63 |
refs/heads/master | <file_sep>//
// main.swift
// ByPass
//
// Created by <NAME> on 4/4/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
import Foundation
import SystemConfiguration
class ByPass {
static func doByPass() {
let authFlags: AuthorizationFlags = [.Defaults , .ExtendRights , .InteractionAllowed , .PreAut... | 97c2f777a9c0ed0fa42cca903df03cac7d00afbd | [
"Swift",
"Markdown"
] | 2 | Swift | zzyyzz1992/ProxyBypass | 74be35e19446630018692359df5bc680ef1bb72a | 25e2e91cca59e819bf8b50c88111a2c633dc4aa1 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from datetime import datetime
import scrapy
from scrapy.loader import ItemLoader
from scrapy import Field
from scrapy.loader.processors import TakeFirst, Map... | d72f2377aa7866cc16aa5c141c3d58a6f98a3d19 | [
"Markdown",
"Python"
] | 5 | Python | FrankYang3110/Technology_news_spider | f282d4e312b38201fdac423c5e9b13a1902017ef | 74314d37ae4d549fa5d174fe6fc9d357cbc094ae |
refs/heads/main | <file_sep><?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
'JsonException' => $vendorDir . '/symfony/polyfill-php73/Resources/stubs/... | 3b1b69992d754d0c26a81be989630721d2406529 | [
"PHP"
] | 2 | PHP | kenrebane/symfony-skeleton | afecd588a6e78e6073c79ac5ef2125a9330ac9e0 | 1df57522cbe30ce1e0de25050b2127e85ee05947 |
refs/heads/main | <repo_name>Qniceeee/chromeExt<file_sep>/script.js
"use strict"
let buttonClick = document.getElementById('buttonId');
if(buttonClick){
buttonClick.addEventListener('click', onClick1, false);
}
let domElements =
{
docX1: document.getElementById('text1'),
docX2: document.getElementById('text2')... | 9a91f25fad1f3a7600bfbb9d53cce3a2ea22a0f7 | [
"JavaScript"
] | 1 | JavaScript | Qniceeee/chromeExt | 122e37f367f91aee398cf8395ce6c60ae6001cbc | a4460b277780cfe72c75849d1856434be923dc63 |
refs/heads/master | <repo_name>MayraPerpetua/PRD-Telemetry-IoT<file_sep>/lora-transmissor.ino
#include <SoftwareSerial.h>
#include <HCSR04.h>
SoftwareSerial loraSerial(2, 3); // TX, RX
String water = "water";
String no_water = "no_water";
// Initialize sensor that uses digital pins 13 and 12.
int triggerPin = 13;
int echoPin = 12;
Ultr... | 48d7f510400895cb65e90cbc1fc17eb653ae2f62 | [
"Markdown",
"C++"
] | 3 | C++ | MayraPerpetua/PRD-Telemetry-IoT | 33257803a48e9840393468f37ab68198345fef80 | 7f5ccda93dea7ec4e38fa4f5bdacf96c397a3efe |
refs/heads/main | <repo_name>Dhruvil30/todo-api<file_sep>/src/utils/helper.js
module.exports = {
getUserId: (req) => {
const env = process.env.NODE_ENV;
if (env === 'local') return req.session.userId;
return req.get('userId');
},
};
<file_sep>/src/components/user/user.validation.js
const Joi = require('joi');
module.exp... | 916500835fd6284079e2ee696951ef65bfda8768 | [
"JavaScript"
] | 23 | JavaScript | Dhruvil30/todo-api | b427d1f840c9bc41e80159aff5184d279830598a | 572c2613911beb06df7b83f87d7b91c4c4d54386 |
refs/heads/master | <repo_name>khandaker71/khandaker<file_sep>/NewProject/src/lesson/Exercise_1.java
package lesson;
import java.util.Scanner;
public class Exercise_1 {
public static void main(String[] args) {
// convert ferenheit to celcious
Scanner sca = new Scanner(System.in);
System.out.println("Enter a degree in Fahrenheit: ... | 8923540295f71edf845866c87d0b5b433d96e54e | [
"Java"
] | 1 | Java | khandaker71/khandaker | b228b9296377e7b1fd6c74a42462b190e3e12de3 | 242a4767fc8b5b3f48123e17a1aa90e1b78efac3 |
refs/heads/master | <file_sep>def ATM(amount):
# ATM machine change given in $50s and $20s
initalAmount = amount
n50s = 0;
n20s = 0;
finish = False;
while finish == False:
if amount % 50 == 0:
n50s = amount / 50;
finish = True;
else:
amount = amount - 20;
n20s = n20s + 1;
print ("you have withdrawn " + str(amount... | 169b819e73ed2f09f4647e50c4aa24b0b8d8d5d0 | [
"Python"
] | 1 | Python | michaelstanfield/Stan-Glen-GitHub | e088b19351f6df92ea414125a415f78f9b9de382 | ba917f435667a3e59017ab16fbf8587e57914c30 |
refs/heads/master | <repo_name>livrush/animation<file_sep>/index.js
const iframeSrcs = [
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'https://daneden.github.io/animate.css/',
'http://ianlunn.github.io/Hover/',
'http://www.joerezendes.com/projects/Woah.css/',
'',
// 'http://mojs.io/',
'http://airbnb.io/lottie/',... | 4b44d4148e9f3b01cff3b1ab88ec0fee66c4b2eb | [
"JavaScript"
] | 1 | JavaScript | livrush/animation | 74d3b5cbdcaf9e32bf26523feac96366a5bd5a26 | 096007041998b92447f9e631178d25ae72d1762d |
refs/heads/master | <file_sep>def roll_call_dwarves(dwarf_names)
dwarf_names.each_with_index {|name, index| puts "#{index+1}. #{name}"}
end
def summon_captain_planet(planeteer_calls)
planeteer_calls.map {|word| "#{word.capitalize}!"}
end
def long_planeteer_calls(words)
words.any? {|word| word.size > 4}
end
def find_the_cheese(sna... | 65cd0645ef264725184451a114df819cae70fa18 | [
"Ruby"
] | 1 | Ruby | HopefulFire/ruby-enumerables-cartoon-collections-lab-online-web-prework | 9843a36401ce4752a3ef4b827dc78967082bbf89 | ba20729c3f4e6b00bbfa53a626764cef56014b99 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: oleg
* Date: 05.12.17
* Time: 10:22
*/
namespace App;
class TaskController
{
}
<file_sep><?php
/**
* Created by PhpStorm.
* User: oleg
* Date: 04.12.17
* Time: 6:06
*/
/**
* This class implement Singleton pattern.
*/
namespace Core;
use Doctrine... | 5a1c7a8bca85fc6be7a4599352db11be006cd440 | [
"PHP"
] | 10 | PHP | zhyravskiyo/test3 | f3414b932d6e7d47c545018fbf7edd9a5f5ab3bd | 921c7bc2a50cbc1943e832e2572e54f5f97359d9 |
refs/heads/main | <file_sep>// # Math
// **Perform Mathematical Tasks with JavaScript. Remember: you must use the `Math` functions and print all results to the console!**
// ## 1. Minimum and maximum
// ### a. Lowest Number
console.log("the min:" + Math.min(-1, 4));
// Print out the lowest number between -1 and 4.
// ### b. Highes... | 37ecb6724c4cd3db24dbf81fd113a98e15ff4f25 | [
"JavaScript"
] | 1 | JavaScript | FbW-E01/pb-language-math-ronniejuan | 0a863575ca738cb4ca1e855b7ab4f10c0bc70d01 | d0256fb93083e153e4d5a0a274a437ca8ba966e0 |
refs/heads/master | <repo_name>AlAminKabbo/eA<file_sep>/App.js
import * as React from 'react';
import {View, Text} from 'react-native';
import { NavigationContainer, DefaultTheme} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Home from './src/screens/home';
import Create... | 3d131e4bdf9a10bf095af14043393c247cddf500 | [
"JavaScript"
] | 3 | JavaScript | AlAminKabbo/eA | 23de4d11d0d88c2e6f103fccccd24fa5ee0e8856 | aaff93164acb8d86926a5ebecf7be3bbba4c8b50 |
refs/heads/master | <repo_name>SigitAri/parking_lot<file_sep>/src/com/test/parkinglot/core/ParkingIntruction.java
package com.test.parkinglot.core;
import com.test.parkinglot.model.Slot;
/**
* Created by Sigit on 20/05/2017.
*/
public class ParkingIntruction {
Slot[] slots;
public String Intruction(String intr){
Strin... | c34249a46700e54ef7edf453f189df7385e75660 | [
"Java"
] | 2 | Java | SigitAri/parking_lot | ed93ca0e62561e40f1ba59d62058248e108d7f27 | a8380e153052474df20bdca541240b37a9a61c20 |
refs/heads/master | <repo_name>JakubDadela/Bmi-calc<file_sep>/main.js
var plec=document.getElementById('plec');
var waga=document.getElementById('waga');
var wzrost=document.getElementById('wzrost');
var klikacz=document.getElementById('btn');
var text=document.querySelector('p');
function Oblicz(event){
event.preventDefault();
le... | 633c9bd82bfd2171038e7f7182e0accc38d5bcd4 | [
"JavaScript"
] | 1 | JavaScript | JakubDadela/Bmi-calc | 0d1c9a503c3c16ca273e489d3ac9e5bd82c32589 | 58c45c353156522ba160452ed5b52efa2519f34b |
refs/heads/master | <file_sep>package com.easoncheng.appsample;
/**
* Author by 子勋 on 2016/9/13 00:59.
* Function Describe
*/
public class GuideActivity extends BaseActivity {
@Override
public void initView() {
}
@Override
public void initListener() {
}
@Override
public void initData() {
}
}
| 4973da0f2d4a700cd36b699d4251bd77362ea3ca | [
"Java"
] | 1 | Java | loongche/CoreFrame | b68c8545e79e49566f07ef6fb07cc04fb5c1466f | c89ece6c7b337b97e08a35efe4b7a2f4f3e2630d |
refs/heads/master | <file_sep>package nerdhub.cardinalenergy.impl;
import nerdhub.cardinal.components.api.component.BlockComponentProvider;
import nerdhub.cardinal.components.api.component.extension.CloneableComponent;
import nerdhub.cardinalenergy.DefaultTypes;
import nerdhub.cardinalenergy.api.IEnergyHandler;
import nerdhub.cardinalene... | 6ca2756cc53f051cf1c0fffb4c3561960bb0e118 | [
"Markdown",
"Java",
"INI"
] | 7 | Java | NerdHubMC/Cardinal-Energy | 1c68725756cc2ae0633ae7d757df4d7791d15355 | 016f4c4c1ed68a430a13c3d5a8c785b01f4bd343 |
refs/heads/master | <file_sep># Nichiyu Inventory Monitoring App
## Screenshots
<a href="url"><img src="https://raw.githubusercontent.com/andreycruz16/Nichiyu-Inventory-App/master/screenshots/Screenshot_20170628_232641.png" align="left" height="640" width="360" ></a>
<a href="url"><img src="https://raw.githubusercontent.com/andreycruz1... | ef70b48c47aec798f139662fc7cec809d8c1de15 | [
"Markdown",
"Java"
] | 2 | Markdown | Monyancha/Nichiyu-Inventory-App | b62422225b3a6284e4798084760112766ad1be71 | a46e16bfebca6acd9028d295319470d4eaece579 |
refs/heads/master | <repo_name>TechsCode/AirhockeyV2<file_sep>/src/main/java/me/TechsCode/Airhockey/SerialCommunication.java
package me.TechsCode.Airhockey;
import arduino.Arduino;
import arduino.PortDropdownMenu;
import gnu.io.CommPortIdentifier;
import jssc.*;
import java.util.Enumeration;
public abstract class SerialCommunication im... | eb4bb152a99e3985e041301f819b657655ae5b71 | [
"Java"
] | 8 | Java | TechsCode/AirhockeyV2 | 5094e7fb7373f2b3f8b9b021b3a0171bf3d0d6a7 | 08344150d24f45ea98e9b5e5b69c12affe7c0a4c |
refs/heads/master | <file_sep>package net.pl3x.emeralds.item.tool;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemPickaxe;
import net.pl3x.emeralds.item.ModItems;
import net.pl3x.emeralds.material.EmeraldMaterial;
public class EmeraldPickaxe extends ItemPickaxe {
public static final String name = "emera... | f703a100c31eb18834b29ba0a8e0dd10c7b4d4b4 | [
"Java"
] | 7 | Java | BillyGalbreath/Emeralds | 437012fa3c054c1b8e1684a15f1f92676e73c576 | 5c38b35473110a895ccecdae3666c77663b43a08 |
refs/heads/master | <file_sep>import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { WeatherService } from './../weather.service';
@Component({
selector: 'app-chicago',
templateUrl: './chicago.component.html',
styleUrls: ['./chicago.component.css'],
encapsulation: ViewEncapsulation.None
})
export class Ch... | ac2f8fadbfdf47acbbd9cbf78b8819d4905a60b2 | [
"TypeScript"
] | 2 | TypeScript | ctdoan33/dojoWeatherForecastAngular | e350bb9f3e277a390ee0051a463f60ac1f505b96 | d56252643af0204acc55b50b694786ffbd1c3dd2 |
refs/heads/master | <repo_name>GreenSMod/FitFoster<file_sep>/app/src/main/java/com/greensmod/FitFoster/ProfileFragment.java
package com.greensmod.FitFoster;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vie... | 6adb2334856731175d407b6da93ecf42ac6c01fc | [
"Java"
] | 8 | Java | GreenSMod/FitFoster | 3ce72cf49234e32c188d47d7af429eedc87abefc | 8ecaec9337e3dbfcb1f7f45522c74d558d0f4da6 |
refs/heads/main | <repo_name>singhbalr/moodleABKDSubmition<file_sep>/message/viewCourse.php
<?php
require_once(__DIR__ . '/../../config.php');
global $DB;
$PAGE->set_url(new moodle_url('/local/message/viewCourse.php'));
$PAGE->set_context(\context_system::instance());
$PAGE->set_title('View Course');
echo $OUTPUT->header();
// $c... | 663203cc748bf2e66672a2856a5f19a5cd35325e | [
"JavaScript",
"PHP"
] | 5 | PHP | singhbalr/moodleABKDSubmition | 5241c71075ab9e6045aee68ebc8a6a7e28fa8bea | 0660a586b6cc8da747b5f6794c6609396c3d6252 |
refs/heads/main | <file_sep># 🍎 vimlife_with_hammerspoon 🔨🥄
Config file and modules in this repository help to apply the key map anywhere in Typora and others.
Enjoy your vimlife with Hammerspoon!
설정파일 구현과정은 [블로그](https://humblego.tistory.com/11)에서 확인하실 수 있습니다.
# 🍎 Feature
1. **Add English conversion to Esc key.**
- When you pu... | e324152152a10bfb3dca63c856263e6d9988ec0e | [
"Markdown",
"Shell",
"Lua"
] | 5 | Markdown | humblEgo/vimlife_with_hammerspoon | 8daf14d91b33f8b873f1322cd9c3a748222b6c3f | 2acf39412be53909aa29a3b8df51b1849516047d |
refs/heads/master | <repo_name>garystafford/chef-cookbooks2<file_sep>/README.md
# chef-cookbooks2
<file_sep>/database-server/recipes/default.rb
#
# Cookbook Name:: database-server
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
mysql_service 'default' do
version '5.6'
bind_addr... | 7eea9f81140f332ae18faf893b061872edee4b71 | [
"Markdown",
"Ruby"
] | 3 | Markdown | garystafford/chef-cookbooks2 | a38668740a27c9b6883aa3e2c349c8142580e4c1 | af351bcdc695dfad972fe1060f1426b2f11c454c |
refs/heads/master | <file_sep># Maintainer: BigfootACA <<EMAIL>>
_pyname=glance-store
_pycname=${_pyname//-/_}
pkgname=python-$_pyname
pkgver=2.7.0
pkgrel=1
pkgdesc="OpenStack Image Service Store library"
arch=(any)
url="https://docs.openstack.org/glance_store/latest/"
license=(Apache)
depends=(
python
python-oslo-config
python-oslo-i... | 4163edf7c404055474520e4e5a0c53027d73bb88 | [
"Shell"
] | 1 | Shell | StackArch/pkg-glance-store | e8ffb5b5ad0912166ea851e4d0aaa2aa2d0126ca | 4f5289f515f9b98622100165aed211c8c7ede027 |
refs/heads/main | <file_sep># frl-online-proxy
Reverse proxy solution for Adobe customers using FRL-Online on isolated networks. In addition to a basic terminating passthrough mode, it
also supports caching, storage and forwarding.
[Read the User Guide](https://opensource.adobe.com/frl-online-proxy/)
## Getting help
All bug requests... | afe0168225b8c4aed610c90567e58d141cf42143 | [
"Markdown",
"TOML",
"JavaScript",
"Rust"
] | 16 | Markdown | keshagriffin-adobe/frl-online-proxy | 9d03e0300663ddbf66506fa28af9a406bb9f72c3 | 573adf1355b8c3ac22439322f1791d7ad52e0631 |
refs/heads/master | <repo_name>akshaykatre/databuild<file_sep>/build_tables/home_ownership.sql
/**
Create a separate table with home ownership data.
This table contains the ID as the primary key from both tables, the new and
old customer. The boolean fields are also created in this table.
**/
drop table if exists inter.home_ownership
... | 45fc9c2b9d1d7f655633594b1a57e6815030751d | [
"Markdown",
"SQL",
"Python",
"Text"
] | 15 | SQL | akshaykatre/databuild | d9d122844dbaac765687b0c42179a034c93c8807 | ff6e1a58a73efb32f23c5acafbccf6a2bb96639f |
refs/heads/master | <file_sep><?php
/*
Plugin Name: Plugin Title
Plugin URI: http://teolopez.com
Description:
Version: 0.5
Author: <NAME>
Author URI: http://teolopez.com
License: GPL2
*/
/*
// ----------------------------------------------
---- TABLE OF CONTENTS --
// ----------------------------------------------
* 1. Add Custom Pos... | 659f2ab1b02f1c080049112f1d05dc96af4ab7a6 | [
"PHP"
] | 1 | PHP | teolopez/tl_plugintemplate | 37125b816ffe7aa615ca54309bff211ef6d30c31 | ba28a719f2daf3ef4630981f18b9443dd3690c80 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
typedef uint8_t BYTE;
int main(int argc, char *argv[])
{
char *sourceFile = argv[1];
char *pch;
// check does program was correctly initiated
if (argc != 2)
{
... | da70b7c5e56438110f0f8ca59cb254c5134778dd | [
"JavaScript",
"C",
"Makefile",
"Markdown"
] | 8 | C | PatrycjuszNowaczyk/cs50 | cdd49197bb9c9b767df4b8f9053bc546f32764c4 | fe0ff3a06e7038cee365fdd361ea44dd402a4520 |
refs/heads/master | <repo_name>suyashrkhandekar/intern<file_sep>/src/main/java/com/intern/jerseyrest/StudentResourceDelete.java
package com.intern.jerseyrest;
import java.util.Iterator;
import java.util.List;
import javax.ws.rs.DELETE;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import org.hibernate.Session;
import com.intern.... | ec6530a6c111cb834be593715fe6849a9dddefec | [
"Java"
] | 1 | Java | suyashrkhandekar/intern | 45aa120e25d91c2968d0943f7f11a248647fd85f | b7b93094664e71e471baad0d14806a367430fc70 |
refs/heads/master | <repo_name>17kong/yiqikong-sensor<file_sep>/class/IoT/Sensor/Wechat/App.php
<?php
namespace IoT\Sensor\Wechat;
class App extends \Wechat\App
{
public function __construct()
{
parent::__construct(\Gini\Config::get('wechat.app_id'), \Gini\Config::get('wechat.app_secret'));
}
protected function ... | e9cb8ce5718761468f194c652044be59d1253089 | [
"PHP"
] | 20 | PHP | 17kong/yiqikong-sensor | e0cdda47fa1539615e23151d47749347ebe9cd2a | 82d2144586f34a727f2078233a2981b646def310 |
refs/heads/master | <file_sep>import React from "react";
import { View, ScrollView, Text, Button, DatePickerIOS, Platform, StatusBar } from "react-native";
import StyleSheet from '../estilo/style.js';
import { AdMobBanner } from 'react-native-admob';
class SobreScreen extends React.Component {
static navigationOptions = {
title... | e88ce1dc290c02f79b884c096020c0077bbe4c4e | [
"JavaScript"
] | 5 | JavaScript | rogerionj/anopessoal | f31063b9302829f6af909fd12f8e598d2bf5b910 | d6ccf72c8037d00e11a705f816af568a88d4136c |
refs/heads/master | <repo_name>osama-ahmed220/ziro-front-end<file_sep>/graphql/user/query/me.ts
import gql from "graphql-tag";
import { UserBasicFragment } from "../fragements";
export const meQuery = gql`
query Me {
me {
...UserBasicFragment
}
}
${UserBasicFragment}
`;
<file_sep>/hooks/useForm.ts
import { useState, u... | 2d415e18c5e43fa86e358678fc9a1830265f3c82 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | osama-ahmed220/ziro-front-end | e4b603edef010dd91a43e7d8c3639085266de55b | 1c682145585ebc5d315b1c2f34685f3703657c41 |
refs/heads/master | <file_sep><?php
class Universe {
private $userBasket = array();
private $ordinaryBaskets = array();
private $basketCount = 30;
function __construct(){
$this->generateOrdinaryBaskets();
}
public function displayOrdinaryBaskets(){
$basketsContent = array();
$counter = 1;
foreach ( $this->ordinaryBaskets ... | c2d7b68bc776eb8fc3db59368f1e3fda833f828a | [
"Markdown",
"PHP"
] | 12 | PHP | aducin/Balls | 7104caa45df4cdcc26590c8a690fa83f61b20c44 | 709f9ae283dae48d2ababfdb08a01a2c092e2295 |
refs/heads/master | <repo_name>Klaus-Nyrnberg/emendare<file_sep>/TestProjekt/MainWindow.cs
using System;
using Gtk;
using GLib;
public partial class MainWindow: Gtk.Window
{
Button gtkClickMe;
public MainWindow () : base (Gtk.WindowType.Toplevel)
{
gtkClickMe = new Button ();
gtkClickMe.Label = "str";
this.Add (gtk... | 8b9a1f557c2a7d4fd706059f503b6c7a37895068 | [
"C#"
] | 1 | C# | Klaus-Nyrnberg/emendare | 8f6487da3158e98fc60a6ef659e7789f8a3c7cf2 | 912693d2bfff5337a37e38fb9e2ef2d8bebdf73b |
refs/heads/master | <repo_name>harlam/php-minimal<file_sep>/src/RouteCollector.php
<?php
namespace Mfw;
/**
* Class RouteCollector (with middleware support)
* @package Mfw
*/
class RouteCollector extends \FastRoute\RouteCollector
{
protected $middlewares = [];
/**
* @param mixed $httpMethod
* @param mixed $route
... | 1d06931ad217e30a4eccddd0f69317aa39fbc741 | [
"PHP"
] | 4 | PHP | harlam/php-minimal | 0f0118087422bd7a3bbf0aa55811a465b8dfc29a | 0f3e8f023a696ed48dc6b3f54183fb6482e1c7d8 |
refs/heads/main | <file_sep># TDOT
Some of the work I did for the Tennessee Department of Transportation in the summer of 2021
## Finding Missing EDL's
R script + Data. Comparing the state's different sources of information on Embedded Detection Loops. Looking for those which are in some sources but not others.
## Lane Comparison to... | 0fa740478838058984055f8e0ea373ac1159ee81 | [
"Markdown",
"R"
] | 2 | Markdown | isaac-rand/TDOT | e4c6ddc86623abe8673ae2ea37a4a8e4cbaecc1c | 3b96e5030b5829cd7a18d360567023e1f9987fc1 |
refs/heads/master | <file_sep>#include "bootloader.h"
#include "mac.h"
#include "infra.h"
BYTE GetFlashFlag = 0;
BYTE RxBuf[96]={0};
BYTE Buffer[PM_ROW_SIZE*3];//从上位机收到的1536字节
BYTE Parameter[PARAMETER_NUM]=//各个参数的默认值
{
10, //定时上传时间
0x00, //xzy预留
0x00, //xzy预留
5,
0,
0xff,
0xff, //时间段1和灯控选择1
... | 5385fef5d0c5a76d90662c9e6b225a85cb04f6fd | [
"C"
] | 44 | C | dzlyxzy/Mao_door | b5cd1d0697a94bf22ac1eeb9bd4d2b7773364d9b | 8decf391eb2742d8420369fa72ec9c4dd1e39b8d |
refs/heads/master | <repo_name>dima74/mipt-meta-programming<file_sep>/tasks/1_20180926/base.h
#ifndef META_PROGRAMMING_BASE_H
#define META_PROGRAMMING_BASE_H
enum class ComplexClassType {
PROXY,
MEDIATOR,
OBSERVER,
};
template<ComplexClassType classType>
class ComplexClass;
#endif
<file_sep>/bonuses/1_10102018/README.md
Бонусные зад... | f4f87af75788e67d6cb9c9eff48cc147ec231bca | [
"Markdown",
"CMake",
"C++"
] | 31 | C++ | dima74/mipt-meta-programming | 480fec1afd7698c114fa8b5997d68acd181b810c | 4e4740264bd70d439c9be986c509561b3b65dab7 |
refs/heads/master | <repo_name>OakLabsInc/component-filesync<file_sep>/README.md
# Filesync - Google Cloud Storage Syncing
[](https://hub.docker.com/r/oaklabs/component-filesync)
This service will periodically, atomically sync a Google Cloud ... | dade74f7aa5b9f95ae33f1d4942e7a17805d93ee | [
"YAML",
"Markdown",
"Python",
"Text",
"Shell"
] | 10 | Markdown | OakLabsInc/component-filesync | 1c39a1904db93bbef26d5d587db9e2a7d2e7a615 | 75c738050ea2770189342cb140bd37d473fc8692 |
refs/heads/master | <file_sep>#!/bin/bash
#install required packages
sudo apt-get install nasm libwxgtk2.8-dev libfuse-dev libgtk2.0-dev ntfs-3g exfat-fuse exfat-utils -y
WORKDIR=$(pwd)
export PKCS11_INC="$WORKDIR/pkcs/"
export WX_ROOT=$WORKDIR/wxWidgets-2.8.12
cd $WORKDIR/truecrypt-7.1a-source
time make NOGUI=1 WXSTATIC=1 WX_ROOT=$... | 0f59d70007a287b96fb797ada4ea1a869508c7a5 | [
"Shell"
] | 1 | Shell | RickBahague/truecrypt-rpi | d2f83f673f05da666e45f71fdd437c6732fc79a7 | 0ab05b65372ee19cb6c556e1ae88116234120a73 |
refs/heads/master | <file_sep>//Written by <NAME> (GeoLiang90)
//Defining Constants
//Digital pins
const int triggPin = 11;
const int echoPin = 13;
long travelTime;
int distance;
//Ground is GND and Vcc was connected to 5V
void setup() {
//changing pinMode
pinMode(triggPin, OUTPUT);
pinMode(echoPin, INPUT);
//Mostly for display ... | cfc782f1b226a3ca404c83146a586d8aa822cc61 | [
"Markdown",
"C++"
] | 2 | C++ | GeoLiang90/arduino-sensor-testing | 265d1df431755c050c5dfc683f20d7d3f0977732 | d1d9036e66b71cf7cf2683ab0c3d99c4853fed0b |
refs/heads/master | <repo_name>kiseleq/lessons_main<file_sep>/script/hello.js
'use strict';
const money = prompt('Ваш месячный доход?');
const addExpenses = prompt('Перечислите возможные расходы за рассчитываемый период через запятую');
const mission = 6305;
let deposit = prompt('Есть ли у вас дпозит в банке?');
switch (deposit) {
cas... | bfceff788f8753c993328f92c34e8acc9ee27f61 | [
"JavaScript"
] | 1 | JavaScript | kiseleq/lessons_main | 40cb9ca787a68febf67f12491564414ae81bc753 | 1de80de1e9d0ffc5ee9503201343415821a1f8a8 |
refs/heads/main | <file_sep>#!/bin/bash
instance=app1
echo "Creating CA key and certs"
openssl genrsa -out appserver-ca-root.key
openssl req -new -key appserver-ca-root.key -out appserver-ca-root.csr -subj "/CN=app-server-ca-root"
openssl x509 -req -in appserver-ca-root.csr -signkey appserver-ca-root.key -out appserver-ca-root.crt
opens... | a175464ffdca24f21bfa518bf33fe9a8017b6c22 | [
"Markdown",
"Shell"
] | 3 | Shell | dennisjacob/tomcat-configs | 7b0da2690dd04e26ed9eec7f79f19417146e6bd1 | c82b2070d607e68fe29e66f4eb898518cc67b371 |
refs/heads/main | <repo_name>avevlad/playground<file_sep>/constants/products.ts
export interface Product {
key: string;
title: string;
price: number;
}
export const products: Product[] = [
{
key: "Bananas",
title: "Bananas, each",
price: 0.22,
},
{
key: "Cilantro",
title: "Cilantro, bunch",
price: 0.... | 983202ff17f89786ff1a66540b10dbf325da7efb | [
"TypeScript"
] | 2 | TypeScript | avevlad/playground | abde0996e6e8e120c9213fff46ef9ee9b0fa9b29 | 97e636f75640de5c098c830da91951bed7cb19a0 |
refs/heads/main | <repo_name>45ewertton/Aula_Python_Turma2<file_sep>/aula_AE.py
'''
Conversões: str, int, float, bool, list, tuple e ...
n = str(5)
print(type(n))
print(n)
'''
#######################################################################
'''
Entrada de dados: input():
nome = input("Diga seu nome: ")
print(type(nome))
prin... | cf7399a00f780a9db02a8a2626634d3b29629902 | [
"Python"
] | 2 | Python | 45ewertton/Aula_Python_Turma2 | 5f4ba6f74fb9fd2fccc9f19dd5b503325fdbf66a | c48c75f8e804af16b282b5565661ffadaea20ac5 |
refs/heads/main | <file_sep># laravel-aliyun-sls
## Using
```shell
composer require islenbo/laravel-aliyun-sls
```
add service provider to app.php
```PHP
<?php
use \Islenbo\LaravelAliyunSls\Providers\LaravelAliyunSlsProvider;
return [
// ...
'providers' => [
/*
* Package Service Providers...
*/
... | 4519577f598ebfe0c6aeb52a67915f8c59e9ed56 | [
"Markdown",
"PHP"
] | 6 | Markdown | wwc29/laravel-aliyun-sls | dea4d9da97bface97a4151792193426a552f5e4d | 4b66cffcf413e638e5ab90ceba09ef6276574319 |
refs/heads/master | <repo_name>ultimatecoder/ultimatecoder.github.io<file_sep>/_posts/2018-09-29-analyzing-the-behaviour-of-python-function-splice.md
---
layout: post
title: "Analyzing the behaviour of Python function slice"
date: "2018-09-29 10:17:46 +0530"
tag:
- python
- slice
- python trick questions
---

unsigned int Ki; // integral gai... | a9a87b48869018c3fdae37a77a2d473e18f7c06f | [
"Markdown",
"C"
] | 5 | Markdown | buha/util | adb16d5d1a2062f1746cec86fec7de18ad2f7c99 | 6973abbf8f52728f3be952caf7f471ffcd2b58bd |
refs/heads/master | <repo_name>vmonestel/CarND-Kidnapped-Vehicle-Project<file_sep>/src/particle_filter.cpp
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <s... | 341885e10596a70c9e3ed4a4bc1718e1b3707f4e | [
"C++"
] | 1 | C++ | vmonestel/CarND-Kidnapped-Vehicle-Project | 698556eb60eaedfec45a40ee1b47eb01b8dfb5aa | 3a60495afa09c8bed2e7d214a541fbd27615fe60 |
refs/heads/master | <file_sep>def find_space(x):
return {
1 : " ",
2 : " ",
3 : " "
}[x]
for number in range(1,13):
output_string = ""
for multiple in range(1,13):
the_space = find_space(len(str(multiple*number)))
output_string += str(number*multiple) + the_space
output_string = output_string.strip()
print(output... | 520818f4477da673f98404109a171798328bbf5a | [
"Python"
] | 1 | Python | peterleh/code-eval-multiplication-table | 4738c8876aa621b62225af2371d58e30d56b407a | 0cf3ccd7520bebcc8bc5ddba7d1ac8f528ab8c17 |
refs/heads/master | <file_sep>// @flow
import moment from 'moment';
import DateFormat from './DateFormat';
export default class DateUtils {
/**
* Given a JavaScript Date object, return a formatted date in the specified
* locale using the format specified.
*/
static formatDate(date: Date, format: DateFormat, locale: string =... | 84b8e214889bf8344ada5751e5fd94d6ea115f35 | [
"JavaScript"
] | 5 | JavaScript | brandon-bogan/support-demo-suit | 83f90391b75adce289787688dac42d3387418d17 | f44e5f569ab6cf750b4d61f80515f524264712ee |
refs/heads/master | <repo_name>shubhamaryan001/Deplay-node<file_sep>/routes/coupon.js
const express = require('express')
const router = express.Router()
const { create, deactivate, remove, list, find } = require('../controllers/coupon')
const { requireSignin, isAuth, isAdmin } = require('../controllers/auth')
router.post('/coupon/create'... | 4b91cc0001a4ac133306211b128a81cc1ab3fe94 | [
"JavaScript"
] | 10 | JavaScript | shubhamaryan001/Deplay-node | 3aa874047d9cccaeff645e7fa17d77ac8002e26a | c9dfa71366594c72340c0e879149aa88e652a64d |
refs/heads/master | <file_sep>"""
This file is the place to write solutions for the
skills assignment called skills-sqlalchemy. Remember to
consult the exercise instructions for more complete
explanations of the assignment.
All classes from model.py are being imported for you
here, so feel free to refer to classes without the
[model.]Us... | 370ef4712d31285cab584196e1603ccf0f2ae2af | [
"Python"
] | 1 | Python | KC2004/sqlAlchemy-hw | 1b2c65e0847c7283610221b6eb8da72d6e96b458 | 8663b46558c8c09f4150aa4386131d967e617384 |
refs/heads/main | <file_sep>
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Compute Pressure Level 1</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer></script>
<script class="remove">
// All config options at https://respec.org/docs/
const respecConfig = {
shortName: "compute-pressure",
... | f7181daa948f96ec0296c1c090196858e8f80d2f | [
"Markdown",
"JavaScript",
"HTML"
] | 9 | HTML | oyiptong/compute-pressure | 5ab53da9e280842a8964f9b1a088b27377e42e1d | c28bd08791b939b30860ae921ef574fbd5096863 |
refs/heads/master | <file_sep>//
// findLoopWay.swift
// ScenicSpotSystem
//
// Created by ffm on 16/11/24.
// Copyright © 2016年 ITPanda. All rights reserved.
//
/*
4、输出导游路线图中的回路。
思路,跟深度遍历一样进行递归,然后另外定义一个数组,把每次走的点的名字记录下来(记录路径)
每走下一步,然后都往路径里面
思路有误。(无向)
1.先判断是否有回路 (计算度 ,把每个结点度都大于1那就肯定了,如果有存在1的,删掉,并相应结点扣1 如果都大于2 那就存在
2.当存在回路,就进... | f29dddf37b3ac87047c10030c4281b97edaa4e13 | [
"Swift"
] | 11 | Swift | ITpandaffm/ScenicSpotSystem | 76bedd8dd6df798de4780b99a712db721dddeaaa | ee2df3e54720d7a1e7e6ce6cc77cd26948bd902b |
refs/heads/master | <repo_name>josh20130/SwingGui<file_sep>/src/application/Application.java
package application;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class Application {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable()
{
p... | 45168c3918a21dc82aec25a7d55949ba8e902386 | [
"Markdown",
"Java"
] | 2 | Java | josh20130/SwingGui | 4f1a77242077b6929eb138d6f57be2ade5a3d73c | 173d1f474e8e42c647e213974541bb612dd08b4f |
refs/heads/master | <repo_name>fatalwall/BatMon<file_sep>/src/BatMon.ScheduledTasks/Config/ResultCodeElement.cs
/*
*Copyright (C) 2018 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license,
*
* You should have received a copy of the MIT license with
* this file. If not, v... | 81614f406bd1afcd9ec4490331384f7e9ed84b33 | [
"JavaScript",
"C#",
"Text",
"Markdown"
] | 35 | C# | fatalwall/BatMon | 64f0edf34c503281add3652f9d58e7dcdc75bf1b | 026e034357621b116c5222115fd3d019b9702c38 |
refs/heads/master | <file_sep># Pokemon-Game
This is a simple 3-D pokemon game made using Unity. It uses Google's ARCore to detect planes and spawn objects.
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class Gamemanager : MonoBeha... | da2326ffeadff2b5e76b373ef4a224a69b182671 | [
"Markdown",
"C#",
"INI"
] | 5 | Markdown | Surya-13/Simple-Pokemon-Game | fc1e20989f36a3e2bc5b5d27237d0a39fe3a4c5f | e02715707a43220335d8c66de516424a582f5ec5 |
refs/heads/master | <file_sep>package com.example.luongquockhang.weatherforecast.utils;
/**
* Created by <NAME> on 10/27/2017.
*/
public enum TypePrediction
{
ADDRESS_NAME, // TÌM THEO ĐỊA CHỈ
LATITUDE_LONGITUDE // TÌM THEO VĨ ĐỘ VÀ KINH ĐỘ
}
<file_sep>package com.example.luongquockhang.weatherforecast.WeatherPrediction;
impor... | e167124f7eb08089802dca8874b2c2cdcbe3dcb2 | [
"Java"
] | 5 | Java | LuongQuocKhang/Weather-Forecast---android | 86665de4f51220f08a04391d4cbd888f280a7abf | 592a2d19dc6dcf7c10a56237add55f9c2c24d8db |
refs/heads/master | <repo_name>mahi386/TestBean<file_sep>/src/com/utilities/BeanTester.java
package com.objectpartners.pojodemo;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTarge... | ddd7edf26ce6ef189dc83a57a5d987718a5427ed | [
"Java"
] | 1 | Java | mahi386/TestBean | d3b96dc8fcd7fcc9b9bd215fa8de25f5b99c5c5c | 28b77dd8863550975ddd1463508458e5117c0366 |
refs/heads/master | <file_sep>typedef struct SYS_Reg
{
SYS_Reg(uint8_t raw)
{
SYS_MON = (raw >> 5) & 0x07;
CAL_SAMP = (raw >> 3) & 0x03;
TIMEOUT = (raw >> 2) & 0x01;
_CRC = (raw >> 1) & 0x01;
SENDSTAT = (raw >> 0) & 0x01;
}
uint8_t get()
{
uint8_t retval = 0x00;
retval |= (SENDSTAT << 0);
retval |= (_CRC << 1);
ret... | a522ce0af5cbf87382ddf41bbd70fec7ec181a2f | [
"C",
"C++"
] | 8 | C | RIT-Landsat-Field-Radiometers/Sensor-Board | 68a832bb6974edd23a7044c4d67f225b7acb84e1 | 725662cc79e0350c60d98bbe20dd253f6c908491 |
refs/heads/master | <repo_name>pkukielka/ar.js<file_sep>/README.md
# ar.js
Augmented Reality with Scala.js
<file_sep>/src/main/javascript/fireball.js
// Source: http://matsu4512.jp/blog/works/javascript/fire-effect/
var balls = [];
function drawFireball(canvas, mouseX, mouseY) {
ctx=canvas.getContext("2d");
ctx.globalCompositeO... | 70bc072c5a1c979cffa8ba1c929dc1f7f5dae431 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | pkukielka/ar.js | 17c3876e2a8c4b16970d37811efa94f7cb6d25c8 | d8354547221a634f895ede5fce2e8f976f47e636 |
refs/heads/master | <repo_name>ssamsonau/CourseraDDPCompareYourCar<file_sep>/server.R
library(shiny)
library(ggplot2)
library(plyr)
DFtemp <- DFs # make this variable available in every function of this file
shinyServer(
function(input, output) {
output$oCyl <- renderPrint({input$iCyl})
output$oTr ... | acc6c3579d4fee29761c204454ac1359205109ea | [
"Markdown",
"R"
] | 4 | R | ssamsonau/CourseraDDPCompareYourCar | e1d8d16586cee3b975066636f0cbe66ea85aa6a9 | cbf77121bf83060bb89c75a383812b5a1959e291 |
refs/heads/master | <repo_name>takashi-i5/crm_questions_tinoue<file_sep>/README.md
5/10 締め切り課題 CRM関連用語問題集
<file_sep>/app/View/Questions/index.ctp
<?php
$num_questions = 10;
$num_selections = 4;
$questions_keys = array_keys($questions);
if ($num_questions == 1) {
$rand_keys = [array_rand($questions_keys, $num_ques... | 05ca9d83cca690fb587b4ace93366beae3c3b5a9 | [
"Markdown",
"PHP"
] | 5 | Markdown | takashi-i5/crm_questions_tinoue | 620a0510ffda1da574c43cc57b93325622012cba | da6da57e1534c8e8e7506a943f30cd9b47560a0c |
refs/heads/master | <file_sep>import {combineReducers} from 'redux';
import {demoReducer} from "./demoReducer";
export const rootReducer = combineReducers({
demoReducer: demoReducer
});<file_sep>const STORE_DATA = "Store_Data";
const GET_DATA = "Get_Data";
export interface storeData {
data: string;
}
export const demoReducer = ... | 139dd8ef99759537320ea2137d9ee1ceba37e1ee | [
"TypeScript"
] | 2 | TypeScript | zcstr/reactdemo02 | 75e02e708811f0e0ab84ca959a78dd6325ebf7c9 | 2d0d355f2a0811409cb223ba69aa19bfb8d587c6 |
refs/heads/master | <repo_name>AnnaKuzina/Home_Work_1<file_sep>/README.md
Home Work 25.02.2019
.PNG)
<file_sep>/Task1_NumbersMultiplicationBy10.cs
using System;
using System.Collections;
using System.Collections.G... | 1ea688e92de8f70d94141e807ffd8bc0b736db46 | [
"Markdown",
"C#"
] | 3 | Markdown | AnnaKuzina/Home_Work_1 | 53075523120d8cfebeb66b2afe4ec5eeebe49688 | 871e71fb06a1d6fc64f86517f6a7fa43d65476cc |
refs/heads/master | <repo_name>noemoriwaki/original_hp<file_sep>/login.php
<?php
// セッションを開始
session_start();
// データーベースの読み込み
require_once("database.php");
function findUserByEmail($dbh, $email){
$sql = "SELECT * FROM users WHERE email = ? ";
$stmt = $dbh->prepare($sql);
$data[] = $email;
$stmt->execute($... | 85d5e5368949f73849c48497f4090d2a11a28b8a | [
"PHP"
] | 1 | PHP | noemoriwaki/original_hp | ada7a42cd8e4e38645e65d6fc04f002b78f9bef4 | a8f5904016f4a4727f45e75447af485ec2561884 |
refs/heads/master | <repo_name>TheBlueGamer55/Simple-Text-Encoder<file_sep>/index.js
var data = require("sdk/self").data;
var text_entry = require("sdk/panel").Panel({
width: 960,
height: 320,
contentURL: data.url("text-entry.html"),
contentScriptFile: data.url("convert-text.js")
});
require("sdk/ui/button/action").Actio... | d324374a02f1b3d61527018bdb54c7753fa72185 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | TheBlueGamer55/Simple-Text-Encoder | e0ecd2e3c56d43e3e7d71ce3a6750a758d4386c4 | dcb13e63e65d0f678f007de078e3134f6f056599 |
refs/heads/master | <file_sep>import { Pipe, PipeTransform } from '@angular/core';
import { Wine } from './classes/wine';
@Pipe({
name: 'tableFilter'
})
export class TableFilterPipe implements PipeTransform {
transform(wines: Wine[], searchText: string): any {
if (!searchText) {
return wines;
}
return wines.filter(... | 7382b26244fda0d7b26a8eb6a5b6497e6bc244e6 | [
"TypeScript"
] | 11 | TypeScript | CptSpades/winery | dde6cb0559c8cfe39dc2cb02dfd91bdae6dd542a | 178b7e1290aa0b38d8475a92c39b1775b7469d03 |
refs/heads/master | <repo_name>TylerGlorie/ringLED-AudioViz<file_sep>/The_Real_Analyzer_part1/The_Real_Analyzer_part1.ino
/*
Original Code written by by FischiMc and SupaStefe
The original code used a 10x10 RGB LED-Matrix as a spectrum analyzer
It uses a FTT Library to analyze an audio signal connected to the
pin A7 of an Arduino nano. E... | 54330e786a57114878770d4fa5df7a1f5c15ed2d | [
"Markdown",
"C++"
] | 2 | C++ | TylerGlorie/ringLED-AudioViz | bfa868d3a00f7568bd46c417110fdf875768ac8f | dc5e05d5f0b1c5b741b923d776bc0d8f29466c7e |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-5, 5, 100)
y1 = 0.5 * x
y2 = x * x
plt.figure()
plt.xlabel('X axis...')
plt.ylabel('Y axis...') #设置坐标轴的文字标签
ax = plt.gca() # get current axis 获得坐标轴对象
ax.spines['rig... | fe3e4c503329201ee12d8c6e9898659105e9b91b | [
"Markdown",
"Python"
] | 6 | Python | OhiyoX/LearnDataScienceOnTheWay | 3882be0c58914445fbb4ad132bd99a8650243f15 | f79f47825e925ec4095791c45bd2ece8770764b6 |
refs/heads/master | <file_sep>import re
import time
import string # For string.ascii_lowercase (detecting CAPS floods)
import supybot.conf as conf
import supybot.ircutils as ircutils
import supybot.ircmsgs as ircmsgs
import supybot.ircdb as ircdb
from supybot.commands import *
import supybot.callbacks as callbacks
import supybot.schedul... | 532da647bb7b737cae165da3938824c5c483541f | [
"Python"
] | 2 | Python | nanepiwo/Limnoria-plugins | dd6261ffea2d0064f33f89d763bccc0dc9709b5c | 12b28919daa51a584fa4af3d50c6b8f3f0ae88d0 |
refs/heads/master | <repo_name>abdibus/Terraform-Cheatsheet<file_sep>/AWS-EBS-Attach-Mount/code/run.sh
#!/bin/bash
sudo yum -y update
sudo yum -y upgrade
# The best way is to run that script after \resource "aws_volume_attachment"\ created
sleep 120
# Format and mount an attached volume
DEVICE=/dev/$(lsblk -rno NAME | awk 'FNR == 3 {pri... | c3aa87c8509a3ac7048ab4b2d9ae3342e254e482 | [
"Markdown",
"Shell"
] | 8 | Shell | abdibus/Terraform-Cheatsheet | 5ddec3f65402fcac2377988544269df7e2a77ded | cf43ef9546592ab6dd8b9be7fd981dad569512ad |
refs/heads/master | <repo_name>xpj624/node-practice<file_sep>/app.js
var express = require('express');
var superagent = require('superagent');
var cheerio = require('cheerio');
var fs = require('fs');
var app = express();
app.get('/', function(req, res, next) {
// 用 superagent 去抓取 https://cnodejs.org/ 的内容
superagent.get('https:/... | 66e1f1fe14668b1549430315c17811dc297d53b0 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | xpj624/node-practice | e8c91375161c3f697b439abab917f9a7cb91fbc9 | e832a7a5e66b4764570089dce5d41e5b0c4fa32f |
refs/heads/master | <file_sep># Chord-P2P-Architecture
Python implementation of chord p2p protocol
<file_sep>import socket
import os
import sys
from Server import Server,client_connection
ip = raw_input("Ip of connecting Node: ")
ip = str(ip)
port = raw_input("Type port to use: ")
port = int(port)
mBit = raw_input("Power of size in you... | 2e6953907b812c7722fa1e136a1b7e9938cfee83 | [
"Markdown",
"Python"
] | 2 | Markdown | jainayush975/Chord-P2P-Architecture | bbee6c4a843da92f51518795da0246f148ee56f7 | 4ed25b1fcab65aaf706db74ac7d3fa1623ddc464 |
refs/heads/master | <repo_name>j90115j/farm4.0<file_sep>/mainsite/fmqtt2.py
import paho.mqtt.client as mqtt
from .models import tlight, thumi, ttemp, tsoil
import time
import decimal
# import pandas as pd
# import numpy as np
read_photocell=False
read_temp=False
read_humi=False
read_tempf=False
read_soil=False
light=[]
temp=[]
humi=[]
s... | 64b88196c2f334a3ae90ff6e7876109d43e99c3a | [
"Python"
] | 5 | Python | j90115j/farm4.0 | 9f22d4312e1c07563ec2293b6330d72612bf00fa | 8defd7ea7b696e9b6ec5b50749801d5a83301bf6 |
refs/heads/master | <repo_name>terminusdb/terminus-dashboard<file_sep>/public_pages.sh
#!/bin/bash
echo "___SONO IN SCRIPT____"
PUBLICATION_BRANCH=gh-pages
# Checkout the branch
REPO_PATH=$PWD
echo "$REPO_PATH"
pushd "$HOME" || exit
git clone --branch=$PUBLICATION_BRANCH "https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG" tmp_page... | 7c2ffa512508f8ca53cd5d85d6f4ef5bc64c0caf | [
"JavaScript",
"Markdown",
"Shell"
] | 47 | Shell | terminusdb/terminus-dashboard | f578c3004cbea315fc8f41c789cf57f59db01c39 | 8ccaea963bdec1ebf255ae7bab217f25005a9f03 |
refs/heads/master | <file_sep>#!/usr/bin/env python
from random import randint
import SimpleMFRC522
import time
import subprocess
import os
import logging
import random
import glob
import RPi.GPIO as GPIO
def playsound(video, loop = 0):
global myprocess
global directory
logging.debug('linux: omxplayer %s' % video)
proccount = isp... | af727dee533a137d812adb20e8924994889fac09 | [
"Markdown",
"Python"
] | 2 | Python | deltionJP/rfid-raspberry-sounds | 97456b7d59c2c7681044d8b9c6191ace80201fbf | cddfed0a24a301da3fe0e39accad5444275c084a |
refs/heads/master | <repo_name>Realityloop/vue-drupal-entity<file_sep>/src/components/DrupalEntityField/index.js
import DrupalEntityField from './DrupalEntityField.vue'
export default DrupalEntityField
<file_sep>/src/components/DrupalEntity/index.js
import DrupalEntity from './DrupalEntity.vue'
export default DrupalEntity
<file_sep>/REA... | 836f405ca0dd78c126e9cd62361a74256c11f38d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Realityloop/vue-drupal-entity | 0e43d8697091dbe206576b660deb2575c116e3db | 51146bf2b6444fc83b6b33e7ef083a1ce7ff1260 |
refs/heads/master | <file_sep>jQuery(document).ready(function() {
// Hide everything mentioning certain key words from a certain user.
var hider = function() {
var el = jQuery('a[href="/102780726906835902473"]').parentsUntil('div.md.gi')
el.each(function() {
var t = jQuery(this)
if(/Hung out|HANGOUT|eBay/i.test(t.text())) t.hi... | dd11590a93cd1581f5d141d5168c07c4bb182e2e | [
"JavaScript"
] | 1 | JavaScript | aredridel/.js | 90070a0099ef8452d6a330a6d0bcb6d7a9c9acbc | 8bb92c5b640e17aca314ae9e81ba27a6219467f4 |
refs/heads/master | <file_sep>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#include <vkt/config.h>
#include <cstddef>
#if VKT_HAVE_CUDA
#include <cuda_runtime_api.h>
#endif
#include <vkt/Memory.hpp>
#include "macros.hpp"
namespace vkt
{
void Allocate_cuda(void** ptr, std::... | a9fee56ffa92f1c1802933d5ad025c72425cb837 | [
"C",
"Python",
"CMake",
"C++"
] | 22 | C++ | malei-pku/volkit | 6b6899433f06e698f205ce04b70438aa34e567fd | 9ac3587b450b9ea9e3997ba05952affdc2f66745 |
refs/heads/master | <file_sep>#include"ELaser.h"
ELaser::ELaser(float px, float py) :GameObject( px, py, "enemylaser", 1) {
}
ELaser::~ELaser() {
}
void ELaser::init() {
DDS_FILE* dds = readDDS("dds/laserE2.dds");
float x = dds->header.dwWidth*0.5;
float y = dds->header.dwHeight*0.5;
setAnchor(x, y);
setDDS... | 3b1c73efb39c33ef8e6bc57c0c32e400955588fb | [
"C",
"C++"
] | 37 | C++ | HaeilSeo/Window | 637b7cbe09e9410e1eb99c5a8293cafe2a7c0dcb | 3b82a590c6d3cd44c4d5022fbbd3d749b86524e9 |
refs/heads/master | <repo_name>deanriverson/JudgeAdviser<file_sep>/src/app/judges/judge-list/judge-list.component.ts
import {Component, OnInit} from "@angular/core";
import {AppStoreService} from "../../services/app-store.service";
import {Judge} from "../../models/judge";
import * as _ from "lodash";
@Component({
selector: 'app-judge-... | 67ba278cfc7d3bfab3aadd674c18bc33b44f3185 | [
"TypeScript"
] | 31 | TypeScript | deanriverson/JudgeAdviser | d5d065138a157bcb14f83c91a2d0220d1baf3d6d | aa8ba62d3f1dfdcf433af7402bbc4fa84722a705 |
refs/heads/master | <repo_name>eteries/34198-keksobooking<file_sep>/js/synchronize-fields.js
'use strict';
window.synchronizeFields = (function () {
return function (elementFrom, arrayFrom, arrayTo, cb) {
var selectedIndex = arrayFrom.indexOf(elementFrom.value);
var setField = cb;
var newValue = arrayTo[selectedIndex];
... | 9e1dea19a3ee3370d1db781e47b729955356853e | [
"JavaScript"
] | 4 | JavaScript | eteries/34198-keksobooking | b380245e68f104a7522e941354bdfa192acbba68 | 6b598c7f1294857a37cde19673375043c25e1a77 |
refs/heads/master | <file_sep><?php
class HomePage extends SiteTree {
}
class HomePage_Controller extends ContentController {
}
| 9155c834038875c4a5d31b4f3372b31f814c7e77 | [
"PHP"
] | 1 | PHP | reinkrijgsman/silverstripe | 7d56c4b9a885b2f8d816713594b721e28860b378 | 919b8838c5607a13613424b74e061974c5bc0cdc |
refs/heads/master | <repo_name>BiagioeCarmine/morra-test-vue<file_sep>/src/backend.ts
import axios from 'axios';
//const URL = "http://localhost:5000";
const URL = "https://morra.carminezacc.com";
export default {
async logIn(username: string, password: string) {
const res = await axios.post(
URL+"/users/login",
... | e383dbbaea5694fb092829046c98974eae2c1db3 | [
"TypeScript"
] | 1 | TypeScript | BiagioeCarmine/morra-test-vue | 68ba920b9f68f9f0058bebcea48ae833df2a98b7 | 0f82e01019e070269bf2774e24cbd89e7d57a681 |
refs/heads/master | <file_sep>import { BASE_URL } from '../config'
export const FETCH_CHEESES_REQUEST = 'FETCH_CHEESES_REQUEST'
export const fetchCheesesRequest = () => ({
type: FETCH_CHEESES_REQUEST
})
export const FETCH_CHEESES_SUCCESS = 'FETCH_CHEESES_SUCCESS'
export const fetchCheesesSuccess = (cheeses) => ({
type: FETCH_CHEESES... | 298696b440c86f2672cccfed771863059530f869 | [
"JavaScript"
] | 3 | JavaScript | thinkful-ei26/bryan-serve-ya-cheezburger | 956da08802ed0b0ff87aac071066fdb600bfb9a8 | e7034e824f2312a545afbf14fee44196bd483464 |
refs/heads/master | <file_sep>var google = {
container: document.getElementById('google'), // Required
path: 'google.json', // Required
renderer: 'svg',
loop: false,
autoplay: false, // Optional
name: "google", // Name for future reference. Optional.
};
var shopify = {
container: document.getElementById('shopify'), // Requir... | d7bc0c68ea65290714b20caf5ae196f893a32a48 | [
"JavaScript"
] | 1 | JavaScript | nickvenne/nickvenne.github.io | 87d06d0394b4bc049c747597047b2b0f737f2da1 | 75e24c6d6ae03b5374fb70caa88399a86f8391ad |
refs/heads/master | <repo_name>HideinBushes/PracticeNote<file_sep>/tree.cc
#include <iostream>
using namespace std;
class tree{
private:
class treeNode{
public:
int val;
treeNode* left;
treeNode* right;
treeNode(int v, treeNode* left, treeNode* right):
val(v), left(left), righ... | af844c42e361079e9775e0697f258b3ff3ad6a89 | [
"Markdown",
"C++"
] | 6 | C++ | HideinBushes/PracticeNote | d3a005b28bb18e92a181eafe5be7d910312beca0 | e3cb127b3217e9c5a8c6f9d4bec91f20f88c037b |
refs/heads/master | <repo_name>mahadirz/CarND-Behavioral-Cloning-P3<file_sep>/readme.md
# **Behavioral Cloning**
[](http://www.udacity.com/drive)
## Writeup
---
**Behavioral Cloning Project**
[... | 5db3115b152b8fdba3befa6aedf47c9afede67b0 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | mahadirz/CarND-Behavioral-Cloning-P3 | d719ab8529b21a53be01d5eb05c7aa0359c8b7d9 | f3082406bcb7065f01d81560f3b18edd3342bb43 |
refs/heads/master | <repo_name>hulakdar/UE_Runner<file_sep>/Source/MyProject/MyProjectCharacter.h
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "MyProjectCharacter.generated.h"
UCLASS(config=Game)
class AMyProjectCharacter : public AChara... | de7218fbdb0192aaaee62b1a49b5a820d87f2b08 | [
"C++"
] | 1 | C++ | hulakdar/UE_Runner | b9b04503ac555c40d1fd301799f7dba5294c0793 | b65f6de5d25ce59c5eaa70f20d20114f90d1211f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.