branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>westernspion/k8s-python-test-app<file_sep>/pytest.py
#!flask/bin/python
from flask import Flask
import time
import socket
import json
import urllib
app = Flask(__name__)
@app.route('/listclusterpods')
def getPods():
#Iterate through all namespaces and collect pods from each
outString = 'Current Pods... | d2cf713541b5b5d482796a190f05f247f8c99b59 | [
"Markdown",
"Python",
"Dockerfile"
] | 3 | Python | westernspion/k8s-python-test-app | 404e9246ceed203eca9711f9bdadc32f0e9e11c0 | 4b24b7015c9280380526784bb161b1197a2a81bd |
refs/heads/master | <repo_name>anatomica/JavaCore2_maven_13<file_sep>/src/main/java/Lesson4/Homework/WriteToFile.java
package Lesson4.Homework;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class WriteToFile {
public WriteToFile(String letter1, String letter2, String letter3) throws InterruptedEx... | a5d4584536eda503f40ce926b454743d4520b944 | [
"Java"
] | 11 | Java | anatomica/JavaCore2_maven_13 | e9f46b045a9eaad6bb848a7beea188c1090c81cb | 29174eda4ab408c12247de2b19beae843be8549e |
refs/heads/master | <file_sep>#include <iostream>
#include <math.h>
using namespace std;
void calculateSpatialResolution();
<file_sep>#include <iostream>
#include <math.h>
using namespace std;
void calculateSensitivity();
<file_sep>#include "sensitivity.h"
void calculateSensitivity(){
cout << endl;
cout << " --------------... | 467dc5e0a174f8b221563f054e05c3e08cf8ea22 | [
"C++"
] | 7 | C++ | benlecrom/performance_characteristics | e9fb74e18ff5b4db53f8c2a184102e7300775297 | f3ef7a18ff7ad7603e4e4ba14868a6bb3d48cd28 |
refs/heads/master | <repo_name>vincentjigl/vtcTest<file_sep>/vtcTest.cpp
/*
* Copyright (C) Texas Instruments - http://www.ti.com/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | 65da504c61619d62d15cc6322e8ceb0f7240b7e3 | [
"Makefile",
"C++"
] | 6 | C++ | vincentjigl/vtcTest | a633e49d52592268b80450e8dc45a84047810f62 | 266c7e689211ce50f61ec0f2c901a8aa1e611b9b |
refs/heads/master | <file_sep>/*
* UsartDriver.h
*
* Created: 28.08.2015 15:43:45
* Author: ketilgs
*/
#ifndef USARTDRIVER_H_
#define USARTDRIVER_H_
#include "../MainInclude.h"
#define BAUD 19200UL
#define UBRR (F_CPU/(16UL*BAUD) - 1)
void USART_init();
void USART_transmit( unsigned char data );
unsigned char USART_receive(voi... | 46b4346f1be835531d5c1f3fe2d72471c14baddd | [
"C",
"Makefile",
"C++"
] | 55 | C | Ketilgrav/Byggern | 3271638b0f1d0a3d119dacb95fa07b03aff9c989 | 83bb7fbc6f479a47ac5d43a2fb10a59f1a7941dc |
refs/heads/master | <file_sep>//Queries
export const GET_ALL_USERS_QY = "allUsers";
//Mutations
<file_sep>import React from 'react';
import { Table } from 'antd';
// const columns = [
// {
// title: 'Name',
// dataIndex: 'name',
// filters: [
// {
// text: 'Joe',
// value: 'Joe',
// },
// ... | 6811dc20a734aa8b722ad97b149d2ab6d9d0df14 | [
"JavaScript"
] | 20 | JavaScript | hyderly/vaultment | 65209832fa6e8c47484c6c5f791392dad2fe43b8 | 7800872ee15a4d31da7fadfc6c69a4d51e8a9323 |
refs/heads/master | <file_sep>package com.zzq.my.jetpacks.common.net.exception
import android.net.ParseException
import com.google.gson.JsonParseException
import com.google.gson.stream.MalformedJsonException
import com.zzq.my.jetpacks.common.utils.StatusUtils
import org.json.JSONException
import retrofit2.HttpException
import java.net.Co... | 1d37500ca84206262a87ae1bb49ba6d603d606d2 | [
"Java",
"Kotlin",
"Gradle"
] | 45 | Kotlin | zhuangzeqin/MyJetpackDemo | 8a4d24d05079736cec9ef3df53a996a889fb5874 | 1a17f3b85f05201b2db6108e8ef44b777d96747d |
refs/heads/master | <repo_name>mgatrn/NewProject<file_sep>/Assets/ShibeStart/Scripts/PlayerScript.cs
/*
* PlayerScript:
* A script to handle the player movement and behavior.
*
* author: maxillar
* date: 05/02/2014
*/
using UnityEngine;
using System.Collections;
public class PlayerScript : MonoBehaviour {
//---------------... | 4a01a38e4bb755e601507e40e4d88b8c36f5a838 | [
"C#"
] | 1 | C# | mgatrn/NewProject | 6f3fbfc7c5cb58a2c122a91f4561e7d6a548b6fa | 9d2c96f326677c0241ba502e1a00c39cf8cfd5dd |
refs/heads/master | <file_sep>
## docker for intra-mart version Oracle
* intra-martの検証環境をDockerコンテナ上に作成し、環境構築にかかる時間を削減
### Dockerで作成するintra-martのシステム構成
#### Docker上の環境
|ホスト名|コンテナイメージ|目的|
|--------|------------------------------|-----------|
|ap|CentOS 7.5.1804(※1)(library/centos)|resin-proの実行及びwarデプロイ|
|db|Oracle Database 192.168.1... | 1979bfede773dc7d72a9f2fd31a01b3b3c93abcc | [
"Markdown",
"YAML",
"Shell"
] | 3 | Markdown | rinne-grid/docker-for-intra-mart-v-oracle12c-12.2.0.1.0 | a308deacab10af541380c02aa8a1856e1a81d7db | cd55bdcee6102a6cab857f402ff9c07b80e51e1d |
refs/heads/master | <file_sep>#!/bin/ash
CONFIG=$( jq -n \
--arg ck "$CONSUMER_KEY" \
--arg cs "$CONSUMER_SECRET" \
--arg at "$ACCESS_TOKEN" \
--arg ats "$ACCESS_TOKEN_SECRET" \
--arg fpr "$FOLLOW_PER_RUN" \
'{Consumer_Key: $ck, ... | 42e9aa61d423af608b90f3491b4b0750bdc77e72 | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Shell | someone-stole-my-name/TwitterPolite | b486374f896abbe811a38a5187ec5ed6519eb3d1 | 1fe28ffcf934518dd98d214e43a64121c94d1a45 |
refs/heads/master | <file_sep>self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "311e6a0b428760f6e69f990a69d62363",
"url": "/monsterRolodex/index.html"
},
{
"revision": "3429f79f28290dfca648",
"url": "/monsterRolodex/static/css/main.a9bf42bb.chunk.css"
},
{
"revision": "1bb5dd2a... | 0ca80ca9056c73d691a04f6128f795b86f9e7943 | [
"JavaScript"
] | 1 | JavaScript | mritunjay7497/monsterRolodex | 8df4f7aac710acfc80955d0c6f9db788672a0c19 | 3f5ffe91869ea282aa6e2bc5b8174c2804966c18 |
refs/heads/master | <file_sep>#include<stdio.h>
int main()
{
int i,j,array[10],n,temp,max,min;
printf("enter the size of the array:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("\nenter the no:");
scanf("%d",&array[i]);
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
if(array[i]<array[j])
{
temp=array[i];
ar... | d877187ae951be31cdd39fe02e3138504c355f2a | [
"C",
"C++"
] | 32 | C | Rajalakshmanan14/c | 5db2abc612d9d5bae5b6c7a85dfeebdd9c45073e | 56bfba13854a98bf910a119a79007c7ccda7fd0f |
refs/heads/main | <repo_name>ghost91-/foundry-factory<file_sep>/LICENSE.md
<!--
SPDX-FileCopyrightText: 2022 <NAME>
SPDX-License-Identifier: MIT
-->
This project uses [REUSE] to specify the used licenses. Currently, everything is
licensed under the [MIT] license. More information (including the copyright
holders) can be found in the i... | ce4a6340b98695ba75e00b89a2543cbc777afc69 | [
"JSON",
"Markdown",
"JavaScript",
"TypeScript",
"Shell"
] | 31 | Markdown | ghost91-/foundry-factory | 72d702d3e2a42e76fc7e700b2912ea619e639bb0 | b97916aee391eabbdbbe88b7f1e3739db6d43c9d |
refs/heads/master | <repo_name>prateeksaraf2010/decafcompiler<file_sep>/README.md
decafcompiler
=============
C compiler to parse C programs in decaf grammar
eg. ->
intmain()
{
return 0;
}
=> simple decaf c program
<file_sep>/decaf.c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#define S2 1
#define S3 2
#define S4 3
#d... | 0b5289b13ba22026650df99772cb446e259205b9 | [
"Markdown",
"C"
] | 2 | Markdown | prateeksaraf2010/decafcompiler | a07c64af720996cbdbb6f4afb7a8e8907db6ccef | 005d5e385aab10d69e2ce422d3af20df226aada7 |
refs/heads/master | <repo_name>k2250427/job4j_grabber<file_sep>/src/main/java/ru/job4j/utils/SqlRuDateTimeParser.java
package ru.job4j.utils;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import static java.u... | 3a5a5aa4b24365afd672c08223ac4c993059d32a | [
"Markdown",
"Java",
"SQL",
"INI"
] | 7 | Java | k2250427/job4j_grabber | 6c96b219300fa967e84e6f39c6a372a4a945afa0 | 8f7fa273af9b2a9abf883db4fe6f84b8c0f35166 |
refs/heads/main | <repo_name>joy-ss136/web-store<file_sep>/README.md
# web-store
Go to the master branch to view the project
| 70f072e9eda977a85204dda22c8e3f564173439e | [
"Markdown"
] | 1 | Markdown | joy-ss136/web-store | e793aa4ea7ca39c582ec0706d5ec2df84f104e45 | cfef03dcfb2a122e43ec9d451b57f4cc183930c1 |
refs/heads/master | <repo_name>dtsal3/sandbox<file_sep>/baseball-work/draft_value_war_analysis.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 12 19:39:56 2017
@author: dtsal
"""
import draft_value_war_pipeline as dvwp
new_big_table = dvwp.ingest_all(1999, 2)
print(new_big_table.groupby('OvPck').WAR.mean())
<f... | 028c1a772b5cfdd41ce50bd60927bd5baeeca4b1 | [
"Markdown",
"Python"
] | 4 | Python | dtsal3/sandbox | 5b238db0c36b6bab66fe67da2d16626ebbcac156 | 732229369d77b8ab456445772636b28930734b05 |
refs/heads/master | <repo_name>dmepilot/classes-and-instances-lab-ruby-online-web-sp-000<file_sep>/lib/dog.rb
class Dog
end
fido=Dog.new
snoopy=Dog.new
lassie=Dog.new | 3bd43bdeb2d9e074bafe1d4fdb3277735db060db | [
"Ruby"
] | 1 | Ruby | dmepilot/classes-and-instances-lab-ruby-online-web-sp-000 | 28e6d48b42e20a2ddef05631cd0f064e0b6853cf | 17a8a68aa79fb47d094ee805ffc24cad771a30a4 |
refs/heads/master | <repo_name>mistercinux/OpenBB<file_sep>/config/pages.php
<?php
/**
* Created by PhpStorm.
* User: Cinux’
* Date: 13/07/17
* Time: 09:46
*/
$page = array(
'home' => array('file' => './pages/home.php',
'name' => 'Accueil'),
'messages' => array('file' => './pages/messages.php',
'name' => 'Me... | e57edbceba5a54e2ab208cd9522050c6092e4627 | [
"Text",
"PHP"
] | 13 | PHP | mistercinux/OpenBB | 40d0843a510cad1ed4343193458b5fbc50bccbca | 163525aab7288b7e78d72aa9def00cd85af1887a |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <cstring>
#include <vector>
using namespace std;
ifstream fin("date.in");
ofstream fout("date.out");
#define nmax 1001
int nr_stari,m,stare_initiala,cnt,x,tranz,a,b,contor,valoare;
bool stare_finala[nmax];
vector< pair<int, char> > adiacenta[nmax];
string sir;
c... | 1655a009a55c53bbc3f8e53841385fddced4a8e6 | [
"C++"
] | 1 | C++ | patularu123/Tema-1-LFA | f1ed5ef41977a8f382b341551a61fc9c3323b59e | 6f5e1b6f70b468cd185b89aa3349f049ed3941b0 |
refs/heads/master | <repo_name>dmitrijbozhkov/memory<file_sep>/src/terms/termsApp.ts
/// <reference path="../../node_modules/@types/google-apps-script/index.d.ts" />
interface IReqEvent {
queryString: string;
parameter: { [key: string]: string };
parameters: { [key: string]: string[] };
contentLength: number;
postData... | 7f02c0fd7c89102d9053c9e9a7f786816e9f0354 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 27 | TypeScript | dmitrijbozhkov/memory | 3a229e22dc9dde74d38f0fc44d457e93d139e171 | fd79a4ad826fd43a91c60b2718d44dc415337261 |
refs/heads/master | <file_sep><?php session_start() ?>
<!doctype html>
<html lang="sv">
<head>
<meta charset="UTF-8" />
<meta name="author" content="<NAME>" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/style.css" media="screen" type="te... | 767875821b8af783306a3691a2929dfa29b56f33 | [
"PHP"
] | 19 | PHP | HenkeJohansson/filmbasen | 26466504afa978a65a53705059c9d10933b7c5d8 | 6f953a828676e91ab5628de9d99b80773ea877f7 |
refs/heads/main | <repo_name>Aronwebpro/hero-app<file_sep>/src/main/resources/db/migration/V0.0.1__app-schema.sql
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
create table if not exists vote
(
id uuid primary key DEFAULT uuid_generate_v4(),
email text not null,
comment text not null,
create_d... | 06670c72928f81a1778b5e2f297476a15c55d526 | [
"SQL",
"YAML",
"Markdown",
"INI",
"Gradle",
"Java",
"Dockerfile"
] | 11 | SQL | Aronwebpro/hero-app | a7a49867c94cc30d48028335a11882762b1b0584 | e0365df55b5246c56fc735567179b9a954961097 |
refs/heads/master | <file_sep>module Person
attr_accessor :name
attr_accessor :height
attr_accessor :weight
def to_s
"Person[" + @name + ", height = " + @height + ", weight =" + weight + "]"
end
end
module Student
include Person
attr_accessor :major
attr_accessor :hometown
def to_s
"Student[" + @name + ", height... | ab86063d77cfd32ae25236036b15bda11c8428e1 | [
"Ruby"
] | 2 | Ruby | sukhdev1103/Website | 449c79a63d5cc147f32c7ba15e56c1373e6627f1 | a8761eabbad41b8df962970141fcc002828cd135 |
refs/heads/master | <repo_name>dsbowen/flask-worker<file_sep>/docs_md/worker.md
# Workers
A Worker executes a complex task by sending it to a Redis queue. While the client is waiting for the complex task to finish, the Worker sends the client a loading page.
We'll create the Worker model in a file called `models.py`. Our folder now look... | 9ee699104121b5403f71f07838cdd21531f19af0 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 21 | Markdown | dsbowen/flask-worker | 193c39adcf6db92a0eee5823fa16282f591e7167 | 83a81d929efc629a3450b816104f9045bc1cb9ac |
refs/heads/master | <repo_name>rocLv/dumb_server<file_sep>/step5.rb
require 'socket'
# STEP 5: Correctly return 404 for favicon requests.
def log_connection(request_headers, response)
print <<-EOF.gsub(/^ {8}/, "")
==================================
====== NEW REQUEST INCOMING ======
=========================... | e047c6971b635ef229a471c686c51a7d58c869c4 | [
"Markdown",
"Ruby"
] | 7 | Ruby | rocLv/dumb_server | cedad5074b1ea3073802db00198d9c34468bb3f8 | 47934943670a7c9de09e953f965b8071c86c40d1 |
refs/heads/master | <repo_name>B-T-D/snippets<file_sep>/copy_to_clipboard.py
from tkinter import Tk
import pyperclip
def tk_to_clipboard(string):
"""Copies to the system clipboard using Tkinter.
Args:
string (str): a string
Returns:
None
"""
tkobj = Tk()
tkobj.withdraw()
tkobj.clipboard_clear... | c57e508187dc6d6a8722dc29b8f639f0ad6f4935 | [
"C",
"Python"
] | 16 | Python | B-T-D/snippets | 8273e6f31cafc77e98e79125b3f162daabac0228 | 028e2819afccbaee2b513d81ad2d4c47cf262f57 |
refs/heads/master | <file_sep>package example;
public class Jenkins {
public static void main(String[] args)
{
System.out.println("HelloWorld-First Jenkins project");
}
}
| 4aaf9bae7bedb9bbe872bc745ff4b0ecc95d0e83 | [
"Java"
] | 1 | Java | sbenkal/shrikumar | 01b6344bd27981c6d34539f7d5327377385cae90 | e7547a9e6694a5906f5174aa41495d5e02d69ce9 |
refs/heads/master | <file_sep>from Indicadores import indicadores
class Nomina(indicadores):
def __init__(self):
self.__salarioBasico = 0
self.__diasliquidados = 0
self.__smlv = 908526
self.__auxilio =106454
def setSalariobasico(self, salarioBasico):
if(str(type(salarioBasico))== "<cla... | e75afc29a988763705ed45cc19bcb7b2232c1a93 | [
"Python"
] | 10 | Python | proyectOne/classOne | 44866a7bd1ac481d164682c08936b05d6c74f89c | 60db975f34f07016a376f7795f8b47441918ab6d |
refs/heads/master | <repo_name>ikumen/scrape-crypto-prices<file_sep>/README.md
# Scrape crypto prices
<file_sep>/server/utils.py
from datetime import datetime
def now():
"""Returns the current datetime in UTC."""
return datetime.utcnow()
def tstamp_to_datetime(ts):
"""Converts UTC timestamp to datetime."""
return datetime.fromti... | 336421c74c835b4778bd11402adad2403f896aab | [
"Markdown",
"Python",
"Text"
] | 7 | Markdown | ikumen/scrape-crypto-prices | 7fe824b7a3ba129d4582a3758b7e7d6b6e29fade | 0ea6dffd0a39d3c933f681c5a121e672118d8ded |
refs/heads/master | <repo_name>skulbukol/SAS-IEP<file_sep>/README.md
# SAS-IEP
Self-Assessment Survey - Institutionalization Evaluation Process (PGS)
for PNP Center for Police Strategy Management
<file_sep>/application/views/admin/survey/Question/advanced_settings_view.php
<?php
/**
* This view generate the advanced question attributes
... | 26b1c7f879f952169477f0d731c0207c358b5f23 | [
"Markdown",
"PHP"
] | 2 | Markdown | skulbukol/SAS-IEP | 9043f1438e4edc48bc14f1492e8864c5563fd89b | eea1c754b0c8808c5eaa08479fdc8d24533861f3 |
refs/heads/master | <file_sep>import React, { useContext, useEffect, useState } from "react";
import Fade from "react-reveal/Fade";
import { Container, Row, Col } from "react-bootstrap";
import PortfolioContext from "../../context/context";
import Title from "../Title/Title";
import ProjectImg from "../Image/ProjectImg";
const Blogs = ()... | 7103dfc7b9649bfcfff101d40ad665afdba34f01 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | VakhoNodadze/Portfolio | 18078d605f24e3956fde5359f0a8be52dd35c52a | db40d37c64e0f31c11b78598093dc1b5bf03c891 |
refs/heads/master | <file_sep>--1a)
select count(distinct tweet_id) from tweets;
--1b)
Select user_lang,count(user_lang)
from
(select * from tweets natural join users) as newtable
group by
user_lang;
--1c)
create view tweetlangfrac as
select user_lang, cnt, cnt::float/(sum(cnt) over ()) as fraction_of_tweets from (select user_lang, coun... | 2361bbfa901c63ef4fbb7abaf3bcc81eac9b7909 | [
"SQL"
] | 3 | SQL | aliarahim/Twitter-SQL | 9c326d908a4bc65229b8ec0c628e58c971893aad | 5a6fdcc2266e5571d472178e63793db60771591e |
refs/heads/master | <repo_name>aashiqahmed98/React-Firebase-App<file_sep>/src/components/Firebase/index.js
import React from "react";
const FireBasePage = () => {
return (
<div>
<h1>FirebasePage</h1>
</div>
);
};
export default FireBasePage;
| 806c61eb85420e5fb4fff89613c424d97dbcd085 | [
"JavaScript"
] | 1 | JavaScript | aashiqahmed98/React-Firebase-App | 49953914be8d0d4b07205be554ad3439432dda4e | 4d0a7535fc5daf1379d62f44c35e16c7627d52fa |
refs/heads/master | <file_sep>ASP.NET Core 2.1 ve EF Core ile MVC Code First Örnek Proje
Proje Hakkında
Veri tabanı olarak MSSQL kullanıldı.
İlişkisel veri tabanı diyagramı oluşturuldu.
SQL işlemlerinde Entity Framework Core ORM aracı kullanıldı.
Bootstrap responsive bir tasarım ile Product ve Category sayfaları oluşturuldu.
AS... | 53a67ecaa07a847f80561aa99d41b87ed3749353 | [
"C#",
"Text"
] | 2 | Text | aliyasindogan/Asp-Net-Core-2-1-EF-Core-With-Mvc-Project-Example | a4dfcb1a78bddd833d4f8771d4d9037442c94ec6 | 475407841135a31705bed7661b7f531c8438eb3f |
refs/heads/master | <file_sep>package com.example.usagemanagement;
import android.os.AsyncTask;
public class RandomAsyncTask extends AsyncTask<Void, Void, String> {
@Override
protected String doInBackground(Void... voids) {
return null;
}
}
<file_sep>package com.example.usagemanagement;
import android.app.Notificat... | 2c54d47c9a7dcad88f49cfb8753d5368af9f1f63 | [
"Java",
"Gradle"
] | 6 | Java | tremore99/Usage-Management | b27ced16c2d5ad7199f5f3057c3ca3675d66f7ce | 5462d18fcc0eb6f0aba6309e3da3893a67e2e39b |
refs/heads/master | <file_sep> /**
* Default configuration settings
*/
getDefaults = function () {
return {
// Settings common to most/all chart types
common: {
type: 'line',
lineColor: '#00f',
fillColor: '#cdf',
defaultPixelsP... | 1d71c32208f92bbabf1e0379c3c3fb67dd777332 | [
"JavaScript",
"PHP"
] | 25 | JavaScript | r-yan-akash/familiarit | 501de9cb915552d21167e0256f826d02ada581e8 | 1d8702c5eccf400a631c6faea86c3b7e041941d6 |
refs/heads/main | <file_sep>using System;
namespace SalesTaxCalculator
{
public enum ProductType
{
Food,
Medical,
Book,
Other
}
}<file_sep>using System;
namespace SalesTaxCalculator
{
public class Receipt
{
public static void Print(Cart cart)
{
... | d3d96312aa456815601a117c41b2c2c0418a9834 | [
"C#"
] | 11 | C# | allenshane/Sales-Tax-Calculator | 8283e490099b36963606662bf30cba7f89ba13d9 | ee5d8b6608fc801838257325e9ea449c7ffac1f6 |
refs/heads/master | <file_sep>/**
* Trie Data Structure
*/
const Node = function () {
this.keys = new Map()
this.end = false
this.setEnd = function () {
this.end = true
}
this.isEnd = function () {
return this.end
}
}
const Trie = function () {
this.root = new Node()
this.add = function (input, node = this.r... | 76e6de5c17a663bd2f6b238019580a74419c35f3 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | sfyr111/blog | 786ef410af2aa860808de38c045024ef770bc260 | cc02aa418dae7fb8c424981adf793983a1470479 |
refs/heads/master | <repo_name>kishimoto-banana/test-rebase<file_sep>/test.py
<<<<<<< HEAD
z
b
=======
>>>>>>> parent of eab06f5... a
| d33c577cd5ee48c6366235dcb3e12c87b65d2a2f | [
"Python"
] | 1 | Python | kishimoto-banana/test-rebase | 4cf1dffdd32a27f884014b9826a51eeb10c1564e | 6d8547017085eb89e4108db430ae1a2a9cc355ec |
refs/heads/master | <file_sep># Vowels
# Write a method that will take a string and
# return an array of vowels used in that string.
# Example:
# count_vowels("The quick brown fox") should return ["e","u","i","o","o"]
# count_vowels("Hello World") should return ["e","o","o"]
# Check your solution by running the tests:
# ruby ... | caeb30458e31f57a0d4b0b5f2af1098cf0560ad6 | [
"Markdown",
"JavaScript",
"Ruby",
"HTML"
] | 36 | Ruby | MTDago/ruby-challenges | e550fa2f772fc83f364f6685e26de42d0a17d0a6 | 113146c3ef2e2307233ecfbcc3211e2fc7376d35 |
refs/heads/master | <file_sep>package dijkstra;
import java.io.File;
import java.util.PriorityQueue;
import java.util.Scanner;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author ITCLANB... | bf1c676aae92834b3932d6ad782e2be706fe6bdf | [
"Java"
] | 1 | Java | Muhaiminur/DIJKSTRA | 05b21b26cb2cecf85493255145f08e98bf3bd053 | dd966cd57874df991bf0b5e345e959c384fd2d77 |
refs/heads/master | <repo_name>cosmicbuffalo/ItemCounter<file_sep>/ItemCounter/CounterTableViewCell.swift
//
// CounterTableViewCell.swift
// ItemCounter
//
// Created by <NAME> on 3/2/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class CounterTableViewCell: UITableViewCell {
var delegate: CounterCell... | 0808cbc19d6f7ba3c2440d9a4f3dd382eca1c3e6 | [
"Swift"
] | 3 | Swift | cosmicbuffalo/ItemCounter | f483d543f5cd9b5b932e88707f35a164d56ce4ae | ea822d7c0f91cfe19218bbe04f58f0a250de338f |
refs/heads/master | <repo_name>Nomaddis/datepicker<file_sep>/README.md
## Options
### format
- Type: `String`
- Default: `YYYY-MM-DD`
The date format string.
### infoFormat
- Type: `String`
- Default: `YYYY-MM-DD`
The date format string in the info box. If not set, it uses the `format` option.
### separator
- Type: `String`
- Defa... | 3403922fba76df6d3dfc0ffb2638780fcf208559 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Nomaddis/datepicker | e8d71aba3030ead54f8892379066a5cf3e35a4ae | 0a492e6f767a3354c523c7bc3bdd1d55123bcf65 |
refs/heads/master | <repo_name>cellery/EE149-Quadrotor-Project<file_sep>/C_SDK/ARDroneLib/VLIB/P264/p264_layers.h
#ifndef _P264_LAYERS_H_
#define _P264_LAYERS_H_
#include <VP_Os/vp_os_types.h>
#include <VLIB/video_macroblock.h>
#define MAKE_START_CODE_P264(gob) ( P264_CODEC | (gob) )
#define PICTURE_START_CODE_P264 MAKE_STAR... | a1029ac67d5237c0925215d3e9b7b26d459eb2a2 | [
"C",
"C++"
] | 4 | C | cellery/EE149-Quadrotor-Project | e183ffa38404a1bd84324db371657732d184e39c | 879d16f0f09b1a1938e115c6335e6db517162e89 |
refs/heads/master | <repo_name>doumsdd/robotmasters<file_sep>/src/components/NavbarSection/navbarElements.js
import styled from "styled-components";
import { BiSearch } from "react-icons/bi";
import { Link } from "react-router-dom";
export const NavbarContainer = styled.div`
position: sticky;
top: 0;
height: 60px;
background-colo... | 93ee9172377ead74c716a087102b53f826daa3fb | [
"JavaScript"
] | 3 | JavaScript | doumsdd/robotmasters | 04f7f2c4d9b598788f735364a0e97734ad04ac4f | e36f2cc7116d8b1bd5e92b4772bc7e9613c4fbcc |
refs/heads/master | <file_sep># Named Entity Recognition - API
This is simple Flask API for named entity extraction using Spacy.
## Requirements
- Flask
- Spacy
## Install libraries
```shell
pipenv install
pipenv shell
```
## Run api
```shell
python api.py
```
## Test
Replace the <Text HERE> with some text to test the endpoint.
... | 5706cc56551a63f236083c21a659fa38e45f3a7b | [
"Markdown",
"Python",
"Text"
] | 4 | Markdown | JimmyVilaLeiva/npl-api | 0e3ced479ee64f61d51a61e5b4ec6aa9cbe89915 | 2f12d98cfea845c707632b6dff85eb0a28334e25 |
refs/heads/main | <file_sep>---
title: Tutoring Plus
layout: organization-layout.liquid
url: https://tutoringplus.org
tags: organization
---
Tutoring Plus advances educational equity by supporting youth in their academic, personal and social growth through free, individualized tutoring, mentoring and enrichment programs.
<file_sep>---
t... | d50ad41dc40d2f0aa28f977008fc0762387494be | [
"Markdown",
"JavaScript"
] | 8 | Markdown | bgheneti/wmbr-cares | 59483073565aabadbd2bc9c40fec6285687c79f4 | 2fabec86635b2264e62cb1ffd02deeb3e36e7b8b |
refs/heads/master | <repo_name>isgasho/randomx-rs<file_sep>/src/lib.rs
// Copyright 2019. The Tari Project
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
// following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, t... | d88e5def1fb1e8474ebbb99cb74b2cbe5f7a6497 | [
"Rust"
] | 1 | Rust | isgasho/randomx-rs | 17cb5faba9f4b3d68480d3c23ec46608dd17be84 | cf9d4e893a1b822ecf21d0fa92caefdda3b36e90 |
refs/heads/master | <file_sep>package it.ubunfu.tctest;
import android.test.suitebuilder.annotation.SmallTest;
import junit.framework.TestCase;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* Created by <NAME> on 29/09/15.
*
* Unit test for the class EveryTenthCharacterRunnable
*/
public ... | 5436976647e022f3ff6d277ed70111cf062f546c | [
"Markdown",
"Java"
] | 9 | Java | bonfa/AndroidMiniproject | 5ebe5666bace00ecba9edc03bb8ca75381ac68de | 6caa57e02c3c2ce823c0cf2a5a8b20a7b1510aea |
refs/heads/master | <file_sep>cmake_minimum_required (VERSION 2.6)
# json-c pkgconfig is installed under /lib64 instead of /usr/lib64
# https://bugzilla.redhat.com/show_bug.cgi?id=1158842
set (ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/lib64/pkgconfig:/lib/pkgconfig")
find_package (GFAL2 REQUIRED)
find_package (GLIB2 REQUIRED)
find_pa... | 0c90c124e367a96d5262badf82d30b881de2c734 | [
"C",
"CMake"
] | 16 | CMake | riga/gfal2-dropbox | dcfcb313dd73f8410de2d4c7be38699a6509a0c5 | cbfc47719521d756e6f481dd718db3534e1a62ed |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebStore.Controllers
{
public class HomeController : Controller
{
public IActionResult Index() => View();
public IActionResult Throw() => throw ... | 142e573b3cc417647049804555a453fdebb6c739 | [
"Markdown",
"C#"
] | 3 | C# | Shcmoozer/WebStore_GB | bc54a229b541cfd25a7b8555329c13a7509e0a99 | 4943d2289f8edb168580d3ec2f809b37b61e0b9f |
refs/heads/master | <repo_name>alifhughes/Classical-Trax<file_sep>/README.md
# Classical-Trax
- The codebase for website
<file_sep>/sync.sh
#!/bin/bash
echo "Deploying ClassicalTrax"
SOURCE_DIR="/Users/user/Documents/Coding/www/Classical-Trax/htdocs"
TARGET_DIR="/public_html"
TARGET_SERVER="<EMAIL> -p18765"
echo "Synchronising"
echo "... | 7fb4ec45c45b0c3e1b349d29a8aa7dbfb812f199 | [
"Markdown",
"Shell"
] | 2 | Markdown | alifhughes/Classical-Trax | a55398c2b2d4f09d3d6697d6ded0056116cb371f | e11c1a0e732e954135d34d1ca349d4f2aacdcf93 |
refs/heads/master | <file_sep>package com.rob;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import org.apache.http.HttpResponse;
import org.apache.http.client.m... | 690329517d5254516ad0a346a6e1c68a04724280 | [
"Java"
] | 1 | Java | robertosegura/simple_ws_android | d003143586079be873098834609ba2e4162724ff | 1a53af4cc2f4a40128e5a72e15d6156c5b4b35a1 |
refs/heads/master | <repo_name>rola51/NodeJSMasterClass-HW-Assgnmt1<file_sep>/index.js
/*
* Primary file for API
*
*/
// Constants
var httpPort = 8888;
// Dependencies
var http = require('http');
var https = require('https');
var url = require('url');
var StringDecoder = require('string_decoder').StringDecoder; // for pay... | 0d2fed8673b7b578c442e39c8228cecb0c33c297 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rola51/NodeJSMasterClass-HW-Assgnmt1 | 095f405a27a4b1b93ea9f492058ef7f131260b85 | 8c1296f82130428a4eb94160cdec37c3428c9ea4 |
refs/heads/master | <file_sep>package es.david;
public class HolaMaven
{
public static void main(String[] args)
{
System.out.println("Hola maven");
saluda();
ClaseSaluda claseSaluda = new ClaseSaluda();
claseSaluda.saludaEnClase("David");
}
private static void saluda()
{
System.out.println("¿qué tal?");
}
//cambio... | 49eda15edc260bd74083d354f6ccb917a3439725 | [
"Java"
] | 1 | Java | davidlghellin/mavenBasicoJar | 55550ef97282b1c34c3eebf13e4aa30dd7aef5b5 | 3be6a3a18ef105b6cc61b615492813e180488c97 |
refs/heads/master | <repo_name>dehimer/cryptochat<file_sep>/README.md
cryptochat
==========
For start server run server/start.js with nodejs.
The list of valid users still hard-coded in the file start.js.
Need to add authorization.
Access to chat only after login in local.
<file_sep>/server/start.js
var app = require('http').createServer(... | e09eada237ffb664c4a28e558e82fd913d761d76 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dehimer/cryptochat | 32190632c632f48a9d6ec586ec5e759c47bdb28c | 6e83cd88ea133c69175de32306cd43ef14ad5866 |
refs/heads/master | <file_sep><?php
$host = "localhost";
$database = "aeropuerto";
$username = "root";
$password = "";
$conection = new PDO("mysql:host=$host;dbname=$database", $username, $password);
$where="";
$nacionalidad = "";
$destino_final = "";
$num_vuelo = "";
if (isset($_REQUEST["nacionalidad"])||isset($_REQUEST["des... | c93bc7e86efa108dc94f21c900bcff2a26ed8f83 | [
"PHP"
] | 2 | PHP | alejandrac11/db-search | b8973ad142b8746366177113a85b52c66bb4fe61 | de3939465f9067aeb0d0089651446fee56c9e794 |
refs/heads/master | <file_sep># UnityUtils
Scripts for Unity Game Developers
<file_sep>using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public GameObject[] marcadorCamera;
private int indice;
public GameObject alvo;
private Vector3 posJogador;
public float offsetX,offsetY;
private bool li... | afae763cc7e244904dc42c4c58516c0a3e0e5061 | [
"Markdown",
"C#"
] | 2 | Markdown | letonai/UnityUtils | 2b8a893fcd98c0eedd5c59978737cd6da5c87be0 | fd27f2b67b953879ba0195a67dfd36620bd5ae23 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import './navbar.css';
/*import './App.css';*/
class Navbar extends Component {
render() {
return (
<header className="menybox">
<nav className="navbar navbar-dark bg-... | e86739bc9842f94467f94df38d28cbc12bb4baa5 | [
"JavaScript"
] | 4 | JavaScript | Klaral/webreact | 78b4eb1fe76ac3a59bf0232c15970c3b7ec33872 | 97fdccaf5f1b7efd970a681b7f8ffb253cc09036 |
refs/heads/master | <file_sep>from cleaner import cleaner
from common import constants
from compressed_problem import compressed_problem
from generate_problem_statement import generate_problem_statement
from generate_testcases import generate_testcases
if __name__ == "__main__":
try:
generate_problem_statement.generate_problem_st... | 34801f5b23b060d7eabdac019c4a99b14e0fdcb0 | [
"Markdown",
"Python",
"C++",
"Shell"
] | 19 | Python | AVM-Martin/tcgen | 19dccf7855ac6ebaa80df27111506facba7b5551 | 42e1783c8384d39295b2758558d757f2c0414a3d |
refs/heads/master | <repo_name>hrsh9/ajax<file_sep>/script.js
$(document).ready(() => {
$("#submit").click(()=>{
let searchByTitle=document.getElementById("title").value;
let searchByYear=document.getElementById("year").value;
let searchByID=document.getElementById("imdb").value;
if(searchByID!="")
{
getMovieDetails(searchByID);... | f31d539606f2058981439321706a6ae1e51dada4 | [
"JavaScript"
] | 1 | JavaScript | hrsh9/ajax | 1ec6d5a37cf7056e07f864432b57e38712e6cee0 | 66e15cd23f41ce37117837317957410f5fe01f71 |
refs/heads/master | <file_sep>/* Copyright (C) 2013 <NAME>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, ... | ffa72d5de9ce7dfd3623edc340b80d7337e1358f | [
"C",
"Makefile"
] | 4 | C | Chobbes/MuxParse | ed723dd10ca2075a98929270583fb2a7ad5cb5c5 | 8b5a01c1fa11fc414a39cf9fbe6b0efceb2df424 |
refs/heads/master | <repo_name>zhangyunhou/baixiu<file_sep>/admin/chaxun.php
<?php
require '../config.php';
$post = $_POST['email'];
$coon = mysqli_connect(BAIXIU_DB_HOST, BAIXIU_DB_USER, BAIXIU_DB_PASS, BAIXIU_DB_NAME);
if (!$coon) {
die('链接错误');
}
$query = mysqli_query($coon, "select * from users where email = '{$post}... | 762112eaf50ffc6c0d0d12646d1c871be12cb45c | [
"Markdown",
"PHP"
] | 11 | PHP | zhangyunhou/baixiu | 132a7f992c5f942dd20b444e60d60bcd58496a5b | c766874adde1b4e257e8ad8c8518b8d373f4d772 |
refs/heads/master | <file_sep>
extern void addKeychainItemWithPath(NSString * path ,NSString * group);
<file_sep>export ARCHS = armv7 armv7s arm64
export THEOS_DEVICE_IP = p92
export TARGET = iphone:latest:7.0
export DEBUG = 0
include $(THEOS)/makefiles/common.mk
TOOL_NAME = keychain
keychain_FILES = main.mm add.mm delet.mm query.mm c... | 8a0643698c66a0f1a95416d68c676dc8bc9907b1 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 12 | C | Kozoro/cycriptTools | 08f19380473da42b2f243e5f2bb45f5b1fb68ab4 | c895e41cf8b4daa24de0ffffa2ceec7ef5e94bc4 |
refs/heads/master | <repo_name>CosmicBoris/ToDo<file_sep>/core/Controller.php
<?php
namespace ToDo\core;
abstract class Controller
{
protected
$_view,
$_shared_storage;
public function __construct()
{
$this->_shared_storage = new Storage();
$this->_view = new View($this->_shared_sto... | f14f365b3aba13e1a90dc34e67358193de198cf1 | [
"Markdown",
"JavaScript",
"PHP"
] | 18 | PHP | CosmicBoris/ToDo | b1d0a6567dcdcf167ff02e7c120179dae3d44f8d | c5289dcec2191fc7e98d6daa75ab7f573c1d0be1 |
refs/heads/master | <repo_name>mohammed102578/Ecommerce<file_sep>/app/Models/SubCategory.php
<?php
namespace App\Models;
use App\Observers\SubCategoryObserver;
use Illuminate\Database\Eloquent\Model;
use App\Models\SubCategory;
class SubCategory extends Model
{
protected $table = 'sub_category';
protected $fillable = [
... | 456418ee6d4f74081c07ddc22ec7c04bb2fcd35e | [
"JavaScript",
"PHP"
] | 38 | PHP | mohammed102578/Ecommerce | 6315c097466c2b5c23048400f51f1e273ed8f59c | b00e499105a2eace42eed9149486a42fe7479fcd |
refs/heads/master | <repo_name>VictorBusk/SmartSort<file_sep>/SmartSort/RuleWindow.xaml.cs
using System;
using System.Collections.Generic;
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... | 0ed74eff609e7dfc67c2493d33adbbfee8beb8af | [
"C#"
] | 10 | C# | VictorBusk/SmartSort | fbccb2562d86c44e8c6b9b347ee8a4348746dff9 | d08aea0599263408e16bc5da155f5c45b01dab32 |
refs/heads/main | <file_sep>const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
const Mouse = Matter.Mouse;
const MouseConstraint = Matter.MouseConstraint;
var engine,world;
var bob1,bob2,bob3,bob4,bob5;
var rope1,rope2,rope3,rope4,rope5;
function setup... | 97568d540cf3fde36dc4ac38b6c043a61b4f9889 | [
"JavaScript"
] | 1 | JavaScript | Jatin3636/Newton-s--Cradle | 188e64ece67ee883a3096c591bc29707e418a38a | 05d84ec8d6acd882124bbc42849dfe672bfa3b3f |
refs/heads/master | <repo_name>mangoglass/simmix-website<file_sep>/index.html
<!--
Document : HMTL
Created on : 2019-oct-27, 20:22
Author : <NAME>
-->
<!DOCTYPE html>
<html lang="sv">
<head>
<title>SimMixPage</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible"... | 6d5309967bce74df870bb11e136e8cfac80d360e | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | HTML | mangoglass/simmix-website | a423ed6057917c5800d9ab7fad07f6b485deff6c | 2f0537fe7d19e722fbac2d730d1276655892c26a |
refs/heads/master | <file_sep>// Copyright 2016, free to use
#pragma once
/**
*
*/
class BUILDINGESCAPE_API FixedSpringArm : public USpringArmComponent
{
public:
FixedSpringArm();
~FixedSpringArm();
};
<file_sep>// Copyright 2016, free to use
#include "BuildingEscape.h"
#include "Grabber.h"
// Sets default values for this compon... | 29a669ae72b0f5db1d5b2858e79ebecc8d81d664 | [
"C++",
"INI"
] | 5 | C++ | wolfskrieg/BuildingEscape | cbba7feefe686bbdd8abaa5f2276ef1715cef4a2 | 781837bcf1aa3593320264d369e3dbbe76a8a422 |
refs/heads/master | <file_sep>def wrap_text(string,wrapper)
"#{wrapper}#{string}#{wrapper}"
end
hash = wrap_text("new message", "###")
equals = wrap_text(hash, "===")
print dashes = wrap_text(equals, "---")
<file_sep>def ftoC(degF)
(degF.to_f - 32) * 5/9
end
puts "What temp in F?"
temp = gets.chomp
puts "#{temp}°F = #{ftoC(temp)}°C... | 34ec44f88a6fb14cb77d633b48a5c6b7d1b8b3f3 | [
"Ruby"
] | 3 | Ruby | a8t/ruby-methods | d43a940eb3081e651668eaf5211ce4098c2726c4 | 9d52141e899af09495546ae84072164e10645d78 |
refs/heads/master | <repo_name>boymanjor/webapp-starter-kit<file_sep>/README.md
#Native Web App Starter Project
>ES6+Babel, React & Redux
<file_sep>/webpack.config.js
require('babel-register')
var getConfig = require('hjs-webpack')
module.exports = getConfig({
// entry point for the app
in: 'src/app.js',
// Name of full path of outpu... | add2bf35faf9a367a69cd9c3379ee8f67f35fc32 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | boymanjor/webapp-starter-kit | 921ba82b1fcaf0410aa3fcccff17b521095b47b1 | 177b1d9181edbde322d8c90ca9f49c176a4f58c1 |
refs/heads/master | <repo_name>Reaver1202/tut_react_02Books<file_sep>/src/reducers/reducer_books.js
// Reducer = provides a part of the Application state (State controlled by Redux )
export default function(){
return [
{ title: 'Book 1', pages: 101 },
{ title: 'Book 2', pages: 39 },
{ title: 'Book 3', pages: 51 },
... | 72e0ce5252ba68b816431295cf9df3c1fad8153f | [
"JavaScript"
] | 2 | JavaScript | Reaver1202/tut_react_02Books | 143d53542eef90af1c9e04cfc15d8d8e6da1a1b9 | 42e4d0d8bad2a194e4639beac9b3e6ea8e7fffe3 |
refs/heads/master | <file_sep>/**
* Created by wuyanan on 2016/9/4.
*/
/*========== 开门关门以及开灯关灯 ============*/
// 动画结束事件
var animationEnd = (function() {
var explorer = navigator.userAgent;
if (~explorer.indexOf('WebKit')) {
return 'webkitAnimationEnd';
}
return 'animationend';
})();
// 开门关门处理
function doorAct... | a09c415b5c71c2415218c228dfc499ce8a606f14 | [
"JavaScript"
] | 2 | JavaScript | wuyanan123/qi-xi-test | 97c97ee9d2101e7457520a80494f1782a87610d9 | 5f06fe09c28167800b73b3e3be9a0092e7532f9f |
refs/heads/master | <repo_name>a896853205/Express-learn<file_sep>/myapp/routes/success.js
/**
* Created by HP on 2017/2/15.
*/
const express = require('express');
const router = express.Router();
const SQL = require("./sql.js");
const path = require("path");
const session = require("express-session");
const judgeHaveSession = require(".... | 30e1787409dd322440f3b64b430cf23b7023064c | [
"JavaScript"
] | 4 | JavaScript | a896853205/Express-learn | ca15933e8b5d9e65af32272c782f654e4227b4bd | 88784edda2b3bc8f994113c5fa1ceb05bed3b63e |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
A utility to plot a grid of images from a set of input data files with intensity from SRW simulations.
Date: 2017-01-27
Author: <NAME>
"""
from plotting import plot_grid
if __name__ == '__main__':
dat_dir = 'C:\\Users\\Maksim\\Documents\\Work\\Beamlines\\ESM\\2017-01-27 ESM ... | 2297c75a196e7c42e0acda1e1c0b1658ee7560d6 | [
"Markdown",
"Python"
] | 7 | Python | mrakitin/plotting | 6a7d4eded5c97ee2d1459dc8edf2e43295a9a058 | 5e6d2b1c7ca56d0de76026c6932bf8dc676886a5 |
refs/heads/master | <repo_name>2ion/30c3<file_sep>/sstream
#!/bin/bash
STREAMBASE="rtmp://rtmp.streaming.media.ccc.de:1935/stream/"
STREAM=
case "$1" in
saal1-hqsd) STREAM="$STREAMBASE/saal1_native_hq" ;;
saal1-lqsd) STREAM="$STREAMBASE/saal1_native_lq" ;;
saal2-hqsd) STREAM="$STREAMBASE/saal2_native_hq" ;;
saal2-lqsd) S... | aaf5e351579e3289654cccd62ee6fffa332cbb2a | [
"Shell"
] | 1 | Shell | 2ion/30c3 | c0f6a3ae3c61d7594e41da4077f229873ca599d1 | 61bf35cf01e8ef2dc5db884e091ba0e8ae6a3ca0 |
refs/heads/master | <repo_name>Danillthebest/008<file_sep>/hometask_4/apache/Dockerfile
FROM centos:latest
MAINTAINER <<EMAIL>>
EXPOSE 8081
CMD apt-get update && \
apt-get install -y apache2 && \
/etc/init.d/apache2 start
ENTRYPOINT tail -f /dev/null
<file_sep>/hometask_2/backup.sh
#!/bin/bash
file_new=`find $1 -mtime -1`
date_new=`d... | c70cc47200ff12a8b2d1784e56c4a64efe1d1ed2 | [
"Dockerfile",
"Shell"
] | 6 | Dockerfile | Danillthebest/008 | b5a0690c2ff2ca4d009140107a65c0d7b9904491 | 9d498e6ff1e49b7e0174aa46acb2761f787e582a |
refs/heads/master | <repo_name>SoftServeUniversity/WEBUI-101-backbone<file_sep>/spec/javascripts/views/content_spec.js
describe('Content view', function() {
it('should be defined', function() {
expect(MarketApp.Views.Content).toBeDefined();
});
beforeEach(function() {
v = new MarketApp.Views.DefaultMain();
contentView =... | f1d6533d0bf442fe2010f4526732c7eff611cabd | [
"JavaScript",
"Ruby"
] | 10 | JavaScript | SoftServeUniversity/WEBUI-101-backbone | 6c5a221d354e76893cfc545b3ca379b30b4d6f90 | 3ac6ebc31eb61ac8f9d158ee6e1f2304c5c98d94 |
refs/heads/master | <repo_name>cvr-lab/homography-calibrator<file_sep>/src/Model/map.py
class Map:
def __init__(self, lat=None, lon=None, zoom=None, map_type=None, img=None):
self.img = img
self.lat = lat
self.lon = lon
self.zoom = zoom
self.map_type = map_type
self.img = img
<file_sep... | 6198cd9e280e697131dd20d714f163120a3548e2 | [
"Markdown",
"Python"
] | 14 | Python | cvr-lab/homography-calibrator | a1eafc17eba723ab5c62075d1fdfdee45085360c | c52ad83d1c751fe7c5bff6487c10488f673e8889 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
#
# this script is used for bootstraping the project base infrastructure
#
# src: https://www.terraform.io/docs/state/workspaces.html
# Setup workspace has the local state store and creates the s3 bucket
function cleanbackend {
# Reset backend.tf
cat <<EOF > base/backend.tf
backend "s3" {... | 4802ad65cbbb58fa16d0bd99fb05785aa4e1609b | [
"Shell"
] | 1 | Shell | rbd80/terraform-aws-eks | b5863b250880eb241edb2c7da51c8d286988a5bf | 9a09fd5d70537f97487931895bb7486eb0fe0746 |
refs/heads/master | <repo_name>oleger2008/Mython_interpretator<file_sep>/README.md
# Mython_interpretator
Mython_interpretator - интерпретатор языка Mython(Mini python). Читает из потока ввода текст программы и выводит в выходной поток результат всех команд print.
<file_sep>/src/lexer.h
#pragma once
#include <algorithm>
#include <cctyp... | 4a1c34edf8f4111fa9e9bb01bcdec60e4ccce116 | [
"Markdown",
"C++"
] | 5 | Markdown | oleger2008/Mython_interpretator | 0c6909aa056963ce4d5b6e2a2bf665c2bb7baae1 | 639370a9922bda02e986c522d0449ec411f7e8b4 |
refs/heads/master | <file_sep>data:数据
mainTrain:主训练模型
pepAE:pep的自编码模型
utils:实用函数
test
<file_sep>#!/usr/bin/env python
#-*- coding: UTF-8 -*-
#=================================================================================================================
import tensorflow as tf
import common
import AEInference as aeInf
from utils impo... | 176ba3032ba5f36c059f8afb66515a0f7387fe3d | [
"Python",
"Text"
] | 2 | Text | xiaozhoujian/PEPGene | 65e2e2abf336d24db61c8050c2d1785efaa56f44 | 573dc9cf7c5c99b85b7d4e9b69fef2604cf2c24f |
refs/heads/master | <repo_name>splashinn/github-universe<file_sep>/app/controllers/pages_controller.rb
class PagesController < ApplicationController
def talks
end
end
<file_sep>/config/routes.rb
Rails.application.routes.draw do
root 'dashboard#index'
get 'pages/talks'
end
<file_sep>/README.md
## GitHub Universe 2017
> My experienc... | beb5f8f2eb355335f06de41f9d16f3611b36f997 | [
"Markdown",
"Ruby"
] | 3 | Ruby | splashinn/github-universe | cbc62c2950b0d0c40cf236f8da1ab17b30e05398 | c84b8e2ca32e8cffa4209c3a140c8171824eea7b |
refs/heads/master | <repo_name>stoiczek/aws-ant-task<file_sep>/src/main/it/corley/ant/S3PutTask.java
package it.corley.ant;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.service... | b79f0fecc129aec2bd6f08e2a42e66fbfe891ad2 | [
"Java"
] | 1 | Java | stoiczek/aws-ant-task | fe7f165d0742af7b99e9d8761674dbea1cfb879c | 6ee8084394ac42277ae1f54898aad3be90310990 |
refs/heads/main | <file_sep>value = 400
if (value >=100 and value < 500):
print ("colour is red")
elif (value >=500 and value<=700):
print ("colour is blue")
else:
print("colour is green")
def sayHello(name):
print("hello class " + name + "!")
sayHello("string")<file_sep>// Week 5 homework by <NAME> Roshel
let seria... | 4ed04c1eb0f49e62065199744456be7ecf0e33b6 | [
"JavaScript",
"Python",
"Markdown"
] | 8 | Python | ajoshi4/Hello-World | 01a1f6a2bed943ebcaccedc90d560843ba93ea22 | 9ce9b6b8d2fca4e6ad9e6bd9aad800b7971e9c75 |
refs/heads/master | <repo_name>wasmerize/WasmWinforms<file_sep>/libs/projects/libgdiplus/config.h
/* winconfig.h.in. Template used on Windows/MSVC and processed by libgdiplus.vcxproj PreBuildEvent. */
/* Version number of package */
#define VERSION "5.6"
<file_sep>/mono-wasm/driver.c
#include <emscripten.h>
#include <stdio.h>
#include ... | 0dc325fb7b4af701f6a927c9937f7a6e32aa6fea | [
"Markdown",
"C",
"C#"
] | 6 | C | wasmerize/WasmWinforms | 406fb975ffd668b6a287c6aa4dd92020dd850593 | 4c955d12bde557c9220c08294db1b630985d890e |
refs/heads/main | <file_sep>const env = require('../.env')// coneta com a chave de segurança
const Telegraf = require('telegraf')
const bot = new Telegraf(env.token)//conecta com o bot
bot.start(ctx => {
const from = ctx.update.message.from
console.log(from)
if(from.username === 'Guilherme Assi') {
ctx.reply... | ba6b7af8e5017faa514682d1cb8d6e9e54810d6e | [
"JavaScript"
] | 2 | JavaScript | assi23/curso-bot | 66c9e850920c77d0c8d4e3d6bedb46f88a0a2c91 | 12444882f68867b7d25f328d8d1f9a52300306a6 |
refs/heads/master | <file_sep>async function fetchweather(location) {
const result = await fetch(`/weather?search=${location}`);
const data = await result.json();
return data;
}
const weatherForm = document.querySelector('.locationsearchfrom')
const search = document.querySelector('.locationsearchbox')
const success = documen... | b0938e3bb9b0e6eccea5e96f102a3cdf0646348a | [
"JavaScript"
] | 2 | JavaScript | vka2104/weather-application | 8f47fe1d3842882a1234ed55b539259cfaf137cb | 301264fbe5a46877e7199862b1d11e22ef875aec |
refs/heads/main | <file_sep>import { Component, OnDestroy, OnInit } from '@angular/core';
import { SurveyService } from 'src/app/shared/services/survey.service';
// import 'rxjs/Rx' ;
import { take } from 'rxjs/operators';
import { Subscription } from 'rxjs';
@Component({
selector: 'app-survey-collect',
templateUrl: './survey-co... | b117d136db1115435ed439377495e26d7444af34 | [
"Markdown",
"TypeScript",
"HTML"
] | 11 | TypeScript | CPKVG/Survey-App-Firebase-Angular | 0157da5aeaf7b68bdc42a57fd40c90d78c85fbec | 2c60be9c2d3da7979d9c22214067771641d1b90e |
refs/heads/master | <repo_name>Anisha-Kakwani/Authentication-App<file_sep>/app/src/main/java/com/example/inclass04/UpdateAccountFragment.java
package com.example.inclass04;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import android.provider.Contact... | 98686276a50c8752054e77b69a6ce34d37d55bc5 | [
"Java"
] | 1 | Java | Anisha-Kakwani/Authentication-App | 5614ea9ec7aacafb4d846a8cdd0e4d81bd0e64df | 83164396d949e9cf8d5dc6b81de41961c679c4d8 |
refs/heads/master | <file_sep>package test.ld;
import java.util.Random;
/**
* Hello world!
*
*/
public class RunCircle
{
static Producer frame1;
static Producer frame4;
public static void main( String[] args ) {
double[] Lon;
double[] Lat;
frame1 = new Producer("tcp://172.16.31.10:61616");
... | f43890cf043a7fa1df326032077ac70397558290 | [
"Java"
] | 4 | Java | doriannn/learngit | d2612fe1ed3afd27bc0e801aa06fa5d40604fc03 | d6cad314fffe72e4cd3a95e8e73d6d78e9f89b63 |
refs/heads/master | <repo_name>frankxiao008/AssemblyLine<file_sep>/MS3/LineManager.cpp
// Assembly Line Project
// LinManager.cpp
// <NAME> 140777178
// 2019/03/28
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include "Utilities.h"
#include "LineManager.h"
#include "AssemblyLine.h"
#include "CustomerOrde... | 57e1466162ea1bbffc60778422c7ded35255431f | [
"Markdown",
"C++"
] | 11 | C++ | frankxiao008/AssemblyLine | 03d156f197ce2be01321277d95923c8c73837f9d | 0291be37c323f65afd1613fdfca235d5c611f74c |
refs/heads/main | <file_sep>FROM python:3.7.3-slim
RUN mkdir -p /app
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY ./src /app
RUN mkdir -p /tmp/output
<file_sep>from shutil import copyfile
from datetime import datetime, timedelta
import pandas as pd
import math
def find_active_c... | fa8c4e6c9a942ec2291b55dd41a61529043ed4c7 | [
"Markdown",
"Python",
"Dockerfile",
"YAML"
] | 4 | Dockerfile | pviojo/covid-fases | 9cd9374f1df7ab520de659751a6c5b450a31b334 | 06fc382f460e370d895240387ec5573af7928793 |
refs/heads/master | <repo_name>SMuyesser/themoviegame-api<file_sep>/routes/game/router.js
const express = require('express');
const axios = require('axios');
const router = express.Router();
const {API_KEY, DATABASE_URL} = require('../../config');
//get movie options
router.get('/movieoptions/:title', (req, res) => {
axios.get('https:... | b096fdf84a1bc421f172a752578e83a60d401316 | [
"JavaScript"
] | 2 | JavaScript | SMuyesser/themoviegame-api | e1f3acd160dcac8ec0e3b13bd8f4f1c690186ecf | 87698fd16d2c07540269a5252d0d71c8f15f379c |
refs/heads/master | <repo_name>samiorga/FireFighterRobot<file_sep>/FireFighterRobot/src/firefighterrobot/FireFighterRobot.java
/*
* <NAME> Catalin
* May 4, 2016
* Ver 1.0
* The main code for the Dacia Firefighter. This program controls the movement of the bot,
* the sensors (line, candle, sonar), the LCD display, the servo motor, an... | 9cf2c6d02ec9becba69d6188ab21cf515c9928a7 | [
"Java"
] | 1 | Java | samiorga/FireFighterRobot | f79ea45faff5bef5fec47d3aba763dbb93a2f268 | 8d58e27ea3c5ba68290249f1d184c755d8945535 |
refs/heads/master | <file_sep>package com.example.rxjava2demo.main;
import android.os.Handler;
public class MainWorker {
private Handler handler;
public MainWorker(Handler handler){
this.handler = handler;
}
public void schedule(){
handler.post(new Runnable() {
@Override
public ... | 9a1bd422260e88ab7b88a54a01250b2e6722c49e | [
"Markdown",
"Java"
] | 5 | Java | jack921/RxJava2Demo | e8e6a762589c300e0a9a6db698079914d10b1172 | dad2cf1bb3f0aaae5fecc3099f3969db480c2139 |
refs/heads/master | <repo_name>ns3777k/prometheus-bundle<file_sep>/src/Ns3777kPrometheusBundle.php
<?php
declare(strict_types=1);
namespace Ns3777k\PrometheusBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class Ns3777kPrometheusBundle extends Bundle
{
}
<file_sep>/README.md
# Prometheus bundle
[![Build Status](https://travis... | fed6f675b29785d490ecd5f33359c4608e0451f2 | [
"Markdown",
"PHP"
] | 14 | PHP | ns3777k/prometheus-bundle | c3c3d8a3966d622b71cae270722d7495a2cf0a0b | dc683c496f44a333ee2bfbf057603da401fbf2f8 |
refs/heads/master | <repo_name>vicmonmena/udacity-exercises-chirper-app<file_sep>/src/reducers/index.js
// In this file we will export our invocation to combine reducers
/**
* We will combine all of these reducers into one main, root reducer,
* which will combine the results of calling the tweets reducer,
* users reducer, and authed... | 1f01cb536ae8e47ae195d2c574bf79c167aaa9b7 | [
"JavaScript"
] | 3 | JavaScript | vicmonmena/udacity-exercises-chirper-app | 851819628a63c14208fbeecad5029bc54128dab9 | 0f241d5083d318bedfd1b32587cb13faff9e4c0c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.