branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/main | <file_sep>require 'active_record'
class Users < ActiveRecord::Base
end
<file_sep>current_dir = Dir.pwd
Dir["#{current_dir}/models/*.rb"].each { |file| require file }
require 'sinatra'
require 'sinatra/activerecord'
set :port, 8080
# curl http://localhost:8080/users
get('/users') do
output = ""
users = Users.all
... | 4a5b00497ed754b5d7531fcae9dd35ab327bff1a | [
"Markdown",
"Ruby",
"YAML"
] | 7 | Ruby | pdunnavant/ruby-sinatra-example | 0532de26f57ceed3ad9219f417cfd1d436000359 | 9add2f4f0524d61503b44cbe4655bf5113a44211 |
refs/heads/master | <file_sep>class Cuckoo < Formula
desc "Command-line tool for generating Cuckoo mock files."
homepage "https://github.com/SwiftKit/CuckooGenerator"
url "https://github.com/SwiftKit/CuckooGenerator.git", :tag => "0.5.1"
head "https://github.com/SwiftKit/CuckooGenerator.git"
depends_on "carthage" => :... | cf6c0f1e4f428fc95411a5b2d95806929532008b | [
"Ruby"
] | 1 | Ruby | SwiftKit/homebrew-cuckoo | cd9857b0048fc0e9bc611be07dd0400f9ecba286 | cdb42cd53d5e00fe9ad6a4fcc6c98066b3b9b0b9 |
refs/heads/master | <repo_name>21stKing/Phona<file_sep>/app/src/main/java/com/kinotech/phona/KService.java
package com.kinotech.phona;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.sql.Date;
import java.text.Format;
import java.text.SimpleDateFormat;
i... | fd0095831e2bf5aec82413b5225f837394f8e1ac | [
"Markdown",
"Java"
] | 3 | Java | 21stKing/Phona | 089af132f81a4f1492681a40fde747befb99e353 | a28366042b9773c4b423b4b73c1f2e8d9732037b |
refs/heads/master | <repo_name>Atavachron/UIDesign<file_sep>/ResponsiveNavigation/main.js
//
const open = document.querySelector(".open");
const exit = document.querySelector(".exit");
const nav = document.querySelector("#nav");
open.addEventListener("click", openNav);
exit.addEventListener("click", closeNav);
function closeNav() {
na... | 90fc0ce37ba0953a860692bfc5a399bb773b0e21 | [
"JavaScript"
] | 1 | JavaScript | Atavachron/UIDesign | c818c487994d0ab4f458de132dbf430f5ee8185a | daf965948e7e1474cb5dd053f9920154ba27367f |
refs/heads/main | <file_sep>import Foundation
import UIKit
class SecondViewController: UIViewController {
var player: SoccerPlayer?
@IBOutlet weak var soccerImageView: UIImageView!
@IBOutlet weak var playerLabel: UILabel!
@IBOutlet weak var countryLabel: UILabel!
override func viewDidLoad() {
super.view... | 25e63a056b0bb91f69ba85261f3cab46aa38982e | [
"Swift"
] | 6 | Swift | isokal/SoccerApp | 9fd996f50d0a126a8aa14e10ebf64a6a21da3716 | 2fa6573509330ba05ceb90b6a2b4e793b17e6785 |
refs/heads/main | <file_sep>import cv2
import numpy as np
net = cv2.dnn.readNet('yolov3.weights','yolov3.cfg')
classes = []
with open('coco.names','r') as f:
classes = f.read().splitlines()
cap = cv2.VideoCapture('India - 8698.mp4')
#img = cv2.imread('office.jpg')
while True:
_, img = cap.read()
height,width, _ = img.s... | 57fd407a6056d865f9479edf666062946f17536f | [
"Python"
] | 1 | Python | JoshuaMang/Real-Time-Object-Detector | 5cbead4a895d9a3e6959e319a0d5069e8c41fe55 | d0c43d1ab4633616cb20ec47f3c2357946603d64 |
refs/heads/master | <file_sep>//
// ViewController.swift
// SammyHACK
//
// Created by <NAME> on 2/8/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import UIKit
import AVFoundation
class ViewController: UIViewController {
var audioPlayer = AVAudioPlayer()
override func viewDidLoad() {
super.viewDidLoad... | 1b199c8501fd5a2399b268c0e4cd2b5ac79f5f87 | [
"Swift",
"Markdown"
] | 2 | Swift | andrealit/SammyHACK | 57efe39cef50bdc898f807a97ce6d7ec3132976e | 1d410314cdda89ff8437b5fd083ecca4f27f9d88 |
refs/heads/master | <file_sep>This is a test for me to understand how use React and Rails API-only + MobX.
Basic todo list with completed checkbox.
For running:
- Go in the ApiTest folder and run `gem install bundler`
- `bundle install`
- `rails db:create`
- `rails db:seed`
- `rails s`
After this go in the folder ApiTestFrontEnd
* `n... | 6982f03066bf9a413c760b100a40f04e32f9454a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | EQuimper/Basic-TodoList-RailsAPI-React-Mobx | 7020d234c59238ffa1d5a9f35aa0d67fb1ec1d37 | e47e8ebb1ee582545c395dc220e45dd48581cca9 |
refs/heads/master | <repo_name>willbarkoff/17126-natural-selection-id-ui<file_sep>/webpack.config.ts
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const config = {
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
devServer: {
c... | c9c6339bd14864a397766d48ed8ecb2fec1de373 | [
"TypeScript"
] | 2 | TypeScript | willbarkoff/17126-natural-selection-id-ui | 7a2700fa58e8c2fe7e88858545832129d3f4b555 | fbe4d82c89aae19522c8bf8b940a71146afabe8f |
refs/heads/main | <repo_name>katiepdx/react-socketio-sandbox<file_sep>/src/components/app/App.jsx
/* eslint-disable react/jsx-key */
import React, { useState, useEffect } from 'react';
// import socket io
import io from 'socket.io-client';
export default function App() {
const [userName, setUserName] = useState('');
const [message... | a9012b1071f9537f32413623ed9e3e3474887910 | [
"JavaScript"
] | 2 | JavaScript | katiepdx/react-socketio-sandbox | f9724deeb8d6ff9340c3f41a01f7fdbaf2516bc4 | f38f92d4e79b96b3ee48eb49899002680f5d6c5c |
refs/heads/master | <repo_name>BB-33/multiplication-grid-demo<file_sep>/tailwind.config.js
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false, // or 'media' or 'class'
corePlugins: {
// make it so that there are no animations
animation: true,
},
theme: {
colors: {
... | 794894108fc3db9b271e4237d427ac45e1e93402 | [
"JavaScript"
] | 1 | JavaScript | BB-33/multiplication-grid-demo | 8fb6eec5f6fe4580a7cc8812e66dccbb94f516cc | 4fd264ac767f21fbe2b62161f487ba522f779ca4 |
refs/heads/main | <repo_name>chillsdon/nixie-pcb-test<file_sep>/README.md
# nixie-pcb-test
Simple code to test my own nixie tube printed circuit boards
<file_sep>/nixie-pcb-test.ino
const int pinA = 2;
const int pinB = 3;
const int pinC = 4;
const int pinD = 5;
const int pinEN = 8;
int valueA;
int valueB;
int valueC;
int value... | 2f543e7c1253529dcad087f491688c048e06c59d | [
"Markdown",
"C++"
] | 2 | Markdown | chillsdon/nixie-pcb-test | fbfd02551205f9bd2183e66f8842257211a01cd4 | 7ceeedaf7e9b051eaca6b209dd7d772535807471 |
refs/heads/master | <repo_name>jjsuper/IXL-code-challenge<file_sep>/src/Solution3.java
/*
QUESTION #3:
Write a Java method with the following method signature that takes a String and
returns a String formatted so that it satisfies the requirements below. It may
need to insert newlines and/or delete spaces.
... | 46416df4ca8dc7af7a6c1541004d0ec3d18888f2 | [
"Java"
] | 1 | Java | jjsuper/IXL-code-challenge | e7ce8ad1410a467894315888a4501a58aa42715e | 574fded9d1a1bf3f490044aa900f5f3a7632a2fb |
refs/heads/master | <file_sep># include <Siv3D.hpp>
# include "../sayHi/sayHi.hpp"
struct RingEffect : IEffect {
Vec2 m_pos;
RingEffect(const Vec2& pos)
: m_pos(pos) {}
bool update(double t) override {
const double e = EaseOutExpo(t);
//Print << e;
Circle(m_pos, e * 100).drawFrame(20.0 * (1... | a8102f7088790ece8fd3def8fd9b99b9eb76ca60 | [
"C++"
] | 2 | C++ | MiniSlime/WeAreTheWorld | da1b8abd6aaff0f17c89372e7db538e0c82e950e | 74290e05ce302bd1cd43dd10ac72bd9eb74cd10f |
refs/heads/main | <file_sep># bashserverscript
This is a bash script that pulls a github repo and cd's into the directory builds a docker image from it then creates a container out of it by running the image made for these scripts
this only builds the bots image which isnt a multi-container application so there is no docker-compose..
... | 4784fba3d32fe3157d23f4a1428a34574ecbd1d7 | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Markdown | 0xacn/bashserverscript | f7a39fb6575f559541d83bec2512ac1dd8c15bcc | 21a96f2183e712490ba105686ab09751f164b495 |
refs/heads/master | <repo_name>kh1is/RC-Car<file_sep>/RC-Car/sketch_jan27a/Car/Car.ino
/* JoyStick module receiver code
- CONNECTIONS: nRF24L01 Modules See:
1 - GND
2 - VCC 3.3V !!! NOT 5V
3 - CE to Arduino pin 6
4 - CSN to Arduino pin 8
5 - SCK to Arduino pin 13
6 - MOSI to Arduino pin 11
7 - MISO to Arduino pin 12... | 7f3c024231e5c56aed7e25ab7e4c774889560a15 | [
"C++"
] | 1 | C++ | kh1is/RC-Car | 06cfb9ece72001733fb432b2adde31765cc9e55a | c5872586f7013ed48a4ed39517bb7feb6dc86ce2 |
refs/heads/master | <file_sep>const express = require("express");
const app = express();
/*const port = 3000
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))*/
const port = 8080;
app.get("/", (req, res) => {
return res.send("hello there");
... | d66445e16e0f1c6d5baf288144cdcd367cfbe12a | [
"JavaScript"
] | 2 | JavaScript | AayushBhalotia/MERN-project | 51e222ae673e1c1a9f43b616e94ed8e6fcbd668e | 51f9ccb7be65480cfae70c4531c4efd41a4ae779 |
refs/heads/main | <file_sep>import { fetch_retry } from "./utils.js";
export enum HTTPMethod {
GET = "GET",
POST = "POST",
DELETE = "DELETE",
}
export class Session {
async request(
method: HTTPMethod,
input: RequestInfo,
init?: RequestInit
): Promise<Response> {
return fetch(input, ... | 0d5ebfe383b9d7a493d5b878dff536b0c59b93ea | [
"Markdown",
"TypeScript"
] | 18 | TypeScript | laksh-g/uw_autocalendar | c89289d9608add48e36245143de57678b6337758 | eab4fd3246d262bcdc1ec623115c1cc78d49823a |
refs/heads/master | <file_sep>python calculate_average_degree.py avg_degree_female_gsm.csv degree_gsm_female_cleaned_2014-06-*
<file_sep>import pandas as pd
import numpy as np
import os
import sys
from collections import defaultdict
DEBUG =1
def process_input_file(filename, sep='|'):
fin=open(filename,'r')
degree_dict=defaultdict(la... | 314c4553fcba8f621956b55909e16210e4afb8cc | [
"Python",
"Shell"
] | 8 | Shell | mrazakhan/Median_Tower_Assignment | 0982192fa98ed89d4f21d16b905ba6a9bed1dc2a | cebb575a5327a5a1b610767603149461ef9cbc15 |
refs/heads/master | <repo_name>evenbrenna/api-client-template<file_sep>/README.md
# api-client-template
An example angular app that uses [ng-token-auth](https://github.com/lynndylanhurley/ng-token-auth) to communicate with an API made with [api-rails](https://github.com/rails-api/rails-api) and the [devise_token_auth](https://github.com/... | b6ca50a53491f67f247fc293fa4f152786f5f986 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | evenbrenna/api-client-template | 780abeb43f8d00aef1a3009e6e607129344fab01 | 5816ae22094c6a5bbf3a9ce6a34e2470ed1b82ab |
refs/heads/master | <file_sep># Just to test stat_calc_step2_institutions.R
rm(list=ls())
category <- "AA"
institutions <- c("GRENOBLE1")
source("stat_calc_step2_institutions.R")
<file_sep># This script computes from the Oracle OST db the counts of references
# by category(class) for each article of the db.
# Result: for each category... | dc6f7a76736eeb264b65fb407f4dec2244038178 | [
"Markdown",
"R"
] | 19 | R | turckheim/interdisciplinarity | 12902ee100082b250a2c937955cd338b366a2ca9 | 27672816e63c5218f560ef61fd33edc06ae2a98c |
refs/heads/master | <repo_name>shrey-01/Recycler-view-fragment<file_sep>/app/src/main/java/com/example/recyclerviewdemo/RecyclerHolder.java
package com.example.recyclerviewdemo;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
public class Recyc... | 136a827eca997f47b9cb64fe010274c43ffcd235 | [
"Java"
] | 2 | Java | shrey-01/Recycler-view-fragment | 66e76c749075033bb272d634a663e0d3b45518a8 | 277a595a766abd8349c02297cc65bcabad0bae6b |
refs/heads/master | <repo_name>andriell/python-p1<file_sep>/hf/test5.py
import sys
try:
with open('myfile.txt') as fh:
file_data = fh.read()
print(file_data)
except Exception as error:
print('Error', str(error))
try:
1 / 0
except:
err = sys.exc_info()
for e in err:
print(e)<file_sep>/test1.py
imp... | 27f6530478cb5cfd6a0380364a63e90c63903453 | [
"Markdown",
"Python"
] | 8 | Python | andriell/python-p1 | 31b073d5320e80c6e46d0620dd25c02a26e1f126 | c2776403d9981abd48038004e76eeefa6c962f2c |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Seeder;
class AdminSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$adm = [
'nome' => '<NAME>',
'email' => '<EMAIL>',
'password' => bcrypt('<PASSWORD>')... | f66454bb3eb56d93933c64ad3f879cbe27436149 | [
"Markdown",
"PHP"
] | 43 | PHP | viniciusbrito/revenda | 470b4d4581347ab8b80f12ac697417834d363313 | ffa084584ef80ab3a4c56fd9f0b2dbacedcbef68 |
refs/heads/master | <repo_name>absaldanha/decoreba-backend<file_sep>/app/api/deserializers.rb
# frozen_string_literal: true
require_relative "deserializers/resource_deserializer"
Dir[File.join(__dir__, "deserializers/*.rb")].each { |file| require file }
<file_sep>/app/api/routes/users.rb
# frozen_string_literal: true
module API
class... | a10f8cf0def6a50a589b8d87478acec13e775243 | [
"Ruby"
] | 42 | Ruby | absaldanha/decoreba-backend | 25671967a8e5a069b6cca1ea39d1f42aa502c696 | 0fae2c76274f139b57057811b21b74aa6a0952b9 |
refs/heads/main | <repo_name>rdtr/leetcode_solutions<file_sep>/go/0518_coin_change_ii.go
func change(amount int, coins []int) int {
if amount == 0 {
return 1
} else if len(coins) == 0 {
return 0
} else if len(coins) == 1 {
if amount%coins[0] == 0 {
return 1
}
return 0
}
visited := make(map[Key]int)
return doChange(am... | 45734abde30b437c2a1ba80653d7323e5c1d8c7f | [
"Markdown",
"Python",
"Go"
] | 431 | Go | rdtr/leetcode_solutions | 51800d33c57e36ef62b6067d6f91a82c0e55dc6d | 6629e03dd5b5fee15aaabe7f53204778f237ed96 |
refs/heads/master | <repo_name>team-yellow/POLLution<file_sep>/app/Pollution_app/routes.py
from Pollution_app import app
from flask import Flask, render_template, request, flash, session, url_for, redirect
from Pollution_app.forms import SignupForm, SigninForm
from Pollution_app.models import db, Teacher
@app.route('/')
def home():
ret... | 37abbba49c5ead90899e0a6bf756b1124a880be7 | [
"Markdown",
"Python"
] | 6 | Python | team-yellow/POLLution | 8ed3e6ced258f36da53f81ecbb45c0864aae69fc | b70ddc607fa82113a55f64379908463b73becbb4 |
refs/heads/master | <repo_name>buivn/PSO-PathFinding<file_sep>/Init_map.py
import sys
import random
from tkinter import *
import time
import math
MAP_DIMENSION = 20
CELL_SIZE = 45
class Create_map(object):
def __init__(self, w):
self.nrows = MAP_DIMENSION
self.ncolums = MAP_DIMENSION
self.w = w
self.... | fc1297b04e46a09334af85ffb327c7ad6661432f | [
"Markdown",
"Python"
] | 3 | Python | buivn/PSO-PathFinding | 1590631cbfea32ee2ff8cea1a0a28bb05d16c09e | eac7e43ca71cc1a8af6fc74f74f2bd011eda8013 |
refs/heads/master | <repo_name>mcrepeau/soapcalc<file_sep>/README.md
# Soapcalc
This little Python script is used to generate soap recipes based on desired properties and different ingredient's properties. The basic idea here is to generate a random recipe first, calculate its properties and then the deviation from the desired ones. Then ... | e98e9060db2117e4fc12614d02e10ef2699cc33b | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | mcrepeau/soapcalc | d946d9dae75de2382affdcf435d76a8a37818e7d | 7fe1136ab2c39de813193b14246a5fcab65561c2 |
refs/heads/main | <file_sep># BRAND-LOGO-DETECTOR
Developing an image classifier using TensorFlow which classifies the given image correctly to the category it belongs to. The images are of the brand logos Adidas, Nike, Puma, and Reebok.
LOGO DETECTOR
Logo recognition in images and videos is the key problem in a wide range of applicat... | 9059382bbdcd106b8899685f6a51401c32f0b7b6 | [
"Markdown",
"Python"
] | 4 | Markdown | nehapradeep/BRAND-LOGO-DETECTOR | d934610f1eca8e628740124c898d357e04ebb3e5 | ba33dd0fafe52659fe843717a1af3ed1e5cee4e2 |
refs/heads/master | <repo_name>EenTang/flaskdev<file_sep>/migrations/versions/39316d1cd4a8_.py
"""empty message
Revision ID: 39316d1cd4a8
Revises: 5<PASSWORD>7cbcebd
Create Date: 2016-08-11 12:05:51.384000
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
from alembic import op
import sqlalch... | f90f6c945cb34877a9893c1eb4beea1e0acebd40 | [
"Python",
"Text"
] | 8 | Python | EenTang/flaskdev | 69c4e2fcc1b8200638db89006e0cc7b14c66b7d8 | b423dc973dc0c7079d839a6d2688ad8b14a0b882 |
refs/heads/master | <file_sep>//
// Dikshant_Dudhat_QTC_Model.swift
// Dikshant_Dudhat_Quebec_Travel_Companion
//
// Created by <NAME> on 2019-11-13.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
class Dikshant_Dudhat_QTC_Model {
//MARK:- Class Variables
//var englishPhrase = ["Good Morning", "Ho... | b266cff41be1901e890e7a7cb5a220507461f6bc | [
"Swift"
] | 2 | Swift | Dikshant33/Quebec-Companion-App | 171559b2b2346157c7ab61b957eea33661113e6a | c101b29d5b0632fb4183b22940a39714e893a53c |
refs/heads/master | <repo_name>sardnarellum/edge-locator<file_sep>/EdgeLocator/OpenCLAdapter.cpp
#include "stdafx.h"
#include "OpenCLAdapter.h"
OpenCLAdapter::OpenCLAdapter()
{
}
OpenCLAdapter::~OpenCLAdapter()
{
}
bool OpenCLAdapter::Init()
{
//try {
// // Get available platforms
// cl:vector<cl::Platform> platforms;
// Platform... | a91c780d67dea989814cfda9275e2b43cccea4c9 | [
"Markdown",
"C++"
] | 5 | C++ | sardnarellum/edge-locator | 064f652282ac55c566bb50ffd9443b72c73839e6 | 831b6ef4fa964e9fbbbe40a42b4d5b27b1c4ac9f |
refs/heads/main | <file_sep># commit-watch
A CLI to gatekeep commit messages that do not conform to conventions.
## Installation
If you have `npx` available, you can directly use it without explicit installation:
```shell
% npx @eqworks/commit-watch --help
```
Otherwise, or when explicitly local installation is needed:
```shell
% ... | 0589fa5f39663c1b6a34a3cdff6ac8680399135f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | EQWorks/commit-watch | 5e09427c58d959ce0dfd282b48f4e371f8e31858 | 69c2e64763facc9dd2d0e437619c2ca5a3ee05f9 |
refs/heads/master | <file_sep># server-rest-api
ezvisit server rest api.
<file_sep>import { Router, Request, Response, NextFunction } from 'express';
export class accountRouter {
router: Router;
constructor() {
this.router = Router();
this.init();
}
public register(req: Request, res: Response, next: NextF... | 303a6179b4ff85eecfc7d2680c2d03b8ee443afd | [
"Markdown",
"TypeScript"
] | 2 | Markdown | sripemma/server-rest-api | edbf8982cd26eff099378ab0479c9aeb48e2ab8d | 25bf585cadf24c5e24943e80218f4186d1a0fdb7 |
refs/heads/master | <repo_name>iant04128591/STAT40810<file_sep>/problems_sheets/problem1.R
# Load library for truncated normal
# install.packages('truncnorm')
library(truncnorm)
rm (list=ls())
#dev.list()
#dev.off()
#dev.on()
getwd()
list.files()
# Load the data
load("length.Rdata")
# Plot the data
hist(x,main="Histogram of length",pro... | f5675f94581b8e0ae7fbccf0227522b545160b3c | [
"Markdown",
"R",
"RMarkdown"
] | 23 | R | iant04128591/STAT40810 | d98bad7dff8ae667920e412b92870e78c477f8a3 | 57fdcb9f64d69b2373ce7bbc40657ef46973d61f |
refs/heads/master | <repo_name>pillingshot/ProgrammingAssignment2<file_sep>/cachematrix.R
## This file contains two functions makeCacheMatrix and cacheSolve
## The functions are designed to avoid the costly computation of matrix inversion by caching the
## inverse of the matrix if the inverse has been previously computed for the matrix.
... | 50e70567be0b521ca838063aa9a464cfedc125ad | [
"R"
] | 1 | R | pillingshot/ProgrammingAssignment2 | 947ba44054f14438fa046edaff6af31258f48125 | 09cacae656abb246e43d076ddde4c6b0abc50a1b |
refs/heads/master | <repo_name>Viniciustes/Biblioteca<file_sep>/Biblioteca.Data/Models/Base.cs
using System;
namespace Biblioteca.Data.Models
{
public abstract class Base
{
public Base()
{
Id = Guid.NewGuid();
}
public Guid Id { get; protected set; }
}
}
<file_sep>/Biblioteca.Data... | edc8bb1778566c3fcc0e9aee5e20447bce0a82a1 | [
"C#"
] | 32 | C# | Viniciustes/Biblioteca | 80729f766511af19f9cc9b67769d1987d728d7cb | f9dc7108912ed004dc0d725c177579f0b19b3b7d |
refs/heads/master | <repo_name>bakins/simple-process-manager<file_sep>/main.go
package main
import (
"bufio"
"context"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"os/signal"
"strings"
"sync"
"syscall"
"time"
"github.com/alecthomas/kingpin"
"github.com/go-yaml/yaml"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors... | 0ddb91adc6cdeaca1a2099eb0f608e03123e8273 | [
"Markdown",
"Go Module",
"Go"
] | 3 | Go | bakins/simple-process-manager | a621fb2e6de8a77545db9e4a68ab4e0491d5b512 | 69b4cf94cd390cf8343568bb735eccd90a1d0376 |
refs/heads/master | <repo_name>ruegerj/security-blog<file_sep>/client/src/app/shared/validators/digits.validator.ts
import { AbstractControl, ValidatorFn } from '@angular/forms';
/**
* Returns validator which checks if the control value contains atleast one digit
*/
export function Digits(): ValidatorFn {
const digitRegexp = /\d{1,}/;... | cf4a6461271603369a033ec50fcecc1ca5e7b591 | [
"Markdown",
"TypeScript"
] | 218 | TypeScript | ruegerj/security-blog | 9ca6c8be8c9e040e6b91c22cf22a9136cdf3c84a | 6255a8b83916b93ed8933b3fbc5044cd3032ed2a |
refs/heads/master | <repo_name>nate97/Smart-Lights<file_sep>/python/testclient.py
from twisted.internet import reactor, protocol
HOST = 'localhost'
PORT = 8000
class MyClient(protocol.Protocol):
def connectionMade(self):
# Placeholder testing sending data to the server
command = b'0:on'
self.transport.writ... | bbd1ef4611bf716a4bb9d26dea8f1bcab8fdf8cf | [
"Markdown",
"Python",
"C++"
] | 4 | Python | nate97/Smart-Lights | 31ed94e1ad9ff00c1bc2a1961e707d6cf745bf8e | 62182ff2703692cdfbd408ebb39bec6fa5e81747 |
refs/heads/master | <file_sep>from flask import jsonify
from flask_restful import abort, Resource
from data.books import Book
from data import db_session
def abort_if_book_not_found(book_id):
session = db_session.create_session()
books = session.query(Book).get(book_id)
if not books:
abort(404, message=f'Book {book_i... | 2664eda619cb93ee8f6d7fd6f61a57b5412500f2 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 15 | Python | Selmentausen/Yandex-flask-project | 6138894903bde1ebce086065b6963f454409ee9a | abd13a15e091d8caa26231b813808c27845c82c4 |
refs/heads/master | <repo_name>miguelcabreja90/nativescriptvue-test<file_sep>/app/store/mutation-types.ts
export default {
ADD_PERSON: 'ADD_PERSON'
}<file_sep>/app/main.ts
import Vue from 'nativescript-vue'
// @ts-ignore
import SideDrawer from '@/components/SideDrawer'
// @ts-ignore
import DrawerContent from '@/components/DrawerConte... | 2def8212b857dcda1543f7cd2841005b8150a108 | [
"TypeScript"
] | 6 | TypeScript | miguelcabreja90/nativescriptvue-test | c9b384ed0c63fcd5c858759f36da780bfdd55ca1 | ab1c5ec64707a1217a300a9c8a9bc2a4979bc9e1 |
refs/heads/master | <repo_name>lbarros00/eloquentjs-problems<file_sep>/chapter05.js
/*
* Add your solutions to the chapter 5 problems from the eloquentjs book.
* - DO NOT rename the functions below.
* - You may add other functions if you need them.
* - You may rename the parameters.
* - DO NOT modify the number of paramet... | 7eea575dbb85b729f39f763f6689fbf1405145ec | [
"JavaScript"
] | 2 | JavaScript | lbarros00/eloquentjs-problems | e12d1f987e212f60a2a600ae05425faf56c8e2a9 | 52a6c1026daf30ca467bef791c37fb625a53cff7 |
refs/heads/master | <file_sep>#include <ros/ros.h>
#include <ros/package.h>
#include <std_msgs/String.h>
#include <sensor_msgs/Joy.h>
#include <time.h>
#include <fstream>
class Joystic
{
public:
Joystic();
std_msgs::String string;
ros::Publisher vel_pub_;
int command_switch;
//Text_Input//
float Command_Period;
////////////... | f3b5145335e06d07fec4178028a357f67c6a12f2 | [
"C++"
] | 2 | C++ | arirang2067/JOYRoEHS | f09429ba611c9dfd20352261f958113e81003e02 | 6e1fce2fab8efb631b7f6736ce37c9259eace556 |
refs/heads/master | <file_sep>//Declaring all the global Variables to use
var alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var movies90s = ["Never Been Kissed", "Goodfellas","Rumble In The Bronx", "The Fifth Element",
"Men In Black","The Ma... | c6bed1f7b598e5de5480b45e2ab47d43fa7a5422 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sandia20/Word-Guess-Game | 0abe1cb4e06b344d37f8c1853c2c9df63fd061a2 | 0192cf3b353c3741b912a77200a926a98cfd6447 |
refs/heads/master | <file_sep>/*
* |-------------------------------------------------
* | Copyright © 2016 <NAME>. All rights reserved.
* |-------------------------------------------------
*/
package com.mycompany.descriptiveprogramming;
import java.util.List;
/**
* @author colin
*/
public class Descriptive {
// what are a,b... | dffcbaf3a48908c6499b7a5ae3732373896c5494 | [
"Markdown",
"Java"
] | 5 | Java | colinbut/descriptive-programming | 2ba542b1345b54d3690cc8408adf766ae744c740 | fdf4011461bdd24ab0bbfa8f7fb0e7608d0a66bc |
refs/heads/main | <repo_name>nctrung2001/TestGame<file_sep>/TestGame/Assets/SS/View/Tab/TabButton.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace SS.View
{
public class TabButton : MonoBehaviour
{
protected RectTransform m_RectTransform;
protect... | 7e615070b20b68628e1153e9ff6788e6e5a197fa | [
"C#"
] | 36 | C# | nctrung2001/TestGame | 7d91ebd9b775fefdc9ef2128bd674abd1a1c694f | 433c43ab9ea6acb213627613436db802a9f3e652 |
refs/heads/master | <repo_name>lywa3/gestion_liste_course<file_sep>/README.md
# gestion_liste_course
programme de gestion d'une liste de course
<file_sep>/main.py
import sys
def presentation(nom):
print(f'Bienvenue, {nom}')
def is_digit(nombre: str):
return bool(nombre.isdigit())
def string_is_digit(nombre_str: str):
if ... | 210ce508b25894e8b205f836a17e84379595b58a | [
"Markdown",
"Python"
] | 2 | Markdown | lywa3/gestion_liste_course | 1a476ba11b12e58ecb344e7938a7f9df2ce87c17 | d38b075516fed1ba5fdafb83e6e621db4998650f |
refs/heads/master | <file_sep><p align="center"><strong>elm-flag</strong></p>
This library helps you create inline SVG flags in Elm.
Most of this is implemented as codegen over the excellent
[`lipis/flag-icon-css`](https://github.com/lipis/flag-icon-css) library.
<file_sep>#!/bin/sh
# script/publish: Build and upload to github pages
s... | 733595f60c35df546b93d7d6de98da8578ed84d4 | [
"Markdown",
"JavaScript",
"Shell"
] | 3 | Markdown | sch/elm-flag | 6b5e8704ced8f37a50d3208e0a29782acd5c3d83 | 3479602fd6ee4ae2a4d4a2711929c9b752e12750 |
refs/heads/master | <repo_name>johnjosephhorton/learning_node<file_sep>/web.js
// express is a node module for web servers
var express = require('express')
var app = express() // creating in instance
var urls = ["oDesk","Elance", "TaskRabbit", "Uber", "Freelancer", "Exec"]
// Gets the list of companies to evaluate
app.get('/api/get_... | 0e6616598e61b0034648642fcaee65bc8a514fca | [
"JavaScript"
] | 1 | JavaScript | johnjosephhorton/learning_node | c921dd95095952c5e1fd01812032e6f74194e854 | c3ae60c83e6af2ae2e7657736462749936194629 |
refs/heads/master | <file_sep>LeetCode problemi za intervjue i rjesenja za iste.<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeetCode
{
class TwoSum
{
static void Main(string[] args)
{
int[] indices = new TwoSum... | 14cab3e155437fcd774e9b39c8de43e4e4de2508 | [
"Markdown",
"C#"
] | 2 | Markdown | SavoX2/leetcode | 2ad6a63349565aeeadd3f90f8df778167a84e891 | f617e8db3f1af902f625819326ce87dc3fd04b6b |
refs/heads/master | <repo_name>evvfebruary/technodb-final<file_sep>/app/endpoints/forum.go
package endpoints
import (
"encoding/json"
"github.com/valyala/fasthttp"
"log"
"technodb-final/app/dbhandlers"
"technodb-final/app/models"
)
func ForumCreate(ctx *fasthttp.RequestCtx) {
var forum models.Forum
err := json.Unmarshal(ctx.PostB... | 2124d79317de3d7fb117a3cf87d5585e6bf3ed8a | [
"Go Module",
"Go",
"Dockerfile"
] | 21 | Go | evvfebruary/technodb-final | 57f2c4cf94d9d6fd4596295a2e6fa88a29654ef8 | 66c47909af00a4a3b01d6381e893ffa03c1815ed |
refs/heads/master | <file_sep>/*
* Class name : message_Type.java
* Description : This class defines the type of message received by the peers in the application.
* Institution : University of Florida
*/
public enum message_Type {
CHOKE, UNCHOKE, INTERESTED, UNINTERESTED, HAVE, BITFIELD, REQUEST, PIECE
}
<file_sep>/*
... | 10421d2a96640d3b4cb7aae78dd7374e174d57fc | [
"Markdown",
"Java",
"Makefile"
] | 10 | Java | noopurrkalawatia/localBit | 1864a18fc2a025d0fec8af520da72f3bf9cfc968 | f6e84837efe6fa7a2b1fcc55e9d9dddfe5be3a16 |
refs/heads/main | <file_sep>from menu_action_functions import *
from tkinter import *
# creates a menu and assign them action functions
def create_menu(menubar):
file_menu = Menu(menubar)
menubar.add_cascade(label="File", menu=file_menu)
file_menu.add_command(label="New", command=new_file)
file_menu.add_command(label="O... | 842cb7310b223b5665e4094c0610fc03c0977a73 | [
"Markdown",
"Python"
] | 6 | Python | mksOrg/tinker-form | b615fda268fed315e0421467596cedded71137e1 | 8844b96317edd45ab1e37c1189c3282a31682175 |
refs/heads/master | <repo_name>Depressionn/VRCA1<file_sep>/Assets/Scripts/Helper.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Helper {
}
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour {
private static T m_instance;
public T Instance {
get {
... | be3f4190903900f316a52c3bd0805c7f6ffff15d | [
"C#"
] | 1 | C# | Depressionn/VRCA1 | e19068f75cee3ab3296cb1e70e837b2ea461dd0a | 11df48c7a88a09943f12197febe5910cf2af37f8 |
refs/heads/master | <file_sep>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
function makeXHTMLelement(elem) {
return $(document.createElementNS("http://www.w3.org/1999/xhtml",ele... | 1625a071ba56933757b4652fe0823ffa7e37d5e3 | [
"JavaScript"
] | 2 | JavaScript | mzhilyaev/profile | 079ea125e10246f4fcbe101bfe4aa518c2acea7e | 953492d8b192288be6da6eaee648673a02c7640f |
refs/heads/master | <repo_name>zzzzyp/taro-plugin-platform-kwai<file_sep>/README.md
# `@tarojs/plugin-platform-kwai`
Taro 插件。用于支持编译为快手小程序。
## 版本要求
### Taro 3.3+
请使用本插件的 1.0 或以上版本
### Taro 3.2
请使用 [taro-plugin-platform-ks](https://github.com/vadxq/taro-plugin-platform-ks) 的 1.2.x 版本
### Taro 3.1
请使用 [taro-plugin-platform-ks](https:... | 8dd8fa6070ccec44aeb147f083da64ec979458d8 | [
"Markdown",
"TypeScript"
] | 5 | Markdown | zzzzyp/taro-plugin-platform-kwai | 43133d8f6344d7c30f65718ea339b141c77944c3 | b5942c29dadc1f465634ea0ef7eb5d27b34047c0 |
refs/heads/master | <repo_name>biswajitpaul01/my-blog<file_sep>/notes.md
## NPM Commands
~~~bash
npm init -y
npm install express
npm install @babel/core @babel/node @babel/preset-env
npx babel-node src/server.js # run server
npm install body-parser
npm install nodemon
npx nodemon --exec npx babel-node src/server.js # run server with node... | 1968f3ae755d8ea64d3fb8ace55125ed8f9d69c5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | biswajitpaul01/my-blog | f7bbf14c6fe027d24b3bf4f0f435ccf4aa86922f | dd91ba4224411094647c0782b6448f5a9bc9a0a9 |
refs/heads/master | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_hhx.c :+: :+... | dc85b8d3e72643b80d4855ba4ec145c65de72bf5 | [
"C",
"Makefile"
] | 32 | C | mdos-san/lem-in | 1fec72f62b25a99eede05eac06816e7a61c7cdee | a79000ee8a62e6f9510ca6dbe8cae4f678221d16 |
refs/heads/master | <repo_name>olivercoad/self-sign-nginx-proxy-pass<file_sep>/README.md
Creates a self-signed certificate and uses nginx to proxy_pass to a desired location.
This was created for the purpose of using with Cloudflare **Full** encryption mode.
Made following https://www.digitalocean.com/community/tutorials/how-to-create-a... | b2b6b5daaa988711dcf968bc7bfeb1fa733649ab | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Markdown | olivercoad/self-sign-nginx-proxy-pass | a0b9a7a76d6faa495ebf4dcb6ed267ff80ffa6c1 | bc2cb1de1effbb19a9df50dc0d0796e44fb85432 |
refs/heads/master | <repo_name>rokoDev/UDPClient<file_sep>/sources/CMakeLists.txt
list(APPEND UNIX_BUILD_TYPES_CLANG_FLAGS
"-std=c++17"
"-Werror"
"-pedantic-errors"
"-Wall"
"-Wextra"
"-Wconversion"
"-Wsign-conversion"
"-Wshadow-all"
"-Wunreachable-code"
"-Wuninitialized"
"-Wold-style-cast"
"-Wfloat-equal"
"-Wcast... | 664f8560e27bc02c9dce9a05fc89a008b8e804db | [
"Markdown",
"CMake",
"C++"
] | 8 | CMake | rokoDev/UDPClient | f1837fc0a191e4885100b4fe4548405673c3d9fd | 56aca92dd49fe0221a87a14b5737524c2087b943 |
refs/heads/master | <repo_name>AoxiangGeng/Multiple-audios-Matching-Engine<file_sep>/new_match.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Header :
This program illustrates a new match algorithm which combines the note_extraction from Silvet
pitch active results and match correction with a LCS and Cosine algorithms.
@auth... | 9c5e29586f57fdabfecaf7cc63cf390c6cd69ab1 | [
"Python",
"Text"
] | 14 | Python | AoxiangGeng/Multiple-audios-Matching-Engine | 3a51f098eb3670a14a5c8f6ab0002c3515ca363e | 5efc5792894c380b531ae2d0d366976b9a2b6565 |
refs/heads/master | <repo_name>fellakmoh876/web-scraping<file_sep>/scrape.py
# requests for fetching html of website
import requests
# Make the GET request to a url
r = requests.get('http://www.cleveland.com/metro/index.ssf/2017/12/case_western_reserve_university_president_barbara_snyders_base_salary_and_bonus_pay_tops_among_private_colle... | 9c664238361a7dde8b51805ef53dd369d94dd684 | [
"Python"
] | 1 | Python | fellakmoh876/web-scraping | 3e27dcd3619a44043ecc2c11cebe9fe9975467d9 | 67864648849c02dff019842d019fa24a8479a10d |
refs/heads/master | <repo_name>Lam7150/CollegeBinder<file_sep>/app/src/main/java/com/example/lam7150/collegebinder/SearchActivity.java
package com.example.lam7150.collegebinder;
import android.app.SearchManager;
import android.content.Intent;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import androi... | 8acd7b683d420b675376bf5fe5140d45c859ead6 | [
"Markdown",
"Java"
] | 3 | Java | Lam7150/CollegeBinder | be70cbc7efece4e58bd7fd1604f7bdd8028949a7 | 09c566ff45a8209fa520cc3fb1c47785b2e69040 |
refs/heads/master | <file_sep>import nodemailer from 'nodemailer';
let transporter = nodemailer.createTransport({
host: 'email-smtp.us-east-2.amazonaws.com',
port: 587,
secure: false,
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS
},
tls: {
rejectUnauthorized: false
}... | 335a6926238509105f05b90b7e9ffb37e5e1c8e0 | [
"TypeScript",
"Dockerfile"
] | 9 | TypeScript | bboa3/dortt-server | ea5048d5a41f1d805bfe8508f7598612211bfc03 | db8ee7e4e2fe075bb6386f3b2c5b1dff2cfb80eb |
refs/heads/master | <file_sep><?php
$this->load->view('common/header');
?>
<div class="container paddingT60">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h2 class="text-center login-title">Sign in</h2>
<br>
<div class="account-wall">
<?php echo form_op... | cc370435b43477cb2600253c7443601008b2bec9 | [
"JavaScript",
"SQL",
"PHP"
] | 8 | PHP | nazmule27/jbcweb | cd31cd55be23a7b152e66394771158e5742493ee | 61b7c24952ca9da7823c102b730a786770cb156f |
refs/heads/master | <file_sep>package com.example.study.movieapp1;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuItem;
... | e6a4aee1092fb474109b10e263a4605fdf289213 | [
"Markdown",
"Java"
] | 2 | Java | aman-sahai/MovieAppStage1 | cfdee362acb64c0c1e184521e980d8aae1b4f314 | 81c794a57eafad94af67b5aa2e82fdb28d5c80a3 |
refs/heads/master | <repo_name>League-level3-student/level3-module2-NY-Giants<file_sep>/src/Checkpoint2.java
import javax.swing.JOptionPane;
public class Checkpoint2 {
public static void main(String[] args) {
int[] ALT = new int[5];
String ET;
int DD;
for (int i = 0; i < ALT.length; i++) {
ET = JOptionPane.showInputDialog("Pi... | add8eaca4587d0b18fd2324265e8227df0c92c8a | [
"Java"
] | 3 | Java | League-level3-student/level3-module2-NY-Giants | 6094062039032e2e322524f36f1684ae4492d427 | fcfde63aa2e3a8c26f303a10c6e588516fa6ff64 |
refs/heads/master | <file_sep>import parseJson from "parse-json";
const IPGeoKey = "13a068f7429343e496052365e92986ee";
const nodePrefix = "https://node1.delegate.ipfs.io/api/v0/dht/";
const localPrefix = "http://127.0.0.1:5001/api/v0/dht/";
const LARGE = 100000;
function Response(name, color, dashGap, labelPrefix) {
this.name = name;
... | 374a9a5c3a09f678763fd60924ebecffae37f9d9 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | dwarkeshsp/ipfs-globe | b066ff66391752af53bbd20e768b982bc2b8a256 | 4c24bf23343bb1cefece640a3e4f635bb7d9f18a |
refs/heads/master | <repo_name>tinyfeng/92yilin<file_sep>/Gemfile
source 'http://gems.ruby-china.com'
gem 'nokogiri'
gem 'pry'
gem 'rest-client'
<file_sep>/spider.rb
require 'nokogiri'
require 'rest-client'
require 'pry'
def print_title url
begin
res = RestClient.get url
doc = Nokogiri::HTML res.body
doc.css('.blkContainerS... | 45e5d0fd8218d2309f2a90ce825a5c73949c2968 | [
"Ruby"
] | 2 | Ruby | tinyfeng/92yilin | a74acb8b9a593472698fc56f90b16d0cc5572b8e | c18fda4ab1d858a94b935f12138b11205a5f6327 |
refs/heads/main | <repo_name>winstonmark/Goli_Nutrition<file_sep>/Test Suites/Goli_Suite1.ts
<?xml version="1.0" encoding="UTF-8"?>
<TestSuiteEntity>
<description></description>
<name>Goli_Suite1</name>
<tag></tag>
<isRerun>false</isRerun>
<mailRecipient></mailRecipient>
<numberOfRerun>0</numberOfRerun>
<pageLoadTim... | 194115ae4647f993bee48679245fae2200324560 | [
"TypeScript"
] | 1 | TypeScript | winstonmark/Goli_Nutrition | 2d1a53cf1b1287a8c716f92f06892c8eed3f9802 | c95420415cac3d41bd25206855ec6ab751bcef51 |
refs/heads/master | <file_sep>import React from 'react';
import './Output.css';
function Output(props) {
return (
<div className="Output" onClick={props.delete}>
<p>{props.character}</p>
</div>
);
}
export default Output;
<file_sep>import React from 'react';
import './Header.css';
function Header() {
return (
<d... | 38585964f87786ef2f6c7beeff455c53a1680fe9 | [
"JavaScript"
] | 6 | JavaScript | DCasely/REACT-Form-Validator | 325f2807a48a6e5cdc82c2d61e6e79effb47052f | 730b1a6a48b6f990a72a0a18a8bf62284d151d29 |
refs/heads/master | <file_sep># Fedczuk.PPLABIParte2.1A
Segunda parte del primer parcial de Laboratorio I.
<file_sep>#include "bibliotecaPPLab I.h"
char mostrarMenu()
{
char opcionIngresada;
char opcionTransformada;
printf("\nA. ALTAS MASCOTAS");
printf("\nB. MODIFICAR MASCOTAS");
printf("\nC. BAJA MASCOTAS"... | 5b755d674bb51bae45c1f41d0a6fd7cde424a1bb | [
"Markdown",
"C"
] | 4 | Markdown | AlexFedczuk/Fedczuk.PPLABIParte2.1A | 530bf47eadbefc29c79d42eb2a29c6013205c459 | 721c9f4974e3e21011b3782f6ebb257558c2695a |
refs/heads/master | <file_sep>import React from 'react'
export const Output = props => <div className="output"> {props.output}</div>
<file_sep>import React from 'react'
export const ClearButton = () => <div className="clear-btn">
<button>
Clear
</button>
</div>
| 9700aee92532367dbe45e8a6f665cf444c447fdf | [
"JavaScript"
] | 2 | JavaScript | evanyang1/react-mathjs | c7f1494acc8527ccf9dfc737ca0bfa9d950abbcd | 7a05d7cd508b7c55d2b6a1fcdfb9b598b35b1365 |
refs/heads/master | <file_sep>for i in $(seq 1 $1); do
echo "Launching client $i"
python client_multi.py &
done
# if [ "$2" = 1 ]; then
# echo "Launching profile spammer"
# python client_spammer_with_profiling.py
# fi
<file_sep>import socket, ssl
from socket import AF_INET, SOCK_STREAM, IPPROTO_TCP, TCP_NODELAY
from random import ... | 44935ae366d9a3db7cedee474c6b3a3476ee6b85 | [
"Python",
"Shell"
] | 9 | Shell | Laxen/speed-test | 15538dcc17469c19d97c2b87e68aa68769110e5c | 0d104708c8a40c42834b6f7d277577aa242f2cd5 |
refs/heads/master | <repo_name>balint77/AIND-Recognizer<file_sep>/my_model_selectors.py
import math
import statistics
import warnings
import numpy as np
from hmmlearn.hmm import GaussianHMM
from sklearn.model_selection import KFold
from asl_utils import combine_sequences
class ModelSelector(object):
'''
base class for model sele... | 6d69775340dffa7995f3eeecd40e0bd6ff8304c6 | [
"Python"
] | 1 | Python | balint77/AIND-Recognizer | 06e71c88cd03386e13aaa903f8bc6bab48461345 | 989a98959974925ccf1b12ba445ac0e170d47df9 |
refs/heads/master | <repo_name>ZhaiJiaLi/myxiaomiwang<file_sep>/js/index.js
window.onload=function () {
//头部的选项卡
let shoppingdown=document.getElementsByClassName("shoppingdown")[0];
let mainright=document.getElementsByClassName("mainright")[0];
mainright.onmouseenter=function () {
shoppingdown.style.height="98px";... | 9200377f400b80b38807b0696ac4cf3cf79fca58 | [
"JavaScript"
] | 2 | JavaScript | ZhaiJiaLi/myxiaomiwang | d4d2a33e0709521771f33b673b9c60f3184c1d5c | 1723457d424859b928ba2632a9615ba0c6b17e29 |
refs/heads/master | <repo_name>padiazg/gorilla-mongostore-test<file_sep>/readme.md
# Gorilla Mongostore test
Test to undestand how this works
https://github.com/gorilla/sessions
https://github.com/kidstuff/mongostore<file_sep>/main.go
package main
import (
"log"
"net/http"
"net/http/httptest"
"github.com/globalsign/mgo"
"github.c... | 8e03b60d4bab97e764fc062fae1ee90557c0b2c3 | [
"Markdown",
"Go Module",
"Go"
] | 3 | Markdown | padiazg/gorilla-mongostore-test | a25b3e8e55c9da319e07457e6f0286a6b3be8c31 | 985ad3bf490fde93531b4285a64825cbd9d73d3a |
refs/heads/master | <file_sep>package com.edu.appswbd.practica.dos.curriculum.controller;
import com.edu.appswbd.practica.dos.curriculum.model.CurriculumVitae;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bi... | 486d7dd5cb8a6c052b8d387458c68799a34c77d4 | [
"Java"
] | 1 | Java | rxcaz00/CurriculumVitae | 89cb3cde594169359726add458f658632e69ea10 | e4156c68d09f00eadac9fa8ea13e3b0d5a43494d |
refs/heads/master | <repo_name>harry-wood/osmvoting<file_sep>/www/db.py
from peewee import *
from playhouse.db_url import connect
import config
database = connect(config.DATABASE_URI)
class BaseModel(Model):
class Meta:
database = database
class Nominee(BaseModel):
nomination = IntegerField(index=True)
who = CharF... | 87865c677e7e16008860b97deb0487d82b1bb502 | [
"Python",
"HTML"
] | 4 | Python | harry-wood/osmvoting | 63853a964335380685f24465e19ac1370e6cf56d | fd299da5f61cc5fbbfa392e00031beffe3ea4517 |
refs/heads/master | <file_sep>package rule;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import core.Location;
@SuppressWarnings("serial")
public class BishopRule extends Rule {
public BishopRule(Observable ob, Rule rule, Location location) {
super(ob, rule, location);
ob.addObserver(this);
}
... | baef90235e0a029d86797c9faf5a86266726c642 | [
"Java"
] | 12 | Java | lightning001/myChessAI | b206f6765d421c5e6c37b6224ba398d776afcd98 | c37eb5e0fea475e6d16b53c659e5e210e84cbfe0 |
refs/heads/main | <repo_name>HeitorCervantes/SEII-HeitorCervantesGomes<file_sep>/ProjetoYOCTO.py
# Criar um diretório para setar OE-Core
# mkdir home/oe-core
# cd home/oe-core
# repo init -u https://github.com/HeitorCervantes -b dunfell -5.x.y -m tdxref/default.xml
# repo sync
# . export
# cd layers
# cd meta-nxview/
# tree
... | 70f3f9a56a7077129dd0285557c2c9401ddaf02c | [
"Python"
] | 2 | Python | HeitorCervantes/SEII-HeitorCervantesGomes | f58c20e636587cec8037b67f9f6534e90ce4f61b | 9df3877f53478d97789b6bdb8d98f25e5ee55962 |
refs/heads/main | <repo_name>LaoLiulaoliu/cpp_vs_numpy<file_sep>/np_multiply.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: <NAME>
import numpy as np
import time
import numba
from numba import jit
def process(func):
t = time.time()
func()
print(time.time() - t)
def fill_np():
vector_size = 100000000
... | 7a6d343b2981e3dbb4270dcf581d192a79298189 | [
"Markdown",
"Python",
"C++"
] | 3 | Python | LaoLiulaoliu/cpp_vs_numpy | 8cf32d3da1785d6cc202dfa4d3b291bbea5300f6 | 3974f7319a707aa33e7f45d57b68bcd5e5b2b8ae |
refs/heads/master | <repo_name>vijaypadidapu/Maven_Project<file_sep>/src/main/java/com/pageobjects/LoginFB_Excel_POM_Exercise.java
package com.pageobjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class LoginFB_Excel_POM_Exercise {
WebDriver driver;
... | 1d7235d49889eddb2e9cb7ebe0a3f701c1617987 | [
"Java"
] | 2 | Java | vijaypadidapu/Maven_Project | ef251f7248a92aa5fa5720f357eecc0fdbe97a44 | e6d39de4c2108ecea7adf910653949facda4db07 |
refs/heads/main | <file_sep>import React, { useState } from 'react';
import Logo from './Logo';
import Nav from './partials/Nav';
const Header = () => {
const [headerClass, setHeaderClass] = useState('default');
document.onscroll = () => {
setHeaderClass(
document.body.scrollTop > 100 || document.documentElement... | 874c3c205ef07db83a675796147d786845ddec66 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | isaokozakai/my-portfolio-site_v1 | a03aa12cf9f4565f58f39b20c761c9c4d08aaf15 | af9855cdeda05a3c44e8f4aa781c46bc18533daf |
refs/heads/master | <repo_name>ptitzler/ibm-cloud-utility-scripts<file_sep>/set_wml_creds.sh
#!/bin/bash
# --------------------------------------------------------
# Retrieve credentials for the specified WML service key
# Parameter: <WML_SERVICE_KEY> - default value: WML-Key
#
# To obtain a list of currently defined service keys run
# ... | 4ada4e17986dcb580e77698fdab7527a76fd77a9 | [
"Markdown",
"Shell"
] | 3 | Shell | ptitzler/ibm-cloud-utility-scripts | 8d8a72efca6f8c1cac76f569c0f0258b8561d74e | c7f521d2dd26389d789f60d98bce884b9e6f30e2 |
refs/heads/master | <file_sep># viewshed analysis
this is a project to explain how to realize the viewshed analysis in 3-d scene.

<file_sep>var renderer;
var camera;
var scene;
var ticks;
function init() {
ticks = 0;
// 渲染
... | 0ea0934f3d91db823e9bb0a70734ed297314c6c3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | GIS-youxia/viewshed-analysis | f6deaf7a4ae24143ddf264ecf1f2f44a34ceedfb | 239ee13e8107fca8842439d5dbcfc60a1d5407e9 |
refs/heads/master | <repo_name>byliuyang/machine_learning<file_sep>/decision-tree/id3.py
from enum import Enum
import numpy as np
class Value(Enum):
pass
class DecisionTree:
class TreeNode:
def __init__(self, label=None, values=None, children=[]):
self.label = label
self.values = values
... | 6acb51209515f18c985c20a2d365386ec408588f | [
"Markdown",
"Python"
] | 4 | Python | byliuyang/machine_learning | 95c4aba5c715502952933aa3e3b36e004e21d411 | db8d483353ccf45496d638d024d97694d110135f |
refs/heads/master | <repo_name>maandree/case.c<file_sep>/src/case.c
//
// case.c
//
// Copyright (c) 2014 <NAME>
// MIT licensed
//
#include "case.h"
extern inline char *case_upper(char *);
extern inline char *case_lower(char *);
extern inline char *case_camel(char *);
| 0a4eac42df6c16bf546a8bde2241dd2e1fd34f21 | [
"C"
] | 1 | C | maandree/case.c | b9a1a00344c8c4de6640ae1c4e8521a72805b9b4 | 5a13263904d5fc868db4fef9330bf438ba5fcca9 |
refs/heads/master | <file_sep># Markdown Editor
This repo will contains a series of tutorials to create a custom markdown editor.
Checkout my [blog](https://blog.bhanuteja.dev) for more details.<file_sep>const customMdParser = require('./customMdParser').customMdParser
const format = require('html-format');
const markdownText = `
# h1 H... | e43b7136814788f759c35e247d938ff844177e59 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | lumenpink/markdown-editor | ce6a8a84da40e8993a4be7a7664c0bc37a05a075 | 24b04ae2a2ef13347f8ccf08ce17fa13d4a4b101 |
refs/heads/master | <repo_name>mlatke17/todo-list-with-no-ui-<file_sep>/index.js
// select the elements
let form = document.querySelector("#new-item-form");
let input = document.querySelector("#item-input");
let list = document.querySelector("#list");
form.addEventListener("submit", function (e) {
e.preventDefault();
// console.log(inp... | dae2ddf386ed500ab459e5a3a6e1fbf9c3932bc3 | [
"JavaScript"
] | 1 | JavaScript | mlatke17/todo-list-with-no-ui- | 412640081c07eec57e1b10b892eda94c2dceb30f | 09f65c2160ef3573cf7e14a39c1142608d4785b2 |
refs/heads/master | <repo_name>LiveSupportApp/LiveSupport<file_sep>/API/Twitch/Window.js
const credential = require('./credential.json')
const request = require('request')
const {BrowserWindow} = require('electron')
class Window {
constructor() {
this.win = new BrowserWindow({ show: false })
this.win.on('closed', () => { this.w... | b2616fac3429ddd7984c7fb58786bec8f99ba139 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | LiveSupportApp/LiveSupport | 087e0909ec6f1f7e9404139758b2934ffa03d9ae | 904a840cf74705910ee5750721e61c38dcc937a1 |
refs/heads/main | <repo_name>nezhov/oop_exercise_03<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 3.17)
project(oop_exercise_03)
set(CMAKE_CXX_STANDARD 14)
add_executable(oop_exercise_03 main.cpp)<file_sep>/main.cpp
#include <iostream>
#include <vector>
#include <cmath>
/*
* <NAME> П М8О-207Б-19
* Разработать классы соглас... | 58581602622a3769f5550aa6095c1964d00d5f43 | [
"CMake",
"C++"
] | 2 | CMake | nezhov/oop_exercise_03 | 35d7a226e9575d484e9a7a067f841c74a113f0d2 | 230a49af9d66b3adfa5ae6ff1a4962baed52959d |
refs/heads/master | <file_sep>// function dollor(a){
// return a*6.33;
// }
// function yuan(a){
// return a*0.158;
// }
// $(document).ready(function(){
// $("#a1").html("人民币");
// $("#a2").html("美元");
// $("#tran").click(function(){
// var b1=$("#a1").html();
// var b2=$("#a2").html();
// $("#... | d06e9296d7066600f3ef7feaaca1ae750bd16ea0 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | wangkx1988/cnpc-frontend-lerning | faef8bbfd09bd61972218bf01ccd0be30beff488 | 5d2af359ade045a7db6ac18e3e8fc0da283ba143 |
refs/heads/master | <file_sep># gonic
Go + Gin + React.js
<file_sep>class App extends React.Component {
render() {
if (this.loggedIn) {
return (<LoggedIn />);
} else {
return (<Home />);
}
}
}
class Home extends React.Component {
render() {
return (
<div className="container">
... | 15fea7796600161660f275f5ae546f2fc1b13c3c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | taufardh/gonic | 6a710f4bb532aa21d4fc0d8a71760458b505bd37 | 010520f95727af1f1c312172e5c905fe12ec846f |
refs/heads/master | <repo_name>adiganga2002/webcardinal-app-examples<file_sep>/examples/ionic/code/scripts/controllers/LoginController.js
const { Controller } = WebCardinal.controllers;
class LoginPopover extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = `
<ion-... | 033cbcd12aa5d65e50e45c3ce8e853a33f813a04 | [
"JavaScript"
] | 2 | JavaScript | adiganga2002/webcardinal-app-examples | bfbf148ae4e539f7c8f01fea5cf37ca52a984faf | ce81c1f0f118a5e342f70df7caea2c02e389f367 |
refs/heads/master | <file_sep>from flask import Flask, abort, jsonify, request
from cassandra.cluster import Cluster
from cassandra import InvalidRequest
from waitress import serve
import os, random, string, time, threading, logging
#setup logging
log = logging.getLogger()
log.setLevel('INFO')
handler = logging.StreamHandler()
handler.s... | effece50993c01b66ae94c2dfa97001d08646cd6 | [
"SQL",
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 12 | Python | rwthompsonii/url-shortener | 888de6918d4cde29b3f530c4f1d7eef228264109 | c338c619f9369fcd1fc9aa045cd117e0bd1ece69 |
refs/heads/master | <repo_name>jmy1604/ih_admin<file_sep>/php/login.php
<?php
include 'config.php';
//登录系统开启一个session内容
session_start();
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>登录系统的后台执行过程</title>
</head>
<body>
<?php
//获取html中的用户名(通过post请求)
$username=$_REQUEST["username"];
//获取html中的密... | af8944d0363449bb531f45f6c02a09e5aeff6609 | [
"PHP"
] | 1 | PHP | jmy1604/ih_admin | afe30ef4cf2b6a4a7d5c05230bf879ce55a67134 | 9057d28d571a40febc985cd68aca121e19246402 |
refs/heads/master | <file_sep>//
// PresentWaypoint.swift
// TiyoNirCore
//
// Created by <NAME> on 1/3/18.
// Copyright © 2018 Nir. All rights reserved.
//
import UIKit
public protocol PresentWaypoint: class {
func withCompletionEntry(_ completion: (() -> Void)?) -> PresentWaypoint
func withCompletionExit(_ completion:... | 8ac0d17c00433ed214bbd2a4636c3eb07c1fd382 | [
"Swift",
"Markdown"
] | 14 | Swift | mownier/tiyonir-core | 7a199b0d1737cb4d8e7448aa2675fd662685b55d | c1d1ada3add048643eca64fd7725403bade67f21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.