branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep><?php
$path=$_SERVER['SCRIPT_FILENAME'];
for ($i=0; $i<4; $i++)
$path=dirname($path);
$wpLoadPath=$path."/wp-load.php";
require_once $wpLoadPath;
echo "<h1>Users</h1>";
$queryarg="%".$_REQUEST["q"]."%";
$query=$wpdb->prepare(
"SELECT * ".
"FROM wp_users ".
"WHERE display_name LIKE %s"... | ad33d424c45296db5740933dee1820550b97db68 | [
"Markdown",
"PHP"
] | 3 | PHP | limikael/find-someone | 35dff2b06c8d223a7f4a39f407f4a588feb92232 | 1264bb4db1e8dfa2ac1a832826747469cf826d44 |
refs/heads/master | <file_sep>package com.example.karthik.sms_app;
import android.Manifest;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support... | 1553fae4930f85ba2f5bf099c98c1caffa85b167 | [
"Java"
] | 1 | Java | KarthikNani/SMS_APPP | 56c19f4bf950e204611c4349f54ad6b8ed0ba123 | 0dee6672a0b93fa5c94da3bd124a93e8bb40e4d9 |
refs/heads/master | <repo_name>Colivhq/NewCoLive<file_sep>/utils/getRoutes.js
const axios = require('axios');
const appRoutes = require('../routes.json');
const Prismic = require('prismic-javascript');
module.exports = async function getAppRoutes() {
// Fetch blogPosts as object with languages as attributes and slugs as their values
... | c76be8b07594c7d6cfc967007e27e9c6efdb7901 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Colivhq/NewCoLive | b7e6d0e2aaef8d901a7bf8009dce2b7096a0bdc3 | 2ac7c6c66a6e874e40b58e2356dca6a5037e3841 |
refs/heads/master | <repo_name>imronreviady/ez<file_sep>/ez-includes/application/models/Slide_m.php
<?php
class Slide_M extends MY_Model
{
protected $_table_name = 'slider';
protected $_primary_key = 'id';
protected $_order_by = 'id desc';
public $rules = array(
'title' => array(
'field' => 'title',
'label' => 'Title',
'ru... | 9faa95339d0e737c7336ae8ae1022cbee7d6cfa0 | [
"Markdown",
"PHP"
] | 23 | PHP | imronreviady/ez | 2834ecba3d0cf9272b4a16631fdb144c89e72dad | 2ba479b8cef09c3160aa4f98169827bc26511ec4 |
refs/heads/master | <repo_name>Beau-Cross/IntegerSplitter<file_sep>/main.cpp
#include <iostream>
#include <cmath>
using namespace std;
void border(){
for (int i = 0; i < 50; i++){
cout << "-";
}
cout << endl;
}
int findLength(int input){
int length;
int inputC = input;
float base = 10;
for (int i = 1; i <= 20; i++){
input ... | 2270ae0e19b028f33279133ea32c9cc760b6ac55 | [
"C++"
] | 1 | C++ | Beau-Cross/IntegerSplitter | 2e6629ac952fe778f8cf5c3088e294fdb2a87ffd | 23635c3619beba510509282646a345d0b6c4d5ca |
refs/heads/master | <file_sep>import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split
from torch.utils.data import DataLoader, Dataset
from transformers import BertModel, B... | fac8bdd7ad98600b35e200ea43433b01180949ec | [
"Python"
] | 1 | Python | FooQoo/bert-torch | 5876e09391fe3b2f9e8b6460820db779cd9b8dfa | cd8343356bb064c98877a67079d0b8a555b5578f |
refs/heads/master | <file_sep># PhD project meeting notes 2020-09-02
Attendees: <NAME>, Gib
## Agenda
* properties of ewas paper
* Item2
* AOB
## properties of ewas paper
### Calculating standardised betas
Can we go over how to calculate beta per sd increase
__NOTES:__
Some meeting notes
## Item2
Some pre-meeting notes
__NOTES:... | df80492428867e54ea20e8f005ad454680b4c96c | [
"Markdown",
"R",
"RMarkdown",
"Shell"
] | 71 | Markdown | thomasbattram/thesis | 6de0595b7eed13dc22d62fd8453da4cd0ae9c845 | fd883027d3796cf61dffa62036d1d385a04e35e9 |
refs/heads/master | <file_sep>Qva.AddExtension('CVL/BasicTable', function() {
// Create a variable to hold generated html
var html = "<table>";
// Local variable to hold the reference to QlikView
var _this = this;
// function to handle users clicking on a row
window.oncvlrowclick = functio... | b6d8fefdbe0aff0feac3055d288e11c3fc10729b | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | derruba2000/BI.experiments | a1de55beb877033ac7cdbb741e23ee0935fe62b0 | 739837af97531e2dae066384c11e4c6be254b091 |
refs/heads/master | <file_sep>#!/usr/bin/python3
import re
import argparse
argparser = argparse.ArgumentParser()
argparser.add_argument('filename', nargs=1, help='file to search for acronyms')
argparser.add_argument('-e', '--encoding', nargs=1, help='input file encoding (utf_8,latin_1,...)', default=['utf_8'])
args = argparser... | d11215d227df7218e368a24142497c1b976374b1 | [
"Markdown",
"Python"
] | 2 | Python | tuomaura/acronyms | 2d7969a04ab8e40be40dc8a41b5a0ab7f1f2bc47 | d640b5ff44eb276efc3135d67b423b4e1233f78a |
refs/heads/master | <file_sep>Simple PNG decoder for Computer Graphics class.
Language:
- C++
Installation:
- Just copy the 8 files into your project.
Preparation:
- Subclass the `cmps3120::png_receptor`.
- Override the `set_header` method. That's how you will
get notified of the width and height of the image.
- Override the `s... | be6b8917be00a203c418765a65b2665cbd41c36c | [
"Markdown",
"CMake",
"C++"
] | 20 | Markdown | noahhendlish/Raytracing | 43b50e66ff0129c8679bc89fe9b1ff4e67c4d113 | ec072c5841552ff23f1f0aeea74df3f9c9c748cc |
refs/heads/master | <repo_name>Lotrotk/portion<file_sep>/Cargo.toml
[package]
name = "portion"
version = "0.2.0"
authors = ["Lotrotk <<EMAIL>>"]
edition = "2018"
license-file = "LICENSE.txt"
readme = "README.md"
description = "Dedicated wrappers for floating point numbers representing a portion of some numerical entity."
repository = "htt... | 36b0c4430e79dcc8c6ce0a60398232ed539c5fb5 | [
"TOML",
"Rust",
"Markdown"
] | 4 | TOML | Lotrotk/portion | 74c2eaa827ebd6de5f36080ccf44626bd8d76875 | 0ef3e67a73bf1d5e09bb779819743f442ae025f9 |
refs/heads/master | <repo_name>JadeMatrix/stickers.moe-API<file_sep>/src/api/user.cpp
#line 2 "api/user.cpp"
#include "user.hpp"
#include "media.hpp"
#include "../common/config.hpp"
#include "../common/formatting.hpp"
#include "../common/logging.hpp"
#include "../common/postgres.hpp"
#include "../common/redis.hpp"
#include "../common/t... | 997b43e4d5cf2c31388e1fd37a9b7a8b1c6f4c3a | [
"CMake",
"C++"
] | 59 | C++ | JadeMatrix/stickers.moe-API | c5ba58f6f2edd17763335fb0725036f6544c6f75 | 3d927100b295ce99872047ee7faa2e4086393738 |
refs/heads/master | <repo_name>nkchouhan/starterpack-app<file_sep>/app/models/photo.rb
class Photo < ActiveRecord::Base
acts_as_taggable
paginates_per 12
mount_uploader :avatar, AvatarUploader
belongs_to :user
scope :desc, -> {order("created_at DESC")}
end
<file_sep>/app/controllers/photos_controller.rb
class PhotosController... | 008fee6d53514f04004825603d512f84a871f6a4 | [
"Ruby"
] | 3 | Ruby | nkchouhan/starterpack-app | d94cc06b9ebd28d8b5f92161c729b404edeafbe1 | 30bb12d81a89e68d163f2f30b5a71a2deb3698d2 |
refs/heads/master | <repo_name>satoshi-3104/Laravel-Weather-Research<file_sep>/app/Http/Services/DarkSky.php
<?php
namespace App\Services;
use GuzzleHttp\Client;
class DarkSky {
public function researchWeather(string $city){
$appid = env('DARKSKY_ACCESS_KEY');
//各都市の緯度と軽度
$cities = array(
"東京... | e0bff1ebeb79cba00ee2550b3b838adc4e4d5656 | [
"PHP"
] | 1 | PHP | satoshi-3104/Laravel-Weather-Research | 40974a3f0c27c58731c0e8e2f5b026435b9dedcb | 901411005e5a231a6ca521b1c9bff2e3de268e1e |
refs/heads/master | <repo_name>npntraining/CSJ_2018_11_18<file_sep>/module03-working-with-webcontrols/src/test/java/Facebook_DropDonwListTest.java
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.Test;
public class Facebook_DropDonwListTest e... | 17b096f64f3d36148529fc23ffe89731388688a3 | [
"Markdown",
"Java"
] | 27 | Java | npntraining/CSJ_2018_11_18 | 3e11761b1da039437ed5b813f975c536b99206b6 | 3dcfc88a6a64e202b872247043bf74ffa3f15370 |
refs/heads/master | <file_sep>#!/bin/bash
# Sets common color
IDX=1
IDX_COLOR="\033[1;32m"
INFO_COLOR="\033[1;34m"
NO_COLOR="\033[0m"
USER_PWD=0
MYSQL_PWD=<PASSWORD>
function step() {
echo -e "${IDX_COLOR}[${IDX}] ${INFO_COLOR}$1${NO_COLOR}";
echo ${USER_PWD} | sudo -S ls > /dev/null 2>&1
IDX=$((IDX+1));
}
step "Create temp ... | 03ba4b7ca1d3adc971edbcc2880cfbeaf7787f5e | [
"Markdown",
"Shell"
] | 3 | Shell | khaperets/linux | 236ca3404efb53d84af1365f1ba9cf87e7ee5ec4 | 8b5ea93dce9742392bf2ec9679c0f4a3b419d81a |
refs/heads/master | <file_sep># Projetos-NBN-Telecom
<file_sep>import paramiko
import sys
import os
import time
from getpass import getpass
#os.remove("hostErros.txt")
ListaIP = open("Lista-IP.txt","r")
comando = open("comandos.txt",'r')
SSH_ADDRESS = ListaIP.readlines()
SSH_USERNAME = "wanderson"
SSH_PASSWORD = "123"
SSH_PORT = "512... | 69d9f6b91db1d66991493d991d8dc868179ce109 | [
"Markdown",
"Python"
] | 4 | Markdown | ws49066/Projetos-NBN-Telecom | d64407090d48dc3007dbc39a829b6129e08479fc | 180c8b70666ee897a2fd02843f334ec83eb9ebb1 |
refs/heads/master | <repo_name>4NI5H/URL-Check_Master<file_sep>/url.py
import pandas as pd #for data frames
import numpy as np #for array manipulation
import random
from tkinter import * #constructing gui
from tkinter import messagebox
import pandas
# Machine Learning Packages
from sklearn.feature_extraction.text import CountVec... | 8f8bf28f7164b0f4b17b79dfc5e422519b309b8c | [
"Python"
] | 1 | Python | 4NI5H/URL-Check_Master | f9c2e6fdfe091818cd4d94201b158ef43f6b0a3e | 5fc7fd0223f7bdec236039b1c3af2e34b6c153cf |
refs/heads/main | <file_sep>#!/bin/bash
# Ubuntu bug workaround (see e.g. https://github.com/reflex-frp/reflex-platform/issues/735)
export WEBKIT_DISABLE_COMPOSITING_MODE=1
export WX_APP_ICON="priv/icon.png"
export WX_APP_TITLE="Todo"
exec iex -S mix
<file_sep># TodoApp: A Desktop Sample App
This application is an example of an Elixir ... | f009930acaa7f5d7c322628415d1fcf71dd39ab9 | [
"Markdown",
"Shell"
] | 2 | Shell | dominicletz/desktop-example-app | 07640e5612845e3ac74e1d545722f30dc30527c9 | a3199cc549d88265be304523c6af58eb4a9d4684 |
refs/heads/master | <repo_name>kyasbal/ts-environment-starter<file_sep>/src/client/components/controls/Schema/IToggleButtonGroupState.ts
export default interface IToggleButtonGroupState {
selectedItem: string;
}
<file_sep>/src/client/pages.ts
import IPage from "./Schema/IPage";
const pages = [
{
type: "control",
c... | 61567e1808569362c4b4cf7446c31d71bb63653b | [
"TypeScript"
] | 17 | TypeScript | kyasbal/ts-environment-starter | 3fdd0a56f1974ecbb9e8ea8a0b26ae023ae14f10 | 7dd70f903d79e15955456b1be409398223c8cbef |
refs/heads/main | <file_sep>let $searchDlg=(function(){
let content=`
<div class="notepad-dlg-search">
<div class="dialogbox notepad-dlgbox">
<div class="notepad-dlg-titlebar">
<p class="title">查找</p>
<span class="close-btn">✖</span>
</div>
<div class="main notepad-dlg-main">
<label fo... | a40c08b6d14bd667095e620371bc549c1345c035 | [
"JavaScript"
] | 1 | JavaScript | foreststarsea/dlg-search | 827c7e34da28c3da9025cac6ccd6fae598654e42 | 84dc10e85a5c86449ae2927d1657533497e93595 |
refs/heads/master | <repo_name>JuanIgnacioOchoa/SD_Practica3<file_sep>/amigos_paralel.c
#include <stdio.h>
#include <mpi.h>
#include <stdlib.h>
#include <sys/time.h>
int suma(int x, int rank)
{
int res = 1;
int i = 0;
for (i = 2; i < x/2; i++)
{
if (x % i == 0)
res += i;
}
return res;
}
in... | 5c27a4fa9c0ce2f36025bd8446d320ac1c7f551b | [
"C",
"Makefile"
] | 3 | C | JuanIgnacioOchoa/SD_Practica3 | 5632b435833dc7fc90552a1b44e4f8b3e6d7db48 | 764e565d7ec367e8765da76f3ef0681b16493510 |
refs/heads/master | <file_sep>from gpiozero import Button, Buzzer, LED
from rpi_lcd import LCD
from time import sleep
import subprocess
import MySQLdb
subprocess.call(["sudo", "modprobe", "bcm2835-v4l2"])
lcd = LCD()
btn1 = Button(13, pull_up=False)
btn2 = Button(5, pull_up=False)
buzz = Buzzer(21)
greenled = LED(24)
redled = LED(18)
tr... | 0e94dcb513b31a58325dfd204ee496271a54d010 | [
"Python"
] | 5 | Python | joshualeejunyi/IOTCA1 | 789f4aad3d2c0f8f54da9e0a0a84b8db8d4c6706 | 7ef18b62a3b4e4eed82a91d41801519e3ac54b93 |
refs/heads/main | <repo_name>marcelo-r/dot<file_sep>/save.sh
#!/bin/bash
declare -A apps
apps+=(
["i3"]="$HOME/.config/i3"
["zsh"]="$HOME/.zshrc"
["tmux"]="$HOME/.tmux.conf"
["alacritty"]="$HOME/.config/alacritty"
["nvim"]="$HOME/.config/nvim"
["rofi"]="$HOME/.config/rofi"
)
# save each config to its own directory
save()
{
echo... | ccd536b04bb8a609afe285dc7e2ebd516c09d02e | [
"Markdown",
"Shell"
] | 3 | Shell | marcelo-r/dot | 461d527bb7f4fae10013570ff2c440d1d5b82612 | c1b65fbc47b2a84ef134b0beafe237cb14149593 |
refs/heads/merc_go | <file_sep># mercury200
##### Документация на русском языке: [Readme-ru](../blob/merc-go/Readme-ru.md)
----
Implementation of Mercury-200 power meter's exchange protocol.
The commands.go file contains all implemented commands. Below is the list of commands with hex codes and corresponding functions in code.
## readin... | ba14f3b662cca5b0f65707e01893a38306a0d16a | [
"Markdown",
"Go"
] | 6 | Markdown | Shkrt/Mercury200 | 0b8744b7fb5714e398ab1709b5f5af307228c847 | 7cbdfe46323431cb626b3d1a66d1926d94ab2505 |
refs/heads/master | <repo_name>y-i/gyotaku<file_sep>/README.md
# gyotaku
Web魚拓をHeadless Chromeで
<file_sep>/todo.md
- [ ] wgetで元々のファイルとCSSを取得
- [x] fetchで元々のファイルを取得
- [ ] puppeteerで動的な部分を取得
<file_sep>/util.js
module.exports = {
shapeURL: (url) => {
if (url.substr(0, 4) !== 'http' && url.substr(0, 4) !== 'file') {
url = 'http://... | 19bc920f760297a73b0552ffb118df01138b266d | [
"Markdown",
"JavaScript"
] | 3 | Markdown | y-i/gyotaku | 878647f81dbf77abfc60cc272590347fe2b00dbd | 32d11fcd488a7f8ff75257bacc3e992a28f1dcaf |
refs/heads/master | <file_sep>controls = {
holding_shift:false,
holding_command:false,
holding_left:false,
holding_right:false,
holding_down:false
};
$(window).keydown(function(e){
e.preventDefault();
if( dialog.running && !dialog.shop_open ){
dialog.wait = false;
return;
}
// console.log(e.which);
// sh... | 08f6b842e828ea0b31be9d46cdff62b41925d5c1 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | gridwalk/ASCII-dig | 140fa2ab37fb85602260ccf71caa3efbe56ae5a2 | 8e7605214c1b643a603c7d698c3a0ff91548bfdc |
refs/heads/master | <repo_name>jvgiv/Algorithms<file_sep>/factorial.py
# Factorial
6! = 6 * 5 * 4 * 3 * 2 * 1 = 720
4! = 4 * 3 * 2 * 1 = 24
what about 0? 0
what about negatives? none allowed
integer only
def factorial(n):
if n == 0: return 1
return n * factorial(n - 1)
def factorial_iterative(n):
product = 1
... | 08e52372cceebd5c5a471e39794b06a29de96905 | [
"Python"
] | 2 | Python | jvgiv/Algorithms | 231356b494f82b77f9aaaf4fcf7b403d52ca0d83 | 22c742187ac682eaa22b2c7057ab506141b1d2a4 |
refs/heads/master | <repo_name>ch4vi/android-CheckTextList<file_sep>/checktextlist/src/main/java/com/ch4vi/checktextlist/CommonConstants.java
package com.ch4vi.checktextlist;
/**
* Created by Chavi on 16/09/2015
*/
public class CommonConstants {
public interface CheckListType {
int MULTI = 0;
int SINGLE = 1;
}... | 3e39b95743b000817de4c95ca2888327e7454f70 | [
"Markdown",
"Java",
"Gradle"
] | 7 | Java | ch4vi/android-CheckTextList | 24028c085db695ce546d5334d56f57f6ff1ebeaa | d6eb0706f108427880f952b31c1f10596b4238bd |
refs/heads/master | <file_sep>import json
def getConfig():
with open('config.json') as f:
return json.load(f)<file_sep># omnireddit
[reddit -> discord] discord bot for posting reddit to discord
| 18233fd94909a59254be8e9a889b976e205bb94f | [
"Markdown",
"Python"
] | 2 | Python | jiralp/omnireddit | b483eec032f39492706d864432085c2ca178fbfb | 6bcaaf5b4b238ad8c3fa094824433d61a48aef14 |
refs/heads/master | <file_sep>package com.nishant;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
/**
* Application Lifecycle Listener implementation class HttpListener
*
*/
public class HttpListener implements HttpSessionAttributeListener {
/**
* Default construct... | 3b77c8bfbb2812fa401457ba65ee688708c9923a | [
"Java",
"INI"
] | 11 | Java | nishant-/ServletsAndJSPs | 02fec36c67ac64c8a8a40de84e4f64e0f75a4fec | 3c5c9bbc363168222ed05bbabc2af3f80d5ae388 |
refs/heads/master | <repo_name>meatbballa/Array-push-demo<file_sep>/arraypushdemo.js
var firstName = prompt("what is your first name?");
var lastName = prompt("what is your last name?");
var array1 = [];
var array2 = [];
array1.push(firstName);
array2.push(lastName);
window.alert(array1 + " " + array2);
<file_sep>/README.md
# Array-pus... | 92194664ea15081195e0a6513344371f5ed8b32a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | meatbballa/Array-push-demo | 351e5230d04a9fc9b95259b62ba539b580fbc24d | 44b26e2c4a3f6952f6cf61db1e3a7ffa753f36fe |
refs/heads/master | <repo_name>QuenchingHeart/clhx-mini-program<file_sep>/pages/contact/makeContact/makeContact.js
const app = getApp();
import { getLocal } from "../../../utils/util.js"
const formUtil = require('../../../utils/formUtil.js')
import { contactPost, contactGet, contactPut, contactDel } from "../../../utils/api.js";
Page({
... | 7ce49b66fb168a6abfc705db49941a633a4333a1 | [
"JavaScript"
] | 10 | JavaScript | QuenchingHeart/clhx-mini-program | 0863aad03fa0e37ced89e3414a855d0b9ed4964b | c56aef0618181e289009990d2164cb193ee3b90a |
refs/heads/main | <repo_name>STINGNGO/ACCIDENT<file_sep>/README.md
# ACCIDENT
DATASET
<file_sep>/Casualty Severity Prediction Model.py
# read the dataset
import pandas as pd
import pickle
data = pd.read_csv("Accident_Dataset_1_prepared.csv")
print(data.head(3))
independent_variables = data.columns
independent_variables = indep... | 8f9ec22e4daf56326d5242333110e3a50071298c | [
"Markdown",
"Python"
] | 2 | Markdown | STINGNGO/ACCIDENT | 0f56039db5be207e21d677fb796b9805bdb5c4ee | 9e0832e9235a35dca5d3364ced8d6e0ab220b0c4 |
refs/heads/master | <repo_name>ZhouXiangLW/nio-feign<file_sep>/niofeign-core/build.gradle
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
e... | 587e28e896a0deaa7e89a7d478cd6ee2377f41bd | [
"Java",
"Gradle"
] | 3 | Gradle | ZhouXiangLW/nio-feign | 1e6d5ea871364e32eb08116c25aca8c69ffb3bd4 | f5d5441ac5d00eeaf4bf8b0cfaad47b10c042121 |
refs/heads/master | <repo_name>keyu-tian/BUAA-DS-2019Spring<file_sep>/assignments/0520_0610/dfs.c
/*
FileName: unique.c
Author: Kevin
Date: 27/05/19 18:01
Description: dfs(backtracking search)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef enum {false, true} bool;
#define MN 1003
int V, E, S, T;
int dest[MN... | 8a4bb18b1b557e8d26407010a420c63fa82446d3 | [
"Markdown",
"C"
] | 37 | C | keyu-tian/BUAA-DS-2019Spring | 81d358a95a8293eeb5fd625b1f689f43de2a08a9 | fd29ab0a2083992ffc03acdec7875f9e4b57226f |
refs/heads/master | <file_sep># Envoy-XDS DEMO
## 目录说明
+ java-control-plane: Envoy xDS 的 Java 版本 gRPC 实现
+ ratelimit-sample: 限流服务<file_sep>package cn.zeran.ratelimitservice;
import io.envoyproxy.envoy.api.v2.ratelimit.RateLimitDescriptor;
import io.envoyproxy.envoy.service.ratelimit.v2.RateLimitRequest;
import io.envoyproxy.envoy.servi... | e62efbbca0fe6fa6336f401331b05a2f60bd5b21 | [
"Markdown",
"INI",
"Gradle",
"Java",
"Shell"
] | 10 | Markdown | ZeRanW/envoy-xds-demo | 07bd1a33eb097877c27fdf7ba391af70434185cc | 029cee7c58831ddacf7bb56dd4322e7793316a90 |
refs/heads/master | <repo_name>ralfebert/Endpoint<file_sep>/Sources/Endpoint/Endpoint+URLSession.swift
import Foundation
import os
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
public extension Endpoint {
@discardableResult
/// Loads an endpoint by creating (and directly resuming) a data task.
//... | 452e278d0e0d223f7f470acae293771f6f0efa2f | [
"Swift"
] | 2 | Swift | ralfebert/Endpoint | 0d0394781bd138dbc7a33ffdf58288f7e8e6b7f7 | b423a02de9383fdd74bf5ef3add0fde7db714e77 |
refs/heads/main | <file_sep>""" All types in Python are Objects
Strongly types and not coerced
Object names function like pointers
"""
import time
m = [9, 15, 24]
def modify(k):
k.append(39)
print("k= ", k)
def replace(g):
g = [16, 3, 9]
print("g= ", g)
def banner(message, border="-"):#Default params
... | d26f2e69b8a87085a7b163515b7596816e2055fd | [
"Markdown",
"SQL",
"Python"
] | 15 | Python | nickmcsimpson/python_playground | 30507e072a0d791ba875b80bcfd367bc003c9376 | e32d1ad03c9c3fcfe67f0d3c077ed3f708d17436 |
refs/heads/master | <repo_name>seaneshbaugh/dandgcreditservice<file_sep>/javascripts/index.js
$.fn.colorFade = function(color, duration) {
if (duration == null) {
duration = 500;
}
return this.each(function() {
var original;
original = $(this).css("color");
$(this).mouseover(function() {
return $(this).stop().a... | a1be4a6695ca00024bd45092eef3d6ed9ca04790 | [
"JavaScript",
"Ruby",
"Markdown"
] | 3 | JavaScript | seaneshbaugh/dandgcreditservice | 331f2695af259fe7675649bd52f1eebd0222b6ab | e66c3fb188dd5dd50eb32d8f80be7b4015b836c0 |
refs/heads/master | <file_sep>$(document).ready(function () {
$(".btn").click(function () {
const var1 = $('#var1').val(),
var2 = $('#var2').val(),
var3 = $('#var3').val(),
var4 = $('#var4').val(),
var5 = $('#var5').val(),
var6 = $('#var6').val(),
speach = $('#speach').val();
cons... | 4df205c47039890ed52d3c6e2938a21acc28a9fc | [
"JavaScript"
] | 1 | JavaScript | YaroslavDrozdovskiy/homework-modA5-yar | 1d02c8825937ebf247cc0db5651b7f1a98f163e2 | d5e154b3bd66f8763d25bebdf6026428485b838c |
refs/heads/master | <repo_name>zamoraricardo15/Recursion<file_sep>/Reverse.py
def reverse( text ):
if len( text ) == 1:
return text
else:
return text[ len(text) - 1] + reverse(text[0:len(text) - 1])
def reverse2( text, index ):
if index == 0:
return text[index]
else:
return text[index] +... | 325779769fd73722f359e9660bba54e11bc720ab | [
"Python"
] | 4 | Python | zamoraricardo15/Recursion | 96f9d7d1b9e5db5aa6dc1d03ffc07a4284b47146 | 11e1db96930cd60e256c179d9b1cf5f7f4c6863c |
refs/heads/master | <file_sep>import { Component } from 'react'
import { ReactComponentLinkedModelInterface } from '../model/react.component.linked.model'
/**
* @class ModelAwareComponent
*
* This class facilitates the registration / unregistration of a React component with the model which, when updated
* will be able to refresh the ... | 848e156efa7fb4e3413aa320dbfed362ba61ab67 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 25 | TypeScript | adamjakab/PPM_Firefox_Client | eec426ffd4d773041af6c9fd498231e42ef54cc7 | 9a648bed74360cc53bf14081e61685be09a1cd46 |
refs/heads/master | <file_sep>#https://code.google.com/codejam/contest/32016/dashboard#s=p0
import sys, datetime
def solve(vectorSize, vectorOne, vectorTwo):
minimumScalarProduct = 0
for i in range(vectorSize):
minimumScalarProduct += vectorOne[i] * vectorTwo[i]
return minimumScalarProduct
def main():
startTime =... | 882bec888f0491873e93a36bfd83ea8794742220 | [
"Markdown",
"Python"
] | 4 | Python | alexvilanovab/GCJ | f13e68cda959de4106ee79f954786054b40994a3 | 34f2f6abf22ff7b51d0046f69ce6134825fb0022 |
refs/heads/master | <file_sep>var contentContainer = document.getElementById("content-container");
//---------------------------------------------------
// TAB PAGE SETUP FUNCTIONS
//---------------------------------------------------
function createProjectEntry(projectKey, project) {
// Create project div
var projectDiv = docum... | a29d833d7eb0e89c5ff91be29e273cabc2c4647b | [
"JavaScript"
] | 2 | JavaScript | bitsauce/bitsauce.github.io | dbdfa0dd19f9a679962e70dc157ec77dd9e49e1b | b89d45d68c31912c4e88b13f365822f577d4a4f2 |
refs/heads/master | <repo_name>artan001/Codeigniter<file_sep>/application/models/feth_province_model.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the tem... | f195f1c177395466bb8a98e7940d82fc68dc68a6 | [
"JavaScript",
"PHP"
] | 17 | PHP | artan001/Codeigniter | 3d6a1c8330150be062cbb119f19ca23aa7d6ffd9 | 22efa63017955056ddefc252eba9dec3656fc077 |
refs/heads/master | <file_sep>snrnasm
=======
SNRNASM RSS feed reader
<file_sep>import urllib2
from xml.dom import minidom
import array
from shutil import copy
from time import strftime
from os import remove
def parse(target):
# start the log
rec('log','%s:Downloading rss feed\n'%strftime('%Y %m %d %X'))
# save the xml so it can be e... | 5efea6a039f73a1f56cff4d86a543a5b8255ad24 | [
"Markdown",
"Python"
] | 2 | Markdown | chkiss/snrnasm | 76a3ae6ca12898db67ac8a4697af5f4f8d208a2e | b27b18f9ac95d4008348a96de9fb414c2626a9e4 |
refs/heads/master | <repo_name>Radesh1/scripts<file_sep>/TrafficShape.sh
#!/bin/bash
########################################################
#VARIAVEIS
int_down=eth1
int_up=eth0
upload=1mbit
download=1mbit
mark=10
ip=10.0.0.0/24
########################################################
start() {
#CRIACAO DAS FILAS
tc qdisc add dev ... | 8d9276f387296545b340c719fa5892845c982a8a | [
"Shell"
] | 3 | Shell | Radesh1/scripts | aebed4a67d7946a2572950afeb4039187efb5d5b | 5ed5b189bbb44bb76411cebb22e3dac70729af94 |
refs/heads/master | <file_sep>#!/bin/bash
ARN_FILE_PATH=".serial"
#Check for config file
if [ ! -f ~/.aws/config ]; then
echo "Missing AWS configuration"
exit 0;
fi
#Check for credentials file
if [ ! -f ~/.aws/credentials ]; then
echo "Missing AWS Credentials"
exit 0;
fi
#Get MFA Serial ARN
mfa_device=$(cat ${ARN_FILE_PATH})
#Pr... | c1a9f849540423851f44502095c6deb7b92e0db4 | [
"Shell"
] | 1 | Shell | ajaymehul/stelligent-u | ecbe2e9d933c309bf7b4d0b6c4dc375cf99dd48c | 8f3e87fd059072c484d2357b7241355d8237eb91 |
refs/heads/master | <file_sep># RowingView
几天前看到鸿阳大神公众号上的一篇推文,里面讨论的 UI 效果也确实让我这个小白惊叹。
{% img /2020/04/28/shen-qi-de-ui-xiao-chuan-ya-you-a-you/0.gif 200 200 %}
第一眼看上去好像没什么大不了的,不就是个列表么,仔细看下,不由得一声卧槽,这个小船!反正我看到这个 UI 效果是没有一点头绪,刚好有人已经做出来,所以就看着别人的 demo,了解下原理,然后试着自己做一个同样的效果。
整体来说搞懂三个方面的问题就可以了:
* 路径的绘制
* 小船的移动
* 滑动进度
# 路径绘制
通过`Path`类,合理运用内部... | 6ab443ab6d2be6d6b6c8618ef1557472f6e48618 | [
"Markdown",
"Kotlin"
] | 7 | Markdown | leaps339/RowingView | 9c5a488b94137cf697bc590a9fe43a50d335cb7e | eca75dc3000d9b1d84a1516dfa89cd4de93669ad |
refs/heads/master | <repo_name>ebracho/Counting-Sort<file_sep>/counting_sort.cpp
#include <iostream>
#include <vector>
#include <fstream>
#include <cstdlib>
#include <time.h>
using namespace std;
const int MAX = 50;
bool counting_sort(const int min, const int max, vector<int>& numbers) {
vector<int> number_index(max - min);
fo... | 4151a092aceaf249705f6a82ce5e84cd74cbb908 | [
"Markdown",
"C++"
] | 2 | C++ | ebracho/Counting-Sort | cbc98c4e98dcc69349c4314507c662656abd78ac | eb77f6b5d77837abce9a898f1e9ee458c6ea47ad |
refs/heads/master | <repo_name>frdeso/lttng-msgpack<file_sep>/msgpack.c
#include <assert.h>
#include <endian.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "msgpack.h"
#define MSGPACK_FIXSTR_ID_MASK 0xA0
#define MSGPACK_FIXMAP_ID_MASK 0x80
#define MSGPACK_FIXARRAY_ID_MASK 0x90
#define MSGPACK_NIL_ID 0xC0
#de... | 5c7422c61485bd0eac91275c82bf16fade684bfe | [
"Markdown",
"C",
"Makefile"
] | 5 | C | frdeso/lttng-msgpack | d24c2e46f858c50e49ba8bf2413485c56087ad27 | 91bab3c33f3b37531bd9db1416376d8d8878c39d |
refs/heads/master | <repo_name>Blonder/resizablelib<file_sep>/ResizableDialog/DemoDlg.cpp
// DemoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Demo.h"
#include "DemoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////... | 9bf4ec0c497e30ffd4900046781c8dcee115d71b | [
"C",
"C++"
] | 2 | C++ | Blonder/resizablelib | 4be351101fdc24cb0d6eb6812cbb33b429421468 | abda20726e34405831b33a933faee3d32262f7a5 |
refs/heads/master | <repo_name>hitswa/The-Pet-Network-Internship-Task<file_sep>/dist/php/api.php
<?php
require_once 'classes/class.functions.php';
require_once 'classes/class.utilities.php';
require_once 'classes/randomuser.php';
require_once 'classes/jokeapi.php';
session_start();
$action = isset($_REQUEST['action']) ? $_REQUEST['acti... | da5c7e078aba205a1a0c133403db64cc69bfa41d | [
"Markdown",
"PHP"
] | 8 | PHP | hitswa/The-Pet-Network-Internship-Task | 7cf06bc2c9adf1f0871932e5ef2a1a8ca167b28b | 325cbe26b16f1d4991fefccf162b70e9054de225 |
refs/heads/master | <file_sep>#!usr/bin/python
from bs4 import BeautifulSoup
import urllib2
import re
sc=[]
def scorecard(bat , ball):
tup=[]
#batting I innings
p=bat.findAll("tr")
for x in p:
k=x.findAll("th")
#print k
for xx in k:
#appending for a complete list
tup.append(xx.get_text().strip())
sc.append(tup)
tup... | 08221f8db95b68836edae153992feb48d8e1df8c | [
"Markdown",
"Python"
] | 2 | Python | iKshitiz/cricscore | 933bc337b4f31b665640c3d37bf20ba54480b4ed | c1a6e55b83309588621b8255950ced0a6b54da04 |
refs/heads/master | <file_sep>import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import store from './store';
import App from './components/App';
import SignIn from './components/auth/SignIn';
import SignUp from '.... | 02af0cc8d6f75e0808b4d23e3a297363982fdd76 | [
"JavaScript",
"Markdown"
] | 25 | JavaScript | Mashadim/EntityAnalyzer | e5b3ea6a0b2943058196ae52925b38628130ddcf | a404b43095653dec501a82df614802fac4a72a22 |
refs/heads/master | <repo_name>MattCoy/testpromo5<file_sep>/page2.php
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
</head>
<body>
<?php echo 'bonjour à tous, ceci est la page 2'; ?>
<a ... | 06010bb6634d68f2b8f6057f23a4b44e74ae7adc | [
"PHP"
] | 1 | PHP | MattCoy/testpromo5 | 928b8d581af0d8156fdd7ee10278c92dd0d928a9 | c133e57c8dc555bfa6e160998fce417649bceb96 |
refs/heads/master | <file_sep>class UsersController < ApplicationController
before_action :require_user_logged_in, only: [:index, :show]
def index
@users = User.all.page(params[:page])
end
def show
@user = User.find(params[:id])
@microposts = @user.microposts.order('created_at DESC').page(params[:page])
counts(@user)
end
def new
@us... | ec9a38f4c08bddf5280b47516d7435483dc74541 | [
"Ruby"
] | 1 | Ruby | kanekotaiki/microposts | 1a41b9a52c6647b2a5012b330fd9c6373dd0927c | ca17a9164ba78ab82375249039eb37e6a374ba8f |
refs/heads/master | <repo_name>DavidBonnemaison/temperature<file_sep>/api/routes.js
module.exports = app => {
const sensor = require('./controller')
app.route('/sensors')
.get(sensor.readAll);
app.route('/sensor/:sensorId')
.get(sensor.read);
};
<file_sep>/api/model.js
const mongoose = require('mongoose'),
... | 5c4b6ccf961222a0aef283e8a8f140c1b02c8838 | [
"JavaScript"
] | 4 | JavaScript | DavidBonnemaison/temperature | 691d3e04d05e40337e2a6cd3ed7fdddc631439bd | aa6cb8b68773214cfbc95541e15cfcdb8b4713de |
refs/heads/master | <file_sep>class MsgsController < ApplicationController
http_basic_authenticate_with name: "admin", password: "<PASSWORD>", except:
[:create, :new]
def new
@msg = Msg.new
end
def show
@msg = Msg.find(params[:id])
end
def index
@msgs = Msg.all
end
def create
@msg = Msg.new(msg_params)
@msg.save
redir... | 275d50a13af5290fed7001e70009f3c116c65137 | [
"Ruby"
] | 1 | Ruby | desnyki/basicsolutionswebsite | 526504afdd056900073a771ff2f5e7e2d94bf7a8 | ecd103f3b67996afa6b6b38d08dfe46ca276f0b7 |
refs/heads/master | <repo_name>VeroWrede/React-Redux-Projects<file_sep>/src/components/containers/ChapterOne.js
import React from 'react';
import { connect } from 'react-redux';
import chapterOne from '../ChapterOne.jsx';
import {switchPage} from '../../actions/simpleActionCreator.js';
import pages from '../../constants/pages.js';
... | db2dd2786de9b0fa10daac46fb89596ab2549f5f | [
"JavaScript"
] | 21 | JavaScript | VeroWrede/React-Redux-Projects | a6c30e6e8ee91e7e69af73c964fb0877c3c3a3b7 | ffd9fa6460048e16583b8d7d565ce3cf1ee990bb |
refs/heads/master | <file_sep>
void writeFlashTest(void)
{
//ŻÔ╦°flash
HAL_FLASH_Unlock();
//
FLASH_EraseInitTypeDef f;
f.TypeErase = FLASH_TYPEERASE_PAGES;
f.PageAddress = addr;
f.NbPages = 1;
uint32_t PageError = 0;
//??????
HAL_FLASHEx_Erase(&f, &PageError);
//3??FLASH??
HAL_FLASH... | 3f5be26e8ae6439b45a7662b561a8c29b6c45eed | [
"C"
] | 11 | C | ribribrib2/STM32F401 | 134d63b5c3714d0e2f9ed929a1f148c8044f28ea | 4b1655d519ca411f4650d7ac21b611c17bcea2bc |
refs/heads/master | <repo_name>joelhelbling/spending-report<file_sep>/src/components/ReportsPagination.js
import React, { Component } from 'react'
import { ListGroupItem, ButtonGroup, Button } from 'react-bootstrap'
class ReportsPagination extends Component {
render() {
return (
<ListGroupItem className="pagination clearfix">... | 17816ba625408e1be197280af12fae7a33057592 | [
"JavaScript"
] | 14 | JavaScript | joelhelbling/spending-report | 84e16f9c3ad0ab6c92402b2e5cf0dd9b224189fd | 1f47c6fba00deef195ec29289e33d440746ed8d2 |
refs/heads/master | <repo_name>elinoretenorio/php-snippets<file_sep>/flip_coin.php
<?php
// Flip a coin until you get three heads in a row
$flip = 0;
$heads = 0;
while ($heads < 3) {
$number = rand(0,1);
$flip++;
if ($number) {
$heads++;
echo 'H ';
} else {
$heads = 0;
echo 'T ';
}
}
echo $flip;
?>
<file_sep>/print_multiples.... | 0a58ca0dda669e2aaa8718f2c6a00d226eac3865 | [
"Markdown",
"PHP"
] | 4 | PHP | elinoretenorio/php-snippets | 8a11ff766300ddd55c7e3581399675afab6a64a3 | 8f8a092ca44d364c9caeccb2d341d28235d6c200 |
refs/heads/master | <file_sep>#!/usr/bin/python
class UnionFind(object):
def __init__(self, N):
self._id = list(range(N))
def union(self, p, q):
raise NotImplementedError()
def find(self, p, q):
raise NotImplementedError()
def get_ids(self):
return " ".join(map(str, self._id))
def d... | 3db3f29affe6aab7fc753c12c26e61cbd2a8ef46 | [
"Python"
] | 2 | Python | mgraczyk/coursera-algo1 | 643e7cf800be03287cefc76bed982dff0bf80dad | 990e55e14629d6f0877ab50e0403affb4abbd3ec |
refs/heads/master | <repo_name>sabarish007/scaleSIMExplorer<file_sep>/README.txt
usage: explorer.py [-h] [-rt RUN_TYPE] [-ht ARRAY_HEIGHT] [-wt ARRAY_WIDTH]
[-if IFMAP_SZ] [-fs FILTER_SZ] [-of OFMAP_SZ]
[-cfg CFG_FILE] [-out OUT_FILE]
Explore ScaleSIM design choices!
optional arguments:
-h, --help... | 166844b70fa55ea79a365dd9c1f8b87aebf2e8f7 | [
"Python",
"Text"
] | 2 | Text | sabarish007/scaleSIMExplorer | 63d0d41fdeecf5408e02d488a8b6ef3b90e0ef76 | 8f0d6a00e70ddc6157643ca817d366fefc6ad808 |
refs/heads/master | <repo_name>Petchdy/day9_note<file_sep>/src/com/company/Main.java
package com.company;
import org.omg.CORBA.WStringSeqHelper;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scan = new Scanner(System.in);
//String A = scan.ne... | 195f9f4132cd293b7aba780afcb9b84529e4b171 | [
"Java"
] | 1 | Java | Petchdy/day9_note | 7c7dc30015e7352a723f1adfe25cddbcefd88878 | b3e19a5c667860243a14319af9a206723b36792d |
refs/heads/master | <repo_name>arjenvanderende/chip8<file_sep>/main.go
package main
import (
"flag"
"fmt"
"io"
"log"
"os"
"github.com/arjenvanderende/chip8/chip8"
"github.com/arjenvanderende/chip8/io/termbox"
)
func main() {
decompile := flag.Bool("decompile", false, "Print opcodes of the loaded ROM")
filename := flag.String("... | 78b8a0b44e59512cc757d32ffae2830cb50f08ad | [
"Go"
] | 7 | Go | arjenvanderende/chip8 | f32acf042cd646d852a532143cd89a9d834985e4 | 8f761ef2530b3d2dd3d4d1471d41196bb7e49340 |
refs/heads/main | <repo_name>sajantanand/sciML-networks<file_sep>/rk4.py
import numpy as np
import sys
import copy
import matplotlib.pyplot as plt
def dydt_sho_2D(t, y):
x, y, px, py = y
return np.array([px, py, -1*x, -1*y])
def dydt_sho_1D(t, y):
x, p = y
return np.array([p, -1*x])
def dydt_anharmonic(t, y):
x, p... | 77c0085ee1acd12e371ea4e2063ff27a55c21fcf | [
"Markdown",
"Python"
] | 2 | Python | sajantanand/sciML-networks | b1137c5e86694b8d7c5bc567327a79f3d5eb6275 | 5ff5a16c1d4d452b079a80c98bd8d7c1e86f8e2e |
refs/heads/master | <file_sep>flake8==3.3.0
tox==2.6.0
<file_sep>[tox]
envlist = py27
[testenv]
deps=
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv=
PYTHONWARNINGS=all
commands =
sh {toxinidir}/scripts/libgit2.sh
[testenv:ubuntu]
commands =
sh {toxinidir}/scripts/libgit2.sh
[flake8]
ignore=E302,H... | b11e1bce9cb85cdb3c2a8065ade92f700fff8f55 | [
"Python",
"Text",
"reStructuredText",
"INI"
] | 8 | Text | andriisoldatenko/pyhelm | 67b40b383014ce26cdd7542506cf22377ec3018a | 939a69f9e0f2fe11940b745342f897b5368cce54 |
refs/heads/master | <repo_name>CharlesMoone/Image-DelayedLoad<file_sep>/js/imageLoad.js
/**
* Created by apple on 16/3/10.
*/
/*
* 图片延时加载
*
* imageSrc : 图片实际的地址,这里是相对于本js的地址
* address : 放置的位置,可以理解为$(x).append()中x的位置,这里需要的dom对象
* imageLoading : 加载图,这里是关闭其显示
*
* */
function imageLoad(imageSrc) {
//图片要防止的位置
var address = document... | bd335e7162c62cab2649cd41de34712d28cc082f | [
"JavaScript"
] | 1 | JavaScript | CharlesMoone/Image-DelayedLoad | 9ceac93b7a795892a9b5021e3905d759b728b4f0 | 087ca49813b6e3bb2e04ce3230764ed20305c747 |
refs/heads/master | <repo_name>Uni-Projects/HiC-Assignment-2<file_sep>/exercise1.c
#include <stdio.h>
int main (void)
{
short i = 0x1234;
char x = -127;
long sn1 = 1024726;
long sn2 = 1023775;
int y[2] = {0x11223344,0x44332211};
char *p = &x;
int j;
printf("---------------------------------------------------\n");
... | 27895e3d99af0d3221d4b42246dc769646974ced | [
"C"
] | 3 | C | Uni-Projects/HiC-Assignment-2 | 29c752f3c47459b4a2e3635550fbc96ee69b4132 | 2546518b52f59810fe63e0ac6295e92af3117b02 |
refs/heads/master | <file_sep>CREATE TABLE PRODUTOS
(Codprod int,
Descrição varchar(20),
Preco numeric(9,2),
Qtde int,
Cor char(20),
CONSTRAINT PK_PROD PRIMARY KEY(Codprod));
insert into PRODUTOS VALUES
(12345,'CHOCOLATE',5.99,150,'AZUL'),
(23487,'AMACIANTE',15.50,30,'AMARELO'),
(97854,'PEPSI',3.00,4,'VERMELHO'),
(13647,... | 921ad76136a2e6c473491006cec2f53e641c73fc | [
"Markdown",
"SQL"
] | 3 | SQL | yurikomuta/exercicios-sql-server---IBD | 0d5fba58ff4f013535583a27a39703c4b8d99f09 | 24f552fb07eeab8156296e99a339bf6e684261db |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class AudioSampler : MonoBehaviour
{
public float[] samples = new float[512];
public float[] freqBands = new float[8];
public float[] bandBuffers = new float[8];
pri... | c6178a90104c25b9186f92513492434c39cb0e87 | [
"C#"
] | 10 | C# | RafaelFreita/SoundAnimation | 82542411c11a5f0d479d315ae23b24534a305a25 | a54973d0fc1d92e8166a951d5983bd256de4502a |
refs/heads/master | <repo_name>wolf5/godmode<file_sep>/modules/rechnungen/menu.inc.php
Rechnungen
Position erstellen=position_erstellen.php
Positionen=positionen.php
Offene Rechnungen=offene.php
Bezahlte Rechnungen=bezahlte.php
Währungsrechner=waehrungsrechner.php
Gutschriften
Anzeigen/Editieren=gutschriften.php
Gutschrift erstellen=guts... | a2b3454f75d4cfdfce2539969fd9590bba32309c | [
"JavaScript",
"PHP"
] | 82 | PHP | wolf5/godmode | 657f411108934cc8e6ef028840dd0bfe4efc818d | 3d4969a1316072046d5cd4ad85ed3aab4996c2c0 |
refs/heads/master | <repo_name>jianhe25/ClusteringDemo<file_sep>/Image-segmentation.js
function loadImages() {
displayImage("c1", "chinaFlag.jpeg");
}
function displayImage(canvasId, url) {
var j = new JpegImage();
j.onload = function() {
var c = document.getElementById(canvasId);
c.width = j.width;
c.height = j.height;... | 6ec03c28b7bff9a4eefe4e083afd9df024bef7d0 | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | JavaScript | jianhe25/ClusteringDemo | c039748aabbf8a3af99d819141e838e464d11b0f | c73ac515195ba94cc8d6919360982b45a8256ca2 |
refs/heads/master | <repo_name>danielmcormond/generator-jasmine<file_sep>/app/index.js
var util = require('util'),
yeoman = require('yeoman-generator');
// jasmine:app generator
//
// Setup the test/ directory.
//
module.exports = Generator;
function Generator() {
yeoman.generators.Base.apply(this, arguments);
}
util.inherits(Gen... | 27dd0e12cfb6b8b0e3dec66cb6748d21b75ca582 | [
"JavaScript"
] | 1 | JavaScript | danielmcormond/generator-jasmine | 0ca72f0edf36c3f9b37c8a6c69e3a0528fdf52e9 | bd7234e4301b24dad171e27d31499cb0e242830f |
refs/heads/master | <repo_name>Krishnaarunangsu/SQLBuild<file_sep>/testclear.sql
use arunangsukrishna;
desc tutorials_tbl;
select * from tutorials_tbl;
exit | 4642676e8b51ecd7a05f6554981c1837dffc62ef | [
"SQL"
] | 1 | SQL | Krishnaarunangsu/SQLBuild | 4b5dbd0cf8a63091e51bccaa205e234833b9560c | ce80c2a85f3429f3f23ecf1105b900e84056a252 |
refs/heads/master | <repo_name>offby1/flask-gunicorn<file_sep>/hello.py
# Run me with
# FLASK_APP=hello.py pipenv run flask run
# or
# pipenv run gunicorn hello:app
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
| 3dfeb56dbd71e996c70794d27e3b1e1548d0481d | [
"Python"
] | 1 | Python | offby1/flask-gunicorn | 81eebe69ad6536876b07ed3e1d9261d78ce53945 | 82190dfc3f0b369c95c5cc29c22e8d7440398ab8 |
refs/heads/main | <file_sep>---
id: 1
firstname: "Michael"
lastname: "Brenndoerfer"
img: "/assets/static/authors/michael_brenndoerfer.png"
homepage: "https://michaelbrenndoerfer.com"
email: "<EMAIL>"
github: "https://github.com/Brenndoerfer"
linkedin: "https://www.linkedin.com/in/michaelbrenndoerfer/"
stackoverflow: "https://stackoverfl... | f76e9e1d2fe41390d09871108ab41c9a50eb7c14 | [
"Markdown",
"JavaScript"
] | 12 | Markdown | Brenndoerfer/terminology.me | fc83f417a5ba61085a08a5252b8e21c5cb2fa7ad | 01b34f17953a2f1a613f01c25f6a0bfa9d5da381 |
refs/heads/main | <file_sep>module.exports = {
'#1 BASIC USER PATH'(browser) {
const cookies = 'button[data-testid="cookie-policy-dialog-accept-button"]';
const facebook = '[data-testid="royal_login_form"]';
const login = '[data-testid="royal_email"]';
const password = <PASSWORD>"]';
con... | 3ca007360858830834d3dfa4953c5814ec8a8266 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | pelowaty/netguru | ffc69593aaac56aeff4657da173c17a932797d5f | b73ef35cc75c7fe923779f8dd8427d12c02faf60 |
refs/heads/master | <repo_name>rzepinskip/bioinf-enhancers<file_sep>/README.rst
bioinfenhancers
===============
Detecting enhancer sequences in DNA
Usage
-----
1. Obtain feature vectors for chromosome 21::
python splitter.py
2. Train the classifier and obtain probabilities in wiggle format::
python classifier.py
Installati... | 56ffa28eaf15260b5aa0d1689d2a02da03e5a282 | [
"Python",
"Text",
"reStructuredText"
] | 7 | reStructuredText | rzepinskip/bioinf-enhancers | 36fc875d0d06fe0e4538d6cec10ce3eb10c2ae79 | f4f95c8f41de04335a06268e94332a8e3777ed00 |
refs/heads/master | <repo_name>InventivetalentDev/jjdoc-spigot<file_sep>/scripts/generate.sh
#!/bin/sh
### First "git clone https://github.com/InventivetalentDev/jjdoc-spigot.git"
### cd scripts
DOCLET_VERSION="1.0.4"
SPIGOT_REV="1.13.2"
# Create temp directory & cd into it
mkdir temp
cd temp
# Download BuildTools
wget https://hub.spi... | e17d01155eb3f3f56fb86b4d4567fce5580448c6 | [
"Shell"
] | 1 | Shell | InventivetalentDev/jjdoc-spigot | dbcd763bd7f976fe927fe81add65ed39ea24cdb9 | 83c55c561d00d31201e5a37fb4986e3c4f66f34c |
refs/heads/master | <file_sep>1st test file
this is uninstall file
testing perpouse
test
<file_sep>#Install sync-gateway
cd /opt/
mkdir -p /softwares/sync_gateway
cd /softwares/sync_gateway
curl -O "https://packages.couchbase.com/releases/couchbase-sync-gateway/2.1.1/couchbase-sync-gateway-enterprise_2.1.1_x86_64.rpm"
rpm --install couchb... | d195dbd447761f619fd30d6c9b740ee593ebffbe | [
"Shell"
] | 15 | Shell | miravali/install-command | 90d8de8ba8449a05fe871afadfcef0b1ae3df4ca | cb9c56db25501a5c6848d9b0faea6bc8ba6e0488 |
refs/heads/master | <repo_name>seleckis/nib-pushup<file_sep>/index.js
module.exports = function(opts) {
var implicit = (opts && opts.implicit == false) ? false : true;
return function(style){
style.include(__dirname);
if (implicit) { style.import('nib-pushup'); }
}
}
<file_sep>/Readme.md
[
type Configuration struct {
Port int
DbServers []string
DbKeySpace string
}
func ... | e41559a849e8060e5468d3627a27879380029054 | [
"Markdown",
"JavaScript",
"Go",
"Shell"
] | 21 | Go | tushar9989/url-short | 7d097a8acb53c03e76e7d158ae4d16b5cb13605b | 23e7e8be66aa1bba4848f17373b759a0a3874c21 |
refs/heads/master | <repo_name>orquidea238/ConfusionServer<file_sep>/routes/dishRouter.js
const express = require('express');
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
var authenticate = require('../authenticate');
const cors = require('./cors');
// J'importe le schema dishes
const Dishes = require(... | f436fe9bb92c24384de3ed87391ba9d1cf7199ac | [
"JavaScript"
] | 1 | JavaScript | orquidea238/ConfusionServer | 95fca1c242b25b5ff88ae58b741b3c9c93d0f425 | cf14126d55f279af3715f24498eeeee17eb751b2 |
refs/heads/master | <repo_name>joelgano/SampleAPI<file_sep>/Services/UserService.cs
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using AutoMapper.QueryableExtensions;
using FlytDex.Domain.Model.FlytDex;
using FlytDex.Domain.Model.FlytDex.Links;
using FlytDex.Domain.Services.Interfaces;
usin... | 1d600252ce05b951da61d62e8936079387d50a58 | [
"C#"
] | 12 | C# | joelgano/SampleAPI | ea992f2ac2ccf0ea307a17173fcea8b96ba49436 | f5016f116a53d585f5e002ea21b709b2452dbb4a |
refs/heads/main | <file_sep># Team Profile Generator
## Assignment
Create a command line interface that uses Inquirer to take user inputted employee information to create a HTML page showing cards of the inputted information. Also create tests using Jest in order to verify the functionality of the employee classes.
### User Story
```... | 8e988ead7f20dfae95a7c659f4d987a0b22f8f27 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | OrtizAlex/Team-Profile-Generator | b7be15492411a1435f2c143af0ddcc79961b2b54 | 51dcfaa8232dc8dcaaaf4222e287f61bb86067ba |
refs/heads/main | <repo_name>akshara-raju/BOOkEATeRs-LibraryApp<file_sep>/src/routes/signupRoutes.js
const express = require('express');
const signupRouter = express.Router();
function routers(nav) {
signupRouter.get('/',function(req,res){
res.render('signup',
{
nav,
title: 'Signup... | 7acd3721ed39b7232b46d9ec15e186b6d12e28c2 | [
"JavaScript"
] | 2 | JavaScript | akshara-raju/BOOkEATeRs-LibraryApp | 84be4836d90389d0abf97453ea147c81dc9e47d6 | 6f1f4a5aa589c25aaa4e39cdac61262c1c440aaa |
refs/heads/main | <repo_name>alcidesmig/dev.magalu.com-docs<file_sep>/examples/check_orders/src/App.js
import React from "react";
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";
import Login from "./components/pages/Login";
import InitialClient from "./components/pages/InitialClient";
import ClientsOrder... | c0294e71e8755c5b2927b59a45ef783b09ee58a5 | [
"JavaScript",
"Markdown",
"Shell"
] | 11 | JavaScript | alcidesmig/dev.magalu.com-docs | 4f9721cba670d9eb945a0bda91c53870dce0b36e | 489d367d68e6f1c7138616e77a42a292a0d3abc8 |
refs/heads/master | <repo_name>sharebright/MagStore<file_sep>/src/MagStore.Web/Models/Product/ViewProductsByCategoryViewModel.cs
using System.Collections.Generic;
using MagStore.Entities;
namespace MagStore.Web.Models.Product
{
public class ViewProductsByCategoryViewModel
{
public IEnumerable<Entities.Product> Pro... | d0701bb3187d9ffdcae43890cc7eb465f0a2094d | [
"JavaScript",
"C#"
] | 105 | C# | sharebright/MagStore | 6b536bac22b0fcd3cc5ea0f8eecbfbdc12a35809 | 255ce0cbefa0cb25660870e835f404c575bf0f0a |
refs/heads/master | <repo_name>fairy-of-9/CoNLL2009_formatter<file_sep>/exobrainToCoNLL2009.py
import json
from os import listdir
from os.path import isfile, join
output_file = open("output_file_path","w",encoding="utf-8")
dirPath = "input_directory_path"
onlyfiles = [f for f in listdir(dirPath) if isfile(join(dirPath,f))]
... | d527237c2384cc03ce8cf559a5c16073233cd640 | [
"Markdown",
"Python"
] | 3 | Python | fairy-of-9/CoNLL2009_formatter | 7b29ce8c2a17e91d6161873d30b2716d474070ee | f83048166d1dab958ab36de00d7a7cd9e157a507 |
refs/heads/master | <repo_name>JeniusYin/ES_Nest<file_sep>/src/Sample.Elasticsearch.Domain/Application/ArticlesApplication.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Nest;
using Sample.Elasticsearch.Domain.Concrete;
using Sample.Elasticsearch.Domain.Indices;
using Sample.Elasticsearch.Domain.Model;
names... | 117aa6fb98902a5711e6732aa8954a677ffd9c10 | [
"Markdown",
"C#"
] | 6 | C# | JeniusYin/ES_Nest | 6250fb9ab4a24079c642034b24644f483a3aa55d | 43e5b54f8ac47bde268d1515ce96967ba2629d65 |
refs/heads/master | <repo_name>Jivvon/cnu-macro<file_sep>/macro_outermonitor.py
# newmacro.py backup
from newrecognition import Recognition
import pyautogui as pag
pag.PAUSE = 0.2
"""
user 환경 : Macos, Chrome, Flash Accept
"""
data = {
"rolldown": (373, 376),
"rollclassname": (373, 512),
"searchbar": (680, 376),
"class... | 7406e1d723848e3135faf138f4ea5ed99fb46d4e | [
"Markdown",
"Python"
] | 4 | Python | Jivvon/cnu-macro | 3e8bfd196dfee01d934e3391a6637f20fbf91d75 | 00604b14564bd7bb0ad1d25d61311525cb7cd722 |
refs/heads/main | <file_sep><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script ... | a30669c544a5660f0de7c8a9b4750a32c0ca2623 | [
"SQL",
"PHP"
] | 3 | PHP | Surajkumar121-gif/database | 4c52e2f1d91a2fe3463355c7ec8c0e496a0165e2 | d02c836475d6f40ceaf60944a2ede4de30dba857 |
refs/heads/master | <repo_name>marcinwyszynski/roo_on_rails<file_sep>/spec/integration/new_relic_spec.rb
require 'spec_helper'
require 'spec/support/run_test_app'
describe 'New Relic integration' do
run_test_app
before { app.start }
shared_examples 'loads' do
it 'loads New Relic' do
app.wait_start
expect(app).to h... | d5cdd740f9c10660dc13efc8e5535ab00ca22df3 | [
"Markdown",
"Ruby"
] | 23 | Ruby | marcinwyszynski/roo_on_rails | 8e9c0eb91cfda135b0919a2bf6c784c0574b0039 | d417fac2067763af040816403a9baa392443f286 |
refs/heads/master | <file_sep>## <NAME>
## Created on 04/13/2019
##
## Python Based Fibonaci LFSR with a Serial Interface
### Acts as the control for the random number generator
### capstone project
### Reads in the LFSR output from an FPGA
### Outputs the numbers generated from the LFSR
### Along with the feed from the FPGA
##
## Linear ... | 05979f75f2a03c9806a56c9f720f0e3bd6b75c4e | [
"Markdown",
"Python"
] | 2 | Python | RipCityBassWorks/python-fibonacci-lfsr | 491610ef0f808eba7caa86e7e36d832e355f0ef7 | 729c62671c254b20ceab709a5211918aed6c88fe |
refs/heads/master | <file_sep>#include "s8051.h"
#include <iostream>
#include <string>
using namespace std;
const set<string> s8051::m_registerName{"ACC", "B", "PSW", "SP", "DPTR0", "DPTR1", "IP", "IE",
"TMOD", "SCON", "TH0", "TL0", "TH1", "TL1", "SBUF",
"TH1"... | 32041ee3954972823f08e6e56b1245ac51c9fb64 | [
"C++"
] | 4 | C++ | Accordeur/Simulate | a5c652e51c20eea587b1331fea8ae46f2b1577be | 5558ef893ffc4f053a68a9fc7a62df58b79102a0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.