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/main | <file_sep>$(document).ready(function() {
const source = $("#box-template").html();
const template = Handlebars.compile(source);
if($("#version-ajax").length) {
$.ajax({
url: "../db.php",
method: 'GET',
success: function(item) {
//array ... | 0391532924042ee224ed24c78edddfd4135be376 | [
"JavaScript",
"PHP"
] | 2 | JavaScript | ivanmincione/php-ajax-dischi | 04a6129d1fb63eaf57e40a6cfcc393f845e11c7f | 47adb34b520e55983face53d7c02970bbd96aa5c |
refs/heads/master | <repo_name>RoyTrudell/FantasyFun<file_sep>/TopLevel.py
import pandas as pd
import numpy as np
import scipy as sp
| a6952f9c99be3d44a3b3db268fb24b6395758bb3 | [
"Python"
] | 1 | Python | RoyTrudell/FantasyFun | 24f1838e15e4de9226747e3be910ebb32ef5a7d5 | 512e3835b7b03d6cc30b5f9f47baab033aab638c |
refs/heads/master | <file_sep>#' A function for adding error bars to barplots
#'
#' This function is a wrap around for barplot() that will add error bars. This
#' code was written by Dr. <NAME> at the U of A.
#' @param dv Numeric vector.
#' @param fac Factors.
#' @param ... Elipsis for passing arguements
#' @keywords error bars
#' @impor... | a09ed92e22ab13cc06228a27641141ddaddda708 | [
"Markdown",
"R",
"RMarkdown"
] | 17 | R | jvcasillas/lingStuff | 7169b2cdaa9fcaeaeaa2ebf555223a5f67655f2d | fb06c4c044e8d310f07497d7119d4505cda1b4f2 |
refs/heads/master | <file_sep>package com.shao.house.house.mapper;
import com.shao.house.house.model.HouseUser;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface HouseUserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the dat... | 055d4eedac894b3a9f7a3c6756e6587e86b3d98e | [
"Markdown",
"Java",
"SQL"
] | 12 | Java | suiliuxunying/houses | 60cc8d7e3b3dd54f572433e7503afd59acf315bb | 4a682c5b06ca6059bae8867317c4a2f9fd1032da |
refs/heads/master | <file_sep><?php
namespace Helpers;
class Tools {
private static $posts = array();
// --- XSS free
public static function getPost($name, $default = "") {
if (array_key_exists($name, $_POST)) {
$post = $_POST[$name];
if (is_string($post))
$post = self... | 5881da6af16b58be6a1455c0448e4ff2b4413775 | [
"JavaScript",
"PHP"
] | 12 | PHP | LaurentFrizon/koikonmange | bda071d5391fddafe6a0a582aefd0b801079ffa2 | 567c6d0e106ddc9aa2b8bafe23642b868cdf6c5b |
refs/heads/master | <file_sep>/*************************************************************************
> File Name: mysql_test.cpp
> Created Time: 2014年05月06日 星期二 20时35分16秒
************************************************************************/
#include<iostream>
#include<string>
#include<mysql.h>
using namespace std;
int m... | 6442b69df17f245412b0b3903e4c7fd097647489 | [
"SQL",
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 11 | C++ | leowww24/2048 | d4777232867812a5fec30259cecb59387fc1431a | fa603adc62859ae26a7b0f84b48028369d35cf49 |
refs/heads/master | <file_sep># ntupleSkim
# ntupleSkim
# ntupleSkim
<file_sep>#include <iostream>
#include <sstream>
#include <string>
#include <math.h>
#include <vector>
#include <algorithm>
#include "PDAnalyzer.h"
#include "TDirectory.h"
#include "TBranch.h"
#include "TTree.h"
#include "TCanvas.h"
#include "TLorentzVector.h"
#include... | b4808d7221d326feafd072643490abd5ab2cb374 | [
"Markdown",
"C++"
] | 3 | Markdown | abragagn/BPHPD-ntupleSkim | 5fb7fdf1b67e69b1a0ca6e5dccfb9fa1a4a6f74d | 4c31820595be54accbd4d38c9f89bfe38633faa4 |
refs/heads/master | <repo_name>Naveen2905/weUnited<file_sep>/scripts/liveData.js
const liveDataApp = {
url: `https://api.covid19api.com/summary`
};
//Country Covid-19 Data
liveDataApp.all = function (countryName) {
$.ajax({
url: liveDataApp.url,
method: 'GET',
dataType: 'json',
}).then(fu... | 210399d10df654d4c9d575f6dc9d6f2d71d2cdc6 | [
"JavaScript"
] | 2 | JavaScript | Naveen2905/weUnited | ef54bce0a2ea57a31a4e5cb82310cc6c35ecca87 | dcb3776610a8f44d5dffeed0a02d38ecb9d814a0 |
refs/heads/master | <repo_name>GopalanRamya/date-a-scientist<file_sep>/CapstoneProject/dating_skeleton.py
import sys
import time
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from collections import Counter
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier... | 40863212b22496082c04346f6f7873d961eeaa57 | [
"Python"
] | 1 | Python | GopalanRamya/date-a-scientist | 8a43358d934797b8c3f793f34b5cc5e92735dd34 | 2e335c7c68eb0521702cd8362488865a2078893e |
refs/heads/master | <repo_name>CyberFlameGO/SpawnProtect<file_sep>/README.md
SpawnProtect
============
SpawnProtect is a spawn protection (and more) plugin for MCServer. By default, it simply prevents people from building in spawn who don't have permission to do som but it also has more permissions that can be configured easily.
Install... | 5431e20a883fe37522e126548a257c11cdd21f32 | [
"Markdown",
"Lua"
] | 4 | Markdown | CyberFlameGO/SpawnProtect | fa9c89c4e62fdff0d3b764f9cbdfae53c04dc4f4 | c95af6f44c51a3862a17ad06c45056df41b6868a |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.contrib.pipeline.images import ImagesPipeline
from scrapy import Request
class ImagePipeline(ImagesPipel... | 4e3b059b9368e690c495c4fe489096c9a5ff2525 | [
"Python"
] | 3 | Python | kalombos/uniquip_net_au | 8325ecb4f78d0fdf1455e301bf25ad52d909a62c | 30d183da1531dbf11adf89c86c69c8458780d627 |
refs/heads/master | <file_sep>class Admin::RestaurantsController < Admin::AdminController
def index
@restaurants = Restaurant.all
end
def new
@restaurant = Restaurant.new
end
def create
restaurant = Restaurant.new(params[:restaurant])
restaurant.tastepoint = 5
restaurant.speedpoint = 5
restaurant.amount... | b3745f287a243ba7d608c1b900667edc823c2a16 | [
"JavaScript",
"Ruby"
] | 21 | Ruby | heyjusang/bab | ba21e523281da2de85f9308b8d5fe10aef844797 | 29bb837b2ca5e3bbc00eaa5f5b838321046b6e05 |
refs/heads/master | <file_sep>package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"sort"
"github.com/AlecAivazis/survey/v2"
)
const (
categoriesUrl string = "https://www.getonbrd.com/api/v0/categories?"
tagsUrl string = "https://www.getonbrd.com/api/v0/tags?page="
)
var opts = []string{"1)Total jobs"... | d3377f54a72da33417295d6b21702bac99a54d79 | [
"Go Module",
"Go"
] | 2 | Go | krystofff/getonbrdScraper | 9b2e3d15c22ee8ec83f057bbbd13e2f58c4cd6cc | 75274d25b38aed1c659841be5855de57754afe87 |
refs/heads/master | <repo_name>schmulen/simpleApp13<file_sep>/SimpleApp/App/Views/Views/ConnectDetailView.swift
//
// ConnectDetailView.swift
// SimpleApp
//
// Created by <NAME> on 7/24/20.
// Copyright © 2020 jumptack. All rights reserved.
//
import SwiftUI
struct ConnectDetailView: View {
var model: ConnectModel
var body... | 125cdabe7f4f394b0513baacc4238c8563955c8b | [
"Swift",
"Markdown"
] | 23 | Swift | schmulen/simpleApp13 | 8c48a82641878950fa627950ab3235e9d4d0540f | 91de4fa5750ec14d79ea3a715b3f190372efc730 |
refs/heads/master | <repo_name>Simon947a/Simpd_v9<file_sep>/Lab3/Lab3Script.R
library(ahp)
ahpFile <- system.file("extdata", "data.ahp", package="ahp")
dataAhp <- Load(ahpFile)
Calculate(dataAhp)
print(dataAhp, priority = function(x) x$sparent$priority["total", x$name])
Visualize(dataAhp)
Analyze(dataAhp)
AnalyzeTable(dataAhp)
<file_sep>/... | b2aa39bb4e51c1900fb92f44588cce9cd38324e4 | [
"R"
] | 2 | R | Simon947a/Simpd_v9 | def87a842940504141b365162d93e893c545261b | d024850873aed8aadef708ad690a0911fffbeb49 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Unirest;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show ... | 3057ac64b26ae09c8a0b36d1ca9c176187b23e16 | [
"PHP"
] | 1 | PHP | afinayor/currency | f9d1f1bedda43f73be8e3ae70dc46b5bc6342781 | a5873a120549ed05f5372ebe96228e42f054b2ff |
refs/heads/master | <repo_name>gabrielolferrari/react-marvel-api<file_sep>/src/config/config.js
export const configAPIMarvel = {
publicKey: '8bbee023ea9707d06117988d5205af37',
privateKey: '<KEY>',
baseUrl: 'https://gateway.marvel.com:443/v1/public/',
}<file_sep>/src/components/comics/comicComments.js
import React from 'react';
impor... | d626927be96a754329b9cf94cce5aa240d8c752f | [
"JavaScript"
] | 7 | JavaScript | gabrielolferrari/react-marvel-api | 877ec53f53d227fbcbeb7544b88bba0fc56f1e16 | 6303336cfd55672fafd81250c832f84be94a0bb4 |
refs/heads/main | <file_sep># ProyectoFinalProgramacion
Proyecto final de la tercera evaluación de Programación
| 37753df873640dd1d886099a5bf39f9cdde956a1 | [
"Markdown"
] | 1 | Markdown | nicorrt/ProyectoFinalProgramacion | 531249453456e78d8a0eb1f623fb22f2240bedc0 | 47fb321ebe1c5d6c350639a758480264639aaa95 |
refs/heads/master | <repo_name>helioferreira/android-pager-animations-demo<file_sep>/README.md
# android-pager-animations-demo
A small project that uses PageTransformer and Shared Element Transition to add some cool behaviours to the ordinary ViewPager.
The project also uses [Picasso](https://github.com/square/picasso) (I shamelessly co... | a0164c29a4c024d66ad298cba3a51592d0f0c1a2 | [
"Markdown",
"Java"
] | 3 | Markdown | helioferreira/android-pager-animations-demo | 59cdc472e7905276d15c41b38d2589301c86572e | 5f864f10875a9eafa49c543d656842a008b66c05 |
refs/heads/main | <repo_name>NeilKulikov/vmfunctions<file_sep>/vmfunctions/common.hpp
#ifndef VMFUNCTIONS_COMMON
#define VMFUNCTIONS_COMMON
#include <type_traits>
namespace vmfunctions::common {
template<typename I>
constexpr I factorial(I arg) {
static_assert(std::is_integral<I>::value);
return arg == 0 ? I(1) : arg * factor... | 647dd75b847d68cfcbe2615dc81fc76fec465048 | [
"C++"
] | 18 | C++ | NeilKulikov/vmfunctions | 6f57e3a36878a4870124deec82aeecd027ebf359 | 1271cb5fcc6db55d3f5b57599a4ed351d77548d6 |
refs/heads/master | <repo_name>unicaes-ing/practica-10-reynaldo-martinez<file_sep>/Practica10/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Practica10
{
class Program
{
static void Main(string[] args)
{
... | ba4bb85ce848238d92943db5287c876637443d99 | [
"C#"
] | 1 | C# | unicaes-ing/practica-10-reynaldo-martinez | d5484d0336778201d49482f85ff3b3f1c5168b2a | c5c8fde14fa4613aa02cf14cd389608e8790d273 |
refs/heads/master | <repo_name>ManuelAlanis/Programaci-nC<file_sep>/punteros2.c
#include <stdio.h>
int main(void)
{
int arreglo[5];
int *iPtr;
int i;
arreglo[0]=1;
arreglo[1]=2;
arreglo[2]=3;
arreglo[3]=4;
arreglo[4]=5;
iPtr=&arreglo[0];
for (int i = 0; i < 5; ++i)
{
printf("*iPtr es %d\n",*iPtr );
iPtr++;
}
return 0... | 0f142cfb379aa2c0c512c96ed37b016a26337a65 | [
"Markdown",
"C"
] | 38 | C | ManuelAlanis/Programaci-nC | d91291d814ddbca0bbf6a8c29735c9ed04ab7cc8 | 22c657a332a73a7319cc27571e4fa57b8bd539de |
refs/heads/master | <file_sep>package com.gamerexde.hidemypluginsbungee.Commands;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;
public class HideMyPlugins extends Command {
public HideMyPlugins() {
super("hidemyplugins");
... | 780655423fbe3081f802181ca886d9f6cc4331d2 | [
"Java"
] | 1 | Java | meloncafe/HideMyPlugins | f8c77f140407451de386205732decfa4ea01a9ca | 5461f61b8f85c2fe593e43d6af8c099a9dcdb329 |
refs/heads/master | <file_sep>// reading a text file
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
int main () {
string line;
string location;
string file;
string fullname;
int i=0;
ifstream myfile ("filelist.txt");
if (myfile.i... | 7b176aba9383169fbd2705d08049a1c8658a1d6b | [
"C"
] | 3 | C | chatuu/cafe | 31a0f735b6ad31a072455ee0f068e311af02b529 | 791664723ba9e314cd458bb4aee88337578b8dda |
refs/heads/master | <file_sep>import requests
import json
def forward_to_api(url,mobile,message,api_key,flash,count):
payload = {'senderId': 'FSTSMS', 'mobile': mobile, 'message': message, 'flash': flash}
headers = {'Authorization': api_key}
print '\n-- Trying to send SMS via API ['+str(count)+'] --'
response = requests.request("PO... | 72b1035d1589d3b77c721c7be4e248bce8cde185 | [
"Python"
] | 1 | Python | marciopocebon/fast2sms | 617124b86fc46526d8312c43f27cdaa6afaec5f9 | 2632f5c0594392604302b2d9a20f005ddecde58a |
refs/heads/master | <repo_name>RachitKeertiDas/SheetMailScript<file_sep>/script.js
const EMAIL_SENT = 'EMAIL_FORWARDED';
const help_categories = {
'Plumbing' : 1,
'Honeybees' : 2,
'Electricity' : 3,
'Weeds' : 4,
'General Frustration with college life' : 5,
'Snake spotted' : 6,
'Someone broke my wall' : 7
}
function getEmai... | 020c302370b96dc79ebffbf567a609b781041453 | [
"JavaScript"
] | 1 | JavaScript | RachitKeertiDas/SheetMailScript | 80e9313b72a07bf6a8fad3569e16edd7f6efdc23 | 0556ebcf0d7a84d957e76caa3e01799ebf2dc4bf |
refs/heads/master | <file_sep>#!/usr/bin/env python
#encoding: utf-8
import rospy,copy,math
from geometry_msgs.msg import Twist
from std_srvs.srv import Trigger, TriggerResponse
from mymouse_ros.msg import MyLightSensorValues
class LineTrace():
def __init__(self):
self.cmd_vel = rospy.Publisher('/cmd_vel',Twist,queue_size=1)... | 23428dfe130daf1ad644c3eae9f755a55c8aaedf | [
"Python"
] | 1 | Python | IshiguroN/pimouse_run_corridor | 1de0ca4bdf6e4ac282813df8f24190c651b15856 | 892e1eed6205857437c42bcf9d36e1a9a330d0af |
refs/heads/master | <repo_name>bwmello/TwitterWordCount<file_sep>/twitterWordCount.rb
require 'rubygems'
require 'twitter'
client = Twitter::Streaming::Client.new do |config|
config.consumer_key = "yRDGd1lkfrJzZdB7pXbrCivqc"
config.consumer_secret = "<KEY>"
config.access_token = "<KEY>"
config.access_token_secret = "<KEY>"
end
strin... | 29d3980f53625be7c3c843c4903ba64c1aaf9b14 | [
"Ruby"
] | 1 | Ruby | bwmello/TwitterWordCount | fbff513f8a9f7c568288e92624b6587c8fccd924 | 09f4dd0ce372e20368aba738db6b2516db93feb9 |
refs/heads/master | <repo_name>Benlsc/Go4Lunch<file_sep>/app/src/main/java/com/lescour/ben/go4lunch/controller/fragment/RestaurantListFragment.java
package com.lescour.ben.go4lunch.controller.fragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.vi... | 98deb2b291f0b4affad1894a29b83f8c14c9d39a | [
"Java"
] | 3 | Java | Benlsc/Go4Lunch | 986e2d956fe8a5c073a4c0c3a6c9614a7caa3bea | 23590859d145078832798add319438959a93810e |
refs/heads/master | <file_sep>//
// BCOGetGoodsDealsService.swift
// baicaio
//
// Created by JimBo on 15/12/26.
// Copyright © 2015年 JimBo. All rights reserved.
//
import UIKit
import Alamofire
import RealmSwift
typealias loadGoodsDealsCompletionHandler = (List<BCOGoodsDealInfo>?,NSError?) -> Void
typealias loadGoodsDealInfoComple... | 081113eb8827e510151d50cf5937b002b725b1c5 | [
"Swift",
"Ruby",
"Markdown"
] | 26 | Swift | XGBCCC/baicaio | f222d26fde86bc88ae0948d95a1fdbd4e8da71e8 | 8fcfd4a19499f8c76f0a443144edcfe47035e01b |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^$','website.app_views.home'),
url(r'^set_points/(?P<id>\d+)/(?P<puntos>\d+)/$','website.app_views.set_points'),
)
<file_sep># -*- coding: utf-8 -*-
import hashlib
import json
import urllib
import url... | b268b5cd471cb6e12f8a9281092c6f0b3565d0d6 | [
"JavaScript",
"Python"
] | 17 | Python | elreychagi/parkero | 878ff24709c6d7157f07c3112269103ca2dc4d3d | 77136237ad49f0483b0b628c817007acca7c3e24 |
refs/heads/main | <file_sep>from PIL import Image, ImageFilter
import os
# 해당 파일이 없다면 => 특정 파일을 생성하기 (os를 쓰지 않음)
# 일단 파일을 open => 예외 처리
# https://pillow.readthedocs.io/en/stable/reference/Image.html
targetRoot = "./target/"
sourceRoot = "./source/"
fileList = os.listdir(sourceRoot)
for fileName in fileList:
sourceImg = Image.op... | 40de6c692be0af40354b85622243abb375f51385 | [
"Python"
] | 1 | Python | dhkdl/test | 832dad530c8e77e6886a15e0c0daf9bb7566772e | 3382df009b81f496e230ba0986a872eb148d91b6 |
refs/heads/master | <file_sep># HNSWGO
This is a golang interface of [hnswlib](https://github.com/nmslib/hnswlib). For more information, please follow [hnswlib](https://github.com/nmslib/hnswlib) and [Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs.](https://arxiv.org/abs/1603.09320... | 61b434b11b980ae2695b3043d46baebe628d07d6 | [
"Markdown",
"Makefile",
"C",
"Go",
"C++"
] | 5 | Markdown | evan176/hnswgo | 39253a76f9e49934fc483b54ce96a937f0618804 | de96790bada6a496a3fef24fdfb552ab3f7d65a0 |
refs/heads/master | <file_sep>#include <iostream>
#include "oracle_operator.h"
OracleOperator::OracleOperator(std::string user, std::string password, std::string dburl)
{
env = oracle::occi::Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
try {
conn = env->createConnection(user, password, dburl);
} catch (oracle:... | a5b784db9aecf6273646ebb5554f5853d35adc85 | [
"C++"
] | 5 | C++ | zhaopei8948/modify-invt-cusstatus | 6b87f59629ab9ecb04a9e95efeea2037548b48b5 | 989aab37996c56d9dfca9220ea5e27e071c453b8 |
refs/heads/master | <file_sep>#Task notes
This is just a summary of my thoughts while doing the test.
##Usage
There are 3 endpoints to the given API:
1) `convert` will take a variable `integer` and return the provided integer and a roman numeral.
2) `recent` will list all recently converted integers. You can pass through a `period` var... | d4118fcddcc4833ab637232ad08b9875a6fad8f6 | [
"Markdown",
"PHP"
] | 10 | Markdown | Hobohodo/RomanNumerals-API | de87958679bb143e73b7c678f650f5ce916154c8 | 28b22a27f6623cda8a500d3725ae4531f95ffe30 |
refs/heads/main | <repo_name>tenmugi/ScriptTest<file_sep>/Assets/Test.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Boss
{
private int hp = 100;
private int power = 20;
private int mp = 53;
public void Attack()
{
Debug.Log(this.power + "のダメージを与えた");
}
... | ae5f98d87f0859d5d88f58d79d55ade95fa962f1 | [
"C#"
] | 1 | C# | tenmugi/ScriptTest | 9b19467bafd7dd1c120712d42c66537ef5ac3aae | 4c2cd57ad2e6ff389a8e9ef0d09101dd9dbbfb7b |
refs/heads/master | <repo_name>dev-vadym/gorpc<file_sep>/server.go
package gorpc
import (
"net/http"
"reflect"
"fmt"
"encoding/json"
"github.com/valyala/fasthttp"
)
type Server struct {
Secret string
services *serviceMap
OnExecute func(action string, req interface{}, res interface{})
OnError func(err error)
}
type Contexter ... | 3bfda77b1f88fab1a674171b245d3ff022cd8b54 | [
"Markdown",
"Go"
] | 12 | Go | dev-vadym/gorpc | 2599e2ebbc4cbbbd8d291d383de38d472e5f92cc | f2ea8562be2a0bda385b5c9d63209f6a1520a418 |
refs/heads/master | <repo_name>vigensahakyan/Algorithms<file_sep>/Algorithms/src/com/data/structure/BPlusTree.java
package com.data.structure;
import com.data.structure.RedBlackTree.RedBlackNode;
public class BPlusTree<T extends Comparable<T>> implements Set<T> {
// max children per B-tree node = M
// (must be even and gr... | e7e95269f86f5305db2a261e13e63dec9ce0ffa8 | [
"Java"
] | 11 | Java | vigensahakyan/Algorithms | 1b40644a82efad1043a9c76e54d6d0990391b3d0 | 5324e865b48225c2310f594b189e6505ea98c06f |
refs/heads/master | <file_sep>from microbit import *
import radio
import random
import microbit
#setup radio
radio.config(length=251, channel=53, power=4)
sending = 1
def
<file_sep># TeamNetwork
Tasks:
Research
Network without data loss
Test
Decide data format
Code the microbits to pass the data
Work on battery life
Microbit... | fe223075b7012cb60daefbf1e9c0463aad77e7c9 | [
"Markdown",
"Python"
] | 2 | Python | afillipi/TeamNetwork | bf305da751474ff27c6b706e6127a6c73e5df202 | 1a8a6b09111b025b3657704dd51793e20f718ab2 |
refs/heads/main | <file_sep>import React, {useState, useEffect} from 'react'
import styled from "styled-components"
import {useHistory} from "react-router-dom"
import {projectState } from "./projectState"
import {motion} from "framer-motion"
import {pageAnimation} from "../animation"
import GitHubIcon from '@material-ui/icons/GitHub';
i... | fc91d1630a38d72e0b84cc87a246098bc27d20f8 | [
"JavaScript"
] | 8 | JavaScript | gabrfernandez/portfolio | 344f573cdc4b9dbfe76fcbd4387701f43067ef73 | 02375e930d83ad449654cefb5648e03014f88356 |
refs/heads/master | <file_sep>const electron = require("electron");
const ipc = electron.ipcRenderer;
const remote = require("remote");
const settings = remote.getGlobal("settings");
import css from "./setup.css";
const types = [
"discord",
"flowdock",
"gitter",
"slack",
"twitter",
];
// Redraw on tab changes
ipc.o... | 0adf8e4b31a7b7ca83138962f22d8e3e5bb7f2a3 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | stffrd/c-hat | 3d415f84ccfaee37071d23c621c30276f42e86c5 | 13565bd69a7c9e86f9db5f8d1afe6c9045988267 |
refs/heads/main | <file_sep>from random import randint
from numba import njit, np
from numba.typed import List
f = open('1.txt', 'w', encoding='utf8')
def start():
print('--------------------------------')
print('Для начала работы нажмите Enter.')
input()
print('Это программа для генирации случайных чисел.')
start()
... | 92a6e63d967efff8e10688cbc80aca75ebab8047 | [
"Python"
] | 1 | Python | Ser4ey/nuitka | b96ba342a7bb63b8c5961d0280c099f747fbbb22 | d9c94678b797b6d1993bfec57fb018893a16d5d8 |
refs/heads/master | <repo_name>ISBITX/isbit_android_client<file_sep>/isbit/src/main/java/com/isbit/m/RefreshOrdersInformation.java
package com.isbit.m;
/**
* Created by Sebastian on 14/01/2017.
*/
public interface RefreshOrdersInformation {
public void refresh();
}
<file_sep>/isbit/build.gradle
buildscript {
repositories {
... | ddd0beca5f4634efa6823229450eefd129b40502 | [
"Markdown",
"Java",
"Gradle"
] | 10 | Java | ISBITX/isbit_android_client | 90d74fdfe1ac330d9c19ea1b260aaf97cefd4fc5 | 5b6644efbc2135a835318df6da9cad8f5b1e395e |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
import TableTitle from '../Common/TableTitle';
import AddressDetail from '../Common/AddressDetail';
class PrAddress extends Component {
constructor() {
super();... | 7de49d79bbcac1655c81a021ce287412a61551c7 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | sedpol/react-contact-address | 086f80951dafd840f502de3618528b0bc97535cd | f391ec8229cfea5780d29ae9df5fadcde6d2cd69 |
refs/heads/master | <repo_name>PSAScapstone2014/TestingFramework<file_sep>/valgrind/vgTest.py
import socket
import time
import subprocess
import csv
import thread
class valgrindTest:
def runValgrind(testFile, outFilename)
testfile = "vc"
outFilename = "logvg.txt"
subprocess.call("valgrind./", file, stderr=outFilename,shell=T... | 63e2d3da7bf2b891bd1cef213ab4e237f4837dba | [
"Markdown",
"Python"
] | 5 | Python | PSAScapstone2014/TestingFramework | b34d5d37e37caf74455e715cb2c4e03cb119f648 | 0172768aef061954e043c74def1f29e85373abdf |
refs/heads/master | <file_sep>def is_palindrome(s):
#if s is palindrome return True, else return False
for i in range(0,len(s)/2):
if s[i] != s[-(i+1)]:
return False
return True
print is_palindrome('aha')
print is_palindrome('abcd')
print is_palindrome('able was i ere i saw elba')<file_sep>#paper,rock, sci... | 53e50860646e9c8069f383cf93b09911e5606eb4 | [
"Python"
] | 27 | Python | kunxue/python_exercises | e6f3c41c4e18f330062ddb541e6fbf1badd7cd6c | 197c0f0619d147f0effac3f785c4bd2e07553c19 |
refs/heads/master | <file_sep># Svelte Template
- Jest
- TypeScript
- Scss
- Storybook
- Prettier
## Setup
```bash
yarn install
```
## Run
```bash
yarn run dev
```
## Format
```bash
yarn run format
```
## Storybook
```bash
yarn run Storybook
```
<file_sep>export { Home } from './Home'
export { NotFound } from './NotFound'
| dc7c136ededed39ec3b966d14bd87c5e13c0b638 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | MathyouMB/svelte-template | e867f09c45f5a6f8f6904438aceea6c50407a0bf | b67eb8709136af627bd9fe1cb7dd4ba446ef8cef |
refs/heads/master | <file_sep><?php
$dbhost = "localhost:3306";
$dbuser = "admin1";
$dbpass = "<PASSWORD>";
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, "actecomm1");
if(!$conn ) {
die('Could not connect: ');
} else {
// echo 'Connected successfully<br/>';
}
$pid=$_POST['pid'];
$pname=$_POST['pname'];
$catid=... | 00906255787fe1d37e963d9de341a80154bd8abf | [
"SQL",
"HTML",
"PHP"
] | 19 | PHP | rameshdk/actecommproj1 | b566792f714d81ade7f2fa33f47e12dce2b0026b | e5e00c7ca4bfce6b78ed8ea857aee2de8bb43453 |
refs/heads/master | <file_sep>const fs = require('fs');
const SystemFonts = require('../dist/main').default;
const fontkit = require('fontkit');
const systemFonts = new SystemFonts({ debug: true, fontkit });
// const request = [
// {family: 'Avenir Next', style: 'Bold'},
// {family: 'Avenir Next', style: 'Demi Bold Italic'},
// ... | f5f9a6ef579f638b8567e0018b88a55266cc6266 | [
"JavaScript"
] | 1 | JavaScript | rebellium/dnm-font-manager | d22494ea4eda62f35845d361315b0ed4b529b29c | d66cc7c8aaea6d23f65c3228dc49b7a16e88a72e |
refs/heads/master | <file_sep>#ifndef CONSTSH
#define CONSTSH
//https://www.geeksforgeeks.org/constants-in-c/
const short BITS = 16;
//phyical memory
//const int TOTAL_MEMORY = 1 << BITS;
const int TOTAL_MEMORY = 65536;
const short PAGE_SIZE = 256;
//2^16-8 16bit system with 256 bytes of page size
const short PAGE_COUNT = 256;
const s... | 3c24b47010c0843f0f183a0178fc6d34ebd7e5ee | [
"Markdown",
"C",
"Makefile"
] | 6 | C | AkshatJen/MemorySimulationandPaging | 49c15cc7360ea6ede274dc0068f7abf49b1b7133 | 70d75694270888fd499b9dec1ff11ca4bc35c485 |
refs/heads/master | <file_sep>public class PeaceStop {
public static void main(String[] args) {
System.out.println("Peace.Stop");
}
}
| 7de881308fbb330ebb2a74eced31805acda9b741 | [
"Java"
] | 1 | Java | AdnanRumi/MavenProject | 0d5928fc2f2cc581f0e690e0f26a017b6f5ed173 | f6e4f920302b25987d79e3d70b22a01830f92a20 |
refs/heads/master | <repo_name>glorygithub/shiyanlou<file_sep>/louqa/qa/views.py
#! /usr/bin/env python
# encoding: utf-8
from flask import Blueprint, render_template
qa = Blueprint('qa',__name__,url_prefix='')
@qa.route('/<title>')
@qa.route('/',defaults={'title':None})
def index(title):
return render_template("qa/index.html",title=... | 23736cfcaefcc0a5cf6882bb235e681730ba781d | [
"Python"
] | 1 | Python | glorygithub/shiyanlou | 1890aa51ce90e68044d5426b3b026c7cf2ad7203 | 26d0c52cb266c725eacc589d2b798641cd6a198c |
refs/heads/master | <repo_name>springheeljack/Old-Project<file_sep>/TowerDefence/TowerDefence/Spawner.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TowerDefence
{
public class Spawner : Building
{
public static float spawnTime = 0.5f;
public bool ReadyToSpawn
... | 1fb0ac6ee5f02fe634769a1e4422c8a6ed55125b | [
"Markdown",
"C#"
] | 9 | C# | springheeljack/Old-Project | 7e1baa035efe18878aae31b4cf5e4c363129d162 | de698e6d2702d65455cdecd59af7871f3321f852 |
refs/heads/main | <file_sep>/* eslint-disable no-return-assign */
import express from 'express';
import 'express-async-errors';
import { createTodo, getAllTodos, updateTodo } from '../../controllers/todo';
import middlewares from '../../middlewares';
const { validate, createTodoSchema, updateTodoSchema } = middlewares;
const todoRoute... | 644b0bc9c0b4ac23a89e767209e97f0c026aff1a | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | cvjude/Todo_App | 47915c3c4a954a093108135e8680fab05341ba96 | 38d2ab6b8e13e86e4b1b7ac022b7abdb031fc631 |
refs/heads/master | <file_sep>#!/bin/bash
## Simple install script
symlinks=()
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ignore_files=('install.sh' 'README.md')
for commit_file in *
do
# Don't do ignore_files
if [[ " ${ignore_files[@]} " =~ " ${commit_file} " ]]
then
continue
fi
dotfi... | bba1719be41b93bed15eb83e9cbf7d73269063c4 | [
"Shell"
] | 1 | Shell | christopher-alabada/dotfiles | 7cc670f6d2dc55daac28e919efed2fb95b7b2778 | 51e09ee8733e899a81d5c4283ed677626fede351 |
refs/heads/master | <file_sep>struct node { int i; struct node *next; };
void print_list(struct node * a);
struct node * insert_front(struct node * a, int n);
struct node * remove_node(struct node * front, int data);
struct node * free_list(struct node * a);
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "header.h"
int main() ... | 19e0ad9866918106f974791ac3597f969e4d3b79 | [
"C"
] | 3 | C | ahmedksultan/list | 610e245e1cff4e85a1f01be1bddcbfee4e88448f | b72cf59531dafba783789e1be263e8492c2ef6cd |
refs/heads/master | <repo_name>sksundaram-learning/kafka-sparkstreaming-cassandra-swarm<file_sep>/cluster-management/start-cluster-local.sh
#Create master node (named master)
export MASTER_MACHINE_NAME=master
docker-machine create --driver virtualbox $MASTER_MACHINE_NAME
# Make the node the Swarm master, and gives it master label
expor... | cfd3e0bc26d923dee0dbc167b88f56aae510ca6b | [
"Markdown",
"Dockerfile",
"Shell"
] | 21 | Shell | sksundaram-learning/kafka-sparkstreaming-cassandra-swarm | 259dfc4641b20481c059bb76954a2c04603af194 | d90854d85009a3fe785ef78eb07508fc9f5459e4 |
refs/heads/master | <repo_name>mizutake/pacridon<file_sep>/sql/user_followings.sql
DROP TABLE IF EXISTS `user_followings`;
CREATE TABLE `user_followings`(
`id` INT(11) AUTO_INCREMENT NOT NULL PRIMARY KEY,
`user_id`INT(11) NOT NULL,
UNIQUE `userID`(`user_id`),
`target_id`INT(11) NOT NULL,
UNIQUE `targetID`(`target_id`)
);<file... | 22b8fdcb473487197f1cbb92700eee96e46eda69 | [
"JavaScript",
"SQL",
"Markdown"
] | 4 | SQL | mizutake/pacridon | 708e339090f3cef07075b3980a465d24eae6cbac | ff4ce89e439d5ef573eee131928b3813278ead85 |
refs/heads/master | <file_sep>package com.jlxc.app.base.manager;
import android.database.Cursor;
import com.jlxc.app.base.model.UserModel;
import com.jlxc.app.base.utils.LogUtils;
/**
* 用户Manager
*/
public class UserManager {
private UserModel user;
private static UserManager userManager;
public synchronized static UserManager... | f1291b6b15654f4d3efacb15ddbcfb04fe6b6d34 | [
"Java"
] | 45 | Java | Nicky-Luis/JLXC_APP | 8110674501161c7c85fc4c68bcb48efedaea6136 | bb56d014da7460bebb15c36fd8e6b7b43f383171 |
refs/heads/master | <repo_name>simplyarjen/mybatis-memory-issue<file_sep>/README.md
# Reproduction of a mybatis memory issue
When mapping a result using a resultmap that contains a `byte[]` property
and an `<association>` mapping, mybatis allocates a `Byte` object for each
byte in the array during the mapping process. This leads to sever... | 67469519c43fba4f26c8c96ae888b5c28222076b | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | simplyarjen/mybatis-memory-issue | 7fd13524a4eb0640258b42d842dbb6f64dd90f92 | b64fe4969c0962d0b791f0bb1b187b48bf239b24 |
refs/heads/master | <repo_name>zly1154367510/Provincial-competition-<file_sep>/clear_spider.log.py
#coding=utf-8
import pandas as pd
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import re
'''
电影名 上映日期 上映场次数 院线城市 导演 演员 影片类型 票房收入
'''
def tList(dateList):
with open("cc.txt","a") as f:
for i in dateList:
f... | 78ef8e7c6824459cae8ffaf6642586b49b9519eb | [
"Python"
] | 2 | Python | zly1154367510/Provincial-competition- | de07638a7920bdd466f61908a6f251776ef88676 | 164ac3d896df1bb8721f09f5f400ab76035105d3 |
refs/heads/master | <file_sep>"""driver of the program
"""
from engine import Engine
def main():
engine = Engine()
while True:
try:
message = input()
if not message: # simply ignore empty input line
continue
engine.execute(message)
except KeyboardInterrupt:
... | d490b298bc79b352711fbaf9c8d697b383bb4051 | [
"Markdown",
"Python",
"Text"
] | 15 | Python | franklingu/order_match | 84404010c95aecc05ed47f93d345e195d1352413 | 1f3608770f9c44f3324b811b157e759d579f91cd |
refs/heads/master | <repo_name>prashantv/piui<file_sep>/byte_pool.go
package main
import (
"net/http/httputil"
"sync"
)
type bytePool struct {
pool sync.Pool
}
var _ httputil.BufferPool = &bytePool{}
func newBytePool(size int) *bytePool {
return &bytePool{
sync.Pool{
New: func() interface{} {
return make([]byte, size)
... | d513003a0146dda46bf782994ede1014c2cc1d61 | [
"Markdown",
"Go"
] | 4 | Go | prashantv/piui | 2437e9c5d2b9495c88f5c42a500d9eabc664b98c | b700fb68c862d4a5a78d46a676adcbeac82b1a7a |
refs/heads/master | <repo_name>williamsdaniel888/cokeyco<file_sep>/Cloud/Readme.md
## Cloud Arch
All cloud backend has been done using AWS Iot, Lambda Functions and Redis as a datastore.<file_sep>/ESP8266/main.py
#import the necessary modules
import time
import math
import machine
from machine import Pin, I2C
import network
import ... | 59dae8cbbb2411015a86a62e11c0281e9fd62648 | [
"Markdown",
"Python",
"Shell"
] | 8 | Markdown | williamsdaniel888/cokeyco | 82ee05206839aa23f48a5ed778179ebaa4242cb7 | 49c6cee9c909cc93c70ef42018eb3cc757586d6b |
refs/heads/master | <repo_name>luduvigo/hackathon-starter<file_sep>/README.md
# hackathon-starter
##Issue with MongoDB
There is a problem with MongoDB versions bigger than 1.3.19, related to the BSON part, in this case to avoid the problem the version 1.3.19 of MongoDB should be installed:
npm install mongodb@1.3.19
<file_sep>/db.js
var... | 1715906d2a55b32f18d77b2e1cb2c62bf9ec1199 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | luduvigo/hackathon-starter | 37564f68f25a007fd3c2bb9d70af6fbe23b1917c | 51899691c7dca4d6600d87e807762d099bee1ed8 |
refs/heads/master | <file_sep>-r requirements/conda.txt
chanjo>=4.1.0
Flask-WeasyPrint
Flask-Assets
Flask-Babel
Flask-DebugToolbar
Flask-Alchy
path.py
pyscss
cairocffi
tabulate
toml
toolz
pymysql
<file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
sys.path.append('/opt/chanjo-report/chanjo_report/')
from chanjo... | 97e49c04def98ce4d9a9980dfe447a3770545c6a | [
"Markdown",
"Python",
"Text"
] | 6 | Text | Clinical-Genomics-Lund/chanjo-report | ef2fbea5d60c49f8a89fdec9331b3e8298fe9390 | a2b8029663aae229cedd12bd9a1861b090c16097 |
refs/heads/master | <file_sep>var nameInput = document.getElementById("name1");
var submit= document.getElementById("submitbtn");
| 3b377ceec89276d133df5b21bff5a11aba56fa24 | [
"JavaScript"
] | 1 | JavaScript | sureshak/imad-2016-app | d464132384fe4c3b6ae1637f02b6c6c5b4c589d5 | 89c6f8d9580eecac77907e6ca75a4dac6b9a233b |
refs/heads/master | <file_sep>var house = {
walls: 4,
windows: 12,
doors: 2,
roof: 1
}
console.log(house);
console.log(house.windows)
var steak = {
meat: "<NAME>",
grill: "Weber",
seasoning: "salt",
tools: "steak knife"
}
console.log(steak.tools)
steak.sauce="A1"
console.log (steak)
var Nina = new Object();
Nina.living... | c48e7dd12697ce0326f99df87d9e19135c4f3798 | [
"JavaScript"
] | 1 | JavaScript | luukeout/js-1 | 9992c18f7f0ae593b21a73ac4c5352afb6b5006e | e69ac8da2a7b236dcca9bdd50a1fc14c61d8c189 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Models\User;
use Facade\FlareClient\Http\Response;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Laravel\Socialite\Facades\Socialite;
class AuthController extends Controller
{
public function socialLogin(Request $request)
{
... | b931c35321cf342084ef5ce393393b2ff04ca9fa | [
"PHP"
] | 1 | PHP | ghostspook/gauth2-backend | 7f62ccd08bfb2279761c6fce1d313f51faf469c2 | 2f254b280c538c4485ebb1c997815d21d57a5c64 |
refs/heads/master | <file_sep>__version__ = '2023.1'<file_sep>click==6.7
demiurge==0.2
requests==2.31.0
<file_sep># -*- coding: utf-8 -*-
import codecs
import os
from setuptools import find_packages, setup
# metadata
NAME = 'fpt-cli'
DESCRIPTION = ('Estadísticas de la primera división del fútbol argentino '
'por línea d... | c4c54442421169fdcbe917a99c795c2085cd0cb2 | [
"Python",
"Text",
"reStructuredText"
] | 6 | Python | el-ega/fpt-cli | 178efc09265cb409257372d65851225f4867b5db | 9f132e6b768259a4bf4ca6c91c665f3cc40883fc |
refs/heads/master | <file_sep>$(document).ready(function () {
if (localStorage['robot'] && localStorage['robot']!= 'undefined') {
console.log('voila');
var currentBot = JSON.parse( localStorage['robot'] );
var head = currentBot.parts[1];
var parts = JSON.parse(localStorage['robotParts']);
var heads = parts['heads'];
for (v... | cb0f15a6006900eafcdd17e2e535d1c162e31d91 | [
"JavaScript",
"Markdown",
"Ruby",
"PHP"
] | 35 | JavaScript | morganwallace/botsnpans | 9a13e92c583d01d9c96acd11a7d2cfd592f65add | 510b959ccfd99c78818433e075920b02def5bfa1 |
refs/heads/master | <repo_name>macrouch/teamspeak-history<file_sep>/spec/fabricators/user_fabricator.rb
Fabricator(:user) do
name "User 1"
end<file_sep>/spec/models/user_spec.rb
require 'spec_helper'
describe User do
it "is valid with valid attributes" do
Fabricate(:user).should be_valid
end
it { should validate_presence_of ... | a0738dc6091394c10d5941037ee4c8e2365ab37b | [
"RDoc",
"Ruby"
] | 15 | Ruby | macrouch/teamspeak-history | e146648a60f0cd140f0f3d1bd7d1452220f9530d | 8ffca9f078b009e7914f705a21079481d364d86e |
refs/heads/master | <repo_name>slorello89/nexmo-xamarin-poc<file_sep>/NexmoXamarinTest/NexmoXamarinTest.Android/CallListener.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget... | db341e5299bfed205858491edd448f28603af0ed | [
"C#"
] | 14 | C# | slorello89/nexmo-xamarin-poc | e29a2de9307f39fef18dd522b82ed8fa031894a9 | cffac8a8c43d2c1bc9da5a7fe4ef0e6df9c0c519 |
refs/heads/master | <file_sep>"use strict";
define(function(){
return {
"option" :
{
title : "JavaScript" ,
width : 850 ,
height : 500 ,
delay : 1000 ,
to : "#slides-1" ,
fn : {
setStyle : function ( styles )... | cfb5c69009bada8d0f82de05394318ba5247ae45 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | zhakroman/slide-show | c760335fbaa8b04fb467e0e82c6c7ea9f1f36d95 | 7a51e30dede81467fee261ca5e27f0c9f6417f8c |
refs/heads/master | <repo_name>victor-tsisar/weatherApp<file_sep>/script.js
'use strict';
window.addEventListener('load', () => {
const ACCESS_KEY = 'c0183ea59ff959ec94df2ec3818ae631';
const locationTimezone = document.querySelector('.location__timezone');
const locationPlace = document.querySelector('.location__place');
... | 5e76a4a48cb86dd6e39fa535538f1349688273b6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | victor-tsisar/weatherApp | 6de8ad27e0ac59fdeb7064783af016d2627238d9 | 0582219d923be4ca27ad4ddea8d21edeb02a744c |
refs/heads/master | <repo_name>mallorybucell/The_IronBoard<file_sep>/spec/controllers/tokens_controller_spec.rb
require 'rails_helper'
RSpec.describe TokensController, type: :controller do
fit 'only allows admins to access its actions' do
u1 = FactoryGirl.create :user
login u1
get :create
expect(response.code.to_i).t... | 45ebfe808f2845661bf93f1675df9ff206f55406 | [
"Markdown",
"Ruby"
] | 24 | Ruby | mallorybucell/The_IronBoard | adf14223d2cb622d8994c751c8314b24b08baf04 | 932ce6dff0db38a5a8039014635e9de9b871eea9 |
refs/heads/master | <repo_name>fateeq/vueLearnBasics<file_sep>/main.js
Vue.component('product', {
props: {
premium: {
type: Boolean,
required: true
}
},
template: `
<div class="product">
<h1>{{ title }}</h1>
<img :src="image">
<div>
<p v-if="inStock">In Stock</p>
<p v-else>Out of Stock</p>
</div>
<di... | 193c5e2a56608fb6b99d4ae852d8c35a42078749 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | fateeq/vueLearnBasics | 9018bc274a26011f4d580c9520522fd34952afa5 | 3a9ab4788ccf81b141eddf885585879d574794c9 |
refs/heads/master | <file_sep># Baby_Vibes_Pytorch_Azure_Webservice
Webservice deployed in Azure. Built in Pytorch Fastai . Makes crying babies happy by playing Tom and Jerry!!

<file_sep>import os
import urllib
from io imp... | 8cb61211ccc0cda208a6adccd830961a7e885b18 | [
"Markdown",
"Python"
] | 3 | Markdown | SriramyaK/Baby_Vibes_Pytorch_Azure_Webservice | 9df64f6bf8629dbbaa9023fac67237661c571ebe | bf91ee4e29e72af331f3ab8b6e181e62af9b6c3b |
refs/heads/master | <repo_name>alonmelon25/dig4e_audio<file_sep>/index.php
<?php
use \Tsugi\Util\Net;
use \Tsugi\Core\LTIX;
use \Tsugi\UI\Output;
// Help the installer through the setup process
require "check.php" ;
require "top.php";
require "nav.php";
// Help the installer through the setup process
require_once "tsugi/admin/sanity-db... | b763e24256b5d58883de1ecdcf26d72eb8b8421a | [
"PHP"
] | 1 | PHP | alonmelon25/dig4e_audio | 12238c20c2a79064f7252f9633efc4651ea8522b | e8b8b664df037f05dc6299653bfbf6cd6102674a |
refs/heads/master | <file_sep>SMS ONE TIME
-------------
This is a private members script that uses PHP, MYSQL, JQUERY MOBILE and SMS.
The login is nice and secure and members can only access the site if they hold a valid mobile number.
It will text them a one time code to access the site and then allow them to view the private.php fi... | 143270646521458990e9995c96708a58ce2bd2a1 | [
"Markdown",
"PHP"
] | 4 | Markdown | random-robbie/smsonetime | 64f1aa825e601b54671f9305d0119c0d1c19db17 | c26251741b7aa77261b84472f303ebc28c829113 |
refs/heads/master | <file_sep>package compile
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"strings"
"github.com/monax/bosmarmot/bos/util"
log "github.com/sirupsen/logrus"
)
type Response struct {
Objects []ResponseItem `json:"objects"`
Warning string `json:"warning"`
Version string ... | 993f010e325528beca46bff8284a0a742055c818 | [
"TOML",
"Markdown",
"Makefile",
"Go",
"Dockerfile",
"Shell"
] | 29 | Go | hiturria/bosmarmot | ffe2499fed4e085ce9d76c660f9f34eb6e7382c5 | 91fdc9a066330a77a4f5a1cb7327ccdda0c53567 |
refs/heads/master | <repo_name>cfadnavis/ExData_Plotting1<file_sep>/plot2.R
# Read data
# TODO: Figure out how to specify colClasses to read in data appropriately
# TODO: Figure out how to extract only a subset of records based on date criteria
d <- read.csv(file="household_power_consumption.txt",header=TRUE,sep=";",na.strings = "?")
# ... | 664ddcbf52040053548c264e51f1643732a522d3 | [
"R"
] | 4 | R | cfadnavis/ExData_Plotting1 | 40745400db52f7fc36bacad1a50bed214eb8ab94 | 77a71835345f026ba2861053bb252612c65a3f7a |
refs/heads/master | <file_sep> package com.czmodding.evilcraft;
import com.czmodding.evilcraft.proxy.CommonProxy;
import com.czmodding.evilcraft.util.Reference;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftfor... | 9b273c379ad6981b8954d7322aacfb44bd99bc00 | [
"Markdown",
"Java"
] | 2 | Java | CZModding/EvilCraft-1.12.2 | 933a92831d93f166baafed70df6c2f2d13d1922e | aae3d7b2f9b17c95d48f94f856a09f06abf5ab64 |
refs/heads/master | <file_sep>/**
* 包含n个mutation的type 名称常量
*/
export const RECEIVE_ADDRESS = 'receive_address' //接收地址
export const RECEIVE_CATEGORYS = 'receive_categorys' //接收食品分类数组
export const RECEIVE_SHOPS = 'receive_shops' //接收商家数组
export const RECEIVE_USER_INFO = 'receive_user_info' //接收用户信息
export const RESE... | c6b949fc4aee7f70c4065193f307524cb38b6c27 | [
"JavaScript"
] | 2 | JavaScript | WilsonLiao1/waimai | 3f9a728ffb8be105c43df9b4f961e76e86fc2721 | b7da94671da115dee266473bed9774b88dd9b913 |
refs/heads/master | <file_sep>package com.titchyrascal.json.read;
import java.io.IOException;
import java.io.InputStream;
import com.titchyrascal.json.read.Event.EventType;
import streams.StringInputStream;
/**
* Wraps the Puller to push events to the event handler
*/
public class Pusher {
// INTERFACES
/**
* Implement to re... | 70ebc320cedd57905ca1b7720684a63d6d66a0d3 | [
"Markdown",
"Java",
"Gradle"
] | 7 | Java | seanjohnno/tommytugger | 9c9386cff4b929dd30ceb3ba2862c5a1a2f9d0e0 | 939f16300414381fa1dd688ffdfce9bc78856ee3 |
refs/heads/master | <file_sep>package tw.com.ruten.ts.mapreduce;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.math.BigInteger;
import java.text.SimpleDateFormat;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
im... | fa8d81331d68cde27eec640643ad94d94a0ddab8 | [
"Java",
"Ant Build System"
] | 7 | Java | applepaoo/MRSimProd | 456cb2c00f37fdf2ac3302dca922dc37872883a8 | d6c394e5d635c75c0c9b368adb7146d165d29196 |
refs/heads/master | <file_sep>/**
* This example turns the ESP32 into a Bluetooth LE keyboard that you can use num/caps/scroll lock led for some reason ex: turn your room light by scroll lock :)))
*/
#include <BleKeyboard.h>
BleKeyboard bleKeyboard;
//note that this function should run "fast" or esp will crash
void KbdLedCb(KbdLeds ... | a91603aca4c976fc426b0724ee8e74a828e6a1ad | [
"C++"
] | 1 | C++ | SparkyCola/ESP32-BLE-Keyboard-LED | 447608dfb488af2bbd75aeb8794a0bbd8ffae00d | ece1ad3db31cfb7c8eac81eb7034fddea80b4859 |
refs/heads/master | <file_sep>$(function(){
$("form#matchMaker").submit(function(event){
event.preventDefault();
var userAge = $("#userAge").val();
userAge = parseInt(userAge);
var userProfession = $("#profession").val();
var userGender = $("#gender").val();
if (userAge < 30 && userProfession === "singer" && user... | 20344a554c16b8aabd670e9715df2bc2dada8d6d | [
"JavaScript"
] | 1 | JavaScript | eliotcarlsen/DatingGame | 7760f5e3320a89204d29ca1eed2bce117df835fa | 9647132cf43ea5e380fc1dcda15c3dc231b3867b |
refs/heads/master | <repo_name>adalby/lamp<file_sep>/1.pkg.sh
# 2017 Jun 01 RAD Start with a fresh, fully updated system
sudo yum update -y
# 2017 Jun 01 RAD Add Extra Package repo, utils that should have been installed by default
sudo yum install epel-release
sudo yum install mailx wget -y
# 2017 Jun 01 RAD Install emacs & git for deve... | b1cd0f6dbef0cee8476c5a12f86ac941c6d0093c | [
"Markdown",
"Shell"
] | 2 | Shell | adalby/lamp | 8fb8df1c60039e9e40220a1e3493aba3c2c447a4 | 460508a9299709b0f6633d22d86ece889d451ce0 |
refs/heads/main | <repo_name>MaxRev-Dev/math-modelling<file_sep>/MathModelling/S4/MM4_MassTransfer.cs
using System;
using System.Linq;
using MM.Abstractions;
namespace MM.S4
{
internal class MM4_MassTransfer : BaseMethod
{
[ReflectedUICoefs]
public double
k_ = 1.65,
D = 0.08,
... | 7f92a2389b7620ff68a3279e8064718e2de78aa9 | [
"C#"
] | 20 | C# | MaxRev-Dev/math-modelling | 3e0c50a5196c64fd80db7e95455d28f8e36c9984 | daa8091c917723b9be14604593e26c2bf87acf6b |
refs/heads/master | <file_sep>include Java
Camping.goes :Campdepict
module Campdepict::Controllers
class Index < R '/'
def get
if input.smiles then
@smiles = input.smiles
else
@smiles = ''
end
@escapedSmiles = CGI::escape(@smiles)
render :smiles_picture
end
end
class Image_for < R '/image... | 00c725b9656b5a8e58072ce1bdfb9cdf2aaa4432 | [
"Ruby",
"Shell"
] | 4 | Ruby | jj4395722/camping | ac61588b78b4eae79353506d0dd31cc727f5bafb | 1f7709e92fd1c8e49e8059a17806515cb611694a |
refs/heads/master | <repo_name>madetech/frontend<file_sep>/src/components/Pagination/index.test.js
import React from 'react'
import Pagination from '.'
import { mount } from 'enzyme'
it('renders single page link if only one page', () => {
const pagination = mount(
<Pagination currentPage={1} hrefPrefix='/blog' totalPages={1} />
)... | 55cea62b554d6a3e100b9a1b0ae347e81d40897f | [
"JavaScript",
"Makefile",
"Markdown"
] | 25 | JavaScript | madetech/frontend | 602ee4c66a9040b0f282b4b9a0ede9e5e7624e56 | 1e2cec8e205a775f9ef26ebf56b437a97fcbfa4c |
refs/heads/master | <repo_name>sinivuori/redux-music-search-prototype<file_sep>/src/actions/action_fetch_music.js
import axios from 'axios';
const BASE_URL = 'https://itunes.apple.com/search?media=music&limit=25';
export const FETCH_MUSIC = 'FETCH_MUSIC';
export function fetchMusic(term) {
const musicSearchUrl = `${BASE_URL}&term=${t... | c56113fcd3c872d7404007bdc6672d078cdfaf04 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | sinivuori/redux-music-search-prototype | e1bc6f118efc866b3ece2905acfcfd00db4f3dca | 673c6385ed4e141ca0d81080cca571fd570f9549 |
refs/heads/master | <repo_name>alejandrayllon/KaggleGalaxy<file_sep>/Class4Image.R
#install packages for assignment
install.packages("ripa")
library(ripa)
install.packages("jpeg")
library(jpeg)
source("http://bioconductor.org/biocLite.R")
biocLite("EBImage")
library(EBImage)
#create a matrix with the files and source names
image_names ... | 81f078700dcdb08f189818ce69d078da25814a9f | [
"R"
] | 1 | R | alejandrayllon/KaggleGalaxy | 1562a1e876e5e8cc8bad75f563bc4fd94bea41e8 | 1e1e5d4b5aef3e6358a8f48860c947de6faa95f3 |
refs/heads/master | <file_sep>var cssthief = { // Namespace
el: null,
style: {
outline: null,
"-webkit-box-shadow": null,
zIndex: null
},
click: function(e){
var el = e.target;
// TODO: Fetch HTML and CSS
// TODO: Strip comments and other useless tags
// TODO: Strip attributes, such as classnames, ids, etc..
// TODO: G... | 010453e8d42c8f939508c98f4ef248babb220137 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | collectivecognition/cssthief | c1947e46ebec6a7b7dac8b90fd428ce7430f0492 | a91bf36d6eee619c98d6046a6a8ea66377db040e |
refs/heads/master | <repo_name>nesho84/necom.at<file_sep>/library/dbconnect.php
<?php
// database connection config
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$dbname = 'd0198000';
global $con;
/*
connecting to mysql database
*/
$con = mysqli_connect($dbhost,$dbuser,$dbpass);
if(!$con)
{
die("Connection to database ... | 0dc1f18a6fccdf497e359947da05d107af2c35c2 | [
"Markdown",
"PHP"
] | 23 | PHP | nesho84/necom.at | d5d050a5e2edcab337498a51bc53a6bf22a29dcf | cccccc5f2e006c8ac26d952cd710254c32f5a037 |
refs/heads/master | <file_sep>import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { JhipsterCityModule } from './city/city.module';
import { JhipsterActivityModule } from './activity/activity.module';
/* jhipster-needle-add-entity-module-import - JHipster will add entity modules imports here */
@NgModule({
impor... | 109cc0334d4ac647b4c1ba9fab0c44f404665e17 | [
"Java",
"TypeScript"
] | 2 | TypeScript | chakibc18/jhipster | 4809a972ffb1c3587dca1639077c934cc746aa74 | 97766a32ba1b4bf566869be2cedcc9a40936904f |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using ... | 49d6f93c0c8717d1024a1d6f4667ef9cef4267bc | [
"Markdown",
"C#"
] | 19 | C# | wilsonmyeh/sql-rental-system | 471d9159d6ffe623cac944076d82e709c04a78f0 | 8a5ccb7ecaf0a03b8608a088ae3cb232959520cd |
refs/heads/main | <repo_name>JoshuaFMarais/CustomGUIBehavior<file_sep>/Custom GUI Assets/Custom GUI Tutorial/TestCanvasMono.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestCanvasMono : MonoBehaviour
{
public void PrintSomething() {
Debug.Log("From something else");
... | ccf4fd13b60d278a95a5a9be63692adc5c7c0014 | [
"C#"
] | 5 | C# | JoshuaFMarais/CustomGUIBehavior | 3d4401f5124f3dc6a0c0c2c7b7c1429797ee0fc7 | 4a8175b40d71163887f7ac89e6c4bd7a941635b9 |
refs/heads/master | <repo_name>swkyyme/cms-demo<file_sep>/src/controllers/student.js
const Student = require('../models/student');
const Course = require('../models/course');
async function addStudent(req, res) {
const { firstName, lastName, email } = req.body;
const student = new Student({
firstName,
lastName,
... | bb6243ced546f2d4b8095089a1e686a9ba8cbe35 | [
"JavaScript"
] | 1 | JavaScript | swkyyme/cms-demo | 90cf12052e62635858f6ab428d92e8fa12385fb9 | d7bf6c0136dded3265bb130a52a42e5eaee08d7b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.