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>sd9550/ChangeEquipment<file_sep>/ChangeEquipment/src/ChangeEquipment.java
// program to test out multidimensional arrays
// Items are from Dark Souls
public class ChangeEquipment {
public static void main(String[] args) {
new Initialize();
}
}
<file_sep>/ChangeEquipment/src/Armor.java
publi... | c498f829d192858fcca82b8e28c7e8bf29f97df3 | [
"Java"
] | 2 | Java | sd9550/ChangeEquipment | 3d9ee0c341da63eb7248864d461cf7ba742a5e10 | e30eb312ec71ce0b829f7381bda5368027ec84bd |
refs/heads/master | <file_sep># Fundamental data types
* Value: collection of objects
* Operations: insert, remove, iterate, test if empty.
* Intent is clear when we insert.
* Which item do we remove?
* Stack: examine the item most recently added. LIFO
* Queue: examine the item least recently added. FIFO
# Stack
## Linked List imple... | 6e19266118932c12fe33d19a30979fc2a1ab6efc | [
"Markdown",
"Java"
] | 12 | Markdown | zhangwei217245/ProtoTest | 747684236e847a9b7009f4467c35a09977dfe15c | 0a491617ee648e34f0cc477c17c2041beb5cd27b |
refs/heads/master | <file_sep>#include <SR04.h>
#include <SimpleDHT.h>
//Temp and Hum
int pinDHT11 = 2;
SimpleDHT11 dht11;
//Ultrasonic
#include "SR04.h"
#define TRIG_PIN 12
#define ECHO_PIN 11
SR04 sr04 = SR04(ECHO_PIN,TRIG_PIN);
long light;
void setup() {
Serial.begin(9600);
}
void loop() {
byte temperature = 0;
byte humidit... | e6ca0e6f8c300a20bb9182feef88743033ab68c7 | [
"JavaScript",
"C++"
] | 2 | C++ | chantellechan1/missionhack2018 | 8af9b56c37d143706b758b9ca53de4a7fd71e8fd | 06a0ff1b6a76cc03cd58c95ea32cf6c8d63d49c1 |
refs/heads/main | <file_sep>from sklearn.base import BaseEstimator, RegressorMixin
from sklearn.neighbors import KNeighborsRegressor
from sklearn.model_selection import cross_val_score, GridSearchCV
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report, zero_one_loss, mean_squared_error
... | 487b19c716bc32e75f9271df3f0baa7bae589899 | [
"Python"
] | 9 | Python | ZhuangPascal/PLDAC | 0e32b6eeae6ec60c6cbbb65310c692041f514d50 | 070a8472143be3c3469d0b7c8d34383bb7b98b2a |
refs/heads/main | <repo_name>funte/USB_wabcam<file_sep>/HARDWARE/OV7670/sccb.c
#include "sys.h"
#include "sccb.h"
#include "delay.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序参考自网友guanfu_wang代码。
//ALIENTEK战舰STM32开发板
//SCCB 驱动代码
//正点原子@ALIENTEK
//技术论坛:www.openedv.com
//修改日期:201... | 99066864ac9b645b1ae51c3b3f2ef284477c6673 | [
"Markdown",
"C"
] | 20 | C | funte/USB_wabcam | b972eaacfeaceb27db492a4ffab48ca5173e84a4 | a06a4a3543cb99dbcfb88a3bc7dff46028f8a7c9 |
refs/heads/master | <repo_name>tbzy/Test<file_sep>/ppfilt/maskfunc/convert_to_fort.sh
sed 's/E/d/g' maskr.15 | awk '{ print " mfunc(", NR-1, ") = ", $2 }'
<file_sep>/ppfilt/_abbrev_.inc
!////////////////////////////////////////////////////////////////////////
!! Abbrev words for Fortran (Last updated: 2014-9-2)
#ifndef __ABBREV... | 3c07a40e3304a39ce0ee7febd5f3b3460331706f | [
"C++",
"Shell"
] | 3 | Shell | tbzy/Test | b7cfe6d6d703312057db66c2bd35644fba88b615 | 94265e70c4e2daa3104263a5b6767f3a94cc99ad |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import ConfigParser
import json
import os.path
import sys
import urllib2
class getWeather():
def get_city_id(self, city):
city_list = ConfigParser.ConfigParser()
url = "http://openweathermap.org/data/2.0/find/name?q="+city+"&un... | 929f54efffe5ff968178aa36cdb1b3b94c5bc656 | [
"Python",
"INI"
] | 3 | Python | DMaiorino/gtk_weather | 6736915f471d9a5a74409048f502989de43e4c1c | be343ba560d80f6483e2e65dc0ad009a8e5f52a1 |
refs/heads/master | <repo_name>jneumann/home-page<file_sep>/home.js
(function () {
// Open links based on number pressed (0-8)
document.onkeypress = function ( evt ) {
var href = '',
linksChildren = document.getElementsByClassName('links')[0].children;
if (evt.keyCode == 49) {
href = linksChildren[0].children[0].href;
}
... | 57be31900135f8e3cd83485770f1abfe4ac64745 | [
"JavaScript",
"Markdown",
"PHP"
] | 5 | JavaScript | jneumann/home-page | a9b8f079819f3250c9c3c04d3d9be733bba47af0 | aff73aee4e4d1d39a7c0a0ebe63aee48f9712226 |
refs/heads/master | <file_sep># College-Work
College projects
This repository contains the projects done in college all which are done in java
<file_sep>import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servle... | 269ba9d15f060fcf22e6987762b3f535f76276b0 | [
"Markdown",
"Java",
"C"
] | 6 | Markdown | Lordjiggyx/College-Work | 13c63dff856fbb38783eca4ea64db06424da152a | 1a1e75ca82af96c85c9bb1ac51f39b71b62ba48f |
refs/heads/master | <file_sep># Generated by Django 2.0.7 on 2019-03-17 15:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20190317_1753'),
]
operations = [
migrations.AlterField(
model_name='article',
name='con... | 5fde258cfb6b301fd0cd03579b53e57fe158801d | [
"Python"
] | 4 | Python | loaywatany/django-project | 750063defe82f1ccdab3f6a6772af5cbb41049b4 | 6758b05f91215ade441acc55004f73ed4b6c8f62 |
refs/heads/master | <repo_name>Earthstar/straight-white-bot<file_sep>/PRIVACY.md
# Privacy Policy
This is the privacy policy for (https://www.facebook.com/straightwhiteboy).
## Information Collection, Use, and Sharing
The Straight White Boy Simulator app may record the text of any messages sent to it for debugging purposes. The app rec... | 5f39f7a9bc6d3b3572358e98e55c79455eadd2ee | [
"Markdown",
"Python",
"JavaScript"
] | 6 | Markdown | Earthstar/straight-white-bot | 6466a5352998543c845c76b0e9173c7bc9692725 | 4396b2731e0031d88cd246ea11a5dfe3179fa95d |
refs/heads/master | <file_sep>package com.bing.listviewitemdemo;
/**
* Description
* Created by bing on 2015/10/4.
*/
public class ItemData {
private String firstItem;
private String secondItemTop;
private String secondItemBottom;
private String thirdItemText;
private int thirdItemImg;
public ItemData(String f... | f1b22e81bd657e2b9a4369cecd1e6883619f291d | [
"Markdown",
"Java",
"Gradle"
] | 10 | Java | bingsl/BlogSource | 023f990ccfac40d3a95986fe3b9b01cef55536dd | 5abc8db4d2bfca5d196e3ed17c76a852f0ed6b35 |
refs/heads/master | <file_sep>#include <stdio.h>
#include<stdlib.h>
int main()
{
int a = 1, b = 2;
scanf_s("%d", &a);
scanf_s("%d", &b);
printf("a=%d, b=%d\n", a, b);
system("pause");
return 0;
} | fd92e30e270a654f45b0b10825679b25b134cebf | [
"C"
] | 1 | C | xxiaotianxin/xiaotianxin | f19ce40f52c1125d06eb7435ba048d81644d2bbb | 3c8b0e3157d0cb521cc187445091a6558a7b1415 |
refs/heads/master | <file_sep>import React, { Component, createContext, useEffect, useState } from 'react';
import { auth, createUserProfileDocument, firestore } from '../firebase';
export const UserContext = createContext();
const UserProvider = ({ children }) => {
const [user, setUser] = useState(null);
var unsubscribeFromAuth = ... | faca65726772b9d9962e6904462f36ab057258f6 | [
"JavaScript"
] | 4 | JavaScript | vdtrung1706/think-piece-react-firebase | 0b518c8ff04e5905a2a5ca9bdbd16f93f1b96736 | 58ba4e02ebb6ba373bed15a7c5eab89a45491f93 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Classes;
import java.io.*;
import java.io.IOException;
import java.util.ArrayList;
/**
*
* @author jpfreire
*/
p... | 4cee08b66047ab101a3cf74b113b24892fc2901e | [
"Java",
"INI"
] | 3 | Java | jpfreire96/exercicio-lps | 2db8cd0706c71670c7a213eca81071fc2ffc441f | 284cd923fb2db271ea6b05fecd0461d676f051fc |
refs/heads/main | <repo_name>Kakkarrot/personal-site<file_sep>/src/assets/deadlockDetectionAlgorithm.cpp
/*
Author: <NAME>
Compiling Instructions:
1. Ensure that input.txt is in the same directory.
2. Compile the program using "g++ deadLockDetectionAlgorithm.cpp -o dda" without quotes.
3. Run the executable using "./dda inp... | f89dce23cc90ec15a1010da176ed5311d3be0641 | [
"TypeScript",
"C++"
] | 9 | C++ | Kakkarrot/personal-site | 45c837d30cd7c9f31dc60d9c50e81bcc93b8360f | 70025a6b531997347fa0e9f5a230825fabefc479 |
refs/heads/master | <repo_name>JoelBuhrman/WakeUpBuddy<file_sep>/app/src/main/java/com/example/joelbuhrman/wakeupbuddy/BuddiesAdapter.java
package com.example.joelbuhrman.wakeupbuddy;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdap... | cf3da8edc4ac2a2f0f5e09527ee4017c0f4ae6d0 | [
"Java"
] | 1 | Java | JoelBuhrman/WakeUpBuddy | 0feb9f776a226b0618107d122de6c5c3da5dae2a | ae9630ded2d4c48e6386846f40d9a0a507245297 |
refs/heads/master | <repo_name>Paul-Kyle-Turner/Quicksort-Random<file_sep>/main.py
import numpy as np
import timeit
import pandas as pd
import matplotlib.pyplot as plt
import random
import statistics
import math
def quick_sort(partition_func, ar, p, r):
if p < r:
q = partition_func(ar, p, r)
quick_sort(partition_func... | e693b2271f5eb5bcd9e364cfe304aba0b94e90cc | [
"Python"
] | 1 | Python | Paul-Kyle-Turner/Quicksort-Random | badf42494f7ec69a53f0e452b924bb158c406421 | c9e732cae40c71ae4723d8fe466ae2fbf3ecd1ee |
refs/heads/master | <repo_name>parpat/distboruvka<file_sep>/Dockerfile
#FROM golang:onbuild
FROM golang:latest
RUN mkdir /app
ADD . /app/
WORKDIR /app/
#RUN go build -o main .
CMD ["/app/cmd/node/node"]
#Service listens on port 7575.
EXPOSE 7575
<file_sep>/cmd/node/node.go
package main
import (
"fmt"
"log"
"math"
"math/rand"
"str... | 7976c8ab16ea13d2c0be247edc3053241c53dcef | [
"Go",
"Dockerfile",
"Shell"
] | 10 | Dockerfile | parpat/distboruvka | 0f716c3ec6a15a11e335bd403238c7ed328841dd | 97b9901cc32c3a96a65e5d0efb5b320017f307fd |
refs/heads/master | <repo_name>Trelefele/AutoDetalingWebSite<file_sep>/AutoDetalingUI/Models/Contact.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace AutoDetalingUI.Models
{
public class Contact
{
public int Id { get; set; }
... | d3fac2eb202abacf0c63d09f1b00527be3ddc5ab | [
"C#"
] | 4 | C# | Trelefele/AutoDetalingWebSite | bc0014fe51fa73aa4ca27935fc191264c4d2d4a5 | 46ff4261f1814c2ec680689596b692d439c22852 |
refs/heads/main | <file_sep>from django.contrib import admin
from . models import Stock
# Register your models here.
# in order for models to appear in the admin section you must register them
admin.site.register(Stock)
<file_sep>altgraph==0.17
appdirs==1.4.4
asgiref==3.3.1
astroid==2.5.1
certifi==2020.12.5
chardet==4.0.0
colorama==0... | bdc3cfc25a88a8fd730b538d6585b4ae4269ce9d | [
"Python",
"Text"
] | 3 | Python | Emmanuel678912/stockportfolio | 0eb054e83e311b310ee5624506718e91bc74940f | 179910ebee286f9502f2af489847c78ab2622110 |
refs/heads/master | <repo_name>NickRock/SaveLove<file_sep>/savelove.lua
savelove = {}
function savelove:set(fname, highscore)
if not love.filesystem.exists(fname) then
love.filesystem.newFile(fname)
highscore = 0
else
for lines in love.filesystem.lines(fname) do
highscore = lines
end
end
return tonumber(highs... | b995e49334480ef5940b975f36664ec32bc0b32d | [
"Lua"
] | 1 | Lua | NickRock/SaveLove | 4e91d12e4ab673ae7a0c908f596d1671c51bb0e3 | d8716d9124c41ef9c2df3a97c08bea77900b214b |
refs/heads/master | <repo_name>chanjuanmoon/vue-<file_sep>/vuejs01/12-前端模块化/01-为什么要用前端模块化/aaa.js
/**
* 1.(function(){})() 闭包解决全局变量冲突
* 2.将函数返回的对象赋值给变量,可以实现代码复用
*/
var ModuleA = (function(){
var obj = {};
var num1 = 10;
var num2 = 100;
var flag = true;
function sum(){
console.log(num1 + num2);
}
if(flag){
sum()... | 2ecc4699849a6f09a6a0f3319106bc5026f44bf5 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | chanjuanmoon/vue- | 9a8e246f199097c8b8ad91e869bd8dc15461f823 | 18951bffbda70ca041b4da2b389640f1ff43cbcd |
refs/heads/master | <repo_name>andrebododea/gauss_jordan_opencl<file_sep>/matrix_multiplication_example/build_and_run.sh
#!/bin/bash
# export OPENCL_PATH=/home/s1350924/opencl/fbdev
# export OPENC;_PATH=/usr/local/lib/mgd/
export OPENCL_PATH=/usr/local/lib/mali/fbdev
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPENCL_PATH
gcc -o gauss_jord... | 0c073faa7ac8d33f467199df5ecf4e7b5a0b1d36 | [
"C",
"C++",
"Shell"
] | 4 | Shell | andrebododea/gauss_jordan_opencl | a1391394bea56e4f9d0032ed7266bee24379e72e | f64f1f920b3a021674be633854350de1232c672d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace FineArts.Entities
{
public class Teacher
{
public int Id { get; set; }
public string FirstName { get; set; } // Propiedad
public string LastName { get; set; }
public string Class { get; set; }
public L... | f914dd29bf7e17219d26be08df7233b8bba34284 | [
"C#"
] | 4 | C# | Je5e/FineArts | 369d2874dd2a676f652b1b51b339d4949c932cad | 9cb9687730127dde4ac0a12175a50b2f21bfc9d5 |
refs/heads/master | <file_sep>#include "type_hash.h"
namespace rediscpp
{
type_hash::type_hash()
{
}
type_hash::type_hash(const timeval_type & current)
: type_interface(current)
{
}
type_hash::~type_hash()
{
}
size_t type_hash::hdel(const std::vector<std::string*> & fields)
{
size_t removed = 0;
for (aut... | db6e03765c63599b45c19466dc7b6da0713207e8 | [
"Markdown",
"Makefile",
"C++",
"M4Sugar"
] | 49 | C++ | Arcen/rediscpp | 8217dfbf457fb2a4cc94222e6db9cda47c72d53d | d363beed6d35ad4d78742b2a9d795045a606e9c5 |
refs/heads/master | <file_sep>ExpressApp
==========
Simple ExpressApp using Express Framework
<file_sep>var express = require('express');
var app = express();
var path = require('path');
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.static(path.join(__dirname, 'public')));
app.get('/', ... | 40f1b8dceb819d02514767ee1044d5ba64d4abae | [
"Markdown",
"JavaScript"
] | 2 | Markdown | BastinRobin/ExpressApp | 7aabfc0e5abec6c1e3945a42b2240f347531521b | 654f714e729ca38c53e596e759333e1d2214bc1b |
refs/heads/master | <repo_name>ChristineBasta/mt_gender_1<file_sep>/prepare_translation.py
def prepare_translations(file_eng, file_trans, file_to_evaluate):
eng_file = open(file_eng, 'r')
trans_file = open(file_trans, 'r')
evaluating_file = open(file_to_evaluate, 'w+')
while True:
line1 = eng_file.readline()
... | 2d60138f76bca8c1dca6e679802b6aa42b6a7277 | [
"Python",
"Text"
] | 2 | Python | ChristineBasta/mt_gender_1 | c03249c66bd1fd523263c2fbcf188073fcaa93f2 | 189f0bf33b01b6bf82c0d61143daaac7f1f59aa5 |
refs/heads/master | <repo_name>Evandro18/GOLANG-gRPC<file_sep>/README.md
# GOLANG-gRPC
First Golang gRPC
<file_sep>/server/main.go
package main
import (
"context"
"fmt"
"log"
"os"
"os/signal"
"go.mongodb.org/mongo-driver/bson"
"net"
salespb "../proto"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver... | 2a5c5e12c07e539a1f97ced69cb055db205330e5 | [
"Markdown",
"Go"
] | 3 | Markdown | Evandro18/GOLANG-gRPC | bdd8ce5f4e3455a25cfb8d6329c2a17946e8755a | 379e29e9edb10322642280efcd27c2a96b69210c |
refs/heads/master | <repo_name>JohnMurray/pinatra<file_sep>/index.php
<?php
include 'lib/pinatra.php';
Pinatra::configure(function ($conf) {
$config['base_path'] = '/bank';
return $config;
});
Pinatra::before('*', function () {
//header('test: me');
});
Pinatra::after('*', function () {
//echo 'DONE';
});
// Some test route... | f2b73e536b5338fa63357ec6bad57c9a4515c9ec | [
"Markdown",
"PHP"
] | 6 | PHP | JohnMurray/pinatra | 19e7bec08b245c3c49bde77e1daf1b82b1ab1a87 | 5d11cb53e1fe362508b046d14737e87a468e1888 |
refs/heads/master | <repo_name>woratat/ES<file_sep>/Homework/script.js
let profile = document.querySelector('.profile');
function promiseCallApi(){
axios.get('https://reqres.in/api/users/5').then(res =>{
profile.src = res.data.data.avatar
document.getElementById('name').innerText = res.data.data.first_name+" "+res.dat... | cd3d5acaca001335e9cc16d865c9f0a038ae97c9 | [
"JavaScript"
] | 3 | JavaScript | woratat/ES | 47d116085abed7b60b92e6b6f3812e185eb616bc | 3ae1b5d261ee824b6ea6519ee5bb6ea023e46455 |
refs/heads/master | <repo_name>smmehl0311/zoho<file_sep>/public/scripts/components/utils.js
import {checkToken} from '../service/apiClient';
export const checkUserAndAuthToken = ({user, loginSuccess, setIsLoginLoading}) => {
const authSplit = document.cookie.split('auth-token=');
const semicolonSplit = authSplit.length > 1 ? authSpli... | 4b85fff4b4291fe2c069ab1726159bd9e6396998 | [
"JavaScript"
] | 1 | JavaScript | smmehl0311/zoho | 7045213653ba2672505f7010f2aaa209115013a7 | 8ff76f3b9c2a293ba17930d6182069dc323e0744 |
refs/heads/master | <repo_name>sandeepreddy1945/SpringMongoDemo<file_sep>/README.md
# SpringMongoDemo Using Mongo DB
## A Sample Project Used to Configure Spring and Mongo DB
## Components Used Include Spring, Swagger and Monogo DB Dependencies.
<file_sep>/src/main/java/com/app/mongo/rest/SpringMongoRestController.java
/**
*
*/
pack... | 582e5601cad6e15592d3fc51357279b6845e74b1 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | sandeepreddy1945/SpringMongoDemo | a52d3b09eb568203e314fff19da33c2c9c7983ec | 9392d28ec459d3bdb0ee51ad32fced1f9ade0806 |
refs/heads/master | <file_sep># angular5-pwa-example
Angular 5 implement PWA like example
## Example use
Run `npm install` for install all dependences.
Run `ng build --prod --aot` to create the building for prodution.
Install http-server npm package `npm install http-server -g` https://www.npmjs.com/package/http-server
Start server ... | 7ee0d5a82d9dd0cd100c535ccada3c2b1df41fd6 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | Pedro4D/angular5-pwa-example | d3057444c20ee5499a5a27785ceae98d3f885520 | 79cd422ad79d2cfcf7578792f6b0a6a6661c8f82 |
refs/heads/master | <repo_name>TonyCWeng/node-fun<file_sep>/animal_fun.js
const fs = require('fs');
const http = require('http');
const qs = require('querystring');
const cache = {};
// fs.readFile('./animals.txt', 'utf-8', (err, data) => {
// if (err) {
// console.log(err);
// } else {
// console.log(data);
// var anima... | e04a430e56015842b0a5ca2d08d15bbfc6b5975c | [
"JavaScript"
] | 1 | JavaScript | TonyCWeng/node-fun | d85891158870fcc1bc64129b88b25c9ea9f5d1bb | f1020b056cacf034e4899a73c413d5ae83ce41a4 |
refs/heads/master | <repo_name>VitaliyKotov/priority_queue<file_sep>/index.js
const MaxHeap = require('./src/max-heap');
const Node = require('./src/node');
const h = new MaxHeap();
const a = new Node(0,0);
const b = new Node(1,1);
const c = new Node(2,2);
const d = new Node(3,3);
const e = new Node(4,4);
const f = new Node(5,5);
window... | 5e3c2c6e56af0c1fa227200d1858f4531cc1409c | [
"JavaScript"
] | 1 | JavaScript | VitaliyKotov/priority_queue | 58ad28617e9c92ce77613f768145f98dc7ab0dfb | 7c4c8813fad387979b4da325dc7c2e0245d4237d |
refs/heads/master | <repo_name>rvieracds/RSQ_Assist_Android<file_sep>/app/src/main/java/com/codigodelsur/speechrecognition/entities/CreditsSummary.kt
package com.codigodelsur.speechrecognition.entities
class CreditsSummary(val mMonth: String, val mPotencialCredits: Double, val mCompletedCredits: Double)<file_sep>/app/src/main/java/com/c... | a96498e18b9cc7b4f4cd8fa4b593a4d5d39e53e9 | [
"Kotlin"
] | 19 | Kotlin | rvieracds/RSQ_Assist_Android | 0209fb3662aac7915d93041c21260324efaa29bd | 8d2e4451a26ef177f90ea99ef25635151adad640 |
refs/heads/main | <repo_name>YMY1666527646/ReClass.Net<file_sep>/ReClass.NET/Controls/DrawContextRequestEventArgs.cs
using System;
using xxxx.Memory;
using xxxx.Nodes;
using xxxx.UI;
namespace xxxx.Controls
{
public class DrawContextRequestEventArgs : EventArgs
{
public DateTime CurrentTime { get; set; } = DateTime.UtcNow;
publi... | 34ce0f404015fb79a79729ef9b4dc56094bd1f4c | [
"C#"
] | 1 | C# | YMY1666527646/ReClass.Net | 569d19a927dd49d7bf911c6ca3051d10b3143319 | 0706cb76645a8a10909fd984a42e716df0dd7784 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
namespace AGC
{
public class cTransaction: cBase
{
public cTransaction()
{
}
#region "GET"
publ... | 64026edeec47e460f0f60a5a495f047fdbe51342 | [
"Markdown",
"C#"
] | 19 | C# | russelxrussel/AcesOfGrace | 7fcfe63ce50aff51dfbe0461524c1e8d62a2fbb8 | 9b96f6793cbc02be5686c1f604c929baf331cf3e |
refs/heads/master | <repo_name>levinzonr/spring-copsboot<file_sep>/src/main/kotlin/cz/levinzonr/CopsBoot/security/AuthorizationServerConfiguration.kt
package cz.levinzonr.CopsBoot.security
import cz.levinzonr.CopsBoot.security.Constants.RESOURCE_ID
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.c... | b180604792b42e62bfc7eed49e6f199106dcd0dc | [
"Kotlin",
"INI"
] | 27 | Kotlin | levinzonr/spring-copsboot | 3786238e95540aa58daafd19c78a0d192c980760 | 23a7ef7ee528de12298caa5aa510a647decb0d1b |
refs/heads/master | <file_sep>package com.store.customer.entities;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Entity
public class ShippingAddress {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long shippingId;
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY... | 109d375e70f083a96e957854f93bc4cf5f9001b6 | [
"Java",
"INI"
] | 11 | Java | prakashtaak/Microservices | 921c1e37bcf34ed4eda11ecb444cce6e76c1536a | 730c55aa23cd2fb096d7f1b63c15ce27a4107b06 |
refs/heads/master | <repo_name>aktzk/singleton<file_sep>/Singleton.h
#pragma once
#include <mutex>
#include <memory>
/*
singleton class
howto ~ ClassName::Instance()->MethodName(args);
*/
template <class T>
class Singleton {
public:
using unique_ptr = std::unique_ptr<T>;
static unique_ptr& Instance(){
if (!pInstance) {
std::lock... | 40f8d9a1f2fe61e474a947b58937a1e2edf58165 | [
"Markdown",
"C++"
] | 2 | C++ | aktzk/singleton | c34204ee643b167c981ecc25a8cc2b13c6300d10 | 220fb93f2ca6c6c1c81c31834f571456d0d5f641 |
refs/heads/master | <file_sep>require 'ruboto'
require 'custom_methods'
confirm_ruboto_version(6, false)
java_import "android.provider.ContactsContract"
java_import "android.content.ContentResolver"
java_import "android.content.Context"
java_import "android.database.Cursor"
java_import "android.widget.ArrayAdapter"
java_import "android.... | 71cef5cada0fc8292d752cb8b8d05a0661fc3bf8 | [
"Ruby"
] | 2 | Ruby | jrichardlai/time_my_call | 5bddda9b23459919348892dae3e5dddf60fbb104 | 52344773bb8752c84e74907f135127e16523e407 |
refs/heads/main | <file_sep>#!/bin/bash
nohup ./main.pl 1>/dev/null 2>&1 &
echo $! > pid.txt
<file_sep>#!/bin/bash
sudo cp autoget-agent.service /usr/lib/systemd/system/
sudo systemctl enable autoget-agent
sudo service autoget-agent start
sudo service autoget-agent status
echo "Installed"
<file_sep>#!/bin/bash
sudo service autoget-agen... | 20020aa4fca6af36b7a1bd3e61bce6d3115f136e | [
"Markdown",
"Shell"
] | 4 | Shell | databean-kr/autoget-agent-ansible | 0954b86ca90773d6ec0b77465ef63010b7d7b07d | 02f9f788eaf3cdb8ee1fcdf16575524c8d55038c |
refs/heads/master | <repo_name>diy4869/barrage<file_sep>/src/index.ts
/*
* @Author: <NAME>
* @Date: 2020-06-01 16:53:44
* @LastEditTime: 2020-06-04 15:52:53
*/
import Barrage from '@/core/index'
// new Barrage({
// width: 700,
// height: 400,
// container: document.querySelector('.container')
// })
export default Barrage... | 03e4f15476bffe3417e25d6c6ece4322113e0dd4 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | TypeScript | diy4869/barrage | 0d21e914d5557f6791b977787b71a374fc004c0e | 2a5edb4a4dfff5ec0ebea7537c60dec6a05c3fb6 |
refs/heads/master | <repo_name>brianwvincent/midi_music_gen<file_sep>/code/midi_testing2.py
from midiutil.MidiFile import MIDIFile
# degrees = [60, 62, 64, 65, 67, 69, 71, 72] # MIDI note number
# degrees = list(range(60, 75))
# degrees = [60, 64, 67]
degrees = [62,65,69,72]
track = 0
channel = 0
time = 0 # In beats
duration = 4 # In... | 1c028cf90113e5c7d454a5e2082d338fb8097825 | [
"Python"
] | 6 | Python | brianwvincent/midi_music_gen | 4a4d7b5a634fc3ae6b49583997e8954771cd9148 | 5772490b6b1b1d03474f8eaa7162468d9235fa38 |
refs/heads/main | <file_sep>package br.com.mudi.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.a... | fe55b1f57bf4f7c8da693a66e364f96154a0f7da | [
"Java"
] | 2 | Java | RaifePaiva/mudi_application_springMVC | 4c27359026180de9359d82ec41df315e9f0631a7 | 38bdcbaed036bd3094213a66d6a0b8b4d0ec2825 |
refs/heads/master | <repo_name>roman1k/lambdas<file_sep>/src/demoFInterfaces/Main.java
package demoFInterfaces;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Main {
public static void main(String... | 99c12e3e61c21621c4aed08f048ef3ee5d794f5e | [
"Java"
] | 2 | Java | roman1k/lambdas | 2bdd21de3127a5c37622f0de0ef4020e15006417 | 0cec99b3097e148c9343c19ea8ecdee44d97cdb6 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Pygments unit tests
~~~~~~~~~~~~~~~~~~
Usage::
python run.py [testfile ...]
:copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import sys, os
if sys.version_info >= (3,):
# copy test s... | adfb9b91518752b361713594eacd850557f7721b | [
"Python"
] | 1 | Python | erickt/pygments | 05d4b6ce7e51501d2ac22919386017c08c9f5547 | 6223c688cbb6ef81ab3f73d6aa7da9fa796bb6c4 |
refs/heads/main | <file_sep># Code for knn
min = -4
max = 8
def knn():
ks = [2, 8, 35]
x = np.arange(min, max, ((max - min) / 300))
d = cdist(x.reshape(x.shape[0], 1),
trainingData.values.reshape(trainingData.values.shape[0], 1),
metric="minkowski")
for k in ks:
y = np.empty(x.shape)
fo... | b19b0b8db07cf04728d593bc06023272f6c25fe1 | [
"Python"
] | 9 | Python | KL4USIE/Statistical-Machine-Learning | a667d21fbcbbc3c27aa3099ab19403e94aea8b1f | 34f58ea58c7ab130e029c2eb4e7d4f11cbb96300 |
refs/heads/master | <repo_name>vbatsiushkova/Framework<file_sep>/src/test/java/calculatoJUnitTest/CalculatorSqrtDoubleTest.java
package calculatoJUnitTest;
import junitparams.Parameters;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.hamcrest.MatcherAssert.assertThat;
import sta... | 185a50ca5aa3b7437a254e8092cc7dce0e5717ae | [
"Java"
] | 14 | Java | vbatsiushkova/Framework | 3743e2c035917e8ba320a22ce529c381595c4454 | 29b58b67f3de3b5d65ef572d79aecc04e8417bef |
refs/heads/master | <repo_name>LuYueYan/shoot<file_sep>/src/master/CallbackMaster.ts
class CallbackMaster {
public static shareSuc: Function = null;//分享成功回调
public static shareTime = 0;//分享的时间
public static onHideFun: Function = null;//页面进入后台回调
//审核是否通过
public static hasChecked: boolean = false;
public static saveShareSuc = null;//... | 10610dfccbb6c9edb6a085853567f4298382e0f9 | [
"JavaScript",
"TypeScript"
] | 28 | TypeScript | LuYueYan/shoot | 8d05e40a9a2013bd2814dbaf211cdebb1be52ea6 | 1cd76d218bd9fe16d5bd04d4ca9d205c53f3fe43 |
refs/heads/master | <file_sep>import model.User;
import java.util.HashMap;
public class Main {
private static String address="scripts.js";
public static void main(String[] args) throws Exception {
User user = new User("temp_firstname", "temp_lastname", "temp_username", "1111", "<EMAIL>");
HashMap<String , Object> ... | e3a62e363ad202270dc1a70fe3399b8f03f11c35 | [
"Java"
] | 1 | Java | MahtabSarlak/graalvm-practice | ab56035b2dd75455cdcc15c4f4aa1226919abb07 | a4f7e2d902d49ac054b0c0228e50f42fc831cb08 |
refs/heads/master | <repo_name>qhpeklh5959/ACM-Problems<file_sep>/Problems/2000/description.md
Newton's method
-----------
Given a initial $x_0$ and a recurrence
$$
x__{n+1}=x_n - \frac{x_n^2-a}{2x_n}
$$
tell me $x_n$.
-------------
##input
There are 10 test cases. In each case there are three integer denoted to a, $x_0$ and n.
$x_0 \... | 5ee86198cd8182641dcbf1215adbfa616dd6047d | [
"Markdown",
"C++"
] | 10 | Markdown | qhpeklh5959/ACM-Problems | 33488fd1e218ceabd62a2ea871f317bcfd146749 | 94d5bac5404703081905877e1ec64092e0c3a303 |
refs/heads/master | <file_sep>package br.com.desafio.view;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import br.com.desafio.model.Funcionario;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.SwingConstants;
import javax.swing.J... | 85a47d873cc10d288233a97baeaa44939eb6ba39 | [
"Java"
] | 10 | Java | erride/Desafio | f19f434edeaa952504f488302f53f19483de668a | 8a2caf99e04594920eb08416ff6b60b873cd0efd |
refs/heads/master | <file_sep>@file:Suppress("unused")
package skycap.android.core.view
import android.content.Context
import android.support.design.widget.TabLayout
import android.support.v4.view.ViewCompat
import android.util.AttributeSet
import android.view.ViewGroup
class CenterTabLayout : TabLayout {
constructor(context: Cont... | 5c9e2e1bd833b3c40540e0f20b949c9b18ce6bb3 | [
"Markdown",
"Kotlin",
"Gradle"
] | 22 | Kotlin | hemantskycap/skycap-android | 55e32830006cf446e70df31dfee56c076e59eff1 | ad9e8db97a04334246cc66e0acc912f7bcf53c73 |
refs/heads/main | <repo_name>HyenSeoHWang/mysite<file_sep>/pybo/admin.py
'''
* 장고 관리자 기능 URL
* https://docs.djangoproject.com/en/3.0/ref/contrib/admin/
'''
from django.contrib import admin
from .models import Question
class QuestionAdmin(admin.ModelAdmin):
search_fields = ['subject', 'content']
admin.site.register(Question, Questi... | c8e7c472e637ae781caa9d9e84955051f2e1d5c6 | [
"Python"
] | 6 | Python | HyenSeoHWang/mysite | c809b19b3c72e54222876659dd15e71e5b217fbf | 30ddd53b3e4f1cdc6ad2eb2fc0ff51eae40c8cf4 |
refs/heads/master | <file_sep># article-vue-app
Простое приложение на vue, позволяющее "авторизироваться", "зарегистрироваться", и в зависимости от авторизации видеть некоторые изменения в приложении и оставлять комментарии
## Команды
Прежде всего нужно сделать npm install
npm run build - сборка приложения в папку dist
npm run serve - ... | 3e63e6c21bfee2f7a794374844c9c22c6382ccdc | [
"Markdown",
"JavaScript"
] | 3 | Markdown | megFree/article-vue-app | c65394e2c4f6877b07b82ea16fd787a33012f71b | aa4d464e4a2f571f4f2e703037682083a23a6208 |
refs/heads/master | <repo_name>reusee/fastcdc-go<file_sep>/go.mod
module github.com/reusee/fastcdc-go
go 1.14
<file_sep>/fastcdc_example_test.go
package fastcdc_test
import (
"bytes"
"crypto/md5"
"fmt"
"io"
"log"
"math/rand"
"github.com/reusee/fastcdc-go"
)
func Example_basic() {
data := make([]byte, 10*1024*1024)
rand.Seed(... | 010ee93aef6a3e7e1dd8796fa03c1e722843371c | [
"Go",
"Go Module"
] | 2 | Go Module | reusee/fastcdc-go | 1756352c2ae739672d1c9e63258fd9e1dbc84814 | 8a653b8103a5c2f523102739942114b15a1d2632 |
refs/heads/master | <repo_name>amol-deshmukh/chatApp<file_sep>/app/src/main/java/com/example/hp/chatapplication/LoginActivity.java
package com.example.hp.chatapplication;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text... | 0c880f9937e704b4cf38bcd54266907937cc3b14 | [
"Java"
] | 2 | Java | amol-deshmukh/chatApp | 3c99ba82b669478ce8ae5da5d82a402e40d1c98c | 1a612899df93b27482050fa3a42da39f01b8687c |
refs/heads/master | <repo_name>mattisss1/tillampadProg<file_sep>/GameObject.java
package workspace;
import java.awt.Graphics;
import java.awt.Rectangle;
public abstract class GameObject {
protected static int x;
protected static int y;
protected ID id;
public GameObject(int x, int y, ID id) {
GameObject.x = x;
G... | c14cbe06a88f87762ca614a9719f8ff4483365d7 | [
"Markdown",
"Java"
] | 3 | Java | mattisss1/tillampadProg | 78cf85f5f4359d32081ab3754b030258ef305c00 | cfac98fb8bbc598216fec1a7bdc0af91740d2402 |
refs/heads/main | <repo_name>Ivan5Hernandez/iFuel<file_sep>/calculator.js
$(document).ready(function(){
var button = $('#doCalculation');
var resetCalc = $('#resetResults');
var resetInput = $('#resetInputs');
// only allow input of minute OR laps, not both
$('#raceDuration').on('change keyup', function() {
if ($('... | 7b2bc95a10f9e964807f542fdcbb7cdc10c78604 | [
"JavaScript"
] | 2 | JavaScript | Ivan5Hernandez/iFuel | ea5e046b2787bf99ddb27d341fb624e4329b5d98 | ee455c1e866ae8f79b2fe4ad28ba9bbcd92fd626 |
refs/heads/master | <repo_name>PC-Ascend-Team/MasterController<file_sep>/MasterController.ino
#include <Wire.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
SoftwareSerial sSerialGPS(11, 12);
Adafruit_GPS GPS(&sSerialGPS);
#define GPSECHO false
boolean usingInterrupt = false;
void useInterrupt(boolean);
void altDetect(float ol... | f97ab3c6646a0ee5364fa0a7d0ae2c3ccc52c138 | [
"C++"
] | 1 | C++ | PC-Ascend-Team/MasterController | 4826c6fac3c12f0b5ada80d3f53165034ad5ab6d | a9a024ebc938af54bed43586e3ac2f52750fe357 |
refs/heads/master | <file_sep>const { getLogger } = require('common-module/logger');
const {
CustomerEntityTypeName,
CustomerCreditReservationFailedEvent,
CustomerValidationFailedEvent,
CustomerCreditReservedEvent
} = require('common-module/eventsConfig');
const orderService = require('./orderService.js');
const logger = getLogge... | 07d11b7af6f7cd257bf76f3f68cbb53bbd0d933b | [
"JavaScript",
"Shell"
] | 19 | JavaScript | tdias25/eventuate-tram-examples-nodejs-customers-and-orders | 8c19f208439e2dfc9c5a9221efae6cd36a299993 | a75253bbbe50d88bf7177a257ff7eb2204bd7754 |
refs/heads/master | <repo_name>SauravYadav12/Blog_project<file_sep>/project1/blog/migrations/0003_auto_20180622_1416.py
# Generated by Django 2.0.2 on 2018-06-22 18:16
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blo... | 13a8352fd0da21e92889088c093f057b41832d86 | [
"Python"
] | 5 | Python | SauravYadav12/Blog_project | 670d4579400cb525a4817d7aa4596924a65e0051 | 3c1ef939cf4a6497865b71df4d7dee2f973b0fce |
refs/heads/main | <repo_name>mdorante/Clase2-IntroTS<file_sep>/databinding/src/app/app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'databinding';
persona: any = {
... | 431fe20e14c9306c8e11dcbb5bbed00f5ddfb07e | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | mdorante/Clase2-IntroTS | 7128231da5bcfd11f9cb38300446b978aff071c9 | 984a2d459747347f71c3f4c1a59971b95c701f89 |
refs/heads/main | <file_sep># Crude, no-error-checking, hey-it-works Epsilon Red encoded PS script decoder
# Written under macOS via Python 3.8.2 -- may require fiddlin'
# by @rj_chap, 2021.06.09
import sys
import os
import re
# Ensure we have been provided an argument (which is hopefully a dir)
try:
dir_name=sys.argv[1]
except:
... | c208d3ea921ea965b520d0b3e42fb660f7b8b1e6 | [
"Markdown",
"Python"
] | 2 | Python | rj-chap/random_scripts | 8bc2fd363fc7ece31bbd9e23f668faccb65d6e1f | b89bd4f1d7274cbfcfad6e377c1311fa9782d575 |
refs/heads/master | <file_sep>package application.servlets;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.Path;
import java.io.IOException;
/**
* Created by ... | 49c3cab214bee1a14177e68d50dec982add135a4 | [
"Java"
] | 6 | Java | Saiongi/app3 | 3cfa8d2e8d6cf7029299d61a4ef3ddb9f515d8a9 | 7f887fd4cc7d268c64c7c7442983e914794a029d |
refs/heads/master | <file_sep># RPI-CPU-Temp
树莓派cpu温控风扇
https://rehtt.com/index.php/archives/155/
<file_sep>package main
import (
"bufio"
"flag"
"fmt"
"github.com/rehtt/gogpio"
"github.com/kardianos/service"
"log"
"os"
"strconv"
"time"
)
var (
max, min int
showTemp, h bool
)
func main() {
... | b1e35cff6f0c6113594456b83cecf7b087542cb8 | [
"Markdown",
"Go"
] | 2 | Markdown | qusong520/RPI-CPU-Temp | 2772003f042fd99da12374a8729d4a800f33dbb1 | d2824b2660018d42b3384bdb38fdbc27020c1437 |
refs/heads/main | <file_sep>from django.contrib import admin
from home.models import Article
admin.site.register(Article)
<file_sep><html lang="en">
<head>
<meta charset="UTF-8">
<title>All article</title>
</head>
<body>
{% for article in articles %}
<div>
<a href="{{ article.pk }}">Ссылка</a>
... | 33000b548308dee3114bce10f5a4d12ce282287b | [
"Python",
"HTML"
] | 4 | Python | michaelmedved/tms-django-autumn | 0ba0290be83cc165afd2f07b19d94e56f92ee850 | 444ca44d9bc65bcf112bd2e08ea91da9da69263c |
refs/heads/master | <repo_name>hostdime/hdcore-rb<file_sep>/lib/hdcore.rb
require 'hdcore/version'
require 'httparty'
require 'logger'
require 'yaml'
require 'rubygems'
require 'json'
require 'digest/sha2' # to generate SHA256 hash
require 'securerandom' # to generate v4 UUID
Dir[File.dirname(__FILE__) + '/hdcore/*.rb'].each do |file|
... | 6e1a200d4b570957f2521e4e48d6120595200305 | [
"Markdown",
"Ruby"
] | 7 | Ruby | hostdime/hdcore-rb | ed13270eea0c34a89d63ef2c809963c2589dd7a4 | 532482605b78a519cb30dbea85542da4c8afa01d |
refs/heads/master | <file_sep>package com.example.profiles.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.profiles.db.Db;
import com.example.profiles.db.manager.Manager;... | 3389777a45aa5b44461ad4ae6caa2a2de29c8dda | [
"Java"
] | 5 | Java | NovikovEugeny/spring-profiles | 866b3f4839be05128c5ece15c6c77675c1cf99d9 | ee42fc3c164a46e395dd8ddc05eb1e3cb6c50535 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<scr... | 01198608f2c9480f96627dfbb512c6217bf3b6ff | [
"JavaScript",
"HTML"
] | 2 | HTML | oskarcode/teamstatus | 5d2ddc65c6d07da6a0478c3777f646da2a6b2f98 | a6e4efb332b2a6ddd2eef60544f679d261e272f0 |
refs/heads/master | <repo_name>PatreekH/Bamazon<file_sep>/BamazonCustomer.js
var prompt = require('prompt');
var mysql = require('mysql');
var inquirer = require('inquirer');
var connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: process.argv[2],
database: 'Bamazon'
});
//If connection ... | 6278fcbb67b94e5d836fa8c21c4a32436afc0dcb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | PatreekH/Bamazon | 4a9cbc3574d924558f1e7102482b8fabeddc4b20 | c21e7e70676c24abbf7004e34c31c943fbef9718 |
refs/heads/main | <file_sep>//
// ViewController.swift
// Milestone Project 3
//
// Created by <NAME> on 12/8/20.
//
import UIKit
class ViewController: UIViewController {
var allWords = [String]()
var cluesLabel: UILabel!
var hangManLabel: UILabel!
var currentAnswer: UITextField!
var letterButtons = [UIButton]()... | f1b65d616877e019353830dbe9ddaa72374caca5 | [
"Swift",
"Markdown"
] | 2 | Swift | CarmenMorado/Milestone-Project-3 | 287c044e2fb77352f6448fef15be1efd3166089b | cb7d135cc68b267136491d0a8129c317ec76f177 |
refs/heads/master | <file_sep>package com.karthik.rest.webservices.restfulwebservices.user;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Component;
@Component
public class UserDaoService {
private static List<User> users = new ArrayList<>();
static {
users.add(new... | dbda1f6ca717169a47414119dcd15ddb65433ff9 | [
"Java"
] | 2 | Java | ekarthikeyan/spring-web-services | 173a54841a2cfeebc8d3c31d1ef1f750797b1291 | d8863362800e3e97b90499a123a32dd677482d99 |
refs/heads/master | <file_sep>package com.example.helloworld;
import android.content.Context;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.hardware.SensorEvent;
import android.hardware.SensorE... | d1180564b14f7376a4e424ac1039189367e2f828 | [
"Java"
] | 1 | Java | AbdelrahmanAbdullah451/GPTask2 | 3edad4cc332a9d7a8e424a6d006e39cb8b452269 | 96764b4d0512e596ec12e2181c9a8980da89e772 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
namespace Day6
{
class Program
{
static string _FILE = "sample.csv";
static ArrayList read = new ArrayList();
static Sort... | b8547a3aa7a6daeb74a2c9b34d34ea375542cb8f | [
"C#"
] | 7 | C# | duffym22/AOC_2019 | 8a74c3b57d9b8b331ab6235b7b55821c2ce511ac | 468cdcfa64d9f30b37b7aa4a08800328f1fa0ccc |
refs/heads/master | <repo_name>s628/report0809<file_sep>/report0809/src/sec01/ex01/OrderVO.java
package sec01.ex01;
import java.sql.Date;
public class OrderVO {
private String Order_num;
private String Order_item;
private String Prod_id;
private String Prod_name;
private String Quantity;
private String Item_price;
p... | e6e2bec055f8c8507654608f00d0a84fce202376 | [
"Java"
] | 1 | Java | s628/report0809 | 3eae81a92772f6f8de44002b1e397b14b60f6d2e | 38f96191c1c1077102c1c5a8a8a410b88abebdcf |
refs/heads/master | <file_sep>from google.colab import auth
from googleapiclient.http import MediaFileUpload
from googleapiclient.discovery import build
from google.colab import drive
import os
from IPython.display import HTML, display
def restart_runtime():
os.kill(os.getpid(), 9)
def save_to_drive(local_path, drive_path):
... | fd1b9c82e105115d1f0f7d3ffa4300765f16be6e | [
"Markdown",
"Python"
] | 7 | Python | naughtynates/playgrounds | f961bd8434e8d7aceae14a5a14d7afc6484fc350 | b4c18e328a802c4858b0cac9fcd5993bdc4043ca |
refs/heads/master | <file_sep># 자료구조 선언
a = list()
b = [1, 2, 3, 4, 5]
# 데이터의 추가
a.append('hi')
b.append(6)
b.append('seven') # 파이썬의 리스트는 데이터의 자료형에 통일성이 없어도 된다.
# 데이터 검색
print(a[0])
print(b[1])
print(b[-1]) # 파이썬의 리스트에서 음수 인덱스는, 맨 뒤에서부터 검색한다는 것을 의미한다.
# 데이터의 삭제
a.remove('hi')
b.remove(6)<file_sep># 단순 연결 리스트 클래스
class SimpleLinkedList(... | ef7602e56dca579ec9e0fd4576f0282b38ba66ea | [
"Python"
] | 2 | Python | liza0525/data-structure-study | cce0ac7b8be99728a90e75742259758f2a483f22 | 50fa1141591cf5e69dc23d6473f1e2c95934f38b |
refs/heads/master | <repo_name>vta92/AutoEncoder<file_sep>/autoencoder.py
import torch
from torch.autograd import Variable
import torch.optim as optim
import torch.nn as nn
import torch.nn.parallel
import torch.utils.data
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#these files have no headers
movies=pd.read_... | b50fd47ebec276e436303b40769fa861bc9cc8c6 | [
"Python"
] | 1 | Python | vta92/AutoEncoder | ec44b34b1d8f2cc320bfc6b2c1ce1715124f0e49 | 4c7276c4127e5f19d8b548a03f3ee5bf128b39a4 |
refs/heads/master | <file_sep>using System;
using System.IO;
using System.Collections.Generic;
using System.Windows.Forms;
namespace hexd
{
class Program
{
class Arguments
{
private Arguments() { }
public static Arguments ParseCmdline(string[] cargs)
{
Argument... | 37306e0eac88a5e03c53f08a16a141bf71d363bf | [
"C#"
] | 1 | C# | StefanoBelli/hexd | cebd494bfb2a816c1fd8f989623c1de25d1eabcb | b0db15e9a4640fcaeb07b99bcd8cddb482fd1c15 |
refs/heads/master | <file_sep>import cv2
import math
import numpy as np
from fixer import fixer
class ImageFixer(fixer._Fixer):
def __init__(self):
super(ImageFixer, self).__init__()
def __cut_image(self, image, size, cut_edge):
h_max, w_max, _ = image.shape
h_size, w_size = size
if cut_edge:
... | 1823e8c14744fba582788eadbecdc35986ef9338 | [
"Markdown",
"Python"
] | 5 | Python | New2World/AnimEx | c97ee379a40c857facbc17b876407a01d69bdba4 | 41454904756b679812468ed1267d82aef53d4882 |
refs/heads/master | <file_sep><?php
namespace RKW\RkwNewsletter\Manager;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and lic... | 35c28881c5384d9846df14e32d3332920da73f69 | [
"Markdown",
"SQL",
"PHP"
] | 70 | PHP | RKWKomZe/RkwNewsletter | ec97c8046ee9004d72158c44ef4aa6bc7d816690 | a942183d7527f18486378b346be7db5ad868a27b |
refs/heads/master | <file_sep><?php
class ChangePasswordYandexDriver implements \RainLoop\Providers\ChangePassword\ChangePasswordInterface
{
private $pdd_token;
private $host;
private $url;
private $domain;
private $sAllowedEmails = '';
public function SetToken($token)
{
$this->pdd_token = $token;
... | ab37d603b670bf98b168adb205d766dca4960d8c | [
"Markdown",
"PHP"
] | 3 | PHP | uitlaber/yandex-change-password | 7f44469afad9ed1e03bf7be9ae088887d178092f | 741d9966c9c0e0c9af6fe0bfa724d2891edacf06 |
refs/heads/main | <file_sep>import { IProduct } from "./product.interface";
export interface IResponseAPI<T> {
data: T;
total: number;
}
export interface IFilterFindAll {
limit?: number;
skip?: number;
startId?: string;
}
export interface IProductsApi {
findAll(filters: IFilterFindAll): Promise<IResponseAPI<IProduct[]> | ... | a81324bb7c5097c313b2e16a4b48ae350720ad1c | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | wdev007/coodesh-fullstack-challenge-2021-frontend | 282aff9d78964100551e0acba03b21dc0be53a13 | 4f83abd98d207eecc2ac27231a39306197f49540 |
refs/heads/master | <repo_name>Compassion/SmsScheduler<file_sep>/SmsScheduler/SmsActionerTests/SmsActionerWorkflowTestFixture.cs
using System;
using NServiceBus.Testing;
using NUnit.Framework;
using Rhino.Mocks;
using SmsActioner;
using SmsMessages.CommonData;
using SmsMessages.MessageSending.Commands;
using SmsMessages.MessageSending.Ev... | b47d5a37466b42052057a1f09c8f762691f2a814 | [
"C#"
] | 27 | C# | Compassion/SmsScheduler | 878e4b08a478164af9b118a7c33381d71b6b5e61 | a453a63e20900c3852c7cd07672757b485ceda99 |
refs/heads/master | <repo_name>marsch/grunt-preprocess<file_sep>/tasks/preprocess.js
/*
* preprocess
* https://github.com/onehealth/grunt-preprocess
*
* Copyright (c) 2012 OneHealth Solutions, Inc.
* Written by <NAME> - http://jarrodoverson.com/
* Licensed under the Apache 2.0 license.
*/
/*jshint node:true*/
'use strict';
module... | 270eca419ef11cad14bbc238b7bf425d0185b81b | [
"JavaScript"
] | 1 | JavaScript | marsch/grunt-preprocess | 07df735a9d9adb018bdd5328cf0eac3157310a5c | 1e4a5768087ebd92f0ae97b7f72fee251cef3ff8 |
refs/heads/master | <repo_name>springuper/springuper.github.io<file_sep>/scripts/build.sh
#!/bin/bash -e
cd blog
cp themes/_config.yml themes/even/
npx hexo generate
cd ..
cp -r blog/public/* docs/
cp favicon.ico docs/
<file_sep>/blog/source/_posts/typescript-advanced.md
---
layout: post
title: "TypeScript 进阶"
date: 2021-05-15 13:33
stat... | c60da858607755c9a5e10d5b07e38337f56c59aa | [
"HTML",
"Markdown",
"JavaScript",
"TypeScript",
"Go",
"Shell"
] | 62 | Shell | springuper/springuper.github.io | a57e87a5e3675cea2ace3c34e4ebba8ad6cdaf7a | 92db648c0af27c8338c9f5e7d7068b974eedd97a |
refs/heads/main | <repo_name>bezoerb/postcss-discard<file_sep>/index.d.ts
import {AtRule, Declaration, Parser, Plugin, Rule} from 'postcss';
type PatternItem =
| ((node: Declaration | Rule | AtRule, value: string) => boolean)
| RegExp
| string;
type Pattern = PatternItem | PatternItem[];
export interface Options {
atrule?: Pa... | 11acd8010b0db20558c78daf804685c07beaddca | [
"Markdown",
"TypeScript",
"JavaScript"
] | 4 | TypeScript | bezoerb/postcss-discard | 41864f53b083b162b6f057589fe9990a80511038 | bc775f01bc8870ac7201c1796ebeb60c48c80c93 |
refs/heads/main | <file_sep>import json
import googlemaps
import pandas as pd
from rest_framework.common.abstracts import PrinterBase, ReaderBase, ScraperBase
from selenium import webdriver
class Printer(PrinterBase):
def dframe(self, this):
print(this)
print(f'cctv 의 type \n {type(this)} 이다.')
print(f'cct... | 810607fc00ca511cfc9f8b0ba98328a63614214f | [
"Python"
] | 4 | Python | yunnyisgood/project-docker | 4a500fdd0584c86e33ff7c0280486aff2919c0b7 | bcf4f0dca264b23232dbb139c3115659dbdf103b |
refs/heads/master | <repo_name>broadinstitute/sharpener-common-to-rare-disease-gene-producer<file_sep>/python-flask-server/swagger_server/controllers/transformer.py
from swagger_server.models.gene_info import GeneInfo
from swagger_server.models.gene_info import GeneInfoIdentifiers
from swagger_server.models.attribute import Attribute
from... | b4d225c43f57fbac9b11dfefd0df2c3f46ab5815 | [
"Markdown",
"Python"
] | 2 | Python | broadinstitute/sharpener-common-to-rare-disease-gene-producer | 38f60aa4bef767c478b8ef023d14eed73661552b | 86efa3b9656314c22fafc66928a92499f4628560 |
refs/heads/master | <repo_name>MMidwinter/sql_challenge<file_sep>/sql-challenge-query.sql
-- This is item 1, joining the employee table with the salary table using emp_no as a foriegn ID
select employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.salary
from employees
join salaries
on salaries.emp_no = emp... | e519d5be05d68de4d1eaff72285b6c9da0f6ed19 | [
"SQL"
] | 1 | SQL | MMidwinter/sql_challenge | d8feb42412aecee870cc05db5189dccb4607d906 | 06f5768fecea1861a96d7c92a19acb953cdaf927 |
refs/heads/main | <file_sep>var lettersDict = {1:"first", 2:"second", 3:"third", 4:"fourth", 5:"fifth", 6:"sixth", 7:"seventh", 8:"eighth", 9:"ninth", 10:"tenth"};
var players = 4;
var totalCards = 208;
let suits = ['Hearts', 'Diamond', 'Club', 'Spades'];
let values = ['Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten'... | fd1a54d82065727bcf39b56ada52ae8b18c142cf | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nix-dev-tech/card-racing-game | 95c718a7d70513d23dfc3c99115558914648e1be | f04a6a0b54617a00829e965245f10c1bd3df45ae |
refs/heads/main | <repo_name>woojong94/html<file_sep>/css/퍼블리싱/과제2/js/script.js
window.onload = function() {
var swiper = new Swiper(".hot_item .mySwiper", {
slidesPerView: 4,
spaceBetween: 5,
centeredSlides: true,
pagination: {
el: ".swiper-pagination",
clickable: true,
... | 7a479cc33b99c3ad40e51820fb0375e702b95829 | [
"JavaScript"
] | 1 | JavaScript | woojong94/html | 3aabbc2e665ea7513689dd5f3380a1f2902d909a | 4b4edbced4d210b9188295a7525f95a709bd9247 |
refs/heads/master | <repo_name>Ysavn/BaxterBuilder<file_sep>/GRC/prototype_scripts/BlockIdentifier_ServicePrototype.py
#!/usr/bin/env python
from std_msgs.msg import Float32MultiArray, String, Float32, MultiArrayDimension, Int32
from sensor_msgs.msg import Image
import rospy
import numpy as np
from baxter_builder.srv import *
from rospy.... | 63b12a1462977671cbfe8c17ad5d2c5e690ddab1 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 24 | Python | Ysavn/BaxterBuilder | 1986748b01ee30b5b4b3b082e30ff3d26ce65bab | 31f78bdbc73ead70c1ae7bf4b86f7f46c579bcf8 |
refs/heads/master | <repo_name>JJDuru/RMAN<file_sep>/generate_backup_scripts.sh
#!/bin/sh
# Environment Variables
random_minutes=$RANDOM
random_minutes_2ndtake=$RANDOM
random_hours=$RANDOM
random_dayofweek=$RANDOM
random_hours_2ndtake=$RANDOM
minutes=$[ ( $random_minutes % 60 ) ]
minutes_2ndtake=$[ ( $random_minutes_2ndtake % 60 ) ]
ho... | 96fb3f02530293757bd9fa33d527053d0aceed84 | [
"Shell"
] | 1 | Shell | JJDuru/RMAN | 77e9ac39880e5455d047dd864037302653b07ff7 | 99e161e4684050ca0add6b423d8844d596eeef2b |
refs/heads/master | <repo_name>hkz-dev/spring-data-jpa-test<file_sep>/src/test/java/test/RepositoryTests.java
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.Sp... | 23fad14bbebe6e7ffeaa057b037d3d942b62e8c8 | [
"Markdown",
"Java",
"SQL"
] | 8 | Java | hkz-dev/spring-data-jpa-test | 134e0437a0971843c82c7d915301803fe357f0e4 | b518b2af022e3f27d91594df4cf08d31e6465220 |
refs/heads/master | <repo_name>rochefort/homebrew-cask<file_sep>/Casks/nomachine.rb
class Nomachine < Cask
version '4.2.27_1'
sha256 'b210543612f9f99e120b356ef38754bd9b8f20c54d5d657e88a1d73b644cf145'
url "http://download.nomachine.com/download/#{version.split('.')[0..1].join('.')}/MacOSX/nomachine_#{version}.dmg"
homepage 'http:/... | 6d4859d4a3842703f8821d21912571c905c7b042 | [
"Ruby"
] | 1 | Ruby | rochefort/homebrew-cask | 7ac0e12f61ce166503adfb86680f5d219efea400 | 3f28fca727fc5faf03b26cd2ba2d4f9fc96547ba |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.