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># <NAME>
# Primer Ejercicio
# 1. En una lista se reciben las notas de n estudiantes de un curso. Escriba una funci´on
# notas(lista) que, considerando que la nota de aprobaci´on sea 70, obtenga en una lista:
# (a) Cu´antos estudiantes aprobaron el curso.
# (b) Cu´antos estudiantes reprobaron.
# (c) El promedi... | cee845f473eedd8693b461b02f6d250e7d5339c9 | [
"Python"
] | 5 | Python | Joseph1103/Proyecto_Taller | c185c841dc69f53eaf9d085e00c0d77a64f7d3ec | 04cd2672b608f54c6eea9960a770b68dc1a2dbd3 |
refs/heads/master | <file_sep>#include"pthread_pool.h"
static void*workpthread(void*arg);
static void* adjustpthread(void*arg);
pthread_pool_t *pthreadpool_create()
{
pthread_pool_t *pool=(pthread_pool_t *)malloc(sizeof(pthread_pool_t));
do{
if(pool==NULL)
{
perror("malloc");
break;
}
pool->queue=(task_t*)malloc(sizeof(ta... | 21ee9defc9f5717a67c5587eb279adc274177e46 | [
"C",
"Makefile"
] | 6 | C | cocealx/HTTP-Server | 5fe590ab4249640c0f1a4befd5971aeca01c2a60 | ecd85339fcf31a03795b297a045c087670c35e0f |
refs/heads/master | <file_sep>week = input("weekdag? ")
if (week.lower() == "maandag"):
day = 1
elif (week.lower() == "dinsdag"):
day = 2
elif (week.lower() == "woensdag"):
day = 3
elif (week.lower() == "donderdag"):
day = 4
elif (week.lower() == "vrijdag"):
day = 5
elif (week.lower() == "zaterdag"):
day = 6
... | 2adc215da449793202ad9a2d5caa7878818da7bb | [
"Python"
] | 5 | Python | BrianMourik/nogmaals | 5b5ca09fbd1962824ce80ca85981deacda93b451 | a3e1297f131b7a58e86b8952839fb5b143640e6b |
refs/heads/master | <repo_name>martrs/pbkrtest<file_sep>/R/KR-linearAlgebra.R
.spur<-function(U){
sum(diag(U))
}
.orthComplement<-function(W) {
##orthogonal complement of <W>: <W>orth=<Worth>
rW <- rankMatrix(W)
Worth <- qr.Q(qr(cbind(W)),
complete=TRUE)[,-c(1:rW), drop=FALSE]
Worth
}
##
## Old ... | 248f1a3f08038a8df1ad3d0f4d008fe00e47efae | [
"R"
] | 14 | R | martrs/pbkrtest | 6ba04b9bbd13760fec1d9052013cc554595e6760 | b7f17bf5aad5ad80780ed022d24b4052fed4d5ce |
refs/heads/master | <repo_name>kupyna/JavaScriptCore_Lesson1<file_sep>/lesson1.js
var name;
var admin;
name = "Василь";
admin = name;
alert (admin);
| e3c714962e2f84718d7c9ecd2990c7c4c51d13c9 | [
"JavaScript"
] | 1 | JavaScript | kupyna/JavaScriptCore_Lesson1 | eae5d450a27e080f93edc63d79209fa73954a291 | 02a07adaaac5c130642ff665acf44a70ccb556a9 |
refs/heads/master | <file_sep>import os, re, copy, traceback
from random import randint
os.system('cls')
with open('a_raven.ascii', 'r') as intro: print intro.read()
raw_input("Press ENTER to continue...")
os.system('cls')
weights = {'shape':7,
'size':6,
'inside':2,
'fill':7,
'above':4,
'overlaps':3,
'angle'... | c6047fa5044e8c31dc8ab99ca4b15bc85b483e87 | [
"Python"
] | 1 | Python | rodolfosrg/the_raven | eb97ea4dc7bb7a33236a3d4ef95155c57f26be2a | 5b3f1b87009066353926f3d51cf9eec018be5cef |
refs/heads/main | <repo_name>Ariel0123/HeartDiseaseApp<file_sep>/HeartDiseaseApp/Views/SelectorView.swift
//
// SelectorView.swift
// HeartDiseaseApp
//
// Created by <NAME> on 8/10/21.
//
import SwiftUI
struct SelectorView: View {
@Binding var nameField: String
@Binding var value: String
@State var selectedSex = "... | 151a2d86b9e1fc6a43ae6880267c660a8f784010 | [
"Swift",
"Markdown"
] | 8 | Swift | Ariel0123/HeartDiseaseApp | d6d1b8bebb5fa7c3dec1897dcd1c9a792e8d321a | 5bce0d55414dc951ca2f52f2e83ec4ebea980bf3 |
refs/heads/main | <file_sep>using Microsoft.EntityFrameworkCore.Migrations;
namespace Vehicles.API.Migrations
{
public partial class ModifyVehicleToVehicles : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Histor... | 7f2ef96371337f154d9cc39bd407c33ce9ee605d | [
"C#"
] | 1 | C# | jdbarrera89/Vehicles | b37ef88c9fabe373e83379915e6fc48cf163ee0d | 67638f2c1a21a7e6d3741bfeeefa9dc0f5bd9280 |
refs/heads/master | <file_sep>// GraphZones - Optimization for hit-testing within a partitioned space
// of rectangles.
//
// dx, dy - size of each zone
// xMax - the max width of the space
// Copyright (c) 2007 by <NAME>
function GraphZones(dx, dy, xMax)
{
this.dx = dx;
this.dy = dy;
this.cols = Math.ceil(xMax/dx);
this... | e2795043a57e6a61d28b7228ebf5b4e44904cd8e | [
"JavaScript",
"C",
"HTML"
] | 24 | JavaScript | mckoss/original-mckoss.com | 80a42315df04adb3f708739e25079570cd6cbbca | 89a2df35b6a3bb3e832e4bf50110ce6732ca4dba |
refs/heads/master | <file_sep># _*_ coding:utf-8 _*_
import urllib.request
from tkinter import *
def get_screen_size(window):
return window.winfo_screenwidth(), window.winfo_screenheight()
def get_window_size(window):
return window.winfo_reqwidth(), window.winfo_reqheight()
def center_window(root1, width, height):
screen... | e4b9713d94c5c78717708e04422b79b94124ed5a | [
"Python"
] | 1 | Python | Pig-Tong/sms_bomber | c3805d1259e5f421b28e420c904f254d17a622c3 | dd6b17c9f680a6a9b14b075979ffd44857b05be5 |
refs/heads/master | <repo_name>OleksandrPavlyshch/speed_task<file_sep>/source/elements/scroll-to/scroll-to.js
// 'use strict';
// (function () {
// var $scrollLinks = $('.logo, .header_menu-list_item-link')
// , $htmlBody = $('html, body')
// , $body = $('body')
// , topBlockId = '#hero'
// , menuShowClass = 'is-menu-show'
// ... | 6b0bac2cd91d06e707d87bb095e70dcf48ae4004 | [
"JavaScript"
] | 2 | JavaScript | OleksandrPavlyshch/speed_task | 839c1c9c63be780ce21cc3590959ac3724571228 | 19852a8987431ee4ec6296507e513e7ae1b8160f |
refs/heads/master | <file_sep>print("Hello laloran")
| dd20cc04aa95b4b5887bb4bb351fb763d90818ae | [
"Python"
] | 1 | Python | laloran/Mydir | b878b97c3647e897bf980743724e623b1582264f | fe28efc9a9bd5497c3db8de1dae0f6d2c1ec7430 |
refs/heads/main | <repo_name>PradeepPrasanthS/Inventory<file_sep>/app/src/main/java/com/pradeep/inventory/ui/LoginActivity.kt
package com.pradeep.inventory.ui
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.EditText
import android.... | 35e3fe197a49ab67249726a83a605c93f9f6308f | [
"Markdown",
"Kotlin"
] | 4 | Kotlin | PradeepPrasanthS/Inventory | b4f777d0966ca85e93e21d8510c07c220e008c0b | 7f66acb8fd85b56e15b997b47488b27fe1975e71 |
refs/heads/master | <file_sep>require "./sass_compiler"
Sass.compile(["test.scss"])
| f258e58328165944c37e931a35dbd425d9ff989f | [
"Ruby"
] | 1 | Ruby | encours/font-awesome-test | 3162b73b3c94ba32b243e00168fc8b06ace214d4 | 57a35b1367be8a9986d39d19d5edd7d4b65109ad |
refs/heads/8.x-1.x | <file_sep><?php
/**
* @file
* Contains \Drupal\bigmenu\MenuSliceFormController.
*/
namespace Drupal\bigmenu;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\AlertCommand;
use Drupal\Core\Menu\MenuTreeParameters;
use Drupal\menu_link_content\Entity\MenuLinkContent;
class MenuSliceFormController extends Me... | f9c2ed5b5cb2b1a80aa8db536ffb3333224b5c18 | [
"JavaScript",
"PHP"
] | 4 | PHP | patrickfweston/bigmenu | 0a2e5adffc67893ae8c806c7d3270cfd51d33574 | 470f663af1748d2061fdc31501adbcf2e80e9f61 |
refs/heads/master | <repo_name>alexSp84/EsameFSESpinelli<file_sep>/app/src/main/java/com/example/amministratore/esamefsespinelli/RubricaActivity.java
package com.example.amministratore.esamefsespinelli;
import android.content.Context;
import android.content.DialogInterface;
import android.support.design.widget.FloatingActionButton;
impor... | 41de5f67d640b872cd871652ae77c55dc29eafd1 | [
"Java"
] | 2 | Java | alexSp84/EsameFSESpinelli | cf6e6aa327c6e725291f41ce89cbc26c053ca156 | 611078fdfef986f4b07b30c3c454536463243f69 |
refs/heads/master | <repo_name>heitinder/Heitinder<file_sep>/mustache/datatable_start.mustache.html
{{! the row containing the create new and the filter box}}
<div class="row">
{{! Add entity link }}
<div class="col-ms-3">
{{#createLabel}}
<div class="form-group">
<a id="add_entity_link" href="{{c... | 96b3bfabb00f2bc526e1f51ebb0675c107748ab8 | [
"JavaScript",
"HTML"
] | 4 | HTML | heitinder/Heitinder | bc54b8aba1ad0efa56487e2f524b25be825ef863 | fbbde51d74bc659fed745625955c1f85e89b1073 |
refs/heads/master | <repo_name>Nagisachan/OS-Lab3-56070501053<file_sep>/fifo.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[]){
int numberOfJob;
int *noJob;
int *timeArrive;
int *timeUse;
int *turnaroundTime;
int *responseTime;
float sumTimeUsed = 0;
float sumTurnaroundTime = 0;
float sumRespo... | 4bc71ce6b6319b611fc8af6ec01258ebdeddd90e | [
"Markdown",
"C"
] | 4 | C | Nagisachan/OS-Lab3-56070501053 | e76f4b4f400b07ff0d15beb5c0b829ba35883903 | 3d08e5645844f9576ae052ff905d26cca900351c |
refs/heads/main | <repo_name>ardaayvatas/Java-OOP-Exercises<file_sep>/Flight/src/Expense.java
public interface Expense {
double computeExpense();
}
<file_sep>/Product/src/Product.java
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Product implements Payable{
public int id;
private String brand;
priv... | e5df652ef72e2226bd4050dbad527f9770fc8920 | [
"Markdown",
"Java"
] | 12 | Java | ardaayvatas/Java-OOP-Exercises | 114548d2dbbfc195aec8d58ee114e456d9ca1d72 | d4be08b2b4b584e996c6ec49894705b5bd0934b7 |
refs/heads/master | <file_sep># -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "hiking"
s.version = "0.1.0"
s.author = "<NAME>"
s.email = "<EMAIL>"
s.summary = "A tiny xpath application written with the camping microframework."
s.description = "A tiny xpath application written with ... | 6234e8e7d14b093ef511f9deeff607a36d067f38 | [
"Ruby"
] | 4 | Ruby | ebot/hiking | 4a103c750917725fc489aafd56216dd9542e0f2c | 6371321b9fc8452997b8a7d428d29e2f05f9083b |
refs/heads/master | <file_sep>using System;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using Microsoft.AspNetCore.Http;
// Your Dojodachi should start with 20 happiness, 20 fullness, 50 energy, and 3 meals.[X]
// After every button press, display a message showing how the Dojodachi reacted
// Feeding your Dojodachi... | 3de9d2eb0c48637b38b0848653181166567b39a3 | [
"C#"
] | 1 | C# | ParkerLBrown/DojoDachi | df384d8ddacfb6b3aa4304b2f0206a2b9fc9e7d6 | b8037afac7b6626bef1d3e46bcac1157d032e362 |
refs/heads/master | <repo_name>BegaDavor/test17092018<file_sep>/src/zadatak3/Test.java
package zadatak3;
public class Test {
public static void main(String[] args) {
int[] niz = {2, 4, 1, 5, 3};
MyArray array = new MyArray(niz);
System.out.println("Najmanji: " + array.getSmallestElement());
System.out.println("Najveci... | 07fece06c97de7862c47c4a93480bdcafaff2e24 | [
"Markdown",
"Java"
] | 4 | Java | BegaDavor/test17092018 | 82c5147bf32b14beed1fc7a2d11b11e078dbf235 | 214e17b8d78709c3a73a69c6446f2e151c18c776 |
refs/heads/main | <file_sep># Some topology configuration information and commands
# hostnames
RTA = 'RTA'
RTB = 'RTB'
RTC = 'RTC'
PC2 = 'pc2'
PC1 = 'pc1'
valid_hosts = {RTA, RTB, RTC}
rta_profile = {
'hostname': RTA,
'ip': '172.16.0.2',
'password': '<PASSWORD>'
}
rtb_profile = {
'hostname': RTB,
'ip': '172.16.0.... | 98565e968e09e923ba18977454305c9445528db4 | [
"Markdown",
"Python"
] | 5 | Python | nju-computer-network-2020/network-backend | b4ba147760dd896d7e65efe770ca3849fea5fd4d | f706402f4d0c1571ff192ab1ce11311a948164eb |
refs/heads/master | <file_sep># -* coding: utf-8
from __future__ import print_function
from src.evaluate import evaluate_class
from src.DB import Database
from skimage.feature import daisy
from skimage import color
from six.moves import cPickle
import numpy as np
import scipy.misc
import math
import os
n_slice = 2
n_orient = ... | 4bfa5e8925ce8170ec6d1c541979b956f2cdde61 | [
"Markdown",
"Python"
] | 7 | Python | YulongLee/2020DIGIX-AI--competition | d16020303c00a9179c9083fa4533305a9f1cb4f2 | 0d352b89c226fe78dad0c523d5524960154a8ac6 |
refs/heads/master | <repo_name>Shichisan/object_oriented<file_sep>/test/app-03.rb
# frozen_string_literal: true
# Diameterizableのロールの担い手を作る
class DiameterDouble
def diameter
10
end
end
class GearTest < MiniTest::Unit::TestCase
def test_calculates_gear_inches
gear = Gear.new(
chainring: 52,
cog: 11,
wheel... | 224770b1f1c8b8c8d4af5d50fea72da80bd49e15 | [
"Ruby"
] | 16 | Ruby | Shichisan/object_oriented | 6ce71cd5a0bb4b9c67c8a655f808e13030eab36f | a3420275929a443d0d9ff41169760ad90cff440a |
refs/heads/master | <repo_name>Tomizuahir/Lab-Prog.-I<file_sep>/TP_2_Cascara/funciones.c
#include <stdio.h>
#include <stdlib.h>
#include "funciones.h"
int obtenerEspacioLibre(EPersona lista[],int tamLista)
{
int idLibre=-1;
for(int i=0;i<tamLista;i++)
{
if(lista[i].estado==0)
{
idLibre... | 7e2e92e2b3db5d1c0de9451149f19cb02618983c | [
"Markdown",
"C"
] | 25 | C | Tomizuahir/Lab-Prog.-I | 9d352e1a326fd5d10d3f2190685072099c99d9d0 | 72025c979866639bbcb64245ccdf3c283743b981 |
refs/heads/main | <file_sep>package com.itheima.mybatis.sqlsession.proxy;
import com.itheima.mybatis.cfg.Mapper;
import com.itheima.utils.Executor;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.util.Map;
/**
* @program: day01_eesy_04mybatis_design
* @description... | ef181a2192903e8f105b17999e6ac4973303e0c3 | [
"Java"
] | 4 | Java | yanbaohui/mybatis | 69d265229c28dd33e42c7dbbea3b1909b6319ee1 | 18434f6e8f30232bc16ffd6efd813a691af5b13b |
refs/heads/master | <repo_name>changhyeon743/rush<file_sep>/rush/EndingScene.h
#pragma once
class EndingScene
{
public:
EndingScene();
~EndingScene();
void PrintEnding();
};
<file_sep>/rush/MainScene.h
#pragma once
#include "GameScene.h" //게임씬 클래스 사용
#include "EndingScene.h"
class MainScene
{
public:
MainScene();
... | da7efda975f299584c3775757e577a50b5f8f98c | [
"C++"
] | 12 | C++ | changhyeon743/rush | 3a988941f2c5adc691f583904d01b5d56797780f | 3b2d6b739376006262ebb88a16dc15f018a20eae |
refs/heads/master | <file_sep>#include<iostream>
#include <sys/time.h>
#include <string.h>
#include <map>
#include <string>
#include <vector>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include "globalfunction.h"
using namespace std;
class FileSeg{
public:
FileSeg(int clientId,int fileId,int segId){
mFileId = fil... | a5b96a498b2cb3828e6b83a0470572df8fa651c8 | [
"Makefile",
"C++",
"Shell"
] | 49 | C++ | sunpy1106/Simulator | 2f95cf1a29335353326831fda20fd5ff6dfed554 | b40bf39bb73bbb2526be250a4c48aeed0145df71 |
refs/heads/master | <file_sep>
let orgusername =document.getElementById("email");
let orgemail = document.getElementById("password");
let orgphone=document.getElementById("phone");
let orgpassword=document.getElementById("password");
let orgcpassword=document.getElementById("cpassword");
let submit = document.getElementsByClassName("btn"... | eacddab9e61559e5d62c25d94df25b9cf4005766 | [
"JavaScript"
] | 2 | JavaScript | Akash-Pal-oss/Project1.1 | 64f0e17852fd8df590abe3e7f1e9d55852f7e28c | e74f8049d2078060ca895d5f39d82ded7bd0d60f |
refs/heads/master | <file_sep># Auto generated configuration file
# using:
# Revision: 1.400
# Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: WtoMuNu_14TeV_cfi.py -s GEN,SIM --conditions POSTLS161_V12::All --geometry Geometry/GEMGeometry/cmsExtendedGeometryPostLS... | a6b4833e02bd9d74e15c39cf4adfa9fcece3be91 | [
"C",
"Python"
] | 6 | Python | rradogna/cmssw | f5b309f111747cadc6121dfae4c1b06acb9d2256 | 2c3f2706cd694b2807ef19df021dd77d3955b57b |
refs/heads/main | <repo_name>Souravthakur540/User-Management-System-App<file_sep>/README.md
# User-Management-System-App
CRUD Implementation

<br/><br/>

<br/><br/>

<br/><br/>
<file_sep>/assets/js/index.js
$('#add_user').submit(function(event){
alert("Data Inserted Successfu... | 93b92c3c67e46d59604c27e93cb41dd8e8b6c462 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Souravthakur540/User-Management-System-App | 5a0617938145e4351448f6b985eb6cefbeea9ae5 | 1797ab6ecbc1ab213ef86eb11bea290a42ba5ca8 |
refs/heads/master | <repo_name>AthenOf/pile_exercise<file_sep>/pile.py
# Création de pile #
def cree_pile(n):
return[1]+[None]*n
def empiler(p, x):
if(not is_full(p)):
p[p[0]]=x; p[0]+=1
return p
def depiler(p):
if(not is_empty(p)):
p[p[0]-1]=None; p[0]-=1
return p
def is_empty(p): return p[0]==1 #... | 4e2a04d8b5f425c8fbad697f83340dcda3cb8ecb | [
"Python"
] | 1 | Python | AthenOf/pile_exercise | a7650212b66506c8bb6c878b7c51a862fd6cab85 | 929259db39b25b0571c40514d1bad1d172319589 |
refs/heads/master | <file_sep>//print all natural numbers between 1 to n using recursion
#include <iostream>
using namespace std;
int numAll(int n){
if(n>= 1){
numAll(n-1);
cout<<n<<" ";
}
}
int main(){
int n;
cin>>n;
numAll(n);
return 0;
}
<file_sep>#include <iostream>
using... | 7393235e87197b54e1d8631a610b04e77ed1b9e7 | [
"C++"
] | 3 | C++ | naveenkumar2405/Recursion_Programs | bf9944f7ce44939433b005905557ca80e5c3e715 | 083fec0e959e4d0efe1d76ff06a2e89b3919d243 |
refs/heads/master | <file_sep>context("ShinyBuilder")
test_that('package functions are present',{
expect_true(is.function(dbListInit))
expect_true(is.function(dbListAdd))
expect_true(is.function(dbListRemove))
expect_true(is.function(dbListPrint))
})
# test_that('DB connections work with sample queries',{
# db_list <- dbListIn... | 1a11a087e58ce3721e53ecad19d44403025bf037 | [
"R"
] | 2 | R | johndharrison/ShinyBuilder | ea5d082a149c9c035aaad64ac7c9ef1f868cead4 | 36e0a81dc8ecd2e4d65fa45a988f54423ae3e627 |
refs/heads/master | <file_sep># iQIYI-homepage
Tried to mimic the homepage of iQIYI, my first project : )
This project used HTML5 CSS3, javascript and jquery to finish the outlook of the iQIYI webpage with some interactions. Key take-aways would be:
1. how to write a carousel using jquery only, no pluggings or bootstrap
2. use CSS3 anim... | 2f82a34e194b1a8068fdbdd23486ae08c4eb1815 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Claire-Deng/iQIYI-homepage | b9d4cfd6f880b9038228051009e6f2c2f90b9af8 | 9a6a1da9ab177209b32e94d37b97b587b51febf0 |
refs/heads/master | <repo_name>Dalal1983/SSKNet<file_sep>/Region_Clustering.py
import numpy as np
from collections import Counter
from skimage import color,io
from tqdm import tqdm
def Clustering(img,S_centers, S_clusters):
global flag, idx_hash_final
pix_size = 5 # superpixel s... | 108d0a3f01eb6a9c7c8f043006d7b72e61b831a4 | [
"Markdown",
"Python"
] | 7 | Python | Dalal1983/SSKNet | d32f15896fe3d5a008788f15fa9e738125291e2a | a784e0d1c9cdfe749c039881793fe42d62a63b15 |
refs/heads/master | <repo_name>lyang24/Thinkful<file_sep>/random_forest.py
#cleaning data with pandas
import pandas as pd
#read tables
activity = pd.read_table('C:\Users\<NAME>\Documents\UCI HAR Dataset/activity_labels.txt', header=None, sep=' ', names=('ID','Activity'))
features = pd.read_table('C:\Users\<NAME>\Documents\UCI HAR Dataset/... | 3031d2c79937f65f50694d4881c518a8c3f8af82 | [
"Python"
] | 19 | Python | lyang24/Thinkful | 9d77f291437ddeab6b9b3f74f4bde96d82a285df | 0f26ce1e33da1b18681eabb6d320f3c0c5fab431 |
refs/heads/master | <file_sep>"""
# 新增价格区域
http://test.dairyqueen.com.cn/api/v1/product/3850201175919951873/region/market?stringified=true
allow_sale: true
currency: "CNY"
id: "4055613822868967425"
retail: 10
takeaway_dianping_mobile: false
tax_rate: 0
unit_id: "3932395201819324417"
# 生效价格
http://test.dairyqueen.com.cn/api/v1/product/r... | f280a2574ae1c12a9e9eb8226596a239d15f82f5 | [
"Python"
] | 41 | Python | Wangjt0118/mycode | e377b096997c2cb4f6906b1760e76037ec01c3a9 | 80e91b301562f8e97e3faf2cd2eee591bf05008a |
refs/heads/master | <repo_name>jota40/dietaClient<file_sep>/src/main/java/es/jota/gwt/client/display/fotos/MyUploaderProgress.java
package es.jota.gwt.client.display.fotos;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.... | 4849eedebbe7a88ae9eaf56532bcef1d5e2a89e1 | [
"Java"
] | 43 | Java | jota40/dietaClient | beae7e1fee4280e911d8433b386e2730f76fd363 | d9842d9ab88e6dbb9ea8ff9ea403652b53f8d7da |
refs/heads/master | <file_sep><?php
namespace Security\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Tblrealms
*
* @ORM\Table(name="tblRealms", uniqueConstraints={@ORM\UniqueConstraint(name="strRealmKey_UNIQUE", columns={"strRealmKey"})}, indexes={@ORM\Index(name="fk_tblRealms_tblRealmTypes1_idx", columns={"intRealmTypeID"})})
* @... | 8badf456216c9ea38672f5a80806563016644352 | [
"JavaScript",
"PHP"
] | 60 | PHP | devhood/erp-base | 8c250e44799a3db1740069e465d525a018b403c4 | 25d3c9df32711d5086edfaf2a0548b9968a636ff |
refs/heads/master | <repo_name>EdeJ/dropit-native<file_sep>/config/colors.js
export default {
customBackground: '#EEE9DB',
customRed: '#CB2431',
customLightRed: '#FFEFEF',
customGreen: '#69BA5E',
customDarkGreen: '#58A34D',
customBrown: '#635748',
customBorderBeige: '#D0B899',
customWhite: '#FFF'
}<file_sep... | 9695f25c290b749a356ad322940e686233623b39 | [
"JavaScript"
] | 3 | JavaScript | EdeJ/dropit-native | 35c240479c2a0dc1e5f3d75d97126d11e04768a2 | be5e950ef654b98471263084736a5666fb36ae0c |
refs/heads/master | <file_sep>"# zadanie-17-7"
<file_sep>module.exports = {
'GOOGLE_CLIENT_ID': '366444113234-hrn5o4iti3626dv03v09g75fbt8m24rl.apps.googleusercontent.com',
'GOOGLE_CLIENT_SECRET': '<KEY>',
'CALLBACK_URL': 'http://localhost:3000/auth/google/callback'
}; | 65008dbf9b7c068b65c82253f649f56e0d012653 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | KamilWojtczak123/zadanie-17-7 | 3e7617f06a3827ceb5009fdca9feff03d52673af | a0005b705cf9e495ee53b53e4828f390a35e4518 |
refs/heads/master | <repo_name>ghacupha/redux-sample-project<file_sep>/src/app/state/user.effects.ts
import {Injectable} from "@angular/core";
import {Actions, createEffect, ofType} from "@ngrx/effects";
import {UsersService} from "../users/user.service";
import {
userAdditionWorked,
userAdditionFailed,
usersFetched,
usersFetchFai... | f22a0bb934a1ada1ff0a34710053fa3b49de3d91 | [
"TypeScript"
] | 8 | TypeScript | ghacupha/redux-sample-project | e1c58c56c8892400005b693bd629d2870bc3d46c | 21b6ed66c84734977f1e6714847df4648bedcf15 |
refs/heads/master | <repo_name>chirinom/rails-longest-word-game<file_sep>/app/controllers/games_controller.rb
require 'open-uri'
require 'json'
class GamesController < ApplicationController
def new
letters_array = ('A'..'Z').to_a
@letters = 10.times.map {letters_array.sample}
end
def score
@word = params[:word]
ur... | 77a623ef4b94c40875d5494db4d762061a2aa6aa | [
"Ruby"
] | 1 | Ruby | chirinom/rails-longest-word-game | 99887084a8e742b66c8517511a139cf8f09aa1a9 | b0ceb8a220096097beba2f26440165acc8ca8860 |
refs/heads/master | <repo_name>lb2281075105/RN8818-uniapp<file_sep>/README.md
# RN8818-uniapp
HBuilderX + uniapp + vue 开发Android、iOS 、多种平台小程序(微信、支付宝、抖音、头条等)、H5
```
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/lb2281075105/uniapp.git
git push -u origin master
git pull origin master --al... | f8233c505c6efbf7ea9edcdc2ab18e270572d4ad | [
"Markdown",
"JavaScript"
] | 2 | Markdown | lb2281075105/RN8818-uniapp | 6d43765771599427c2d8bc22ade573c55026d4bc | 6b4408c1585f2d9571ac37695d7418ca27b5547b |
refs/heads/master | <file_sep><?php
namespace Bomeravi\dateConverter;
class dateCalculator {
private $start_date;
private $temp_start_date;
private $temp_end_date;
private $end_date;
private $include_day;
private $step;
private $by_month_day_step;
private $by_month;
private $by_week;
private $total_days;
private $full_diff;
/... | 7b83f14c549162181cc04e05e339c9399bcc3f34 | [
"Markdown",
"PHP"
] | 2 | PHP | bomeravi/dateconverter | 50fa9e4632068abe99c01281f0509cc84b2e56c4 | 51ff46679125d634f2a94694db170b42763da28c |
refs/heads/master | <repo_name>ndifrekea/ContactManager<file_sep>/contact.py
class Contact():
def __init__(self, name, phone, email, website, birthday, linkedin, picture):
self.name=name
self.phone=phone
self.email=email
self.website=website
self.birthday=birthday
self.linkedin=linkedin
self.picture=picture
def set_contac... | 31237723abc69195af3dc231203b361914b537a9 | [
"Python"
] | 1 | Python | ndifrekea/ContactManager | e0ced328faa056aba4ff6b94bc3edfcb16d7e702 | 71c50bb3f32574d6f99d430ed698498bad37c8ef |
refs/heads/master | <repo_name>NathanReginato/Angula-auth<file_sep>/.env.example
DATABASE_URL=postgres://localhost/beer-bonuses
JWT_SECRET=replace
<file_sep>/readme.md
# Beer Bonuses
Installation:
```
createdb beer-bonuses
npm install
cp .env.example .env
knex migrate:latest
```
| 0319eadfb6ee73756ccc4920b763192e4425628f | [
"Markdown",
"Shell"
] | 2 | Shell | NathanReginato/Angula-auth | a2893219d62a6db5eb18cf8d06d331016014975d | 0f466a3460f5d9c68c1bad30169dfbc2f89f21f4 |
refs/heads/master | <file_sep>Game Show App - Phrase Hunter
<p> This is a browser-based, word guessing game: "Phrase Hunter." where the player will be able to select a random, hidden phrase, and tries to guess, by clicking letters on an onscreen keyboard.</p>
<hr>
<h2>Game Rules:</h2>
<p>Each time the player guesses a letter, the prog... | bca7a514ccd2371981ee1d60f62b60c1acda8e6e | [
"Markdown",
"PHP"
] | 4 | Markdown | veggiepilot/game_show_app | e9c3b4ba4e689bb349e92ee04fcef08f4e38bd05 | 70a89e8ff9df5340422d5dafb41dfa19e3883f8f |
refs/heads/master | <repo_name>ghostfeng/YFCategory<file_sep>/README.md
# YFCategory
这里总结了UIKit和Foundation的一些常用的分类,可以用作工具
<file_sep>/YFCategory.podspec
Pod::Spec.new do |s|
s.name = 'YFCategory'
s.version = '0.0.5'
s.summary = 'Some commonly used category.'
s.homepage = 'https://github.com/ghostfeng/Y... | 0da5841d9849089424f1e0dae7d14561de4d58dc | [
"Markdown",
"Ruby"
] | 2 | Markdown | ghostfeng/YFCategory | 2d932651a38ff8023d33108f44feae8ce445f5bc | acb6d1e2d9bf7c847ec59cf015917a0d3c158577 |
refs/heads/master | <repo_name>ryangrunest/SecondSaturday<file_sep>/README.md
# SecondSaturday
Website for Second Saturday, a non-profit in Portland, OR
<file_sep>/SecondSaturday/blog/models.py
from django.db import models
# Create your models here.
class Blog(models.Model):
blog_author = models.CharField(max_length=50)
blog_text = m... | f2209f1df4338e838f3526d24914a87133141bde | [
"Markdown",
"Python"
] | 4 | Markdown | ryangrunest/SecondSaturday | 4ec49ab8aeba87ca1031433abd8458bf0f2c08aa | 93da17d6ea4b6d2880dc92d1e9f492c0b0bb794b |
refs/heads/master | <file_sep>/* Todo List App */
window.onload = function ()
{
//declaring variables for the following;
let form = document.getElementById("form");
let input = document.getElementById("input");
let btn = document.getElementById("btn");
let list = document.getElementById("list");
let btnC... | 46a06c69415824a30e27088ef7fc0c53d0509027 | [
"JavaScript"
] | 1 | JavaScript | rootvi97/rootvi_19438739_AS_2 | f3f0f6195e07e2d6e9b919ab737c6708a7230441 | bd0d981da8595874f9a775f3536bf7aa946778ab |
refs/heads/master | <file_sep>if ! grep "export ROS_HOSTNAME=racecar" ~/.bashrc ; then
echo -e "\nexport ROS_HOSTNAME=racecar" >> ~/.bashrc
echo "export ROS_MASTER_URI=http://racecar:11311" >> ~/.bashrc
fi
if ! grep "192.168.1.100 racecar" /etc/hosts ; then
echo -e "\n192.168.1.100 racecar" >> /etc/hosts
fi
<file_sep>Download mo... | ca2a0ce254bde021644bf7371e3d73737f6cece5 | [
"Markdown",
"Python",
"Shell"
] | 3 | Shell | FoMothrRussa/jetson_car | 3aced75424efda190b108a9dbc33607481f71164 | ef2a721ae5985a2eb995cb18a94be50bc058966f |
refs/heads/master | <repo_name>axynos/LembituKrediit-Reloaded<file_sep>/src/io/github/axynos/LembituKrediitReloaded/SLAPI.java
package io.github.axynos.LembituKrediitReloaded;
import io.github.axynos.LembituKrediitReloaded.LKRManager;
import io.github.axynos.LembituKrediitReloaded.LembituKrediitMain;
public class SLAPI
{
private sta... | 523e6491bbd08abe8e61faf6852ddd078527e051 | [
"Markdown",
"Java"
] | 4 | Java | axynos/LembituKrediit-Reloaded | ad0c1f69b1ee0516fcfa5d4fcbc994237ce14a73 | a6c1ad1849b25e0c29037a8b645168b11461d58a |
refs/heads/master | <repo_name>DoKuNu/AngularJS<file_sep>/Desktop/SUPDEWEB/AngularJS/ANG2support-master/app/components/dashboard.component.ts
import { Component, OnInit } from '@angular/core';
import { Config } from '../config';
import { Router } from '@angular/router';
import { StudentItem } from "../models/student.item";
import { Studen... | 46132eb6a2dd66f02f250c6db2b59701e8d52523 | [
"Markdown",
"TypeScript"
] | 15 | TypeScript | DoKuNu/AngularJS | 4fcf7baeaa3e229754167d8e69330c41feea1b14 | 0251e80181229d8e4ac46cc7e8f6d7b19155a9df |
refs/heads/main | <file_sep># CRUD-Servlets
A simple one-page application to manage books in Books database. Available operations are: Create, Read, Insert and Delete.
Created with technologies: Java EE, JDBC, MySql
<file_sep>package zad1.service;
import zad1.DbHelper;
import zad1.models.Book;
import java.awt.image.DataBuffer;
import ... | 4d4069bc80bc757e9e8b881a7e92097ff83f933c | [
"Markdown",
"Java"
] | 2 | Markdown | s18966/CRUD-Servlets | 83b759cf2717c86be3b24be73bcfb1e33d0112df | e76016864e96737dd30d7cf4f54434072b8290dc |
refs/heads/master | <repo_name>Mayo19/peppercorn<file_sep>/app/models/champion.rb
class Champion < ActiveRecord::Base
end
<file_sep>/secrets.rb
RIOT_KEY="<KEY>"
<file_sep>/app/controllers/api/v1/champion_controller.rb
module Api
module V1
class ChampionsController < Api::BaseController
def index
champions = Champion.a... | c3460ddb328c342a54a2853132987b6b7f26fc99 | [
"Ruby"
] | 5 | Ruby | Mayo19/peppercorn | b2befc238b643eac8c3687b19f56078fbebd2b9d | bf192946852de9866cd792d8eaba8263cad2fac4 |
refs/heads/master | <file_sep>
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.catalina.Session;
... | fa5d48aa237244041742d403799725378393b62e | [
"JavaScript",
"Java"
] | 5 | Java | magicwebsolutions/smartyPOS-BillPortal | 5d82738c6272208abdd6f3ebafc4d5cc0ea1e882 | ab082fe3066a4a7ac8bc0729129436dbe2f0dc63 |
refs/heads/master | <repo_name>ellethee/vim-mediawiki-editor<file_sep>/README.md
# vim-mediawiki-editor
Edit MediaWiki articles from the comfort of Vim, your favorite text editor!
<p align="center">
<img src="https://raw.githubusercontent.com/aquach/vim-mediawiki-editor/master/examples/demo.gif">
</p>
## Installation
vim-mediawiki-e... | f93dbdfe55bd74ab32fc37ab066e47b3ef2c41fe | [
"Markdown",
"Python"
] | 2 | Markdown | ellethee/vim-mediawiki-editor | a2bccb16eef3aaf3d52f5f2753aa106e47e54b28 | ffffaff77d577ffaad6b65848fe4e80e3ccdf03d |
refs/heads/master | <repo_name>LMFinney/toh-pt6-tests<file_sep>/README.md
# toh-pt6-tests
Demonstrating karma and jasmine tests with the Tour of Heroes
<file_sep>/src/app/dashboard/dashboard.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterModule } from '@angular/router';
import { ... | 588479b15b7104c4b9ef0dc8feecdc6f72d00606 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | LMFinney/toh-pt6-tests | 9006fa83a0f428cbfab49231481b7bfced3e225b | 092d86c39c7d367d97179a9089a4d745f1f0be84 |
refs/heads/master | <file_sep>const Park = function (name, ticketPrice) {
this.name = name;
this.ticketPrice = ticketPrice;
this.dinosaurs = [];
}
Park.prototype.dinoCount = function () {
return this.dinosaurs.length;
};
Park.prototype.addDino = function (newDino) {
this.dinosaurs.push(newDino)
};
Park.prototype.addDino = fun... | 8980a33ba2f23c5b6badb0c3e68c2c71528188b3 | [
"JavaScript"
] | 2 | JavaScript | robwilson195/w6-d2-hw-jurassic_park | f9abc196b3c4806c1b916ce6f85d8fa978e8f92e | 6f2647b74e7ee34cb83d985657c466456855dacf |
refs/heads/master | <file_sep>package mfetl
import (
"context"
"database/sql"
"fmt"
"github.com/myfantasy/mfdb"
"github.com/myfantasy/mfe"
)
// CopyTable - copy table from any db to any sql db
func CopyTable(conf mfe.Variant) (err error) {
mfe.LogActionF("", "mfetl.CopyTable", "Conf Load")
dbTypeFrom := conf.GE("db_type_from"... | 3351ef70a6b4f763d32b3321e31e635603d235f1 | [
"Markdown",
"Go"
] | 5 | Go | myfantasy/mfetl | 58cfae1ab9846818758b868745d543a0808c377d | da418ef12b0b92e1ab66c7e5bd2abab4e6ddaafa |
refs/heads/master | <file_sep>import React from 'react';
import Avatar from '../Avatar/Avatar';
import Button from '../Button/Button';
import AvatarImage from '../../assets/avatar.jpg';
import './cardMeetUp.css';
const CardMeetUp = () => {
const thanksForJoin = () => {
alert('Terima kasih sudah join meetup');
}
return (
... | da88c80d6bee52b9c325d594b206fb2424f050ee | [
"JavaScript"
] | 4 | JavaScript | davidwinalda/basic-component | 20acece42a5a7768139e4a16fb82df66935663d4 | 1558ee68a47a0aecbf4b889b75e5b5df820e7966 |
refs/heads/master | <file_sep>
import React, { useState, useEffect } from 'react';
import Header from './components/Header'
import LocationCard from './components/LocationCard'
import Footer from './components/Footer'
import { library } from '@fortawesome/fontawesome-svg-core'
import { fab } from '@fortawesome/free-brands-svg-icons'
impor... | 160f99b7dc9044c47810729be5cea640c29643ae | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | ph81/oxmty | 9b8725ed804281bfd6016bc71d9984c265b34489 | 786191afc3545770779cfaece43ab6f8ff0d13d4 |
refs/heads/master | <file_sep>import { Component, OnInit, Input } from '@angular/core';
import { HttpService } from "../../http.service"
import {ActivatedRoute, Router, Params} from "@angular/router";
@Component({
selector: 'app-showedit',
templateUrl: './showedit.component.html',
styleUrls: ['./showedit.component.css']
})
export c... | dab46c5e205d73f247103b4968083ff6a2eb1897 | [
"TypeScript"
] | 2 | TypeScript | EsC369/Mean_Product_Managers-FullStack | b0430c2e308e348a619fd7f40a63869e7659eb09 | 5251f19f85f48d4218dad98736226b142a09f13c |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace KCrawler
{
public class KeywordDao
{
private readonly static AccessHelper db = new AccessHelper();
public static void DeleteUrlKeyword(int id)
{
const string sql = "DEL... | af3dd4bc3a2bde767c6a025d9786e5a04b45816c | [
"C#",
"INI"
] | 63 | C# | wjcking/Netscape | c620100e7088e1f5eb5884e8bf7f9bf1b15ec45a | 26240ba2feae99b75e0bc75e53cc6d6993d74883 |
refs/heads/master | <repo_name>khadafirp/Tugas-Scan-QR<file_sep>/app/src/main/java/com/example/qrsiswa/MainActivity.java
package com.example.qrsiswa;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.core.app.ActivityCompat;
import android.Manifest;
import android.content.Intent;
... | e169367da2bff8f9fa0d19d8af538a8968230a30 | [
"Java"
] | 1 | Java | khadafirp/Tugas-Scan-QR | 90b6cd6e0ac8be63296f906355d542193a295edc | dc9405e12209b6086d4124d8f0a92493203d90ea |
refs/heads/master | <repo_name>Miv99/MALAnimePredictor<file_sep>/user_collector.py
from datetime import datetime
from mal_scraper import MALScraper
from requests.exceptions import RequestException
from mal_scraper import InvalidUserException
from mal_info import User
import pickle
import logging
from logging.handlers import RotatingFileHa... | 283a970d15d9ce564ad6182cf86d0f67c7dc87f8 | [
"Markdown",
"Python"
] | 5 | Python | Miv99/MALAnimePredictor | 06aafdc014886f7cdf334df7ba253c27e6cf4bcd | a5528dc04f3ab4fc6aaaf2ab91b183eca68dc9ad |
refs/heads/master | <file_sep>DB_DATABASE=
DB_USER=
DB_PASS=
DB_HOST=
DB_PORT=
PORT=<file_sep>version: '3'
networks:
gateway:
external: true
services:
rabbitmq:
image: rabbitmq:3-management
container_name: "rabbitmq"
expose:
- "15672"
- "5672"
- "25676"
networks:
- gateway
ports:
... | 20198b6882b2fc1249c52c86bac330e69d30ff8e | [
"Markdown",
"JavaScript",
"YAML",
"Shell"
] | 12 | Shell | RafaelGSS/microservices-example | 36a48001e03799735cc210a6bcc34501e8d9bb03 | 0e9e9c5087f7e1c49709feabdd40a67726077875 |
refs/heads/master | <file_sep>/**
* Created by Antonella on 2/10/17.
*/
public class Wallaby extends Animal {
@Override
public void name() {
System.out.println("I am Australian.");
}
@Override
public void speak() {
System.out.println("????");
}
@Override
public void bodyParts() {
... | 254d2c0683ed7f15bc1cb57cac8a0166cffe2d67 | [
"Java"
] | 3 | Java | asolomon412/Abstract-InterfaceDemo | 4a9bfd3c666963e95e466bc3d5fcae5a5469f383 | 1ea0e56bd2dfbed5fc5fc5fcb61357b3dc2a8935 |
refs/heads/master | <repo_name>jpedropmont/demo-mvc<file_sep>/src/main/java/com/joaopedro/service/FuncionarioService.java
package com.joaopedro.service;
import java.util.List;
import java.util.Optional;
import com.joaopedro.domain.Funcionario;
public interface FuncionarioService {
public void salvar (Funcionario funcionario);
publi... | 0fab691054d053e8729253512ca82c06d69410dc | [
"Java"
] | 2 | Java | jpedropmont/demo-mvc | b58f19339de81169fb3f17704cd3dbe4a38bf997 | ab3f208d1a55facf397c8b9e7115d402eca83f37 |
refs/heads/master | <repo_name>lookoutldz/lifepoint<file_sep>/src/main/java/com/alpha/lifepoint/dao/DailyItemDAO.java
package com.alpha.lifepoint.dao;
import com.alpha.lifepoint.entity.DailyItem;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface DailyItemDAO extends BaseDAO<DailyItem>... | d45b308f7ff50638cdd2c3f6566bde8ce4986e7e | [
"Java",
"SQL"
] | 6 | Java | lookoutldz/lifepoint | 9f2480f9db1c64de0373ec9d1eea0e13ba03c298 | 5ebda94b10fcf5687923d6d5e9ee4959847bbd0d |
refs/heads/master | <file_sep>---
layout: default
title: "Using Dart with JSON Web Services"
description: "Learn how to consume JSON-based web services with Dart."
rel:
author: chris-buckett
has-permalinks: true
article:
written_on: 2012-04-01
updated_on: 2012-11-01
collection: libraries-and-apis
---
# {{ page.title }}
_Written ... | 0484edbd7812504a43990bb66dc235fadb1c1b09 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | Macb3th/dartlang.org | a954b4d6b28057a059b4e461a9fc6e18e8cb4e1a | 571f4bdeacc6c79f8d6a72a77ced1a355251b342 |
refs/heads/master | <repo_name>chrisdepas/dotfiles<file_sep>/dotfiles/usr/share/i3blocks/clementineNowPlaying.py
#!/usr/bin/env python3.6
# -*- coding: UTF-8 -*-
"""
clementineNowPlaying.py
=======================
Version: 1.0.0
Author: <NAME>
Creation Date: 2018-01-28
License: N... | 56fe34b0bab2df69191808a957a2742ade5f21e9 | [
"INI",
"Python",
"Shell"
] | 17 | Python | chrisdepas/dotfiles | fcc14977811c2e3dcfb84a131b01d9200db7299c | 3cc7df6b0ac9e05d67704eea14b24e197d22b6f8 |
refs/heads/master | <file_sep># FILE METADATA MICROSERVICE
https://file-metadata-uze.herokuapp.com/
<file_sep>"use strict";
const express = require('express'),
multer = require('multer'),
path = require('path'),
fs = require('fs');
const upload = multer({ dest: 'uploads/' });
const app = express()
app.set('... | 0938a107ffcecce33d90b6a4b6c6cea824de8fbd | [
"Markdown",
"JavaScript"
] | 2 | Markdown | uzeuze/file_metadata_microservice | 173ab4a3355a12c52cdef1e09b2f3416002646bb | 372af87afe23a3ed9a4a54bda8d5af43ab6e84b2 |
refs/heads/master | <repo_name>PradeepRajput07/java-core<file_sep>/design-patterns/src/com/psr/dp/fatory/AnimalFactory.java
package com.psr.dp.fatory;
public class AnimalFactory {
public Animal createAnimal(String animalType) {
if (animalType == null) {
return null;
}
if ("horse".equalsIgnoreCase(animalType)) {
return new... | 75dba8c87d091f107f652f4ac32300e09ae74357 | [
"Markdown",
"Java"
] | 21 | Java | PradeepRajput07/java-core | a8075b6857f7fb4b209ad0c21a19e5c952c09650 | 0720e4a3649abf68dc98fc911aead92d3134112c |
refs/heads/master | <repo_name>HarigovindV10/JioFiStatusChecker<file_sep>/README.md
# JioFiStatusChecker
A MacOS menu bar application to check the status of JioFi
<file_sep>/JioFiStatusChecker/Display/DisplayViewController.swift
//
// DisplayViewController.swift
// JioFiStatusChecker
//
// Created by <NAME> on 26/08/20.
// Copyright ©... | 54136125d834a5b77ed72f1b44deefddb27de8d0 | [
"Markdown",
"Swift"
] | 2 | Markdown | HarigovindV10/JioFiStatusChecker | b7647f3438611d22ec2aaa2806c31e4b9a1dd8a8 | ee31f378f590645e31df7a477426622ae0e6f2ae |
refs/heads/master | <repo_name>puuuii/stock_price<file_sep>/basedata.py
import pandas as pd
import pickle
import shutil
import os
def make_basedata():
# 縦持ちのDataFrame作成
basedata = _make_data_dict()
# pickle化
_pickle_data(basedata)
def _make_data_dict():
# 読み込みパス作成
csv_dir = './datas/csvs/'
csv_pathes = [(c... | 9065e4da79f7344ebcbf4b8027795db1ff1cf4a9 | [
"Python"
] | 4 | Python | puuuii/stock_price | dc15b15795193bed03e39500ab0ddcdb65fb0ddf | 83e46c14a9ab421915a351cca308ab9960de2102 |
refs/heads/master | <repo_name>pramilcheriyath/ProgrammingAssignment2<file_sep>/cachematrix.R
# This function creates a special “matrix” object that can cache its inverse
# create a matrix 'x'
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y # settting the value of matrix
i <<- NULL # cl... | f8fc3f3abc3789f29016cf4560aa437d25c7546f | [
"R"
] | 1 | R | pramilcheriyath/ProgrammingAssignment2 | a43c630f86d4ae949dd521e4ceed99bdde2ca296 | fbf89bb0ef5b8cc647a89d82e001c6510ae5d0c8 |
refs/heads/master | <repo_name>malivaibhav15/FlipCoin<file_sep>/FlipCoinSimulator.sh
#!/bin/bash -x
#result=k
declare -A singlet
declare -A doublet
declare -A triplet
singlet=( ["H"]=0 ["T"]=0 )
doublet=( ["HH"]=0 ["TT"]=0 ["HT"]=0 ["TH"]=0 )
triplet=( ["HHH"]=0 ["HHT"]=0 ["HTH"]=0 ["THH"]=0 ["HTT"]=0 ["THT"]=0 ["TTH"]=0 ["TTT"]=0 )
funct... | f3337c4024c710539190f952e75f1a96949bf2f2 | [
"Shell"
] | 1 | Shell | malivaibhav15/FlipCoin | 31b0d3fa6a07c646fbca73b86ae00ce9e7a1975b | 2518aa1089222f6265f34812366230a4f2802bb8 |
refs/heads/master | <file_sep>#include <math.h>
float length_2(a)
/* computes length of vector a
input: a
output: length
*/
float a[];
{float x;
x=sqrt(a[0]*a[0]+a[1]*a[1]);
return(x);
}
<file_sep>void c2_spline(knot,l,data_x,data_y,bspl_x,bspl_y)
/* Finds the C2 cubic spline interpolant to
the data points in data_x, data_y.
Input: kn... | 7f278ec09c87b93868fae459212fec93c11f6841 | [
"C"
] | 2 | C | jasonch/348a | 22d43a06938a9131ca641d2775a9a5185294bd71 | 873d0b151ddf1ba368a71ff25f2ed9d513352d33 |
refs/heads/master | <file_sep>using CasinoSim.Static_Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.... | 19ab2625b6fde108eff8d35400764ffc376bc144 | [
"C#"
] | 9 | C# | SebCushman/CasinoSim | a02438ba3ac55a0fca06871371938a4758830ed7 | e9daeff6dc36f89414528ed4eb1fb2ce9e607833 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""Logical to Physical Mappers"""
import collections
from .logging import get_logger
from .errors import *
__all__ = (
"Mapper",
)
class Mapper(object):
"""Mapper is core clas for translating logical model to physical
database schema.
"""
# WARNING: do not put a... | 66d87613398ce808e6da40749d26064203921dd1 | [
"HTML",
"reStructuredText",
"Markdown",
"INI",
"Python",
"Text"
] | 111 | Python | Squarespace/cubes | cbde63ea61b66ed5f599068e2686f9dcfab39edf | 58f70d3ecf4c2a9ec12b5e159f0bbf29fad49546 |
refs/heads/master | <file_sep>
<?php
//Ausgabe: Wilkommen
echo "Wilkommen";
?><file_sep><?php
//Varaible a initalisierung
$a="Am I alive?";
//Varaible b initalisierung
$b='a';
//Variable b ruft variable a auf Ausgabe: Am I alive
echo $$b;
?> | d92831ff8c5a044f6a080873404f53d72db10348 | [
"PHP"
] | 2 | PHP | RobinWilliamAvci/Website2 | 38221e150c6378d413efd2af57458f97e6297110 | ace863d7807339512a0db2f0f0065a53c2e304ec |
refs/heads/master | <file_sep>from django.shortcuts import render
# Create your views here.
context = {'nome' :[
'gabrieu',
'bruno',
'camila'
],
'vazio' : False
'teste' : 'teste'
}
return render(request, 'index.hmtl',context)
def index(request):
return render(requ... | 1f470e36cd4cebfba3aa8e946cdf5f6a1336ae12 | [
"JavaScript",
"Python"
] | 2 | Python | Gabrieul/python-sexta-feira | 7e401f882cd8475a70608b3035beb8af7985e0c0 | fec22d478452870f57fdced193bbf2c1efcbc4f8 |
refs/heads/master | <file_sep># gravatar
HTML and JS to create gravatar hash for use with emails
<file_sep>function hash() {
var array = $('#email').val().trim().toLowerCase().split("\n");
for (var i = 0; i < array.length; i++) {
var gravatar = $('<img>').attr({src: 'http://www.gravatar.com/avatar/' + CryptoJS.MD5(array[i]) + '?d=blan... | 5807d598a00e4f5dc510d8e8254347d8a29992c3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | stuartsantos/gravatar | d3d280eec547e844e3d83e2dca8aba61966419bc | 1a4c8dc6657522400e2d118a8431b910b7837091 |
refs/heads/main | <file_sep>package com.ladnyik;
import java.io.IOException;
import org.apache.pdfbox.text.PDFTextStripper;
import org.apache.pdfbox.text.TextPosition;
public class PageParser extends PDFTextStripper {
public PageParser() throws IOException {
super();
}
@Override
protected void processTextPosition(TextPosition... | 4574213ee556d777ff89424be49f062152b0b56a | [
"Java"
] | 1 | Java | ladnyik/pdftest | bd5f39ada1548182e475170a09186c0bf1bc5b7d | 4dc94372a18e1acbbc1080e30b925374dd57913d |
refs/heads/master | <file_sep>/// <Licensing>
/// � 2011 (Copyright) Path-o-logical Games, LLC
/// If purchased from the Unity Asset Store, the following license is superseded
/// by the Asset Store license.
/// Licensed under the Unity Asset Package Product License (the "License");
/// You may not use this file except in compliance... | 010df730acb8732c5ea5bf4d135aef70b277fcc3 | [
"C#"
] | 132 | C# | 6HanJo/Client | dc6c76d90e5e0b187272e86317b00e34004ec9b4 | f917bb340a1d96eafba4266c077869c187b4aae3 |
refs/heads/master | <repo_name>kiromic/DeepLearningCyTOF<file_sep>/aging-cytof/automated/plots.py
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [12,8]
fig, ax = plt.subplots()
ax.plot([1,2,3,4],[1,4,3,2])
plt.savefig('example.png')<file_sep>/aging-cytof/automated/run.py
import subprocess
def run(phenotype):
arg... | 3b738d1abb221d53329482aba8f8b06df12e4ea7 | [
"Python"
] | 4 | Python | kiromic/DeepLearningCyTOF | 521f29bfc2fa7a65c2c27de0f82e938abd8c452e | b64e01e8987452ca880d3fb82291dc882355e7cd |
refs/heads/master | <file_sep>let peopleSalary = [
{
id: "1001", fristname: "Luke", lastname: "Skywalker", company: "Walt Disney", salary: "40000"
},
{
id: "1002", fristname: "Tony", lastname: "Stark", company: "Marvel", salary: "1000000"
},
{
id: "1003", fristname: "Somchai", lastname: "Jaidee ... | 3a0f20ca125103763d2f82bafc2e929fe93527b8 | [
"JavaScript"
] | 1 | JavaScript | micotosung/Front-end-Bootcamp | 5045fc25f8ff1df11678d0d6f6222f905de957eb | bdaba5063dc6ed14524b47d587d5e0645df4803f |
refs/heads/master | <file_sep>#!/bin/bash
.bundle/binstubs/rspec-puppet-init
<file_sep>CODE_DIR=/Users/dennisleon/code
alias java_ls='/usr/libexec/java_home -V 2>&1 | grep -E "\d.\d.\d[,_]" | cut -d , -f 1 | colrm 1 4 | grep -v Home'
function java_use() {
export JAVA_HOME=$(/usr/libexec/java_home -v $1)
export PATH=$JAVA_HOME/b... | 2a0ec690a8ed58ba687e01ee4ccb633add3c26a8 | [
"Ruby",
"Shell"
] | 7 | Shell | DennisDenuto/puppet-commonscripts | 800759a9a6a12ff20a1f2d94224bceacd8c9b741 | 42556d11d738c8396ff02885d2cb4e954e0c8786 |
refs/heads/master | <repo_name>MonsterGfx/pi-music<file_sep>/libraries/Image.php
<?php
class Image {
/**
* Convert an image file to a data URL
*
* @param string $path
* The path to the file
*
* @return string
* The formatted data URL string
*/
public static function toDataUrl($path, $mime='image/jpg')
{
$result =... | 9c19366214d14660bf433c53be488e20e3b11ea1 | [
"JavaScript",
"Markdown",
"PHP"
] | 37 | PHP | MonsterGfx/pi-music | a0eeedfae2d604fbe8e40f382002dff986d8c52e | 977bcddd02939d157742069bd00eb7121fbe75e6 |
refs/heads/master | <file_sep>public class Main {
public static void main(String[] args) {
System.out.println("Programozás alapok Udemy kurzus");
// 1. Írassuk egy egy int és egy string adattípus értékét!
/*
int x = 3;
x = x++;
String szoveg = "alma";
System.out.println(x);
... | 698c1f0e1e82176518a2090cdd2c06d651b0e605 | [
"Java"
] | 2 | Java | selectAlizFromBudapest/Java | cb379e4c6847f51e2096d43b89e8c9c999511330 | 09979a1b8028f791b9cae7f3e0e7a7b7c7838f88 |
refs/heads/master | <file_sep># MachineLearningCoursera
Repo used for programming assignments for the Coursera Machine Learning course
## Running Octave
Octave is run using docker. Further details can be found at [Github](https://github.com/ymatsunaga/docker-octave)
### Octave on Jupiter Server
```console
docker run --rm -p 8888:8888 -v... | 08468faeeeff966cb7573d17804fd9119ce61f21 | [
"Markdown",
"Shell"
] | 2 | Markdown | oskarvip/MachineLearningCoursera | 5d1ebc0703a71c12bae2d24ceff2de3b403dfe6b | 3c1e42dce20ab015486bb57d6917403522a3bd8f |
refs/heads/master | <repo_name>CompRhys/ornstein-zernike<file_sep>/sim/core/parse.py
import argparse
def parse_input():
parser = argparse.ArgumentParser()
parser.add_argument('--table', type=str)
parser.add_argument('--rho', type=float)
parser.add_argument('--temp', type=float)
parser.add_argument('--dt', type=float)... | d674452066702f9d83cc24858bbda16760f288f1 | [
"Markdown",
"Python"
] | 17 | Python | CompRhys/ornstein-zernike | ed17e8aa57a0a470752eb440137b7b527adcce27 | 7a5afad2780cb89d85d1656f9399f0cd580a5842 |
refs/heads/master | <repo_name>Jianwei-Wang/learning-python<file_sep>/net/tcpClient.py
from socket import *
HOST = '192.168.127.12'
PORT = 54321
BUFSIZE = 1024
ADDR = HOST, PORT
cs = socket(AF_INET, SOCK_STREAM)
cs.connect(ADDR)
while True:
data = raw_input('> ')
if not data:
break
cs.send(data)
data = cs.recv(B... | 35f200bb6463d87fc9125c2d6a7b6ce73b00c105 | [
"Python"
] | 11 | Python | Jianwei-Wang/learning-python | 17017443a70f9b3655c70cf0628e4eef3e68bf3b | 074e8b28fb482450353d6bab5f8d0d6f91e81863 |
refs/heads/master | <repo_name>danielgilroy/TerminalChat<file_sep>/chat_server/src/server_utils.c
#include "server_utils.h"
size_t prepare_client_message(char *client_message, ssize_t *recv_status){
//Replace ending \n with \0 or ending \r\n with \0\0 if they exist
for(size_t i = 0; i < MESSAGE_SIZE; i++){
if(clien... | 894e18c0799b6a51dd99cd9a9693b64b79b4347c | [
"Markdown",
"C",
"Makefile"
] | 15 | C | danielgilroy/TerminalChat | 8d4d539a8b2d6b8cb3915b6079057a2d2cf66fc8 | fb6ada6d7e4ee3ea2284470f84fcde9c86fbd992 |
refs/heads/main | <repo_name>danielzt12/s26_flyscan<file_sep>/README.md
# flyscan control script at sector 26 APS using labjack python API
<file_sep>/flyxy_eiger.py
import sys
import epics
import epics.devices
import numpy as np
import time
import h5py
import netCDF4
import os
import fabio
from ljm_functions import *
from multiprocessin... | 91efef9425437f4fe486d963b4589c2f8e5b2cfa | [
"Markdown",
"Python"
] | 3 | Markdown | danielzt12/s26_flyscan | 0f9bbf59308e49b069696607ef740cea955e787c | 59cf80b83289656253106f2badf743f5dcf4c09c |
refs/heads/master | <file_sep>var express = require('express'),
jwt = require('jsonwebtoken'),
router = express.Router();
controller = require('../controller');
var isAuthenticated = function (req, res, next) {
// Check that the request has the JWT in the authorization header
var token = req.headers['authorization'];
... | cd8cf79d1ff8800f7c44bcc7284c40b2e685030c | [
"JavaScript"
] | 2 | JavaScript | melnele/react-blog | 168f677362c09a25b7ea0e7117b04cd286be72dd | 0163b2cae4235dcf552db58d175f1aafdb466f33 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.