branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>xuchaoji/photoUtil<file_sep>/searchFile.sh
#!/bin/bash
src="./Private"
#源文件的父目录
dst="./timeLine3"
#目标目录
function read_dir(){
for file in `ls $1`;do #step1 遍历文件
echo "判断 " $file "文件类型中..."
if [ -d $1"/"$file ];then
echo $file "是目录,处理目录中的文件"
read_dir $1"/"$file $2
... | 6dc07fd04d3dec5c58a36ff8f7ad5e29f546123d | [
"Markdown",
"Shell"
] | 2 | Shell | xuchaoji/photoUtil | fae63082befb4167c34f1dd51c793facf38a8e3e | e81834b91155a7c4d49edd9a40ab4ac45f369329 |
refs/heads/master | <repo_name>yoonjochoi/what-is-the-digital-IQ-blog-structure<file_sep>/js/script.js
$(function(){
var jarallax = new Jarallax();
jarallax.setDefault('#intro-page', {display:'none'});
jarallax.setDefault('#site,#site-main,#site-arrow-1,#site-arrow-2,#site-arrow-3', {display:'none'});
jarallax.setDefault('#digital-... | a65e399ca7fffc1634da5746758cb936e49d61fa | [
"JavaScript"
] | 1 | JavaScript | yoonjochoi/what-is-the-digital-IQ-blog-structure | 637cdf6b2af16dce19f7343c7bf9e2ff99a3dbaa | 47171f6fb56d3eafbbdc21ca450d54398859a0b0 |
refs/heads/master | <file_sep>function checkInfo() {
//Js is Working
//Validating Gender
if (document.forms["infoForm"]["gender1"].checked==false &&
document.forms["infoForm"]["gender2"].checked==false ){
alert("Please select a gender");
return;
}
if (document.forms["infoForm"]["gender1"].checked==true &&
docu... | bf5d3a986764b3ae8ed1e7f638b14cec688942bc | [
"JavaScript"
] | 1 | JavaScript | sophiemoore00/WebAppsProject | 0eb040982ba067100ce649432ec84d68d8ebf3d0 | d21366241a8bdc756766dac28951e26b80be215a |
refs/heads/master | <file_sep>n = gets.to_i
#標準入力から要素の一致を確認
#一致する場合は既存要素を削除して配列の先頭に
#そうでなければ配列に加える
arrays = []
n.times do
word = gets.chomp
arrays << word
if arrays.include?(word)
arrays.delete(word)
arrays.unshift(word)
else
arrays.push(word)
end
end
puts arrays
<file_sep>def title
puts "------------------------... | a21629b0cdfe2037681fa9ffbc23c0c2dd6422a6 | [
"Ruby"
] | 25 | Ruby | NU-Moriya/Ruby_learning | 22a682f6d9da0fca45a2369a8d5c2e609539a09a | d8df79bf76821900bf08039f27a0129b5baa8fec |
refs/heads/master | <file_sep>#!/bin/sh
testNothing() {
assertEquals "This file has CRLF end lines" 1 `file crlf.txt | grep -c "CRLF"`
assertEquals "This file has CR end lines" 1 `file cr.txt | grep -c " CR "`
assertEquals "This file does not have other then LF end lines" 0 `file lf.txt | grep -c "terminators"`
git add -... | 8f84a0cf963278eb610ea0c10bacc3f3e0e345fe | [
"Shell"
] | 1 | Shell | 66Ton99/git-autocrlf | 6e75bbd9a3c372379300b32a031a59101f75aa5f | e3a7a1f2a4af021b7ba5504eb3ca08708d96c118 |
refs/heads/master | <file_sep>django
django-adminlte2
pymongo
black
pylint
apscheduler
<file_sep>from django.conf import settings
from pymongo import MongoClient
def db_connect():
client = MongoClient(settings.MONGODB_HOST, settings.MONGODB_PORT)
client.admin.authenticate(settings.MONGODB_USERNAME, settings.MONGODB_PASSWORD)
... | 8af2e8f7a07e1e79dae05df5b345c40b3c7ec75f | [
"Markdown",
"Python",
"Text",
"HTML"
] | 9 | Text | vannn1604/graph_api | 736ece48a657e6c5fe4770f9aed3e404a4f98001 | ec88ffe2a3b07e070dcfd3c6819fe35e835240ab |
refs/heads/master | <repo_name>raunak321321/Artificial-Intelligence-code<file_sep>/kMeansClustering.cpp
#include <iostream>
#include <fstream>
#include <bits/stdc++.h>
#include <vector>
#include <utility>
#include <climits>
#include <map>
using namespace std;
int min(vector<float> vec)
{
float minimum = vec[0];
int index = 0;
... | 0aaeed7fb8c8d2bf9821e0bbb5e280760c293f26 | [
"Python",
"C++"
] | 2 | C++ | raunak321321/Artificial-Intelligence-code | 5afd7c38e0df3f86e260bbccdc41e9bf649039f9 | 5faa487e3140bb4e85c35864a207a6e4779f90a6 |
refs/heads/main | <repo_name>theNewDynamic/minjinlee.com<file_sep>/content/event/yale-club-of-new-york-city.md
---
title: Yale Club of New York City
date: 2017-05-18 18:30:00
show_time: true
venue:
name:
address:
city:
state:
zip:
link:
---
A Conversation with author <NAME>.
> <div><p><NAME> has worked in publishing (curren... | 2235cedc96f30cb380a7a588b5782a68fd04792e | [
"HTML",
"Markdown",
"TOML",
"JavaScript",
"Go Module"
] | 740 | Markdown | theNewDynamic/minjinlee.com | 1cba5dcea03cffe5f8ca0a2f80b46f7567f32342 | 652097943f2e431a673a4a6f33af8305130b8421 |
refs/heads/master | <repo_name>Hibss/spring-boot-rabbitmq<file_sep>/src/main/java/com/steven/service/OperatorService.java
package com.steven.service;
import com.steven.mapper.OperatorMapper;
import com.steven.model.Operator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
imp... | 27d1c5d83dce831e868de32ca0d704513961e240 | [
"Java",
"SQL",
"INI"
] | 14 | Java | Hibss/spring-boot-rabbitmq | a696165a82fad2a5cfdb69809af629c9cdc24b4e | a5d79b644e4cbf97d30607f67fdda821bb67251f |
refs/heads/master | <repo_name>blakejennings/JumbleSolver<file_sep>/JumbleSolver/UJHeader.swift
//
// UJHeader.swift
// Unjumble
//
// Created by Work on 7/18/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
import Foundation
import UIKit
class UJHeader: UITextField {
required init?(coder aDecoder: NSCoder) {
supe... | 394c2ddba85399ac62197d39208da6910e97c80f | [
"Swift"
] | 3 | Swift | blakejennings/JumbleSolver | 67933f32280ab415fb03c9edb7971579e1f96bcb | a938289eec1d56233170ba11a53499e12df45ba0 |
refs/heads/master | <repo_name>richard1111d/ProgrammingAssignment2<file_sep>/cachematrix.R
## the functions in this file are designed to aid in the sometimes computational and memory intensive
## process of inverting a matrix in the R language
## two functions are in this file:
## makeCacheMatrix()
## cacheSolve()
## descriptions of each ... | 92a2255ebfddac00cbd66b33bbde7f2b142e4012 | [
"R"
] | 1 | R | richard1111d/ProgrammingAssignment2 | 1594aa8de98411f0247e133bb6809e63f7e753b9 | 4b5a232901002b659f52e57162b1c67bd54b842e |
refs/heads/master | <file_sep># MNIST-recognition
The subject of the project is a comparison of deep learning algorithms in a system with a PLC controller.
Deep learning algorithms were built with the help of the Python language and Keras library.
CNNs were used to recognize images from the MNIST set and coupled to a system with a PLC c... | c479c01d5ac3af0e8ec30e463da621fdee14ec79 | [
"Markdown",
"Python"
] | 4 | Markdown | pbabulski/MNIST-recognition | a10c1bc6abac23ed303deecc7b5d80f53a694364 | 43601a121c14caac1f40a64972d32c6f3133fdd7 |
refs/heads/master | <repo_name>aicasas/BzztPodtaxi<file_sep>/FinalBzzt.R
'Bzzt Final Projct: <NAME>
Lines 5:110 are data cleaning, lines 110:133 are geocoding of ~26,000 datapoints. The cleaned code is
saved as BzztGeocode.csv and BzztGeocodeD.csv
and can be ran quickly from lines 139 and on'
data1 <- read.csv('201901.csv', header=FALS... | f04bb052b9de5053f92f0d8b5d7c05bd91882e8c | [
"Markdown",
"R"
] | 2 | R | aicasas/BzztPodtaxi | ef1a693c3ac130dd8002f96fc59715c9ae510c27 | 86647e62a941a0b6058125965a0e7ec5df04632c |
refs/heads/master | <repo_name>TanumayDhar/greenkart2<file_sep>/target/cucumberReport/report.js
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("greenkartSearch.feature");
formatter.feature({
"line": 1,
"name": "Search for vegetables and place order in the application.",... | 9dd7693f11cb5d0915108584834e3f16741139b7 | [
"JavaScript"
] | 1 | JavaScript | TanumayDhar/greenkart2 | 107339d9f933c49c6b18c3d0f683e770180d275a | 2aa7764e2c22ad5be2dd718e5c573158f6185234 |
refs/heads/main | <file_sep># FocusTextField
A TextField with a floating label using the new Focus system on iOS 15
<p float="left">
<img src="./Screenshots/Screenshot0.png" alt="Lock Screen" width=25% height=25%>
<img src="./Screenshots/Screenshot1.png" alt="Import Files" width=25% height=25%>
</p>
### Usage
Usage is as simple ... | 7ae052a2dedb05ab85b37aeef12c8734b5fcb558 | [
"Markdown",
"Swift"
] | 4 | Markdown | TrendingTechnology/FocusTextField | fc8113798f6b7b232bd2a15f08a88cf22c7755c3 | b43b087c5a311bfd51287e69757ccfac869150ed |
refs/heads/master | <file_sep>package com.clunkybyte.apps.criminalintent;
import android.support.v4.app.Fragment;
/**
* Created by hybr1d on 6/29/2014.
*/
public class CrimeListActivity extends SingleFragmentActivity {
@Override
protected Fragment createFragment() {
return new CrimeListFragment();
}
}
| 51b828ea13cb10bdf66625a86c811613334a1e39 | [
"Java"
] | 1 | Java | ervinb/CriminalIntent | c7445419dd3bf641af0ea5e7e0adbbad9b99a0af | 64ea80eed67678eea0abc5a5ebbe78baf3e3a5e2 |
refs/heads/master | <file_sep>import math
def main():
sum = 0
filename = "day1.txt"
for line in open(filename):
mass = int(line)
while mass > 0:
mass = max(math.floor(mass/3)-2,0)
sum += mass
print(sum)
if __name__ == "__main__":
main()
# 3279810 too low
# 4815102 too high
# 4812287<file_sep>import copy
def day2():
... | 57f162dee81345b73dee6dff4518dc56811f1824 | [
"Python"
] | 4 | Python | neilguertin/Advent-of-Code-2019 | 8edafc6e11dc52ce565d12002316f79d5a6d9a87 | 5f57afc0fcebc8866a7cc0fc90df59575277f8c0 |
refs/heads/master | <file_sep>function deleteItem(e){
}
function getPriceByProduct(itemNode){
var price = document.getElementById('product1').innerHTML;
price = price.slice(1);
return price;
}
function updatePriceByProduct(productPrice, index){
}
function getTotalPrice() {
console.log( getPriceByProduct() * createQuantityInput())... | 00fdbc9a3d70b87885e39a285d6e3e36ff2fa2f8 | [
"JavaScript"
] | 1 | JavaScript | agdwm/lab-dom-ironhack-cart | a6784fbf93d6cc1eeacabe228c9a475a6b49de6a | 089ef6facbdc5a7abaac6220f468cb27aa310e83 |
refs/heads/master | <repo_name>lkorchnoy/react_project<file_sep>/free_time_api/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movi... | b76006fb2267f9c05475c886198290fc92a8425c | [
"JavaScript",
"Ruby",
"Markdown"
] | 13 | Ruby | lkorchnoy/react_project | 19f8623bf1eba76dfd2f239d960b49cfb604d040 | b2671fb2b1d01d3d87918addaad9b02b74d2993c |
refs/heads/main | <file_sep>const cartContainer = document.querySelector('.cart-container')
const productoLista = document.querySelector('.producto-lista')
const cartLista = document.querySelector('.cart-lista');
const cartTotalValue = document.getElementById('cart-total-value');
const cartCountInfo = document.getElementById('cart-count... | e93cee1969132512df3356d318e75607b6111258 | [
"JavaScript"
] | 1 | JavaScript | fersanabria8/cervezafs | a1b0fddde14e40d145872b490e477378cacfcd62 | 484e4633bbccaa7234639a5160a79fa3e41720bc |
refs/heads/master | <file_sep>from helpers import alphabet_position,rotate_character
def encrypt(text,key):
encrypted=[]
starting_index = 0
for letter in text:
rotation=alphabet_position(key[starting_index])
if letter.isalpha():
encrypted.append(rotate_character(letter,rotation))
else:
... | 2f8ae914249cf9e1e6cb7e6d57776f27a32663bc | [
"Python"
] | 2 | Python | lcantillo00/lc101 | 57cbeb933cbfc977f7a6e4dbc257f5ef5cb56936 | f48de2418a06d2684747ca9180595989f34ae2b7 |
refs/heads/master | <repo_name>lqwwql/GoRepository<file_sep>/src/dbconn/dbconn_test.go
package dbconn
import (
"fmt"
"testing"
)
func Test_Dbconn(t *testing.T){
user := User{}
user.Id = 1
user.Name = "去死吧"
user.ProfileId = 666
InitDB()
//result :=user.InsertUserToDb()
//result := DeleteUserFromDB(2)
//result := user.UpdateUse... | 2d5f41d2ce8dae1550a1ebef2f1cc2ecc9ff779c | [
"Go"
] | 9 | Go | lqwwql/GoRepository | 67c8a3ee0bc2c9640dae5f33f0a452210952c445 | 6331a14c258fd00887620a8a58864f3a4c88e4cb |
refs/heads/master | <file_sep>student_name = Array.new(2) #{Array.new(2)}
student_ID = Array.new(2)
student_email = Array.new(2)
student_name.length.times do |i|
puts "please type in your first and last name:"
student_name[i] = gets.chomp.upcase
end
puts student_name
student_ID.length.times do |i|
student_ID[i] = rand(111111...999999)... | 1c978c17bd8bfe60caf0eb0d1586996076dc1fdb | [
"Markdown",
"Ruby"
] | 4 | Ruby | yaelittle/Pre-Ada-Assignments | b60f523970fc4a7d4def2c114bccab0b8c95fbc1 | 2a16349141b93fa392e8eb2eb972d4d7e4b194f7 |
refs/heads/master | <file_sep>#' Summary table for Rdrobust estimates to export using kableExtra
#' @param rdr_out Rdrobust object
#' @param prec decimal places
#' @keywords regression-discontinuity export
#' @export
#' @examples
#' \dontrun{
#' rdrobust(df$vote, df$margin, all = T) %>% rdr_export -> rdre
#' rdre %>%
#' kable(, format =... | 34f47cd569e93cb52b3d49921cb344d038beb388 | [
"Markdown",
"R"
] | 19 | R | apoorvalal/LalRUtils | 718b20d0c601993c6385b8256dd40ff055b0a4e9 | 05d0fca93f543fac5c12da47c390a8c083823724 |
refs/heads/main | <repo_name>cmarialetsandra/sha512_grupo4<file_sep>/index.js
const express = require('express');
const login = require('./routes/login');
const app = express();
app.set('port', 3000);
app.use(express.json());
app.use("/login", login);
app.listen(app.get('port'), ()=>{
console.log("Node Server is running");
});... | 67d7b19e112245a976a9bea0dde68875c5224575 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | cmarialetsandra/sha512_grupo4 | 7689444f44534eb58b06229a0eff6d55a0902e30 | aa6da52cd1af3f0a8d2f6aa3a76f17fc19952ea5 |
refs/heads/main | <file_sep><?php
//sort() - 对数组进行升序排列
//rsort() - 对数组进行降序排列
//asort() - 根据关联数组的值,对数组进行升序排列
//ksort() - 根据关联数组的键,对数组进行升序排列
//arsort() - 根据关联数组的值,对数组进行降序排列
//krsort() - 根据关联数组的键,对数组进行降序排列
$cars=array("Volvo","BMW","Toyota");
sort($cars);<file_sep><?php
$servername = "localhost";
$username = "root";
$password = "<PASSWOR... | 392855816afe47184be58566133e027d40da3f82 | [
"Markdown",
"PHP"
] | 9 | PHP | azhansy/php_learning | 97e0abaf7b4b56f5ee447afe8954ac701bbc9303 | 6f9febfcf3d4be13029e82d09c580ff07a7c8901 |
refs/heads/master | <file_sep>import java.lang.invoke.MethodType;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Set;
import java.nio.charset.StandardCharsets;
/**
* Class for a space explorer.
*/
public class SpaceExplorer extends Thread {
/**
* Creates a {@code SpaceExplorer} o... | 801ad2e7455254e6553b934ddfc32b6e040b5bf3 | [
"Java"
] | 2 | Java | CezarMarcu98/TemaApd2 | 2837572e24ba19afd94e6c22ac3e76f8d7af9eee | 05a494723cdbfc8dda07d093498ee70d5ad932e5 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.pyplot import MultipleLocator
import os
def plot_depth_recall_curve(method_recalls, type='', save_path=None, method_color=None):
assert type in ['pixel', 'PIXEL', 'Pixel', 'plane', 'PLANE', 'Plane'... | f571c7d542d9f018b534e18ac5ff220dc911af2e | [
"Python"
] | 1 | Python | braca51e/PlaneTR3D | a1003b725f9fa505c63c72886aea96e16d794b50 | 9f32ed405476b700317c9fe91b2c4c362469caaa |
refs/heads/main | <file_sep>asp = prom = prom1 = ing = genero1 = genero2 = 0
edad = []
gen = ip = tac = " "
genero = []
tacones = []
promtac = promtac2 = 0
x = 0
i = 0
s = 0
w = 0
print("Indique el genero del aspirante con M o F")
print("Indique si posee tacones o iPhone con S o N")
print("------------------------")
for x... | 44a1dd80d1f385dce7791c36f656661d7b26b887 | [
"Python"
] | 1 | Python | eloyrutman/programa-con-if-y-listas | d127db1a46af872fb73cfc76e9f3ab6770799d56 | 723a4b2f7c5407f4ab42dde73d6419f40edd4c49 |
refs/heads/master | <file_sep>#include "httpmanager.h"
#include <QJsonDocument>
#include <QJsonObject>
HTTPManager::HTTPManager(QObject *parent) :
QObject(parent),
imageDownloadManager(new QNetworkAccessManager),
weatherAPIManager(new QNetworkAccessManager),
iconDownloadManager(new QNetworkAccessManager),
tim... | 8e36f3c996f41017a446e21f76f87878829ae2d2 | [
"Markdown",
"C++"
] | 4 | C++ | JonathanXu4/-CSC3220-Lab-4 | 6b72d986e6a2dcf5b144939fbeed9564c7ef49cb | 8a417d1ff6609bcc879ca8608969a974f4b8a26a |
refs/heads/master | <repo_name>chimaezeorah/edoga-<file_sep>/app.py
#import sys
#print(sys.executable)
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
from dash.dependencies import Output, Input
import dash_table
#import mysql.connector as mysql
#import time
import dash_bootstrap_com... | 98ff9defc85b0f972e1826c28f7dab802b1e1f33 | [
"Markdown",
"Python"
] | 2 | Python | chimaezeorah/edoga- | de8cf07023e45297fb7a87c0da9cf58a46e4de07 | 3c056f982925f81e45e4de70e0bd1df72b326377 |
refs/heads/master | <repo_name>rupamroy/SPAWithTokenAuthentication<file_sep>/frontend/app/scripts/controllers/register.js
'use strict';
angular.module('spawithTokenAuthenticationApp')
.controller('RegisterCtrl', registerController);
registerController.$inject = ['$http', 'alert'];
function registerController($http, alert) {
var url ... | 45944dc228dbd4de0f4137f44156bed07772cda3 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | rupamroy/SPAWithTokenAuthentication | 8c65c2c82e3b6dcf735a101a40a11a57c04b7999 | 92db7e7f70eb2d02edae6fa1bb2f7d41f6c96d43 |
refs/heads/master | <file_sep>//package com.example.sekhar.devhelpdirect.Dagger.TwitterExample.component;
//
//import com.example.sekhar.devhelpdirect.Dagger.TwitterExample.Tweeter;
//import com.example.sekhar.devhelpdirect.Dagger.TwitterExample.module.NetworkModule;
//import com.example.sekhar.devhelpdirect.Dagger.TwitterExample.module.T... | 9f3484ce490bb36cacd47aaa0d9eb5c28964aadd | [
"Java"
] | 8 | Java | shekarshine/DevHelpDirect | bff388f32cee80749da48887914611c17c5c31ac | c92e8e39ef726b74ef440659e78da8dfd28f3096 |
refs/heads/master | <file_sep>
public class Automovil extends Vehiculo {
private int cantidadPuertas;
public Automovil(int cantidadPuertas, String marca, String modelo, double precio) {
super(marca, modelo, precio);
this.cantidadPuertas = cantidadPuertas;
}
public int getCantidadPuertas() {
r... | 06606118d2657e0047b4dcd9d1228ab6dc8d6a71 | [
"Java"
] | 2 | Java | samuelrisso/EjercicioTraineeOnRead | 53b77a456e7551cfc2fd31bbceec4fd35948d645 | c77fc625765cefff74b955a9c0ecbdb493005761 |
refs/heads/master | <repo_name>Lapinte/LocaMat1<file_sep>/UI/ConsoleHelper.cs
using System;
using System.Collections.Generic;
using System.Linq;
using LocaMat.UI.Framework;
namespace LocaMat.UI
{
internal static class ConsoleHelper
{
public static void AfficherEntete(string libelle)
{
Console.Clear();... | ad833bbb9bd7f30cc10de468b2f9ecdbd2412db3 | [
"C#"
] | 22 | C# | Lapinte/LocaMat1 | 44f8997bff7d67f985bf8c3c7799d5f092208c71 | a427f05ca3903fe552d72f87bca33b158b3b1409 |
refs/heads/master | <file_sep>//
// TableViewController.swift
// OnTheMap
//
// Created by <NAME> on 5/5/20.
// Copyright © 2020 DoyinOsanyintolu. All rights reserved.
//
import UIKit
class TableViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
var Locations = [StudentLocation]()
@IBOutl... | c1acda2f26e8b33f76a8afbb958480143153b9d2 | [
"Swift",
"Markdown"
] | 16 | Swift | Dosanyintolu/OnTheMap | 8685d5988b34cccb1705c171baaa3123c3a2fb18 | 50f48d0a7525205f120aa6fd34a9d68737f0dd1b |
refs/heads/master | <file_sep>//////////////////////////////////////////////////////////////////////////
//技能cd
//技能时间
//技能背景图
//
//
//////////////////////////////////////////////////////////////////////////
#pragma once
#include "cocos2d.h"
//#include "cocos-ext.h"
#include "ui/CocosGUI.h"
using namespace cocos2d;
using namespace ui;
c... | 7835ff236937818dae9309facfceed9826379d69 | [
"C++"
] | 3 | C++ | zhuiyiyyh/yyh | 749a95ca8f1249efad9a2b855da78451a1c08920 | cc1ee28770b5c005a86f1496ad2f607475fa0761 |
refs/heads/main | <repo_name>ianhi/matplotlib-extension-cookiecutter<file_sep>/{{cookiecutter.github_project_name}}/examples/example.py
"""
------------
Example Name
------------
A short example showcasing how to use the library. The docstrings will be
turns in REST by sphinx-gallery.
"""
import numpy as np
import matplotlib.pyplot as... | ea74b7b1ea3076770cc0c3b569e84a8d6e2466b2 | [
"TOML",
"Python",
"Markdown",
"reStructuredText"
] | 9 | Python | ianhi/matplotlib-extension-cookiecutter | 29b9b3f62bfc1b24a27711e5b956a389c5933cbc | 881da5b59370d6b697e9035e01dc41883713e2e5 |
refs/heads/master | <file_sep>const express = require('express')
const router = express.Router()
const City = require('../modules/city')
const request = require(`request`)
router.get('/city/:cityname', function (req, response) {
const city = req.params.cityname
const url = "http://api.apixu.com/v1/current.json?key=257a9899d513455... | f6f2501c77302a8fc0367d0f5204b6ff5383a8e2 | [
"JavaScript"
] | 4 | JavaScript | davidbool/WeatherApp | 4a23fa43a781138554b318842eab5f14815aeb9c | f427327b3ec15bee72b6595732ad0d91b3a7d281 |
refs/heads/master | <repo_name>WabbyWabbo/DataStructure<file_sep>/SqList/2.2.3_9/2.2.3_9.cpp
#include "/Users/fisher/Desktop/ds/SqList/SqList.h"
void Function(SqList &L, int x)
{
int start = 0;
int end = L.length - 1;
int mid;
while (start <= end)
{
mid = (start + end) / 2;
if (x == L.data[mid])
... | 75932f427a83b02c68d2032e6e2e50bf72d76c6d | [
"C++"
] | 6 | C++ | WabbyWabbo/DataStructure | dc5dadaa067b808930352396e94209540c56bd1b | 9e8f211bf9d64f5c74ba5f5d5b91f099e17c4bee |
refs/heads/master | <file_sep>require('sinatra')
require('sinatra/reloader')
require('./lib/queen')
get('/') do
erb(:index)
end
post('/results') do
queenA = params.fetch('queenA').split(',').map(&:to_i)
queenB = params.fetch('queenB').split(',').map(&:to_i)
@display = queenA.attack(queenB)
erb(:results)
end
<fi... | 9c69067a290b6b6c7d92bc928910078bc4e8aed7 | [
"Ruby"
] | 3 | Ruby | LorenGlenn/ruby_queen_attack | 8273f0ebdc1f7328718cd778f8b1ec9e59afe0ff | 98bbbfc4b98aa3e23f47a9c11a4130a69b7abd22 |
refs/heads/master | <repo_name>jeremyeng/MusicEditor<file_sep>/src/cs3500/music/view/GuiViewFrame.java
package cs3500.music.view;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import java.util.*;
import java.util.List;
import javax.imageio.plugins.jpeg.JPEGHuffmanTable;
import javax.sound.mi... | 759be5f0811aa702f8ad5175282f19b27703b780 | [
"Java"
] | 5 | Java | jeremyeng/MusicEditor | c7f8fb71b87c0a0bc3f3246cc2f909f6fb1061e1 | 8894d253b8407cdc2515ca879454cd2ba7972ae5 |
refs/heads/master | <repo_name>egorikem/TypeMaster<file_sep>/README.md
<b>Intro</b>
<br>
Started as a college project, typemaster has become my first app written in Java. The technology for GUI is Swing.
Goal of the project for to make a really simple product that estimates typing speed.
<b>What functions are avaliable?</b>
<ul>
<li>L... | e5f2607bb047265cb778e6fbf085e581b802f3d4 | [
"Markdown",
"Java"
] | 3 | Markdown | egorikem/TypeMaster | 37bcdde4de8a66b5b1e8f3dd3774bfbf224877dd | c14c96b10ed1bbcab28bd8355e6c5a8b87de2367 |
refs/heads/master | <file_sep>package net.sharksystem.sharknet.api;
import net.sharkfw.knowledgeBase.PeerSemanticTag;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.List;
/**
* Created by timol on 16.05.2016.
*/
public class ImplProfile implements Profile {
Contact c;
String p... | 4a68bc8746a9b158db87e999517b20220a73f360 | [
"Java"
] | 7 | Java | SharedKnowledge/SharkNet-API | b0a58e1bceef1e1e96aeaae1cd7d65534459e72d | 976e1f739d6f7c0861c2fefae5d7698fffc5a184 |
refs/heads/master | <repo_name>MarMP/APPDenunciasMovil<file_sep>/app/src/main/java/com/example/appdenuncias/AnadirComunicacionFragment.java
package com.example.appdenuncias;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.widget.SwitchCompat;
import androidx.f... | 6d3637b921c5487161ba57838db75eb7bc545294 | [
"Java"
] | 13 | Java | MarMP/APPDenunciasMovil | bf50e856500475d499c7d7ce03ce6158b4febff7 | 834789305f7a371a082862aa680660131f8a37ca |
refs/heads/master | <file_sep># Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# :equilateral if all sides are equal
# :isosceles if exactly 2 sides are equal
# :scalene if no sides are equal
#
# The tests for... | 19455d77bad215e159288ca58db68c44d1f589f9 | [
"Ruby"
] | 1 | Ruby | maldoniy/Ruby-Koans-Answers | 4f7859f10607ae1da16c909d9ea64ea56ee3e81a | 3783752f1b2dd6546533dd74dfecb33ac8abf9ac |
refs/heads/master | <file_sep>package gr.cs.uoi.daintiness.servlets;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.H... | b4364dc6726a26b0ac252bc7e72cfffc7e5d7482 | [
"Markdown",
"Java",
"JavaScript"
] | 13 | Java | kdimolikas/WebParmenidianTruth | 5af6174287f48663e3b7156fe90a3beeb61b783a | b801366a9cd255bcab3f890010a67ca9b31588b0 |
refs/heads/master | <file_sep>namespace Book_Store
{
//
// Filename: Login.cs
// Generated with CodeCharge 2.0.5
// ASP.NET C#.ccp build 03/07/2002
//
//-------------------------------
//
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
usi... | 9d62d7410d8a312b66ddaf94ad31a22003fe8eb0 | [
"Markdown",
"C#"
] | 11 | C# | cx-demo/Bookstore.Net | 8ad8faf9d7da629828e776ea3e4f8a8eeae1a724 | e5eb8ab74728f074bf698e444fd479518ecd3a47 |
refs/heads/master | <file_sep>//
// ViewController.swift
// Cat Years
//
// Created by <NAME> on 2/21/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var myTextField: UITextField!
@IBOutlet weak var myCatLabel: UILabel!
@IBAction func do... | 372223f6eee85ad24500e0faeceb9bfafa491324 | [
"Swift"
] | 1 | Swift | RommelTJ/Cat-Years | 2cf776cc8ce5020244d43037694198eeffe96913 | 61b14e1ca408cc00c09b612d296145bccc718c85 |
refs/heads/master | <repo_name>miaoxinguo/grass<file_sep>/grass-test/build.gradle
dependencies {
compile files(project(':grass-core').buildDir.path + '/libs/grass-core-'+version+'.jar')
}<file_sep>/grass-core/src/test/java/org/miaoxg/grass/core/enhancer/DomainClassFileTransformerTest.java
package org.miaoxg.grass.core.enhancer;
import... | 1815db629aa470311ac6b48eb66d5addb1fd353d | [
"Java",
"INI",
"Gradle"
] | 6 | Gradle | miaoxinguo/grass | cb7d9327e200eb77253c25e4fa5f0afefd64481e | dd8b546f873903d937c1654b0fe4314e8f5c22a9 |
refs/heads/master | <file_sep>buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
jcenter()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.28.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
static def getCurrentCommitMessage() {
def gitlo... | cfb988211e74aa67896e6d4f0c26aecaae070e68 | [
"Markdown",
"Java",
"Shell",
"Gradle"
] | 4 | Gradle | yoshiaki310/SeekSemicolon-Android | 61b5dbf15cd1c970d76307d92f762a39352bcd7a | 4aa5ac77e7786ab8aca20d6cb68194267fb7a85b |
refs/heads/master | <file_sep>package composite;
/**
* @author Schlipak
*/
public class AppComposite {
//calcul de l'expression arithmétique 2 + (3 * (5 -2)) * 6 / 6 + 7
public static void main(String[] args) {
CompositeOperand complete;
complete = new ExpressionPlus();
complete.addElement(new NumericOperand(2));
CompositeO... | 42f88d22fe8c27edfce0140e878031744502d66d | [
"Markdown",
"Java"
] | 6 | Java | Schlipak/composite | 8ab27777e0d643cb657f7fa19c79b67ece4d7edf | 4acca4a388b5ea04219079f10a995c03e8450239 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
from eight import *
from .ecoinvent_lcia import EcoinventLCIAImporter
from .ecospold1 import (
MultiOutputEcospold1Importer,
NoIntegerCodesEcospold1Importer,
SingleOutputEcospold1Importer,
)
from .ecospold1_lcia impor... | c64f865810c4b81cd4f95812d3ad9ea7798bf49d | [
"Python",
"Text"
] | 9 | Python | pjamesjoyce/brightway2-io | 142fc26e2ffc47d8ec474386ee93ab2737a089ce | e4fc4ec218143fa90b83f1b09fc0f1f27861a83f |
refs/heads/master | <repo_name>ChoSeoHwan/next-ts-template<file_sep>/src/modules/TestModule.ts
import { createActionCreators, ImmerReducer } from 'libs/immerReducer';
import ApiStatus from 'constants/ApiStatus';
interface TestModuleState {
status: ApiStatus;
data: string;
}
export class TestModule extends ImmerReducer<TestModul... | 80073680c92906266c697fdf91913b52254f2545 | [
"JavaScript",
"TypeScript",
"JSON with Comments",
"Markdown"
] | 25 | TypeScript | ChoSeoHwan/next-ts-template | 7b970b90a26851cd8d344b439dfec3ef9a6f1714 | 93adca113849807f0ea03d5ddc9981c045afe62d |
refs/heads/main | <repo_name>PetAdote/petAdote_MOBILE<file_sep>/src/component/CaixaPublicacoesPerfil.js
import React from 'react'
import { StyleSheet, Text, View, KeyboardAvoidingView, Image, TextInput, TouchableOpacity, Button, ScrollView} from 'react-native'
import FormRow from '../component/FormRow'
import PublicacoesDoPerfil from '.... | f3ea95b72623588034c6469c087bb61f24963568 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | PetAdote/petAdote_MOBILE | e59b8e294b619bf917be27e33423fb631d3671f5 | 83e1ebea5c39218cb66a535b92776cb205b54cfc |
refs/heads/master | <repo_name>xiepf1101/python_study<file_sep>/workspaceDemo/request_http.py
#coding=utf-8
import requests
import os
import time
url = 'http://www.baidu.com'
while True:
try:
data = requests.get(url).text
print("connection success")
time.sleep(300)
except:
print('connection faile... | e41e2a4b05f92001b7c6edbc3080b5eb2bdb608b | [
"Python"
] | 34 | Python | xiepf1101/python_study | 4d825707821a3c435b5d5a87130a6c9f2f638c7e | 5ac840dd3ae9bb8f7bda1593e6ce13b1df6316e6 |
refs/heads/master | <file_sep>[ThridPlat]
KValue = 0.000000
BValue = 0.000000
Z1Pos = -10500
Z2Pos = -7200
Z3Pos = -3800
Z4Pos = -500
X1Pos = 1150
X2Pos = 4050
X3Pos = 7050
X4Pos = 9950
SelectPol = 2
MinSpeed = 1
MaxSpeed = 0
ComboPol = "1"
FirstPosX = 0
FirstPosZ = 0<file_sep>#pragma once
#incl... | f8734911fbb299a2effafa2b522e81da8f8708c2 | [
"C++",
"INI"
] | 2 | INI | suw0801/DYSYS | 4ce5d9eac3aeb780c0739310539a2706f743be60 | b0263a01392928f34d023df21cfc6f5c06394434 |
refs/heads/master | <file_sep>wasmBoolean(value) {
return value !== 0;
}
wasmToChar(value) {
return String.fromCodePoint(value);
}
charToWasm(value) {
return value.codePointAt(0);
}<file_sep>{
'env': {
'println': (arg) => console.log(arg)
}
}<file_sep>val input = CharStreams.fromStream(File("...").inputStrea... | 34ee3f492b9f980a0cfe50fc280abb251f40321f | [
"JavaScript",
"Markdown",
"INI",
"Java",
"Rust",
"Kotlin"
] | 22 | JavaScript | stefanschoeberl/masters-thesis | a2ae6d9d465415af9588d52ce17f1c40bde5be8c | 1708f5e3d492db48093ba93df60258016402c562 |
refs/heads/main | <file_sep>function Footer() {
return (
<div data-testid="copyright">
Data provided by Marvel. © 2014 Marvel
</div>
)
}
export default Footer
<file_sep>import React, { useEffect, useState } from "react";
import { useQuery } from "@apollo/client";
import { getCharactersName } from ".... | 6f8f1c1810053d4b88791ad5649aa28ec51eea5b | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | BenjaminDexant/wikimarvel-react | 44ae3ee39bbcf8e96691ac6cf4063290c8819e97 | 73eea8cd14b293ff73ce6fa82530a20c8375bc78 |
refs/heads/master | <repo_name>link-coala/tv<file_sep>/app/controllers/singles_controller.rb
class SinglesController < ApplicationController
before_action :set_single, only: [:show, :edit, :update, :destroy]
# GET /singles
# GET /singles.json
def index
@singles = Single.all
end
# GET /singles/1
# GET /singles/1.json
... | 3a476b679758d718fe6615a407f15e982bd0dc58 | [
"RDoc",
"Ruby"
] | 5 | Ruby | link-coala/tv | fc360021a9a90c1fbbd769913dcbe7f239bb9f73 | e5ff7d0c62ec2e059f7c6956638302c757076216 |
refs/heads/master | <repo_name>willxj36/Reacting-to-React<file_sep>/src/components/app.jsx
import React, {Component} from 'react';
// let App = (props) => <h1>{props.title}</h1>;
class App extends Component {
constructor(props) {
super(props)
this.state = {
text: ' and then some words n stuff',
... | 157097626c460eedd5f1a931039848b5a3fd70aa | [
"JavaScript"
] | 1 | JavaScript | willxj36/Reacting-to-React | 062dd7ed4f377fb12118220b5d3986c518ef1091 | c2813209d4e2f22a0a5258d673748497c1bc1c7b |
refs/heads/master | <file_sep>require("dotenv").config();
var keys = require("./keys.js");
var Spotify = require('node-spotify-api');
var axios = require("axios");
var moment = require("moment");
var fs = require("fs");
function main(selection, value) {
switch (selection) {
case "concert-this":
concert(value);
... | cc3c963f7badbb70a8a4c2d762c5fc999b7b22c8 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | reynaldodominguez/liri-node-app | 876ca904ea45a429547cf80a5e080449942bdadb | b9a8a006ceda3788fc2c03a668580b2af1448f41 |
refs/heads/master | <file_sep>PLAN9=/usr/local/plan9 export PLAN9
PATH=$PATH:$PLAN9/bin export PATH
<file_sep>#!/bin/sh
cap="$(cat /sys/class/power_supply/BAT0/capacity)"
low="10"
if [ "$cap" -le "$low" ]; then
herbe "battery low"
fi
<file_sep>#!/bin/sh
user="$(whoami)"
host="$(hostname)"
os='void'
shell="$(basename "${SHELL}")... | 2d3ed03a5a2ce46878933208baec5b5a19f0529b | [
"Shell"
] | 4 | Shell | Nitheren/Dotfiles | fb2d0688bd83ede96a551a39c71b202f14d4fb20 | ed3c45e9b042e4a0e9e55afd20a4e443520a4e72 |
refs/heads/master | <file_sep><h3>Товары</h3>
<h6>Найдено: <?= $products_count ?></h6>
<?php foreach ($products as $product): ?>
<div>
<h4><?= $product['title'] ?></h4>
<p><b>Цена: <?= $product['price'] ?>р.</b></p>
<p><b>На складе: <?= $product['quantity'] ?></b></p>
<p><?= $product['description'] ?></... | e36f5a51fc092a8aacd15209aee6c34fd047516e | [
"PHP"
] | 20 | PHP | alpharder/learn-ecommerce | 2151ee0fcd817aa2e583ce42ece33b692902b186 | 1843588492b37f3da9960b23bf42202031944913 |
refs/heads/master | <file_sep>
#include "AssetLoader.h"
//#include "editor-support/cocostudio/CSContentJsonDictionary.h"
#include "editor-support/cocostudio/DictionaryHelper.h"
#include "Resources.h"
using namespace cocostudio;
Sprite* AssetLoader::createSprite(const std::string& name){
if (AssetLoader::getInstance()->fileExists(na... | 31a9ed56321b7d413c145a92bbe5828a150ecea0 | [
"Markdown",
"C",
"C++"
] | 4 | C++ | gumcstronger/ManageAssets | 8fc9ef74c47f3622ca317a7754252e18c11194b9 | b292b53ba7b6e69649f07557c51b22c6b052d45d |
refs/heads/master | <repo_name>npjava90/struts_jasper<file_sep>/StrutswithJasper/src/org/jasper/StudentJasperAction.java
package org.jasper;
import java.util.HashMap;
import java.util.Map;
import com.opensymphony.xwork2.ActionSupport;
public class StudentJasperAction extends ActionSupport {
/**
*
*/
private static fina... | d2e8dff03375df19c5f0230e1b3b392cb5ea6bb2 | [
"Java"
] | 1 | Java | npjava90/struts_jasper | a96f350bda4e1be554abafe358381dc78df1919e | f1f7fd3c5a4791e6bcd42bfee13ba635c9cc02c9 |
refs/heads/master | <file_sep>var http = require('http');
var fs = require('fs');
var chat = require('./js/chat');
http.createServer(function (req,res) {
switch(req.url){
case '/':
fs.readFile("index.html", function (err, data) {
if (err) throw err;
res.end(data);
});
break;
case '/subscribe':
chat.subscribe(... | 60b417c575b81e52a2f6181661c665fa39749fd3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | AmilKey/nodejs-long-polling | eff31eb86e2253b670e1d8384d24254db11fff3e | 4a8e5c9749772040dd2ca7de8d7b0cb36b37420e |
refs/heads/master | <repo_name>KirioXX/ba_pres_nonprint<file_sep>/config/initializers/assets.rb
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path
# Rails.ap... | 016356814f9a1adf8a2407f35554dad3096e66f0 | [
"JavaScript",
"Ruby"
] | 11 | Ruby | KirioXX/ba_pres_nonprint | bbd6f998712eeba9a20a034e3054025dd851f67a | ea6f8d09a75b19f284de0e32ed35331056f9b4c2 |
refs/heads/master | <file_sep>__author__ = 'spousty'
import psycopg2
from bottle import route, run, get, static_file, DEBUG
import os,json
@route('/')
def index():
return static_file("index.html", root='./')
@get('/ws/zips')
def getzips():
results = []
try:
conn = psycopg2.connect(database=os.environ.get('POSTGR... | e8cc52346e9aadba88654a727b5ef4b5ddfa195f | [
"Python",
"Text",
"Dockerfile"
] | 3 | Python | fusor/py-zip-demo | d7ef8c1a71825fae8bf0e274735a4a9bdd14b04e | eac658400973ed504dcb5c24a08f47fa5f530b94 |
refs/heads/master | <file_sep>package com.example.streuobstpfad;
public class Fragen {
public String mFragen[] = {
"Which is the first planet in the Solar system",
"Which is the second planet in the Solar system",
"Which is the third planet in the Solar system",
"Which is the fourth p... | 34063cce43583b96da05e3bb83710b57b7f0701a | [
"Java"
] | 7 | Java | SteffenWei/Streuobstpfad | 46076732ba908e896a570fb2bad12127f4e71c12 | b77b4bebdb047f5901188ab3c84d6d70f09bb7b8 |
refs/heads/master | <repo_name>patrickhenrique/aula-processos<file_sep>/GerenciadorContasBancarias/src/br/edu/cesmac/bancomgr/sistema/contas/IConta.java
package br.edu.cesmac.bancomgr.sistema.contas;
import java.util.Date;
import java.util.List;
import br.edu.cesmac.bancomgr.sharedmodel.Transacao;
public interface IConta {
public in... | 5a798b8e2ca159bffc9b2f367d9fe60f982a1b02 | [
"Java"
] | 2 | Java | patrickhenrique/aula-processos | 9eff39c52bc16b0b371473b301ffb61a0054998c | ae514a8da31619f7b426d8294bc0421b235d9561 |
refs/heads/master | <repo_name>JPRoland/soapbox-api<file_sep>/routes/story.js
const router = require("express").Router();
const { storyController, authcontroller } = require("../controllers");
router.get(
"/stories",
authcontroller.authOptional,
storyController.getStories
);
router.get(
"/stories/feed",
authcontroller... | 3a53f1a1db8c6bc8afac0dedb62e0f290ac75ce6 | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | JPRoland/soapbox-api | 5a4aad6b1370438de8b765701bea710168e87815 | 4a4a305df7cd3b13bb78b5e5e662e5457cf8982a |
refs/heads/master | <file_sep>#!/usr/bin/python
#-*- coding:utf-8 -*-
import requests
import re as R
from bs4 import BeautifulSoup
import json
import sys
import time
import MySQLdb
from .database import SinaDB
# # Set Default Encode
# reload(sys)
# sys.setdefaultencoding('utf-8')
HEADERS = {
'Accept':'text/html,application/xhtml+xm... | 397627956d0fca68f766286deab38b38c63d3b6b | [
"SQL",
"Python"
] | 4 | Python | c0hb1rd/Final_Sina_Spider | 299d1423f505cb509d972aaa212ea5a1994583b6 | e3dd0da7b0c4571b103aeb57e7fdb76291ef32ad |
refs/heads/master | <file_sep>//
// ViewDiseaseViewController.swift
// BloodBankApp
//
// Created by <NAME> on 3/9/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import UIKit
class ViewDiseaseViewController: UIViewController,UITableViewDelegate,UITableViewDataSource {
var disease = [String]()
var isCurrentUserC... | bb6e359fdde355d085df4e0587f30ce2896731f5 | [
"Swift",
"Markdown"
] | 6 | Swift | Nayyerali/BloodBank | bfc0c5a7e4eee71830ce5dadee8bf970d3343ab7 | 7a72acae999c31703f7836550e641667c6f831f2 |
refs/heads/master | <file_sep>var excelbuilder = require('msexcel-builder');
var XmlWriter = require('./XMLWriter');
module.exports = function(options) {
var xmlWriter = new XmlWriter(excelbuilder, options);
return function(page, spider, next) {
if(page.data && page.valid) {
}
setImmediate(next);
}
}
<... | 76e85b44c38ed8ba9c2ea961c604e99a5169eb9b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | vermiculite/mrspider-excel | 5388030f7f4dd2e41956dc6f5d10c2dd1ad84733 | eb66f575db0c808880effccfcdb7de746a6e0870 |
refs/heads/master | <file_sep>/**
* apeman app to verify email.
* @function apemanAppVerify
* @param {object} UserVerify - User verify model.
* @param {object} [options] - Optional settings.
* @param {function} [options.beforeSend] - Handle before send
* @param {function} [options.beforeVerify] - Handle before verify
* @param {func... | da66f4d01e60302fca536106b0d969146c2087cb | [
"JavaScript"
] | 6 | JavaScript | apeman-app-labo/apeman-app-verify | 1bb6cc10862d4d52860c271e05b6c7254f2f9129 | 7c6a82d69e63d3633ff66fdc730b196530e57f1b |
refs/heads/master | <repo_name>sushantn145/AWP-Exam<file_sep>/README.md
# AWP-Exam
Exam
<file_sep>/2.js
function submithere() {
var name = document.getElementById('username').value;
var password = document.getElementById('psd').value;
console.log('name');
console.log('password');
//var cmtbox = documnet.getEle... | d10e296f15d6d97d5717903b9a308fa4d00315c3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | sushantn145/AWP-Exam | 69734bf3093eea9e090052a28061d5ec335a13d9 | cef626824fb0c6165ab2f3f1a3cd4c203788a09c |
refs/heads/master | <file_sep>using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Win10BloatRemover.Utils;
namespace Win10BloatRemover.Operations
{
/*
* Performs backup (export of registry keys) and removal of those services whose name start... | 330a3a636b0074fd40789b3044219c3e6735c8e3 | [
"C#"
] | 4 | C# | doneme/Win10BloatRemover | 33fb08c2072f42bd9efc195776bcaab8f98db5d3 | bf9ec3683a08076b68e0f7e62d04b9cca9dcdbb8 |
refs/heads/main | <file_sep>const paginate = (followers) => {
const followerPerPage= 9
const pages = Math.ceil(followers.length / followerPerPage)
console.log(pages)
const newArray = Array.from({length : pages}, (_, index) => {
const start = index * followerPerPage
return followers.slice(start, start+ fol... | 965ba1edcf0892ab58c2338b8298daa8f889f25e | [
"JavaScript"
] | 2 | JavaScript | pratiksha2395/React_Projects | 683545ce71371b8f39e27c78e04204bb9c405386 | 1a4733b37c8c383ae9861dfa827ad21556fbd327 |
refs/heads/master | <repo_name>martynling/vue-grid-sf<file_sep>/index.js
import VueGridSf from './src/components/VueGridSf.vue'
module.exports = VueGridSf
<file_sep>/README.md
# vue-grid-sf
A rather handy grid UI component for Vue.js. Define the columns, bind the data, handle the events and off you go.
Column headings are sortable by d... | 2e64a399c9f749e421a5ffdd682ad09916dc870d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | martynling/vue-grid-sf | 295711e31d5d3d9e05edcae1b92dcf2585f094e5 | 6cbe2923a561acd775af5faea70c3856c7a778aa |
refs/heads/main | <repo_name>rubeneggel72/Entrega10<file_sep>/server/server.js
var express = require('express')
var app = express();
var router = express.Router();
const bodyParser = require("body-parser");
const port = process.env.PORT || 8080;
const handlebars = require('express-handlebars');
app.set('view engine', 'hbs');
app.engine... | 0cca6cf3a0c10ad88386b72cc37f158e739d6907 | [
"JavaScript"
] | 1 | JavaScript | rubeneggel72/Entrega10 | 539269ab797204f6030c911301f76403b1a0a4da | 2716036285432a6ef5fc0c759ec9142204d83511 |
refs/heads/master | <repo_name>SkeLLLa/mongo-cache-example<file_sep>/lib/api-doc.js
/// <reference types="node" />
/// <reference types="config" />
const {version, description, name} = require('../package.json');
const config = require('config');
const apiConfig = config.get('api');
const serverConfig = config.get('server');
const api =... | 31e05e7070d6e2b4dede5430ef372c6cd4bd196e | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | SkeLLLa/mongo-cache-example | 135ee84c861a3f4b6cadc179c6cfd0f776c47355 | 16c0653e82367662a46e16d43999935f4c1b1332 |
refs/heads/master | <repo_name>bladeyul/exercise<file_sep>/quota.py
from config import quota_file
import os
import re
#都按照G计数
class Quota(object):
def __init__(self):
pass
#比较函数
def __lt__(self,other):
return self.quota<other.quota
def setQuota(self,quota):
self.quota=self.quota
def getQuota(self,quota):
return self.... | cb1d94103b4af02be2001be3bd7a6dcd9ca78adf | [
"Markdown",
"Python"
] | 3 | Python | bladeyul/exercise | c3ff21a4a2613ae1ade9c37d27a4dc7733729638 | acbec42c03ef1f05ae5bdabe42f82f984bf042d9 |
refs/heads/master | <file_sep>import sys
a2 = a1 = None
in_header = True
while (in_header):
line = sys.stdin.readline()
if line.startswith("ATOM") or line.startswith("HETATM"):
in_header = False
eof = False
atoms = []
bonds = []
angles = []
abs_bonds = []
abs_angles = []
order = ["C1", "H1", "H2", "H3", "H4"]
atoms_pe... | ebe2e06de96d9be36a9b1808cdd0dcc95ff06dfd | [
"Markdown",
"Python"
] | 5 | Python | paulboone/qff-methane-test | e0e9b2aee3ce901adb7bbbd14728774d100e760a | ad715b14bba05f69537b925d26b062312993e43e |
refs/heads/master | <file_sep>package com.example.coroutinesfirst.First
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
//fun main() {
// GlobalScope.launch {
// delay(1000L)
// println("hello")
// }
//
// println("word")
// Thread.sleep(3000L)
//}
//fun main() {
// val start = System.... | 0a63e38305c86cc23b86d3018d4c568c44dc9ec2 | [
"Kotlin"
] | 4 | Kotlin | tienclever/Test_coroutines | 05ea0f4711dbb8255534c081dd1e0d1e495a65e8 | 1ddd7036ec3bfe4c1216ad4518783c5ade96e751 |
refs/heads/master | <repo_name>uc-cdis/indexclient<file_sep>/indexclient/parsers/delete.py
import sys
import json
import logging
import argparse
import requests
from indexclient.errors import BaseIndexError
def delete_record(host, port, did, rev, **kwargs):
"""
Create a new record.
"""
resource = "http://{host}:{port}/... | fabd5cd39521c768ce40141e168a434698b82986 | [
"TOML",
"Python",
"Markdown"
] | 16 | Python | uc-cdis/indexclient | 7b3e3a56191c8500a22118b1ba363080c47807b0 | 17d08745ae7672c5fbf16d0312a5e033a28d4f08 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import '../App.css';
class Registro extends Component{
constructor(props){
super(props);
this.state = {
nombre:'',
edad:'',
telefono:'',
mail:'',
patente:'',
modelo:'',
... | 6c4090aa7122437c1850e752b17125baf06f45ac | [
"JavaScript"
] | 2 | JavaScript | tomassalasmesa/coding-challenge-taxidrive-tomassalasmesa | f06275bf4377770339c7c1e05c8291f269ae6e28 | ca2d23ab01668c66dabb596115a0133f475441cf |
refs/heads/master | <repo_name>Kohzuki-Nanako/react-profile<file_sep>/src/slider3.js
import React from "react";
import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import bread1 from "./media/IMG_3594.jpeg"
import bread2 from "./media/IMG_3539.jpeg"
import bread3 fro... | 48beb7a1cb91ae9b47d714b1ba573631e15239db | [
"JavaScript"
] | 4 | JavaScript | Kohzuki-Nanako/react-profile | 37d471a0dc7ba745ae47975220bf15f93d8ffeae | 0ed9c1b46fdc9cd6ac69a2aa898d7acdf7d75c43 |
refs/heads/master | <repo_name>fuad90/new-staff<file_sep>/www/js/services.js
angular.module('starter.services', [])
.factory('Chats', function($http) {
//var baseUrl = 'http://localhost/api/web/index.php/staff/';
var baseUrl = 'http://192.168.0.128/api/web/index.php/staff/';
return {
getAll: funct... | 64ba5c581b3fabb81d89c1d6fedabb7a969bb57f | [
"JavaScript"
] | 1 | JavaScript | fuad90/new-staff | 438ebbaca3819656c89d7468e64757e11b054ccb | 689ddb30cf5c41a5430c99e1c230bbb261f917bc |
refs/heads/master | <repo_name>Saga09/UpstoxAssignment<file_sep>/my-app/src/webSocket/header.js
import React from 'react';
import {NavLink} from 'react-router-dom';
class Home extends React.Component {
constructor(props)
{
super(props);
}
render() {
return (
<div className="header">
... | 34430ee510f9bd3b5fdf0ee37058067f05eeaa41 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Saga09/UpstoxAssignment | de26b12c008580f581a8a02ea2812626353bf275 | e4d5a54555acdd186e1d2563ca245bb43415599b |
refs/heads/master | <file_sep>package com.rfrnamnd1414245rikate.mlkit_example
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databindi... | 6c176cbe6bbe0c52be778a017d7d72b5742c1669 | [
"Markdown",
"Kotlin"
] | 2 | Kotlin | kohei0219/ML_Kit | ab71564985fa3478f07c37450442f934961f7ae8 | 65949df65b586d5f12ae76b536a4c7f56bfb066d |
refs/heads/master | <repo_name>vatokato/reactStart<file_sep>/src/components/Article.js
import React from 'react';
import PropTypes from 'prop-types';
class Article extends React.Component {
state = {
visible: false, // определили начальное состояние
}
handleReadMoreClick = (e) => {
(e).preventDefault();
this.setState(... | 01304e336455b6de87157a0267c1c09f3cfe2499 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | vatokato/reactStart | 21b25cb9e9a25bd1ebbf099bf4dde033e8e4a99d | d3f254b3c33fe15ad901a11c8862d68d89e3fbed |
refs/heads/master | <file_sep>#pragma once
// include this library to use NULL, otherwise use nullptr instead
#include <cstddef>
#include <iostream>
#include "node.hpp"
template <class T>
class BST
{
public:
// Constructor for the BST class, creates an empty tree
BST(void);
// Destructor for the BST class, destroys the tree
... | 8e9bc814345df3e4b0d6dc8fed37ace657191cc1 | [
"C++"
] | 1 | C++ | dsu-cs/a3-airelwold | 93667b2fb151c27e943e0db19134df6b76b314e1 | 595839f61c9b91d01fe9ffa9f9ded4c58c627d6f |
refs/heads/master | <file_sep>#pragma once
#ifndef _USER_H_
#define _USER_H_
void userg(void);
#endif /*_USER_H_*/
<file_sep>#DWMS sample status time for dwm
*build
`make ; make install ; make clean`
<file_sep>#define _BSD_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#includ... | 9609ba6fcca1571a0f539be112abd71b69e2a7f7 | [
"Markdown",
"C",
"Makefile"
] | 5 | C | fedor-elizarov/dwm | 9481e8fefa15101f1f48e0fb3c9b1784b4744104 | 4fcd2e90028b198be717d9bbd78b5481dc489f73 |
refs/heads/master | <file_sep>
<?php include 'header.php';
$sql="DELETE FROM orderlist";
$query=mysqli_query($conn, $sql);
session_destroy();
?>
<script>
document.getElementById('simpleCart_quantity')=0;
document.getElementById('pid')=0;
</script>
<?php
header('Location:index.php');
?>
<?php include 'fo... | 02f091e1ddc0e89aff12073dd1c10db76ea1e029 | [
"Markdown",
"PHP"
] | 20 | PHP | jimmi1998/OFDS | b742ca4a3411973f2abbe0fa4eaba595a1f0d909 | 618f8884837981775bb40753e4cbd2cd06e0269f |
refs/heads/master | <file_sep>#source("utilAD.R")
#source("simulation.R")
#Example 1
#Generate a time series of ER graphs of length 12,
#create graph anomaly at time point 6
n <- 100
glist <- list()
for (i in 1:5) {
glist[[i]] <- sample_gnp(n,.1)
}
glist[[6]] <- sample_gnp(n,.9)
glist[[7]] <- sample_gnp(n,.1)
for (i in 8:12) {
... | 1578232d559ffa5886c810e38f983ff5b2d33cb7 | [
"Markdown",
"R"
] | 5 | R | gdchen94/AnomalyDetection | 17f9f0e08ca10b55fc20adee3320b884b2524f9c | 5028c2db741b938d95952601b9cb49e332cb9912 |
refs/heads/master | <repo_name>Nurchik/balance-test<file_sep>/src/kg/balance/test/controllers/CompanyController.java
package kg.balance.test.controllers;
import kg.balance.test.dto.BaseResponse;
import kg.balance.test.dto.Result;
import kg.balance.test.exceptions.CodedException;
import kg.balance.test.exceptions.CompanyNotFound;
import k... | 63951483fed6ad823c53b2fb33cd7c46537a3730 | [
"Java",
"SQL",
"INI"
] | 16 | Java | Nurchik/balance-test | 8f0a91c01281c7a088007caf61651e60d07530e7 | 94e3e5ee0f40684ed9de29e3b6c95e0c19306afa |
refs/heads/master | <repo_name>a19860101/LCCNET-LARAVEL<file_sep>/README.md
## MVC
Model 模型
View 視圖
Controller 控制器
## 從github下載的執行方法
1. 將下載好的資料夾放到xampp/htdocs內
2. 透過localhost建立資料庫
3. 執行 ``` composer install``` 安裝所需套件
4. 執行 ``` copy .env.example .env``` 產生.env
5. 設定.env內的資料庫資訊
6. 執行 ``` php artisan key:generate ``` 產生金鑰
7. 執行 ``` php art... | 2bf022598fe8008e84fe12bb7a8de264d79a19c8 | [
"Markdown",
"PHP"
] | 2 | Markdown | a19860101/LCCNET-LARAVEL | 3938f62358095bdd109654a3f9737fbfec5cb46b | 25c73919af43619443851548be97bb7545a17e48 |
refs/heads/master | <file_sep>require 'yaml'
path_to_file = "./config/timing#{ENV['VARIANT']}.yml"
timing_data = YAML.load_file(path_to_file)['timing']
require 'pry'
class MetroInfopoint
def initialize(timing_file = nil)
@timing_file = timing_file
end
def calculate(from_station:, to_station:)
{ price: calculate_price(fr... | 477bd9ab788e742d6bb5108daf3c2ff910d34fb7 | [
"Ruby"
] | 1 | Ruby | Viktorkosandyak/Metro | b8f438920ab002fa780a856ac7033123240db607 | eb47580d9e09771869edc2ce3626114f2dd20b4b |
refs/heads/master | <repo_name>stefanfreitag/fullstack_graphql<file_sep>/backend/server.js
import express from 'express';
import cors from 'cors';
import mongoose from 'mongoose';
import SERVER from './graphql/schema';
const APP = express();
APP.use(cors());
mongoose.connect('mongodb://localhost/graphqlserver');
const connection = mon... | e98070cc57208435aeea71ae33aa92e6970a5e28 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | stefanfreitag/fullstack_graphql | 325b338ab0d6913ec475c03aa5cc3f8f1bab67d7 | 62366e3e40f5db9aee31da2a0603755549bedfd8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.