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>package com.company;
public interface GenericInterface <T> {
T getDigit();
T getText();
void setDigit (T digit);
void setText (T text);
}
<file_sep>package com.company;
public class Main {
public static void main(String[] args) {
System.out.println("Integer:");
Gen... | 2e2bbb8b94e849eb3f997efeb484137c82ea9a15 | [
"Java"
] | 2 | Java | nurel77/Lesson2.6 | 9ad095fb7593578f474864b9c8d131cc3869e993 | 6b89920610fdf91436ff4be80b4e497cb94c73ec |
refs/heads/master | <repo_name>chldyddnjs/dL-project<file_sep>/tensorflow/Rnn/12-4.py
from __future__ import print_function
import tensorflow as tf
import numpy as np
from tensorflow.contrib import rnn
tf.set_random_seed(777)
sentence=("if you want to build a ship, don't drum up people together to "
"collect wood and d... | e0bad6b877e709832dc1802b7fc94f5e9e0c1604 | [
"Python"
] | 18 | Python | chldyddnjs/dL-project | 3f377004c96fef6392bdde7319bd796bd3da57ea | ada136733be26e26eb7974d78454b225c0d7412a |
refs/heads/master | <repo_name>SantiagoNoguera/Sincronizado<file_sep>/index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
... | 98bf344c1c8555b00d2881186e0995ce632d1141 | [
"PHP"
] | 1 | PHP | SantiagoNoguera/Sincronizado | 0531cd656c952b92861757569a0033d8e1371a24 | 5d9a64ef1b711180c63597608a5135da51200edd |
refs/heads/master | <repo_name>fallon7284/portfolio<file_sep>/src/projects.js
module.exports = [
{
name: 'Pixalive',
image: require('../src/images/pixalive.png'),
description:
'Pixalive is a free, multi-user, real-time editor' +
' for creating animated sprites and pixel art. It was buil... | c8afeaf936b20f3b139e7dcad5ba9e1930cea3e8 | [
"JavaScript"
] | 8 | JavaScript | fallon7284/portfolio | 7d2e684a9ebd614c4fc41f6b454be293afb68c2d | bf0e921f9903e7be95585cae2ef319e36f9fba04 |
refs/heads/master | <file_sep>class test {
constructor() {
this.#foo = 1
}
}<file_sep># ESLint Issue - JavaScript Private Member
This repo provides a repro for ESLint not recognizing private class member syntax.
| 25e5dd0410ad00d16f1d6bd2a79d3da2e9aede08 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | samusstrike/eslintIssueJSPrivateMember | e4e8fb2a5e1fd18fc0a4b5aaeaa1e3d4e600aaba | 2c10b8bf356ee284ed18b95c575a1e543145b41d |
refs/heads/main | <file_sep>This is my personal blog. Feel free to visit :)
<file_sep>const BLACKLISTED_KEY_CODES = [ 38 ];
const COMMANDS = {
help:
'Supported commands: <span class="code">about</span>, <span class="code">experience</span>, <span class="code">education</span>, <span class="code">articles</span>, <span class="code"... | 8a94fea46b705278a109ea4c062cfe10ac668f75 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | iamthefrogy/iamthefrogy.github.io | 7d6bfa9127e3b6957ab11bbc8e94a331b98b0cc8 | 4e08e70d22d2121d6f18eb0b5bea5260fb1a0053 |
refs/heads/master | <repo_name>nelomr/vue-trello<file_sep>/src/store/store.js
import Vue from 'vue';
import Vuex from 'vuex';
import createPersistedState from 'vuex-persistedstate';
import initialBoard from '../use/initial-board';
import actions from './actions';
import mutations from './mutations';
Vue.use(Vuex);
const board = initialBo... | 8ace7fc0cde83a2cee8d2845bc78d9e0c989fcf1 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | nelomr/vue-trello | a459116b9409188878ae5c68d1ac9fcdf9a61705 | 124539329e3a5b627e2f63b7f52733ddc68c8433 |
refs/heads/master | <file_sep><?php
$name = isset($_POST['name']) ? htmlspecialchars($_POST['name']) : '';
$url = isset($_POST['url']) ? htmlspecialchars($_POST['url']) : '';
echo '网站名: ' . $name;
echo "\n";
echo 'URL 地址: ' .$url;
echo ".<br>";
echo "今天是 " . date("Y-m-d") . "<br>";
$time=date("w",time( ));
$array = ["星期天周日,双色球开奖","星期一... | ac9a6bedf6d306c8e79c2d27fbc822a53a5f278e | [
"PHP"
] | 2 | PHP | mgit0028/haoni4094 | 3d8f8fef93c3ff10544360504d36fa58e5d7a302 | 0e04e7ed0685837c31f1eefb468aaf754c120a7d |
refs/heads/master | <file_sep>using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinFormDBProject
{
public partial class Form1 : Fo... | f3d86a0e9b0600aadba047d8f41e2db3fd40002a | [
"C#"
] | 1 | C# | gmlehd/WinFormDBProject | 1d4cbefae6f75407844e97e77662931e916d0be6 | 8f5ecdf8bf89438ad02cfd267834bf80e8f209ad |
refs/heads/master | <repo_name>airtype/httpmessagesrestmiddleware<file_sep>/src/Exceptions/RestException.php
<?php
namespace HttpMessagesRestMiddleware\Exceptions;
use HttpMessages\Exceptions\HttpMessagesException;
class RestException extends HttpMessagesException
{
}
<file_sep>/src/Transformers/ArrayTransformer.php
<?php
namespace H... | 9a2e69145905c8d579ca9549c40b3c803e0e7acc | [
"PHP"
] | 12 | PHP | airtype/httpmessagesrestmiddleware | 83f27e3ffe87cbe124c7d10d0d4cf182ccf62af3 | 0819a77b4b1ee00acab07e68c15dc2e1420f5c35 |
refs/heads/master | <repo_name>Zoomelectrico/Frontend_tesis<file_sep>/src/components/profile.js
import React from "react";
import { Link } from "react-router-dom";
class Profile extends React.Component {
render() {
return (
<div className="container has-text-centered">
<div className="columns">
<div classNam... | f4aea6b884f18853b3d530a3e513c60914a733bf | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | Zoomelectrico/Frontend_tesis | ea9315a0bb27fd8fdf61c8684c591a50d65a2f91 | 712b80909b726185043394c6f4b5f5bd3c724d9b |
refs/heads/master | <file_sep><?php
/**
* @var \App\View\AppView $this
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Ingredientes Receta'), ['action' => 'edit', $ingredientesReceta->id]) ?> </l... | 56da98a5040df7acd70192aa956a4e15240ddd71 | [
"Markdown",
"SQL",
"PHP"
] | 6 | PHP | Reflej0/Paginacion-Ajax-CakePHP3 | 3709398b94264cde4fcc340cbe10acfd0007abd3 | 14141d39e81e45f550400234032b5da58cf015ef |
refs/heads/master | <file_sep>package com.techcasita.android.hwy67.content;
import android.content.ContentValues;
import android.net.Uri;
import com.techcasita.android.hwy67.remote.Story;
/**
* The Contract, for putting a story into sql columns
*/
public class Contract {
public static final String CONTENT_AUTHORITY = "com.techcas... | 82dbb546ff6f2e7334ab4ca665e9032dcefba37e | [
"Java"
] | 10 | Java | wolfpaulus/Capstone-Project | 91e5256f370c45f7d276de5787c4b21b5b73e8b5 | 460e67adaaffc9b8a4803abb17e2550d4f92a039 |
refs/heads/master | <file_sep># LaTeX Makefile v0.33 -- LaTeX only
THESIS=main
CV=cv
OUTPUT=thesis_cv.pdf
SHELL=/bin/zsh
all: ## Compile paper
./latexrun $(THESIS).tex
./latexrun $(CV).tex
pdfunite $(THESIS).pdf $(CV).pdf $(OUTPUT)
clean: ## Clean output files
./latexrun --clean-all
<file_sep>import scipy.misc as scm
import skim... | f0b3363da3f5a8d9b551f98b6d4dcb882c7aa1ca | [
"Markdown",
"Python",
"Makefile"
] | 10 | Makefile | lejeunel/thesis | 168ba65a88ee614156ba563e9847022579f7accf | 7e6dcb3f8a64b0b7a0d901513c2a51942653934c |
refs/heads/master | <file_sep>package com.example.danie.inventoryapp;
import android.app.LoaderManager;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Loader;
import android.databas... | c953cdf3d644bdef5adaf560e37c4b89440e1b39 | [
"Java"
] | 2 | Java | dafer660/InventoryApp | f8c7adb599f77175e2e785684c8ad6bec37870ae | 008a59a3a44dc9e4fd5a8ca2241ea029f7166fae |
refs/heads/master | <file_sep>
var showingSourceCode = false;
var isInEditMode = true;
function enableEditMode() {
TextField.document.designMode = 'On';
}
function execCmd(command) {
TextField.document.execCommand(command, false, null);
}
function execCommandWithArg(command,arg) {
TextField.document.execCommand(command, false, arg);
}... | 09f281e571a7bffb19bf20ec1fd0ce2fcbd71583 | [
"JavaScript"
] | 1 | JavaScript | Amriesgrace/WYSIWYG | 11a11c4e838ea4fc224492af74c0ac37cffbf001 | 19b7c3058146b0797db230b3210933464016d92b |
refs/heads/main | <file_sep><?php
namespace App\Http\Controllers;
use App\Models\Blog;
use App\Models\Receta;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Intervention\Image\Facades\Image;
use Illuminate\Support\Facades\Storage;
class RecetaController extends Controller
{
... | 8a142c3e4a153b7af28aed7e5d1127da7a70f9f4 | [
"PHP"
] | 5 | PHP | Ruveloc02/MuseoDisrupcionMX | cee6b9b8f587dbfbb66f66bd12a2ebd7a8861b67 | a16e8c5e948360ea12ea66631a4ddb3da82f61e4 |
refs/heads/master | <file_sep>package cn.zucc.day02;
import java.util.Scanner;
public class Demo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
/*
double discount = 0;
Scanner sc=new Scanner(System.in);
System.out.println("请输入会员积分:");
int x = sc.nextInt();
if(x<200... | 0329f2c01b4a330451d19aed727ec503faa906f0 | [
"Java"
] | 6 | Java | SpriteNo/JavaSe2 | a7941ba27d76a75cdf4f4c0b680d92f3aa4199ce | c4a7c60096d8faf50386cfd878ef8c6fab840e48 |
refs/heads/master | <file_sep>
$(document).ready(function($) {
$(".nav li").mouseenter(function(event) {
$(this).find('dl').stop().slideDown();
});
$(".nav li").mouseleave(function(event) {
$(this).find('dl').stop().slideUp();
});
$('.nav-btn').click(function(event) {
$('.nv-sub').slideT... | e020519dc811e5c10153b18acc6866e8f6c3442e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | guoxiujuan/yinong | 1f47ef300659fc93b63f5e84da7f362419b323fd | 600c4c52bcac469cb0eba7288a0f02b894aee538 |
refs/heads/master | <repo_name>MatthewShinkfield/ContractorClient<file_sep>/ContractorClient/Models/Contractor.cs
using System;
using System.Collections.Generic;
namespace ContractorClient.Models
{
[Serializable]
public class Contractor: IQMDataObject
{
public string Name { get; set; }
public string Landline... | 723481a4d28340d2324a4cfd5bc31ad47c4361b3 | [
"C#"
] | 9 | C# | MatthewShinkfield/ContractorClient | 53a2946c1b6ecae8dc65a6495ce87fadda194f3a | ebf674f8cc15b5273b748a45801e18ca290cfb3f |
refs/heads/master | <repo_name>WebLanjut41-02/praktikum2-fitrianar<file_sep>/application/views/penghuni.php
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
... | ff91d141fb508faf36c575e08b7acd635a3e0cd8 | [
"PHP"
] | 2 | PHP | WebLanjut41-02/praktikum2-fitrianar | 2901a8d235c6c5691160255c33f1da70dd84abfe | 7c3e1ca6cd0dfdb6cfc387fe5b5172bb5b3141fb |
refs/heads/master | <file_sep>class PigLatinizer
attr_accessor :piglatinized_phrase
def piglatinize(str)
if single_word?(str)
if str.downcase.index(/[aeiou]/) == 0
str + "way"
else
vowel_index = str.index(/[aeiou]/)
front_end = str.slice!(0..vowel_index-1)
str + front_end +"ay"
en... | 1a226d85c5f1794d025b9b38113fa59a8f49950a | [
"Ruby"
] | 1 | Ruby | MattG-afk/sinatra-mvc-lab-onl01-seng-pt-030220 | e2cb62ff1956e19d833e726e64fafea7bf03bc99 | 6476c8ee45db770e7b333c23e7206d39f0dda07a |
refs/heads/main | <file_sep>package com.example.learningservice
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import android.util.Log
import kotlinx.coroutines.*
import java.util.Random
class ServiceClass : Service() {
private var job: Job? = null
private val binde... | 008edce91b2f023f9684b907d7f60940019fcf32 | [
"Kotlin"
] | 2 | Kotlin | kshitijskumar/Learning-service | 42ac8a63d25443f089f0e8175e21254278ac59f4 | e4c93dfc8c9d1abb1ff010fe3d65e5b8fc011df7 |
refs/heads/master | <repo_name>Arahir/ngrx-party<file_sep>/src/app/person-list.ts
import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy} from '@angular/core';
@Component({
selector: 'person-list',
template: `
<ul>
<li
*ngFor="#person of people"
[class.attending]="person.attendin... | bdbd4075c49f4223d44eb7c792e860b8a1b671eb | [
"TypeScript"
] | 9 | TypeScript | Arahir/ngrx-party | 84ac9b46a80263da95e67398067b28a235fdaf59 | ffe9a4552effbc185144592c35dc3b836a5eab5a |
refs/heads/master | <repo_name>vieee/react_chat_app<file_sep>/src/firebase.js
import firebase from "firebase/app";
import "firebase/auth";
import "firebase/database";
import "firebase/storage";
var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "react-slack-clone-e6b28.firebaseapp.com",
databaseURL: "https://react-slack-clone-e6b2... | 3ba609fe07e942ba98e3f2d6e7007e92aa71a5ab | [
"JavaScript"
] | 1 | JavaScript | vieee/react_chat_app | 1ac1f2c620d8801f1e66137495ccbe11dbf6e789 | aac3a94d5da7f4b0a114115028b348c1616d534b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using Utils.Extensions;
namespace Application.Sorts
{
public static class Bubble
{
public static IList<int> BubbleSort(this IList<int> array)
{
return array.BubbleSort((a, b) => a > b);
}
public static IList... | 2c287eb71ab2b38aab5caf98e98ac2b4c603feb3 | [
"C#"
] | 10 | C# | dreis0/analise-de-algoritmos | 3ce5e9f7c06a0d14481c61cf2e4b16c425fd1367 | f358c3757ffd2eb172a6adf5482fe78c01c393fd |
refs/heads/master | <file_sep>// AGR2280 2012 - 2015
// Created by Vonsnake
using UnityEngine;
using System.Collections;
/// <summary>
/// Stores and updates in-game settings.
/// </summary>
public class GameSettings : MonoBehaviour {
// GRAPHICS | Lighting
public bool pixelLightCount;
public bool useRealtimeReflections;
... | 779e8dd2e7a524f0bf5d7120ed36c83fc73d8b82 | [
"C#"
] | 20 | C# | bigsnake09/AGR2280 | 1b2ae1f12cfc5fda76ec68201e98f895547d3bf7 | a9ca09edf927684daaa2cbfc2f08f0a9b8a9d907 |
refs/heads/master | <file_sep><?php
if (array_key_exists('getTemperature', $_REQUEST)) {
getFile('/temperature/temperature.json');
return true;
}
else if (array_key_exists('getPrecipitation', $_REQUEST)){
getFile('/precipitation/precipitation.json');
return true;
}
require('index.html');
function getFile($path){
$pa... | 9ed5aeb82d47e9616b43101ba42d4d1b31843157 | [
"JavaScript",
"PHP"
] | 4 | PHP | iseekyouu/weather_graphic | 5d3d9014cb93a599a4a9f440af0d881a674257fe | 5e0e940854f5bfb2873bbdbcb869045c2472cc4f |
refs/heads/master | <repo_name>Vinicius-rodrigues/Kill_mustache<file_sep>/README.md
kill_mustache
===============================
version number: 0.0.1
author: <NAME>
Overview
--------
remove to mustache file
Installation / Usage
--------------------
To install use pip:
$ pip install kill_mustache
Or clone the repo:
$ git... | cf96223b01638144d80229085b1afe0a9d60c65e | [
"Markdown",
"Python"
] | 2 | Markdown | Vinicius-rodrigues/Kill_mustache | 09a84c8225ac240094078c1ed2ba3edb891908dc | 147d61562e219dc1d9e4999a8a59c30e38323fff |
refs/heads/master | <repo_name>vasil/notable<file_sep>/lib/notable/app.rb
require 'sinatra/base'
require 'haml'
class Notable::App < Sinatra::Default
configure do
DataMapper.setup(:default, ENV['DATABASE_URL'] || 'sqlite3:notes.db')
DataMapper.auto_upgrade! if !test? and DataMapper.respond_to?(:auto_upgrade!)
end
# helper... | b13fd7e220daf79ce47107db6563066f8b1e5640 | [
"Ruby"
] | 1 | Ruby | vasil/notable | d53e315cc5b4e9d6f6dc52eecc4b04eddf6ef0d0 | 135f1a0d5f5f565b221d9e26bced36eb88b32574 |
refs/heads/master | <file_sep>const tape = require('tape')
const UTF8 = require('./helpers/messages').UTF8
tape('strings can be utf-8', function (t) {
const ex = {
foo: 'ビッグデータ「人間の解釈が必要」「量の問題ではない」論と、もう一つのビッグデータ「人間の解釈が必要」「量の問題ではない」論と、もう一つの',
bar: 42
}
const b1 = UTF8.encode(ex)
t.same(UTF8.decode(b1), ex)
t.end()
})
<fi... | 3b91ef99e7d3819f1bab2698f0d304ee9e8dd9a9 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | mafintosh/protocol-buffers | f95f5c1bb892b655508eadb3a8e5cf8429bc5ae2 | ec559b810b777c1107993dc0cb2f26b92345adb3 |
refs/heads/master | <repo_name>Emam/XML-Databases-and-the-JDBC-Driver<file_sep>/src/Main.java
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Houssainy h = new Houssainy();
HoussainyMaster ho = new HoussainyMaster();
String s = new String();
ahoGalasaKe... | 411e13cd4fe0a81b362de2d84fac77ae89971b7e | [
"Java"
] | 1 | Java | Emam/XML-Databases-and-the-JDBC-Driver | 1ba36bf3541b12704e0822f9444080a3c4f473e5 | b05e07db891801bdfac31aee64ad2280fa11053d |
refs/heads/master | <repo_name>cocopelli/mi-salesforce-symfonybundle<file_sep>/src/SalesForceApiBundle/Api/sfclient.php
<?php
namespace Mi\SalesforceApiBundle\Api;
class sfclient
{
private $username;
private $password;
private $token;
private $path;
private $connection;
/**
* @var \SforceEnterpriseClient
... | e4568dc5ce78a111b7e472703a5c32c069275b3e | [
"Markdown",
"PHP"
] | 8 | PHP | cocopelli/mi-salesforce-symfonybundle | 71e5124c0c5f02ba73077698c965113de71ba2ff | e7600f5e61d63c36f5dc82516f05c77f90093a56 |
refs/heads/master | <repo_name>amorhe/juewei-new<file_sep>/pages/common/js/ajax.js
import { baseUrl } from './baseUrl';
export const ajax = (url, data = {}, method = "POST", newBaseUrl) => {
my.showLoading({
content: '加载中...'
});
let headers;
if (method == "POST") {
headers = { 'content-... | 09c5a4827ec4e46a040ea76e271e2e6f052f5e13 | [
"JavaScript",
"Markdown"
] | 43 | JavaScript | amorhe/juewei-new | 6702b06f4d72e3f07f6366915155fd3d9a58eb01 | 68301049abaaa7fc783ddea28678c9948603ecaf |
refs/heads/master | <file_sep>//
// ViewController.swift
// sound_Nov
//
// Created by 野崎絵未里 on 2019/11/13.
// Copyright © 2019 <EMAIL>. All rights reserved.
//
import UIKit
import AVFoundation
class ViewController: UIViewController {
var audioplayer: AVAudioPlayer!
@IBOutlet weak var button: UIButton!
overrid... | 757eadeebdde59ac0769a885e8105fbe2c7bd595 | [
"Swift"
] | 1 | Swift | appleEmily/sound_Nov | eee662acb07aacd66128ebcb4211a0b1af923c9d | b713935576ff9ac646bdfca724712ad59efc2f41 |
refs/heads/master | <file_sep><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP基礎</title>
</head>
<body>
<?PHP
//ステップ1.db接続
//DB情報
$dsn = 'mysql:dbname=phpkiso;host=localhost';
... | f1ef119072e89372dba28f8f4da15d1de0ead2a0 | [
"PHP"
] | 2 | PHP | k-nish/survey | 2f6eebbf210c80cccce2a975ba505a535cf3599b | d3be60af4e8d2e6d93f9f90dea740a8765fe4531 |
refs/heads/master | <file_sep>from loss import getLoss
import numpy as np
class Model:
def __init__(self):
self.layers = []
self.weights = []
self.final = None
def addLayer(self, layer):
self.layers.append(layer)
# print("Added layer " + layer.type)
# print("Layer shape " + str(la... | 981291884c62c706850981bd555d5b1f27ec056f | [
"Markdown",
"Python"
] | 11 | Python | asalik13/Genie | e3243fc818bdaece19e453fa456a40566c641f23 | 70548350a55cc5f055d3228f7266cb0f14ef8af6 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include "mylib.h"
#define SIZE 4
enum{
RIGHT, LEFT, UP, DOWN
};
int a[SIZE][SIZE]={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}};
void slide( int );
int main( void )
{
int i=0,j=0;
char c;
int s=1;
srand( time ( NULL )... | 1c7c9e3628695d5e1afbb91d3075454989e25043 | [
"Markdown",
"C"
] | 2 | C | overengineer/2048 | bd9b547187a4d514f6c95ec7bd1cc209db2a277e | 5b5b70356742b7530b389167f10aeab35c9c6045 |
refs/heads/master | <file_sep>/*
* comm.c
*
* Created on: Nov 17, 2015
* Author: anoop
*/
#include "comm.h" // Include Header for this C file
uint8_t commReadyForWrite = 0; // Flag: UART TX to the node is ready for the next
// data set.
uint8_t commRXData[7]; // Buffer: Holds data(commands) received from the pi
... | e1b086cc671fe541aa734b259576bd82c0de557a | [
"C#",
"C"
] | 12 | C | anoopknight/civil-xmc | d87b0869f4df0c7bb34e3d1c3afbab73b89f426e | 4ac2ded30ef453f132988d5f88d3d93be9acb75a |
refs/heads/master | <repo_name>fireteam99/bmbot<file_sep>/simple_agent.py
from pysc2.agents import base_agent
from pysc2.lib import actions
from pysc2.lib import features
import time
import sys
# Functions
_BUILD_BARRACKS = actions.FUNCTIONS.Build_Barracks_screen.id
_BUILD_SUPPLYDEPOT = actions.FUNCTIONS.Build_SupplyDepot_screen.id
_BUI... | 0eccc3ab0ae88620823b93de493ef5836232cd17 | [
"Python"
] | 1 | Python | fireteam99/bmbot | 41b550f363a348f5bd07ab7b4deea62dae4bde87 | 091353bd6726e1e8c1d7ee73ac7e1941d5d8d62b |
refs/heads/master | <file_sep>import numpy as np
import torch
import cv2
from sklearn.metrics import roc_auc_score
class AverageMeter(object):
def __init__(self):
self.initialized = False
self.val = None
self.avg = None
self.sum = None
self.count = None
def initialize(self, val, weight):
... | efaf03ee8cc93f27e544c9255d376a40b775cdd4 | [
"Markdown",
"Python",
"Text"
] | 13 | Python | lseventeen/FRNet-vessel-segmentation | 180d485a89af448050f520164fa74fd2a13a8dfa | 887debadaefda394f5da960d603f671f103db614 |
refs/heads/main | <file_sep>import React from 'react'
import { Link, Route, Switch } from 'react-router-dom';
import LoginForm from './LoginForm';
import RegisterForm from './RegisterForm';
export default function LoginRegister() {
return (
<div className="containerLogin">
<div className="loginBox">
... | 2733441fd54bf16ab039d9df893ce1172db38ac0 | [
"JavaScript"
] | 11 | JavaScript | nirav7707/internship_task_1_frontend | 7883a1266fc1f7337eb5e44d05b24b27c0c691fc | 313e147f3f5d440d4ff56745164f921c34167df8 |
refs/heads/master | <file_sep># Rales Engine
Building [Sales Engine](https://github.com/jbrr/sales_engine) in Rails and ActiveRecord, using as little pure Ruby as possible, and exposing API endpoints, though there are no actual views. Data is taken from [Sales Engine](https://github.com/turingschool/sales_engine/tree/master/data).
[Orig... | 4b641830ea6061afc0ef8a6d34e7030cda73b442 | [
"Markdown",
"Ruby"
] | 14 | Markdown | jbrr/rales-engine | c3d96a51a075ce562771c38c2dba7cce41e454d5 | ffedc2e7155d976a6ddf5a37390e52bcb64e64dc |
HEAD | <file_sep>root
useradd shota7180
passwd <PASSWORD>
passwd <PASSWORD>
cd .ssh
mkdir .ssh
cd .ssh
cat id_rsa.pub >> authorized_keys
cd
ls
ls
cat >> ~/.ssh/authorized_keys
logout
passwd root
vi /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
vi /etc/ssh/sshd_config
/etc/init.d/sshd restart
visudo
logout
logout
exit
vi /e... | f5dad0b49a10cd055ce2d6c605be3be45b356393 | [
"Ruby",
"Shell"
] | 10 | Shell | shota7180/null | 0814f0e3d2be67dc1c493f8a7f782e11d16aa63e | 10c566f801fdaded8bd123963e8d82549c393544 |
refs/heads/master | <file_sep>using PhotoManagerClient;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Client_PM
{
public partial class PhotoSlideshow : Form... | 17e8df972ed28abac9a6257674c4610ca60b98f4 | [
"C#"
] | 10 | C# | MisterBlackie/TP3 | 2000a3ea59db4ffadc98581d777820254a50300a | 9b89012a7cc86a42f5892ca554be835522f51ca0 |
refs/heads/master | <repo_name>mollyjohnson/bashMatrixOperationsShellScript<file_sep>/matrix
#!/bin/bash
# NOTE: my multiply function passed multiple runs with the grading script with
# plenty of time, and I have the screenshots if you need proof of this, but I'm
# still requesting that you put my results into a file just in case the time... | 46ec7a37038acf5a767e2d66386a49e20ab0fe5e | [
"Shell"
] | 1 | Shell | mollyjohnson/bashMatrixOperationsShellScript | a82f995989af0ad80f8b0a5c87fd434010cdf0d9 | 097fba986017f421a243f9bdc3743076b18ffa47 |
refs/heads/master | <file_sep># mustached-turducken
<file_sep>class User < ActiveRecord::Base
geocoded_by :address
after_validation :geocode
validates :address, presence: true
end
<file_sep>json.extract! @user, :id, :venue, :description, :address, :created_at, :updated_at
| 8712601dfd75c6e52aa45bf07006acb88c38daca | [
"Markdown",
"Ruby"
] | 3 | Markdown | andynguyen11/mustached-turducken | e1cc68b6fc49140f7f201b0ef0a543f5786e05cb | fc37e4276f74f1999c1fa7bb705fdfae8fff9db2 |
refs/heads/master | <repo_name>wladradchenko/example.weight.spectrum.wladradchenko.ru<file_sep>/spectrum.py
def read(path):
# Идея в том, чтобы перевести значения из двоичной системы в десятеричную
A = []
with open(path) as f:
for line in f:
A.append(line.rstrip())
n = len(A[0]) # Длина вектора [... | 442bd2b568c6c281b078137cbef64e76b5829473 | [
"Markdown",
"Python"
] | 2 | Python | wladradchenko/example.weight.spectrum.wladradchenko.ru | aae94b5fd74a5ffad62c4642ebb18d2aabc3fe6e | ba66a41f5843aeca0b2443a01f61b555cd3ec936 |
refs/heads/master | <repo_name>bowserf/android-cmake-sample<file_sep>/app/src/main/cpp/CMakeLists.txt
# Define the minimum version of CMake required to use this CMakeList.
# Some functions don't exist in previous version of CMake by exampe.
cmake_minimum_required(VERSION 3.4.1)
# Define a name for this project. It will be accessible with... | ff90dd94a2dbdcd5c56d1ab533ee3c8953fc9218 | [
"CMake",
"Markdown",
"Kotlin",
"C",
"C++",
"Shell"
] | 17 | CMake | bowserf/android-cmake-sample | 9af750b23ca9bd9ac510f5c6d32a4af9ec1f5567 | 0c4a987dbc61bc66b047431ec1c813f37c364f4d |
refs/heads/main | <file_sep>package fi.haagahelia.postulo.web;
import java.time.LocalDate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.Medi... | a2897613313e154de83fcf787730eaa0bdf81713 | [
"Markdown",
"Java"
] | 6 | Java | h4nu/postulo | 645dfd4b59f9aba2b0e31c81e6c4073a8bd6250d | 205026d219c8f63d400cea49a18d600a274accfc |
refs/heads/master | <repo_name>Shumaimnaeem/e-commerceApp<file_sep>/src/app/shared/services/cart.service.ts
import { Injectable } from '@angular/core';
import { HttpClient} from '@angular/common/http';
import { ICart } from '../interface/cart';
@Injectable({
providedIn: 'root'
})
export class CartService {
constructor(private http:... | 26ae4db89b4e28b9f8dcb641c24d0276733c0a3a | [
"TypeScript"
] | 24 | TypeScript | Shumaimnaeem/e-commerceApp | e5b56d24689e9b9137135026a792e02f812547c2 | 3127b0c6f3cd651f4a0aadcdbdbd115f0cb19b16 |
refs/heads/master | <repo_name>Dev01-5/Dev01-5<file_sep>/RemoteControl/src/newRemoteControl/Command/Radio/PowerRadioOffCommand.java
package newRemoteControl.Command.Radio;
import newRemoteControl.interfaces.Command;
public class PowerRadioOffCommand implements Command {
PowerRadio power;
public PowerRadioOffCommand(PowerRadio power)... | 4ca2e1acb081aedfc290d4cd076c8401e6a58f2d | [
"Markdown",
"Java"
] | 13 | Java | Dev01-5/Dev01-5 | 1c24e5ab2304178fbc7e46459adf56f0f3f0916b | a8c8c92c19232be705a49a192aada92ec42f7523 |
refs/heads/main | <repo_name>islimakkaya/NumberGuessingGame<file_sep>/README.md
# NumberGuessingGame
🔢003-NumberGuessingGame: It is a number guessing game: every time when starting this app, there will be a random number without the user’s knowledge in the background (private) and 100 trials. In this project, it is aimed to control th... | 5b9a3834eeb8b659af5413f47ededb6f43d89966 | [
"Markdown",
"Kotlin"
] | 2 | Markdown | islimakkaya/NumberGuessingGame | b911d2f64c269a9cf61ec77c45f9d08197e58e7e | d3694518ec81f54301c01e4368f0be33bc95be74 |
refs/heads/master | <file_sep># React-Native-Hesap-Makinesi
This is my first react-native app!
CALCULATOR
Please check codes and comment my mistakes :)
<file_sep>rootProject.name = 'uyg3'
include ':app'
<file_sep>import {StyleSheet} from 'react-native';
export default styles = StyleSheet.create({
container: {
flex: 1,
bac... | 1b39d56517046910ebd16d7be6514815e7e17f15 | [
"Markdown",
"JavaScript",
"Gradle"
] | 3 | Markdown | omerdurmaz2/React-Native-Calculator | 95b74ada8e08b5139e2b4963488512dc90aeaf8c | f99b2a56ff65bedfa9ff2aefa453f8c2879bb731 |
refs/heads/main | <file_sep>from csv import reader, writer, QUOTE_ALL
skips = ['===>', '____', 'F3=E', 'UPDA', ]
cnt = 0
refs = {}
csvfile = open('data_parsed.csv', 'w', newline='')
writer = writer(csvfile, quoting=QUOTE_ALL)
writer.writerow(['no', 'code', 'description', 'function', 'authorization'])
with open('data.csv', 'r') as re... | 8c59c4f640bf814e383eff15bc03f7515aef1e98 | [
"Python"
] | 1 | Python | justinzh/HPTrial | fa7bfdc83515489a8bde3c90cbee45e52fc2b092 | 0e7a9ec7207570a4d7bb41a1d0350a2a5e7ad70f |
refs/heads/master | <repo_name>lightsuner/education<file_sep>/IIT/Course 2/TI/lab_1/TI lab1/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace TI_lab1
{
... | ea63f21a723b20a56122d4de5bb793abc872d345 | [
"JavaScript",
"C#",
"PHP",
"C",
"C++"
] | 40 | C# | lightsuner/education | edb309c0436340c2a8cc4c64be7d6d0d3deccc21 | 6becbdfa465c22c2709732d9744e2f622cd4677e |
refs/heads/master | <file_sep>const obj = new Proxy({}, {
get: function (target, propKey, receiver) {
console.log(`getting ${propKey}!`);
return Reflect.get(target, propKey, receiver);
},
set: function (target, propKey, value, receiver) {
console.log(`setting ${propKey}!`);
return Reflect.set(target, propKey, value, ... | 884c8c96d2ee559e347a1b6103d951d89097001e | [
"JavaScript"
] | 1 | JavaScript | baiziyu-fe/ES6-guide | a17f623c63a9820ab587478400af45a323d36e1a | 667a4010d8c08540e228e908d4911bca4a01f6f0 |
refs/heads/master | <repo_name>abrahamdio/expressgulpstarter<file_sep>/src/js/services/auth.service.js
export default class Auth {
constructor(AppConstants, $http, $window) {
'ngInject';
this.isLoggedInBool = false;
this._AppConstants = AppConstants;
this._$http = $http;
this._$window = $window;
this.mo... | 0117bd1b50910232bcaf007636655ec66ae997a5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | abrahamdio/expressgulpstarter | 331b74bd25a46f6666deaab7b4592f36b40fb8d5 | cef7ebbcce0c6116435e7b5c765ee2fce88af99d |
refs/heads/master | <file_sep>package com.example.demo.exception;
public class TrainerNotExistedException extends RuntimeException{
public TrainerNotExistedException(String message) {
super(message);
}
}
<file_sep>package com.example.demo.exception;
import org.springframework.http.HttpStatus;
import org.springframework.h... | 789bdd949c9588026769942aa7b5a26c247f7fa6 | [
"Java"
] | 5 | Java | cleoxiii/B-final-quiz | 13c92f734fc16fd42efd16be2d38ea28e63a43e7 | e0c79d88f30ffa8647c263e1835c9076fb164bd1 |
refs/heads/master | <repo_name>mrexitium/Exam-project-2016<file_sep>/page-kontakt.php
<?php get_header(); ?>
<div class="content"> <!-- Div for everything between header and footer -->
<div class="headline">
<div class="color-box"></div>
<h1>Kontakt</h1>
</div>
<div class="loop-wrapper">
<!-- Sample of The Loop t... | 3e8d719d618dfb4a0274817d5f8594c136defa13 | [
"Markdown",
"JavaScript",
"PHP"
] | 11 | PHP | mrexitium/Exam-project-2016 | 1b63cd22f5d1bd8af43ee4ec9789448c21a50c20 | fea8352a25de9b23fbb0f7bac7cf85e6be01e024 |
refs/heads/master | <file_sep># Lab2_DSA_2020
Main File in SRC
<file_sep>package FRAMEWORK;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
public class MainApp {
public static void main (String[] args) {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
... | adda2e2c304bf2d6074d83e6ed6c0aad91f9be72 | [
"Markdown",
"Java"
] | 3 | Markdown | marionguyen20/Lab2_DSA_2020 | 9c1eb78352751fe1e8bda41642aeed48c5e25959 | 7e58c171da2f4a437a7624549b27a56aebbf1e0a |
refs/heads/master | <file_sep>'use strict';
/**
* @ngInject
*/
function OnConfig($stateProvider, $locationProvider, $urlRouterProvider) {
$locationProvider.html5Mode(true);
$stateProvider
.state('seasons', {
url: '/',
controller: 'SoccerSeasonsCtrl as vm',
templateUrl: 'soccerseasons.html',
t... | d04c03797aa856e5a5a0829a21d2f6a7db119dc1 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | rtorino/troll-football | 0023d319cafdf6ba12ade6046ddbf4212b680f84 | bd794b6e09cfce7afc265e6c4f67580de1082f10 |
refs/heads/master | <file_sep>package sgo
// switch nanoSecond to milliSecond
func MilliSecond(nanoSecond int) (milliSecond int) {
milliSecond = nanoSecond / 1e6
return
}
| bd161322a4f8ed696b4a43ae5fe21fd0cec5514b | [
"Go"
] | 1 | Go | sovcer/sgo | a3e203bf8f6f57e464f7800a408d230c755587e0 | 51baba9591a640813524b3d6b6feffcbe87fa8ed |
refs/heads/master | <file_sep>let start = 1900;
let end = 2016;
for (let y = start; y <= end; y++) {
if (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)) {
console.log(y)
}
}<file_sep>let users = [
{name: 'Вася', password: '<PASSWORD>', login: 'Vasya'},
{name: 'Петя', password: '<PASSWORD>', login: 'Petya'},
... | b5006e60de941dda7d1f3dfc21a60e5ee4eebbd4 | [
"JavaScript"
] | 8 | JavaScript | Spektra135/Sb | 3a3c7d7072377728a61410e35176796820629e95 | 8ea2c1a5c1370b6689a6ed826e52dedb8db2f11a |
refs/heads/master | <repo_name>DimitrisGr/core<file_sep>/org.jcryptool.crypto.flexiprovider.operations/src/org/jcryptool/crypto/flexiprovider/operations/ui/actions/context/messages_de.properties
RemoveAction_0=L\u00f6schen
RemoveAction_1=L\u00f6schen
RemoveAction_2=Operation l\u00f6schen
RemoveAction_3=Wollen Sie diese Operation wirkli... | 0585955c4248b4632c80211095b2f6100b108783 | [
"Java",
"Maven POM",
"INI"
] | 37 | INI | DimitrisGr/core | ff4327eb4ba1ef88eda5648e1a1ee3b3a8fa4376 | 9543ff544e877d4d5f94c8c2fb4580bdee2035f7 |
refs/heads/master | <file_sep>import React, { Component } from "react";
class NuevaCita extends Component {
state = {
cita : {
mascota:'',
propietario:'',
fecha:'',
hora:'',
sintomas:''
}
};
handleChange = e =>{
// Colocar lo que el usuario escribe en el state
this.... | 4c7c3f3997701f3445aed4690c87528e518a6e59 | [
"JavaScript"
] | 1 | JavaScript | victormrch/-VeterinaryPatientAdministrator | bfe8de3913663d7e09da89a739699a5d1484d99e | 18b65886a0568a9aa1e8dbe3bbc8fc47dcc30712 |
refs/heads/master | <file_sep>
# coding: utf-8
# In[39]:
#import dependencies
from bs4 import BeautifulSoup as bs
from splinter import Browser
import os
import pandas as pd
import time
import requests
# In[40]:
# https://splinter.readthedocs.io/en/latest/drivers/chrome.html
get_ipython().system('which chromedriver')
# In[41]:
e... | 1187ecec4dae3ba389c3accf93fcaf0ef6e14620 | [
"Python"
] | 2 | Python | dcohriner/Mission-to-Mars-Web-Scraping-Project | 9a6e09b4515f0b901f065ab79babf5ed3834f135 | 5e0d2132be72dd556bcecbbbc76719f56e66f276 |
refs/heads/main | <file_sep>package com.willroth.mypackagelibrary
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.widget.doAfterTextChanged
import com.willroth.mypackagelibrary.databinding.MyComponentLayoutBi... | 0b02f2fc0be638baa2ea9a451f069d2b745d11b8 | [
"Kotlin",
"Gradle"
] | 3 | Kotlin | Guille88C/my-test-android-package | 21a910b2f378b163667d8b9a90fb5dfa381c89e8 | 5269a49b4a295c6b431141a7f560a223a3a6a59e |
refs/heads/main | <repo_name>GraemeMalcolm/AI-102<file_sep>/README.md
This repo is now retired, and may be out of date.
You'll find the latest version of these exercises at https://github.com/microsoftlearning/ai-102-aiengineer
<file_sep>/instructions/20-form-recognizer.md
# Build custom models with the Form Recognizer service
**Form ... | ed56fe0cc940a398f80ebf77163269f3844894a9 | [
"Markdown",
"C#",
"Python"
] | 8 | Markdown | GraemeMalcolm/AI-102 | f5d2d5601df761bb93560e4549d345c62fb79e17 | 629c560b8919fbbebeea7b8917240a524e5760e2 |
refs/heads/master | <repo_name>HyunSu-Jin/Graph<file_sep>/README.md
# Graph
###implemented by AjacentList
##BFS
<file_sep>/main.cpp
#include <iostream>
#include "graph.h"
int main() {
int vertices[] = { 0,1,2,3,4};
Edge edges[] = { Edge(0,1),Edge(0,2),Edge(1,2),Edge(2,3),Edge(1,3),Edge(1,4) };
Graph graph = Graph(vertices,sizeof(vert... | 7c2030a7bb14be02c461e4c5e7c44dfb3758045b | [
"Markdown",
"C++"
] | 3 | Markdown | HyunSu-Jin/Graph | c0721843654dcaa0875f3cb10d8eaf66a06265ce | 61dd88caaf0855b84d5c52492a6c81acc7b761fa |
refs/heads/master | <repo_name>alexis900/MobileDataBase<file_sep>/add_brand.php
<!DOCTYPE html>
<html>
<head>
<?php include './include/header.php'; ?>
<title>Add Brand</title>
</head>
<body>
<?php include './include/nav.php'; ?>
<main>
<div>
<?php
include './include/database.php';
if (isset($_FILES) & !empt... | 64877b04d9961f289344614c7cda531049331bb1 | [
"PHP"
] | 4 | PHP | alexis900/MobileDataBase | 7939c7461c900f72fad29ec61c8a192c93c2ef06 | 4369e973ed1ad182b8ccbfb465753463f7c26dce |
refs/heads/main | <file_sep>#!/usr/bin/env python3
import os
# the custom command to be executed with every URL, the URL is substituted inside the {}
command = r'.\youtube-dl.exe -f best -ciw -o "%(uploader)s/%(title)s.%(ext)s" -v {}'
# channels list file
channels_file = 'channels.txt' # file in the same folder
# Program entry point... | aad462c594d9d7fc901abe6bc8fb3ffc8d7633c7 | [
"Markdown",
"Python"
] | 2 | Python | baxtmann/YTDLChannelArchive | f548578ac9472201499aadd361105155c888ae75 | 18fcf4c7addecec613ffbbbbb82c3202b4cba5c8 |
refs/heads/master | <file_sep>def bubble_sort(our_list):
# We go through the list as many times as there are elements
for i in range(len(our_list)):
# We want the last pair of adjacent elements to be (n-2, n-1)
for j in range(len(our_list) - 1):
if our_list[j] > our_list[j+1]:
# Swap
... | e4b140a9fa0219f31b9ee15de5273d2b601ba03a | [
"Python"
] | 7 | Python | N1ki4/python-random-tasks | b9d653e494b42b05b7e17c6d717d5f8149f1c330 | c76f976afedaa3aad35306a6ab1ee2f1eb77a696 |
refs/heads/main | <repo_name>SealSiil/SmiteScrapper<file_sep>/scrapper.py
from bs4 import BeautifulSoup
import requests
import re
import pandas as pd
def process(match, match_num, playersdict):
''' The function extracts information from the given match by connecting to Smite.guru. Takes three inputs: match an interger that repers... | 0c1d4e46b1121f1171ba91c771ace79018175fe0 | [
"Python"
] | 1 | Python | SealSiil/SmiteScrapper | 62bd7711e1d3004fce0084587b589d76d8504da0 | 87b7c58c0f298f589bd9047353556e4387d4403c |
refs/heads/master | <file_sep># run.py example
import sys
import time
from datetime import datetime
while True:
print(datetime.utcnow().isoformat())
sys.stdout.flush()
time.sleep(1)<file_sep># docker-templates
Dockerfile templates for all kind of purposes
<file_sep>#!/bin/bash
echo "******** Python environment information *... | 78b0805dc3ccbd2ca5d1ae4da2688e931da0b3c0 | [
"Markdown",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 6 | Python | pcamelo/docker-templates | 07efb85e6a4e5aba2a255f13125b43b29394a62b | 64303ac2f62726db76d8dab5edaf7e3757b88610 |
refs/heads/master | <file_sep>const int ECHO_PIN_1 = D1; // ECHO PIN WORKING ONLY WITH THIS PINS: D1,D2,D8
const int ECHO_PIN_2 = D2; // ECHO PIN WORKING ONLY WITH THIS PINS: D1,D2,D8
const int TRIG_PIN_1 = D3;
const int TRIG_PIN_2 = D4;
const int ReleMaxDistance = 60; // in cm
const int RelePin = D5;
int LastDistance1 = 0;
int LastDi... | 868fad4b2378ea2f9ae72665ad62d8184d0f2e12 | [
"C++"
] | 1 | C++ | Leen15/NODEMCU_2x_SR04_with_distance_regulator | 699821d36df9c462ac08bb72826844739a8ea120 | d9f350b6d33b04c14c729a5687f808c6306802b7 |
refs/heads/master | <file_sep>package transport
import (
"github.com/sirupsen/logrus"
"github.com/linuxkit/virtsock/pkg/vsock"
"github.com/pkg/errors"
)
const (
vmaddrCidHost = 2
vmaddrCidAny = 0xffffffff
)
// VsockTransport is an implementation of Transport which uses vsock
// sockets.
type VsockTransport struct{}
var _ Transpo... | bbf535df3f3d098062ab040e3e7e919aff9125c1 | [
"Markdown",
"Go"
] | 2 | Go | lilyfang/opengcs | 203a54283e0b0d58c1bc9d8d0f0b4bea8503fe37 | 004b6b0788432aa5436858b1a3b41f9dae7aeb3e |
refs/heads/master | <file_sep># Node.js Tutorial
In this part of the tutorial, we focus on package management and using Express to develop a backend server exposing a REST API.
## Package mangement with npm
NPM is a very powerful tool that can help you manage project dependencies and in general automate development workflows, much like ... | 390151281f204cfb19d2bd44ce8d75e6194ccd7c | [
"Markdown",
"JavaScript"
] | 10 | Markdown | marcorobol/2018-Trento-SEII-INFORG | 106bd04c04dcccd27df3c33e689574030386f92f | 62963a4e6c51eef0d8dcec303229a094c91b5428 |
refs/heads/master | <file_sep># install homebrew formulae
./install-brew.sh
# install zsh
./install-zsh.sh
# symlink rc files from ./rc/ to ~/
./install-rc.sh
<file_sep># dotfiles
My configurations
## Before use
The setup script depends on some tools:
First, install [Homebrew](http://brew.sh/).
Then install tools required:
$ ... | cb398f284030ecef1f049507d7c155249aeae414 | [
"Markdown",
"Shell"
] | 4 | Shell | optionalg/dotfiles-72 | 07dbdd6c25b355a3f6e47b59fe0e7f28ca049d74 | cc93a3401f2b7c3fb4b2da342258fb862f019024 |
refs/heads/master | <repo_name>arvinmoj/UploadFiles_MVC_ASP.NET<file_sep>/Models/Image.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Http;
namespace My_Application.Models
{
public class Image
{
public Image() : base()
{
... | 7305917e2292ff3cd738a677f702c9a22d5cf7e7 | [
"C#"
] | 5 | C# | arvinmoj/UploadFiles_MVC_ASP.NET | 44ee311cc4ecd3ae9317c62334b4488d0dd6e8a7 | 00d8a1b89e0a1e4de49bdc798df957b514e1df16 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using Backend.Models;
namespace Backend.Repositories
{ public class UserRepository
{
public static IList<User> Users = new List<User>
{
new User
{
Username = "Lucas",
... | 68498dbaa6d1ea8312f4a7a3da5c1b363948ca7c | [
"Markdown",
"C#"
] | 7 | C# | gobila/boletados | ea40cdaf5f5e051589b07a265d856103f0fbdea4 | ef31a3a4efada55afe04f8c7f4ea86555705e85d |
refs/heads/main | <repo_name>8328344106/spring-mvc<file_sep>/Question5/src/test/java/org/websparrow/controller/CreateControllerTest.java
package org.websparrow.controller;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.springframew... | 725f0da22714e270e9429e5593754168befd4eed | [
"Java"
] | 7 | Java | 8328344106/spring-mvc | 8928b70b842d457af74473e8a9e2b2fabab214be | 620c593e9e027f766bbe546309f9299c19583221 |
refs/heads/master | <repo_name>comoyi/hall-client-react<file_sep>/src/App.js
import React from 'react';
import './index.css';
import Chat from './components/chat/Chat'
import Simulator from './components/simulator/Simulator'
import Nav from './components/nav/Nav'
import { Switch, Route } from 'react-router-dom'
import Home from './compone... | 9036a64c9c492a61da290d15a29b1b095bdbd31c | [
"JavaScript"
] | 3 | JavaScript | comoyi/hall-client-react | 32af6ea350867e11caf3870b5fb7bfddcaca9b7b | b433561806aa3bafd0178482fb77c2fcc8f3084d |
refs/heads/main | <file_sep>from PEtools import gen_primes
from collections import defaultdict
from itertools import islice
prime_concat = defaultdict(list)
arr = list(islice(gen_primes(), 1, 1000))
for i, prime in enumerate(arr):
print(prime)
for conc in arr[i+1:]:
string1 = str(prime) + str(conc)
string2 = st... | 66a3362637b864eb3954c01902a2e4f37cd02e21 | [
"Python"
] | 80 | Python | DlabrecquePE/PE-work | 6509419c0f3de9f7875e257b149cae6f27565108 | 127e0af1ff2b0bb6dedc15ecc25dcbc7d6c8eb09 |
refs/heads/master | <repo_name>SaschaLK/VGDA_Mini<file_sep>/VGDA_Mini/Assets/Scripts/MobJump.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MobJump : MonoBehaviour {
// Use this for initialization
public MobBehavior thisMob;
private Transform targetPos ;
public float jumpS... | 08346ce4b6a4498e6b1fbb416c1894e54265b236 | [
"C#"
] | 9 | C# | SaschaLK/VGDA_Mini | 8e109629ec476d4600adb2bb9c60132a832fe44c | 1106eff78ced1f1b7413a31ab671749382a9a736 |
refs/heads/master | <file_sep>
const fs = require('fs');
const path = require('path');
const {copyFilesToFolder} = require('./utils');
const fileDir = '/Users/lyk/Desktop/stock_data';
const sourceDir = path.join(fileDir, 'processed');
const targetDir = path.join(fileDir, 'filterd');
// 筛除ST、科创、创业版
const filterByFilename = fileName => {
... | f3332f5117ba80a5476244d65a508400db5221c7 | [
"JavaScript"
] | 7 | JavaScript | ykli109/stock-tools | b021641115d5649bf1fb806cc65eff639b470ce8 | 6cb4d60ef12be8dd8bfc08cd67f13fcdf472ed03 |
refs/heads/master | <repo_name>aarontiger/maven_aggregate_study<file_sep>/e3parent/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.x... | f248f8e8732616e19bfcad16e4aae7f81164a691 | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Maven POM | aarontiger/maven_aggregate_study | 64f8a80ad94d1659f913a57f99065eebd9a0d353 | 07617578d2a09696963cc130ec950e7fb87990b5 |
refs/heads/master | <file_sep>import React, { useState } from 'react';
// child components
import TodoItem from './components/TodoItem';
import TodoForm from './components/TodoForm';
// styles
import './app.css';
function TodoApp() {
// temp local state data (TODO: persist with localStorage, get via API, store in DB etc)
const init... | 538b5332961a5dc3fed28c49716217b3c8746ebf | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | wlorand/react-todo-hooks | 50173cc84c34dcac42a37383afec6da170aabacb | 9519d76a049398fb33ece3a0903e956ea086aa6d |
refs/heads/master | <file_sep>#!/bin/bash
#install nginx
yum install gcc-c++
yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
wget http://nginx.org/download/nginx-1.9.15.tar.gz
tar -xf nginx-1.9.15.tar.gz
cd nginx-1.9.15
./configure
make
make install
<file_sep>#export PATH=/etc/rc.d/init.d:$PATH
iptables -A INPUT ... | 12b284effb405237402c312f6ff75cb5103ea3f8 | [
"Shell"
] | 6 | Shell | tss0823/shell | 6306c88cf17f618e279d0218dffda20490048006 | 88321c8c184661baa781cb35c90e57051fadb18e |
refs/heads/master | <repo_name>monsterkodi/color-ls<file_sep>/js/test.js
// monsterkodi/kode 0.211.0
var _k_ = {in: function (a,l) {return (typeof l === 'string' && typeof a === 'string' && a.length ? '' : []).indexOf.call(l,a) >= 0}}
var cls, kstr, ls, out, slash
slash = require('kslash')
kstr = require('kstr')
ls = require('../')
cl... | 60a54131af3dc1ee924afeddb1ad46069c0d2132 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | monsterkodi/color-ls | fba3ced3a7d9366ec1970eb20e4c8a6f0af8e4bd | 4343b5c9534d90354ccb521dfa4a592390495448 |
refs/heads/master | <file_sep># TestingTask
Приложение отправляет список объектов из БД (генерируется автоматически) в integration поток.
Так как задача состояла только в отправке объектов (без ответа), использовался DirectChannel с активатором.
Сервис модифицирует каждый объект в отдельном потоке (метод, модифицирующий объект, возвраща... | d293bf93cbe9f938df1465bc681e03419eef2a0d | [
"Markdown",
"Java"
] | 5 | Markdown | SergeyRusakov/TestingTask | 191c5eb9ab4eae1454bda56fdf6c5ebe7a9be3a5 | 627eaa789422dab20fbe1a5c44f5769cca450ed4 |
refs/heads/main | <repo_name>zlibutmatthew/Sentiment-Analysis-RNN<file_sep>/Sentiment Analysis.py
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.1
# kernelspec:
# display_name: Python 3
# language: python
#... | d4812b8d7e364c7f56727c6293739164f262059c | [
"Markdown",
"Python"
] | 2 | Python | zlibutmatthew/Sentiment-Analysis-RNN | f3dc4192df13d52a66c123e8525965de70e56532 | b5c541f42139a979af6ee37e8d6dfc0a6a94837a |
refs/heads/master | <repo_name>EriN-B/PHP-Blog<file_sep>/blog.php
<?php
$user = 'root';
$password = '';
$pdo = new PDO('mysql:host=localhost;dbname=blog', $user, $password, [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
]);
?>
<?php
$thanks = false;
$formSent = fal... | d471cc31382c16252f3d0aa12f1b0b829032822b | [
"PHP"
] | 2 | PHP | EriN-B/PHP-Blog | c8d89f177c290a1b5ff697252abd44c91ae78599 | 28464ec713dd55022fc9e2a77c788af4b0d53cd6 |
refs/heads/master | <file_sep>import React from 'react'
import './App.css'
export default function People (props) {
return(
<div className='people-card'>
<img src={`https://robohash.org/${props.data.name}`} alt=""/>
<h2>Name:{props.data.name}, Gender:{props.data.gender}</h2>
<h2>"{props.data.catchphrase}"</h2>
... | ff220e706c1ee0d21d5d8ba90fcb551d82317406 | [
"JavaScript"
] | 3 | JavaScript | jnjagod/wlh12-node1-review | a382397ce5b29093661bd0ecd2569b0ae7120114 | 54eb0b25846e77d1124d0c00aa9336a2640cfed6 |
refs/heads/master | <file_sep>ajshfdhjg
asdgasv ugasdasf
asdyugrtgglvdf
sdfiusgdffsdf
| ece3a832df4b0f299c2f76db589bb696f5aaa33f | [
"Python"
] | 1 | Python | ducpv-1644/testappproject | 7141cef9337fc4bd730ea5f5c3e7a2b61e5f08ae | f0068ad07c0a07e6d29bcb344a04d8701e04bc94 |
refs/heads/master | <file_sep>package com.example.prathabodas.cupertinoconnect;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
/**
* Created by prathabodas on 4/8/17.
*/
public class MainActivity extends Activity {
protected void onCrea... | f39db1f1b2560221cb173cf08e73d5ad10929057 | [
"Java"
] | 1 | Java | nathan-149/CupertinoConnect | 1adaddffba6e603ee0aaa8a562c03ce22719bd4a | 25a23d679304c289dc35c0e7677fc8d075f06a2d |
refs/heads/master | <repo_name>pilotak/wisol<file_sep>/README.md
# Mbed Wisol library
[](https://os.mbed.com/)
Mbed library for Wisol WSSFM10 SigFox modem
## Example
```cpp
#include "mbed.h"
#include "Wisol.h"
Wisol wisol(PC_4, PC_5);
int main() {
if (... | 8c30c1ae46775172de734978de61879eeafe2b16 | [
"Markdown",
"C++"
] | 3 | Markdown | pilotak/wisol | 2bd4a2910328f4d17252d880252e229c064c73dc | 98ab6b5ef3a7709afb12200fed0858e58b1f79fc |
refs/heads/master | <file_sep>const program = require('commander');
const { prompt } = require('inquirer');
const { cluePrompt } = require('./prompts');
const {
crosswordHeavenSearch,
nexusSearch,
} = require('./search');
const SEARCH_WHITELIST = [
crosswordHeavenSearch,
nexusSearch,
];
const resolveSearches = (clue, pa... | edebcb8bc7ebf513f245d55603f2a758dd87246c | [
"JavaScript"
] | 2 | JavaScript | amdilley/cw-helper | d5fb9399fe7163019ebc33d67376a959c1e7225b | a9cfd70f09acaf446b02fc2b1f79a24f5b978f17 |
refs/heads/master | <repo_name>suzukiken/cdk-ec2-qmk<file_sep>/lib/cdk-ec2-qmk-secgrp-ec2-stack.ts
import * as cdk from '@aws-cdk/core';
import * as ec2 from '@aws-cdk/aws-ec2';
export class CdkEc2QmkSecgrpEc2Stack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
... | acb06a3b690804236f56fbaa09eafb740017609a | [
"Markdown",
"Python",
"C",
"TypeScript",
"Shell"
] | 15 | TypeScript | suzukiken/cdk-ec2-qmk | d2ac90ab1d66c490f0877da4fa20d33702bded4f | 1eee1c7e11488d42909c4702104df28b18fe4c63 |
refs/heads/master | <file_sep>angular.module('App.Models').factory('Order', [
'$resource',
function(
$resource
) {
return $resource(config.API_ROOT + '/api/v1/chip/order', {}, {
placeOrder: {
method: "post",
params: {
}
}
})
}
... | 44bb29a2dbb027a3774a31579be0125c7b8ef4e6 | [
"JavaScript"
] | 9 | JavaScript | aoxiaoqiang/game | 9c999db7130c95ac3aad3ba2cc54cec82424f2e7 | 1a0b5587e085a17116c48e61fd67f717f5e24ae4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.