branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import styled from "styled-components"
const AllProjectsHolder = styled.div`
margin: 1.5em 0 0 0;
width: 100%;
display: flex;
flex-direction: column;
`
const SingleProjectHolder = styled.div`
display: inherit;
transition: all 0.25s linear;
@media (max-width: 850px) {
flex-direction: colum... | 67b5ff66faf2304757f1ab1c6b1d5549fb74a2cb | [
"JavaScript",
"Markdown"
] | 23 | JavaScript | timmalstead/custom_portfolio | d3b863cd803932b48697f7c16ac9ad314cabc75c | 4e0cb9a60794c7a2adea73818b927e6cf9b7b70d |
refs/heads/master | <repo_name>lisacopeland/wikipediaviewer<file_sep>/src/app/search.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import {switchMap, distinctUntilChanged, debounceTime} from 'rxjs/operators';
@Injectable()
export class Searc... | 83c2ba1b8c3c474aecbbe77e9ba2443eb8ad640a | [
"TypeScript"
] | 4 | TypeScript | lisacopeland/wikipediaviewer | d59cb9b37126c9b6edbbcd83ef7ca3eb84cdec20 | acf2544bf25eeaa67ecf4c718aec663372335084 |
refs/heads/master | <repo_name>yuriymos/Money-under-control<file_sep>/AddWindow.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Loca... | 2c70bf61ed86dcdc5c40f6cd220bfa5afbca6b67 | [
"Java"
] | 1 | Java | yuriymos/Money-under-control | de69ffa1d732626ea70cb24c2384dc536f88676e | 157ace311bc1d6f7a44ba0be077964e801cba783 |
refs/heads/master | <file_sep>package com.github.stokito.jsmallmap;
import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.info.GraphLayout;
import org.openjdk.jol.vm.VM;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import static java.lang.System.out;
public class... | be15adb148423d736f79bd8aa5564432e8e464ad | [
"Markdown",
"Java"
] | 4 | Java | stokito/jsmallmap | b13ab2638c3dd4339efb35889e8227b61d36b70a | 61860e646d8b7a25779a3e944ee2a67c6afa28c6 |
refs/heads/master | <file_sep>alias g='gedit'
alias mtargz='tar -xzf'
alias mtarbz='tar -xjf'
alias tips='vim /media/hdd/home/default/Docs/tips /media/hdd/home/default/Docs/key_combinations /media/hdd/home/default/Docs/todo /media/hdd/home/default/Docs/configs'
alias :q='exit'
alias llg='ls -lt | head -6 | tail -5'
alias unz='tar -x -I zs... | cf800650dcf25402358d590286603693072e708d | [
"Shell"
] | 2 | Shell | Stuthedian/.dotfiles | 3807f47759a5f2bc1a9809675d3fe33c28a31c91 | 9de61ad05456200def3b11b67d5aa6ca7ac4dbab |
refs/heads/master | <file_sep>import numpy as np
import cv2
path = input("Input image path ... (ex: ./image.jpg) : ")
bgr_img = cv2.imread(path, 1)
bgra_img = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2BGRA)
b, g, r, a = cv2.split(bgra_img)
h, w, c = bgra_img.shape
for i in range(w):
for j in range(h):
a[j, i] = 200
for i in range(... | a406fc57ee3c2c29f3ee334c37dfea7a706f7448 | [
"Python"
] | 1 | Python | m5823779/transparency | 6b93b055a2a2cc37e3e56b5b5f6d07801bfc0ec2 | b89336b70be721a97d12da72bb629b4105c22252 |
refs/heads/master | <file_sep>//
// Stack.swift
// SwiftUtils
//
// Created by <NAME> on 10/17/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
// Simple Stack with a couple tiny twists. Stack and Item impl both in this file.
import Foundation
//MARK: - Stack class
public class Stack<T> {
//MARK: - Private members
pri... | 5e5587924b30f7716844eed6dba59b206e92ed4a | [
"Swift",
"Markdown"
] | 4 | Swift | mchaffee1/SwiftLib | 4d24b8e07e6bff1f36e1490c570ca58e60c3c3f5 | 782e4b9ed880db4ac005f0bbd7179f494821235d |
refs/heads/master | <file_sep>//var OBDReader = require('OBDReader');
var btOBDReader = new OBDReader();
var dataReceivedMarker = {};
module.exports = btOBDReader;
| 724da6b49c49afb807795182c49c830a78e35b7b | [
"JavaScript"
] | 1 | JavaScript | peter-kutak/node-bluetooth-obd | 325fd0c1dbf5442baa80fe1264fe72f81d95047e | a056a52aea8db6c434509cf70843e5351f658ecb |
refs/heads/master | <file_sep>// PLEASE DON'T change function name
module.exports = function makeExchange(currency) {
if (currency < 0) {
ERROR = {};
return(ERROR);
}
else if (currency >= 10000) {
ERROR = {error: "You are rich, my friend! We don't have so much coins for exchange"};
return (ERROR... | 2209f4deada7afb48bd25bd51435fef0d45415ed | [
"JavaScript"
] | 1 | JavaScript | DashaShandrak/money-exchange | 2520c52477d2ff2545a9a91b05e5490c803412aa | c56b9b6f2a22a92536018c28bc8942c5376b0da2 |
refs/heads/master | <file_sep>// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { app, ipcMain, BrowserWindow, BrowserWindowConstructorOptions } from "electron";
import { IpcMainProxy } from "./common/ipcMainProxy";
import LocalFileSystem from "./providers/storage/localFileSystem";
// Keep a global refere... | 25784862f79fbbedd9d776917fd1c2d1b4b813db | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | existimatio/OCR-Form-Tools-1 | 8297b18a084be86bc4c986a1a332cb40bd807d1b | efe6ec0aa610b0d5348c9039853d190400edcd1e |
refs/heads/master | <repo_name>ryanp538853/Sandbox<file_sep>/password_entry.py
"""Ryan"""
MINIMUM_LENGTH = 6
password = input("Please enter your password that has at least {} character: ".format(MINIMUM_LENGTH))
while len(password) < MINIMUM_LENGTH:
input("Invalid password!\nPlease enter password that contains at least {} characters:... | 91b74d65957a732c12d0cce93e29bbdea82c11e2 | [
"Markdown",
"Python"
] | 2 | Python | ryanp538853/Sandbox | 224dc068645666e2baccebb787d7170c735e2755 | 4d1aac6cf494ce7e65d8f9827d1f894b5cb87e40 |
refs/heads/springboot_01 | <file_sep>package com.mrk.sys.dao.pre;
public interface BaseDaoPre<T,PK> {
int deleteByPrimaryKey(PK key);
int insert(T record);
int insertSelective(T record);
T selectByPrimaryKey(PK key);
int updateByPrimaryKeySelective(T record);
int updateByPrimaryKey(T record);
}
<file_sep>package ... | 5f274bf3f34a2774d7552ad89858739e416df05c | [
"Java"
] | 9 | Java | fishkkw/SpringBoot | 9539dc255508f99438127978462b7fdfa68d7953 | 3d8fdf84f7ee7a5a221e28b5319d301d2eaa18b4 |
refs/heads/master | <file_sep>package callAPI
import (
"api_test/db"
"google.golang.org/api/youtube/v3"
)
//チャンネル情報を取得
func GetChannelContent(service *youtube.Service, channelID string, gID uint) (chContent2 db.Channel) {
call := service.Channels.List("snippet,contentDetails").Id(channelID)
resp, err := call.Do()
if err != nil {
... | 9591f522ee1e7e96b228a8b4227023ef2babf0b6 | [
"Go",
"HTML"
] | 34 | Go | hyo07/go-youtube-api | d0bd0514db62df036bbb34a36514cfe498005c72 | a8cfdd9be13c5d0ef2baedc0477ae9671c9aa763 |
refs/heads/master | <file_sep>package clustering;
import static compression_algorithms.sequitur.Sequitur.compress;
import static compression_algorithms.sequitur.Sequitur.init;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedE... | dde82420a0e60f774da8da9db8c3bd050536f699 | [
"Markdown",
"Java"
] | 9 | Java | AshwinSekar/George-Mason-University-Internship | f928bc995a7045609056e25e66c3a65e5414f0a4 | 3f71fc0773dea8f727b6e9e84aab6ed011418722 |
refs/heads/master | <file_sep>'use strict';
(function () {
const Timer = global.Timer;
const PlayGround = global.PlayGround;
const SettingsStorage = global.SettingsStorage;
const TIME_OVER_MS = 300500;
function Game () {
this.prevCardElement = null;
this.isRotateInProcess = false;
this.backR... | b86a7c6eead471500514fd203cd54fda60f12532 | [
"JavaScript"
] | 6 | JavaScript | Mar1nka/match-match-game | ff492c81dcf34a4a7e3f695ab625530a12c2b7b2 | 9fc65e0f608bfc552addad26a85739b77d83d263 |
refs/heads/master | <file_sep>package com.allmsi.flow.service;
import java.util.List;
import com.allmsi.flow.model.FlowField;
import com.allmsi.flow.model.ovo.FlowFieldOVO;
public interface FlowFieldService {
FlowFieldOVO getFlowFieldOVo(String id);
boolean deleteByPrimaryKey(String id);
List<FlowField> listFlowField(String node... | d00ade2c3b51771c4bc722039283dc8ee88b8c76 | [
"Markdown",
"Java",
"Maven POM"
] | 64 | Java | nannan07/im-flow-spring-boot | 7c1295920d638c2851b78970986fc509c14f080d | e21eaeab6b5ba17a8e4e089b7681078790a1e2b1 |
refs/heads/main | <repo_name>mishraapoorva/QuestSolution<file_sep>/Part3/lambda_function.py
import urllib3
import json
import boto3
import pandas as pd
from io import StringIO
s3 = boto3.client('s3')
# Config for JSON file
json_bucket = 'rearc-population-data'
json_file_name = 'data.json'
# Config for CSV files
csv_bucket = 'rearc-pr... | 8e53c8544598d77064d68242c23160df3c361aa9 | [
"Markdown",
"Python"
] | 3 | Python | mishraapoorva/QuestSolution | 6d0ab0c8297f5d85a2389cd82355c35c0be27d7f | abf80e387f94283291982056bc4484590af27170 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class SpaceFlightController : MonoBehaviour
{
[SerializeField] SharedBool _inSpace;
[SerializeField] RocketFlight _rocket;
[S... | 3a2840a436efd1ec814d84ca7a61a9efe3bb1bcc | [
"Markdown",
"C#"
] | 7 | C# | lotsofs/RakwetWetenschappen | 9e559e78b96c37c61b2bc4e41223e1374088aaaf | f7d89cb604b339d8600269364a279d3276dc119c |
refs/heads/master | <file_sep>-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: test
-- ------------------------------------------------------
-- Server version 8.0.11
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R... | 24d058e0e3bad311503299b3684055db3d3d1e99 | [
"JavaScript",
"SQL",
"Java",
"Markdown"
] | 6 | SQL | zhaozsh/EmployeeManagement | cf46694f0b21b7fc85aa89bf457e5765cacce79a | ee896440cf6fce4cc32ba626567ac81c959902fb |
refs/heads/master | <file_sep>package com.phicomm.decodeutil;
/**
* Created by xin08.zhang on 2017/10/25.
*/
public class DecodeFrameUtil {
static {
System.loadLibrary("decodeframe");
}
public static native int decode(String inputurl, String outputurl);
}
<file_sep>
#include <jni.h>
#include <string>
extern "C"
{
... | a26f25e7476d010909a0ac1844e475c2d16ed19b | [
"Java",
"C++"
] | 2 | Java | zx06063068/MovieToPic | 823aaff6921c77a643f0d093eae2a8ece544dcb3 | cfdc118b532a6d481c7818a3f7de1cbf0bfcaa0f |
refs/heads/master | <repo_name>lee-pham/js-functions-lab-bootcamp-prep-000<file_sep>/index.js
// write your code below!
function learn() => {
} | 0aa8077e970c060c10602aa61206d76e2cecda24 | [
"JavaScript"
] | 1 | JavaScript | lee-pham/js-functions-lab-bootcamp-prep-000 | ad7b0e5ac5df9f61e84e931f44ce4869bcb8adc6 | 6a8ef4ffb8b2262156cd1b8edc1a7d4e16d5f04b |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import * as MediumEditor from 'medium-editor';
import { AngularFireAuth } from '@angular/fire/auth';
import { AuthService } from '../services/auth.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.co... | ecf7abe025bfe435abab0a117951bd82c49758fc | [
"TypeScript"
] | 3 | TypeScript | jiayu-joyce-he/angular-firebase-medium-editor | 3574c48d1c78c1f16813f19fc1c64cbd4ca7789d | 49b09d6539ad50256995f0a75df13d76dba258d9 |
refs/heads/master | <repo_name>SkamDart/iface-watcher<file_sep>/Cargo.toml
[package]
name = "iface-reporter"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
[dependencies]
clap = "2.33.1"
dogstatsd = "0.6.1"
serde_json = "1.0.56"
<file_sep>/src/main.rs
use std::{fs, io, path, thread, time::Duration};
use clap::{App, Ap... | 61f6c5b1523e66d0f9248287022c58718030ad9c | [
"TOML",
"Rust",
"Markdown"
] | 3 | TOML | SkamDart/iface-watcher | 96e7574f508cd93816b5b2d0b06f7b3aae701e2c | 4d0ce433598bc5dd53287ee35f374a91991efec6 |
refs/heads/dev | <repo_name>alhparsa/PySyft<file_sep>/syft/version.py
__version__ = "0.2.0a2"
| 2fbd23448476aeaf1c7b2233f36efefd6ce282f3 | [
"Python"
] | 1 | Python | alhparsa/PySyft | c4f33aab94e6bfbc704d8856b4e570c7d3069059 | ed5fa49db45670a7af985b8fe4d4f21ffd116e2d |
refs/heads/main | <repo_name>ekhacahya/rijksmuseum<file_sep>/app/src/main/java/dev/ecbn/rijksmuseum/view/home/ArtViewState.kt
package dev.ecbn.rijksmuseum.view.home
import dev.ecbn.rijksmuseum.data.model.Art
/**
* Created by <NAME> on 03/11/21.
* <EMAIL>
*/
sealed class ArtViewState {
data class Success(val artCollections: List... | 4c84108c9e1a9018955c2439a703f3c1af54d13c | [
"Kotlin"
] | 43 | Kotlin | ekhacahya/rijksmuseum | ac127ba987d2cfe7cfb33128e681e94f910be470 | 1773ae3db4cde50297c2f3e90ca98cd2f5a65ab7 |
refs/heads/master | <file_sep>apply plugin: 'com.android.application'
android {
signingConfigs {
release {
keyAlias 'genie'
keyPassword '<PASSWORD>$'
storeFile file('C:/Users/Raviteja/Documents/IVA_SDK/ivasdk.jks')
storePassword '<PASSWORD>$'
}
internal {
... | e9a5b64f3d4c7e1b83a4e60d9ae7b4587bcb0c7e | [
"Java",
"Gradle"
] | 6 | Gradle | raviteja06/IVA_SDK | f1a24c09c37b137c0fce4e5f431d787e48c4d5fb | efbf4b20dd0875a199b9f66e96945f0fd7e8d48a |
refs/heads/master | <file_sep>from flask import Flask, render_template, request, redirect, session, flash
from flask_bcrypt import Bcrypt
from mysqlconnection import connectToMySQL
import os, binascii
import hashlib
mysql = connectToMySQL('theGreatwall')
app = Flask(__name__)
bcrypt = Bcrypt(app) # creating an object called bcrypt
app.s... | 7f507258daa60b278a8c41ab6b2aa82301055ae1 | [
"Python"
] | 2 | Python | YummyGoddess/TheWall | 85825afbe113b492ba8fc9d063c93822809e6b7b | c3555545777472f47c9d4818ae607bfe1407fdcc |
refs/heads/master | <repo_name>Borja15/Clase-Reloj<file_sep>/src/ejerreloj/EjerReloj.java
package ejerreloj;
public class EjerReloj {
public static void main(String[] args) {
//Declaramos un reloj con la hora en 0
Reloj reloj = new Reloj();
//Declaramos un reloj con una hora
Reloj reloj2 = n... | 3cdfbc9126fc44a66f922f4790c7c7e520564af9 | [
"Java"
] | 1 | Java | Borja15/Clase-Reloj | b9015b0c81d28b4fc85d10b89aff0df44bcda680 | 544cd02199fe5072b52acc3a49f438ec690f2bad |
refs/heads/master | <repo_name>limjiayee/js<file_sep>/recyclegame_final/game.js
let config = {
type: Phaser.AUTO,
parent : 'phaser-app',
width: 1664,
height: 1024,
backgroundColor: '#000055',
physics: {
default: 'arcade',
arcade: {
gravity: false,
debug: false
... | 0a64220cb584f0aa6b00bed98a3f19a83fdac1b6 | [
"JavaScript"
] | 2 | JavaScript | limjiayee/js | 15e9fe494df537e7d856ec58c7744355f432884e | 0f48261bb4ac20df6b9557dbfdc4bc68f67bbbc9 |
refs/heads/master | <repo_name>treeder/slackbots<file_sep>/guppy/guppy.rb
require 'open-uri'
require 'slack_webhooks'
require 'json'
# Comment out the next line and uncomment the one after to load the commands.json from your local file
# rather than the URL
responses = JSON.load(open('https://raw.githubusercontent.com/treeder/slackbots/m... | 21f8301f0e77af63d5389cf830ed7504c09a8d03 | [
"Go",
"Ruby",
"Markdown"
] | 34 | Ruby | treeder/slackbots | 70e47908e8b7f0bafca11e874d97ac2f6c18dc5b | 88e8256084780c71df0bd9f61b2f28eaa39885b4 |
refs/heads/master | <repo_name>LeonID-11/Quiz<file_sep>/src/containers/QuizList/QuizList.js
import React, {Component} from 'react';
import './QuizList.css';
import {NavLink} from 'react-router-dom';
class QuizList extends Component {
renderQuizes(){
return [1,2,3].map((quiz, index)=>{
return(
<li
... | 273a9e0fd8638d85ac2402c1d16ab2e133d11c43 | [
"JavaScript"
] | 1 | JavaScript | LeonID-11/Quiz | 7780e55825368a6ddbe18bd23213c2ad168bc166 | f0f214a43fed7db2a425e50614273f6c022d5db8 |
refs/heads/master | <repo_name>stjordanis/catvae<file_sep>/catvae/models/tests/test_linear_vae.py
import unittest
import torch
from catvae.models import LinearVAE, LinearBatchVAE
import numpy as np
import numpy.testing as npt
class TestLinearVAE(unittest.TestCase):
def test_sample(self):
k, D = 10, 40
model = Linear... | c6df86bb440d5a7ab18ff08dbf922a071c61987b | [
"Markdown",
"Makefile",
"Python",
"Text",
"Shell"
] | 29 | Python | stjordanis/catvae | 218d678868aab02ab985c42d377c2da6f8aef2a5 | 17f499171e559a4f41d3d1e18d07131c5169d3dd |
refs/heads/main | <file_sep># Generated by Django 3.1.2 on 2020-10-29 10:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('poll_app', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='choice',
old_name='choices',
... | d4ad029b8e5297b285ee9e5fc7df03892b42fd44 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 6 | Python | warisanwar/opinion_poll | d32f596230e9c4abcf5e1afc3d5232265c82e75b | 708a078d37c8ca97826bd9b3a8adf49dd1208081 |
refs/heads/master | <file_sep>times = 0;
puts "How many times?"
times = gets.chomp.to_i
candidates = (2..times).to_a
primes = []
def getNextPrime(candidates, primes)
return primes if !candidates.any?
nextPrime = candidates[0];
primes.push(nextPrime);
candidates.delete_if { |element| element%nextPrime == 0 }
return getNextP... | 4db7adb7417996379138b3fca74616e2aaaf2f7a | [
"JavaScript",
"Ruby",
"Markdown"
] | 9 | Ruby | bradwagoner/showcase | d36ede4622e37667fe4e0643d522f932bbcb9325 | 1946ab1f6b0f4524ca73fb0786bb467ee0ec98f8 |
refs/heads/master | <repo_name>arimakaoru/learn-python<file_sep>/algorithm/selection_sort.py
array = [4,2,7,8,0,5,1,3,6,9]
n = len(array)
print(array)
for i in range(n-1):
min = i
for j in range(i+1, n):
if array[j] < array[min]:
min = j
tmp = array[i]
array[i] = array[min]
array[min] = tmp
print(... | 191dd21af85729c39a611ab34b45903d88b9dd0a | [
"Python"
] | 8 | Python | arimakaoru/learn-python | bbc373e586859061832b3373839178db97297598 | cf8c2b19c890091e8da0d4fcc9ff1504346f0cf2 |
refs/heads/master | <repo_name>Micik2/WyboryElektroniczne<file_sep>/README.md
Wymagane komponenty:
- Python 2.7
- microframework Flask
- PonyORM
- MySQL Server 5.7
Po uruchomieniu komendą "python 'nazwa pliku'", można zobaczyć stronę prototypową na "127.0.0.1:5000".
Do uzupełnienia dane odnośnie adresu mejlowego (nadawcy i odbiorcy), wy... | ade4f7a0f3c335b08830d503ad862982324edbfe | [
"Markdown",
"SQL",
"Python"
] | 7 | Markdown | Micik2/WyboryElektroniczne | 4f219b74a02d79774b90ba575641785f7c41679e | d2d6948f5dd5051233c97bb8d37c64bb583081ed |
refs/heads/main | <repo_name>ahmetbozaci/testing-practise<file_sep>/string-capitalize.test.js
const capitalize = require('./string-capitalize');
test('Argument first letter should capitalized', () => {
expect(capitalize('hello')).toBe('Hello')
})
test('Argument should be a string', () => {
expect(() => { capitalize(41); }).toThrow... | 528c9369a28de7a2207d76b7ef8955346f84af7e | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | ahmetbozaci/testing-practise | 600d35207e3b4bb08c4c90ce91c6c9711bffdced | 10e070a33aabeebec9a3599dae602e6b34cf2317 |
refs/heads/master | <repo_name>Dev-Daljeet/CarDealershipSystem<file_sep>/src/main/java/com/devdaljeet/cardealershipsystem/database/DatabaseAccess.java
package com.devdaljeet.cardealershipsystem.database;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import... | 1674b4fd4af27c38535f4553e4c252990cecb146 | [
"Markdown",
"Java",
"SQL"
] | 5 | Java | Dev-Daljeet/CarDealershipSystem | 47d13509e9997e4b51d0dbb37727ef35fab314c1 | 0da02605953fe84a9775cbb798f4db78e03be479 |
refs/heads/master | <repo_name>Amankaium/cloud<file_sep>/mainapp/admin.py
from django.contrib import admin
from .models import *
# Register your models here.
class OrderAdmin(admin.ModelAdmin):
model = Order
list_display = ['username', 'date_create', 'date_update', 'email', 'phone']
admin.site.register(Order, OrderAdmin)
<file_se... | a4f05bc53d3e20da4d088ccfdc94efc0fddf1d35 | [
"Python"
] | 4 | Python | Amankaium/cloud | ce8598980a7399f23ad5d6756787ded44bdb2f31 | e0b71d4e72b6e817d2c6029a72921a0435d4a065 |
refs/heads/master | <file_sep># gulp-continuation
> A compiler for JavaScript asynchronous Continuation-Passing Style transformation
## Installation
Install package with NPM and add it to your development dependencies:
`npm install --save-dev gulp-continuation`
## Usage
For using with browserify there is [continuatify](https://githu... | 3e9dd49cbbd14b55fe52b90d05770a30f3eff4ce | [
"Markdown",
"JavaScript"
] | 3 | Markdown | alhimik45/gulp-continuation | fcf43ec8f8cb6d84e5ac8925bd25cdbc97fab1cc | 2f79dbae852876191af1a08c27471192328c6c6e |
refs/heads/master | <repo_name>summerwind/h2-test-assets<file_sep>/gen.sh
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 [COUNT]"
exit 1
fi
echo "File size: ${1} KiB"
for dir in "js" "css" "images"
do
for path in `ls -1 ${dir}`
do
echo -n "Generating ${dir}/${path}..."
dd if=/dev/zero of=${dir}/${path} bs=1024 count=... | 6d5152f4734f8ba24e2c027dc33e2ad8604f0ad3 | [
"Shell"
] | 1 | Shell | summerwind/h2-test-assets | 773d87a697a58e837b30a853f5dadeae5240fa2d | cbbc97410e740f12d009c96ef3fb2e2bf085d353 |
refs/heads/master | <file_sep>"""personalblogsyte URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name=... | 6e23d3a982e4228f7439e772b923435efbe49940 | [
"Python",
"HTML"
] | 5 | Python | viktta/pbs | b4a7d24379d8c44bfc2fa979307627fbf8bef3fa | 4a1436790ed1d16e8ad784df48274996bd529a33 |
refs/heads/master | <file_sep>############################################################################
# Created by: Prof. <NAME>, D.Sc.
# UFF - Universidade Federal Fluminense (Brazil)
# email: <EMAIL>
# Course: Metaheuristics
# Lesson: Differential Evolution
# Citation:
# PEREIRA, V. (2018). Project: Metaheuristic-Diffe... | a6eb6176f7d0ddf77a50d4b6fda99314c2be8cef | [
"Python"
] | 1 | Python | Valdecy/Metaheuristic-Differential_Evolution | f7d0527b00ec0d22ef4be4ab927165f96f0ff5bc | 43a8013e5bd9d878ca4baf93836beccd647128db |
refs/heads/master | <repo_name>TraySe7en/Black-Jack<file_sep>/Black Jack/src/me/trayseven/blackjack/Player.java
package me.trayseven.blackjack;
import java.util.List;
public class Player {
private List<Card> hand;
private int totalPoints;
public Player(List<Card> hand, int totalPoints) {
this.hand = hand;
this.totalPoints =... | 186937a23f0cc75324b1cd5cc5719564200252ec | [
"Markdown",
"Java"
] | 3 | Java | TraySe7en/Black-Jack | b989c9170c2fc08e253efb29ad61384186cd9075 | 3a356e4bead05fd037e2272eb318adf3f0d8fd34 |
refs/heads/master | <repo_name>VyacheslavBorisovskiy/GitHello02<file_sep>/GitHello02/src/GitHello02.java
/* This is a short comment */
/* The second comment */
/* The third comment */
public class GitHello02 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello, Vyache... | 3441db39c3d058157f0f2640a4859691622896a8 | [
"Java"
] | 2 | Java | VyacheslavBorisovskiy/GitHello02 | f8b508babf87c15dd81f3385f62ad5eed902f0af | 2dd69693ad6c064f3dafe9d32dac6e4778474cdf |
refs/heads/master | <repo_name>karol-preiskorn/php-db-classes<file_sep>/class.db_edit.php
<?php
//require_once ('funkcje/auth.php');
//require_once ('funkcje/functions.php');
require_once ('class.db.php');
//require_once ('header.php');
/**
*
* Klasa opracje edycji na bazie danych Oracle 10.2
* 2014-08-27 init
*
*/
class db_edit ex... | 3385bb99650c5c84cf422cb73f84f47257561ca1 | [
"Markdown",
"PHP"
] | 7 | PHP | karol-preiskorn/php-db-classes | 1871e791e7304d711b959d4afccf62ad67f2e36e | 5fd8dc75f67272af5f3f4d0c976ed82e80a3495b |
refs/heads/master | <repo_name>hcavalle/mopact_hapi<file_sep>/README.md
# mopact_hapi
hapi based rest api for mopact app
<file_sep>/env.sh
#!/bin/bash
if [ -z "$NODE_ENV" ]
then
#dev db
export NODE_HOST='localhost'
export NODE_PORT='8081'
export DB_DEV_HOST='localhost'
export DB_DEV_USER='postgres'
export DB_DEV_PASS=''
export... | e23f8959afa64096ee0785249d585d2f60927bf8 | [
"YAML",
"Markdown",
"JavaScript",
"Dockerfile",
"Shell"
] | 6 | Markdown | hcavalle/mopact_hapi | 37fb988436ab6d829e55da0bb3b37af2b8d748bb | 7c278e86180fac1c8a004e6957c6b91b6c4c3b5a |
refs/heads/master | <repo_name>YiFanChen99/strings-concatenation-example<file_sep>/Main.cpp
#include <iostream>
#include <string>
#include <chrono>
#include <sstream>
#include <functional>
typedef std::chrono::duration<float, std::milli> MILLI;
const int kLoop=1000000;
const std::string kStrUid("idid");
const std::string kStrDest("targe... | 2fbb9b29d4ebad3f85a80f4c097666aec081a2a8 | [
"Markdown",
"C++"
] | 2 | C++ | YiFanChen99/strings-concatenation-example | 7587e93aeb50944b4baed40b457af5dded7cdbe4 | 2eec540f83b633a806d6c9ec9e2ff75a57450df2 |
refs/heads/master | <repo_name>christianbradley/boco-mdd-jasmine-js<file_sep>/npm/test
#!/bin/bash
DIR="$(cd "$(dirname "$0")/.." && pwd)"
jasmine="$DIR/node_modules/.bin/jasmine"
NODE_PATH=$NODE_PATH:$DIR $jasmine "$@"
| 6e1b25eb06e457d9ebf56641eef778387513083d | [
"Shell"
] | 1 | Shell | christianbradley/boco-mdd-jasmine-js | 551fb15ad46d070d3607a4c0fa6641f71faf23ca | 3203ab5148f20f40fe99f452d330932d7306a002 |
refs/heads/master | <repo_name>lionicsheriff/literate-dotfiles<file_sep>/README.md
# literate-dotfiles
An experiment in dotfile management
## What?
A system to manage configuration files in a 'Personal Information Manager'
## Why?
I'm not too sure. I have never clicked with more file based solutions to dotfile management (e.g. symlink s... | 24c1b81dcf39f1618f00a8c1c1c50dd28966da88 | [
"Markdown",
"Python"
] | 2 | Markdown | lionicsheriff/literate-dotfiles | 0f2b7600a7ecb5303fd8961a1853d014279b8ee1 | e2d351a1936892453fcf080712c326a501d1c9fb |
refs/heads/master | <repo_name>MidnightDrifter/CS529Proj3Collisions<file_sep>/Project 3 - Template/GameState_Play.c
// ---------------------------------------------------------------------------
// Project Name : Cage Game
// File Name : GameState_Menu.cpp
// Author : <NAME>
// Creation Date : 2012/03/16
// Purpose : implementa... | c90283506807befb17c1b69c91d17fb658b81b58 | [
"C"
] | 5 | C | MidnightDrifter/CS529Proj3Collisions | 0cb44f90d9b7b74956e37f1f0cf97dab50aaccae | f1f9e510edfff77e80de8161d09f9fc6d016d412 |
refs/heads/master | <file_sep>import time
import logging
from newspaper import Article
import newspaper
from datetime import datetime
from pymongo import MongoClient
from time import sleep
import json
logging.basicConfig(level=logging.INFO)
mongo_server = "mongo"
myclient = MongoClient("mongodb://{}:5003/".format(mongo_server))
mydb = ... | 41287d0fac638a772acd4d331b60229d9ec0688b | [
"Markdown",
"Python",
"Dockerfile"
] | 14 | Python | bazickoff/WebCrawler | d312ad7056470fe8abb159f2b8ddf01f323865fc | 6caf7487c1643cbdd7991e2d9c8a831ab7b80ac4 |
refs/heads/master | <file_sep><!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>СуперФотографии</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-image: url(bck.jpg); /* Путь к фоновому изображению */
}
</style>
<style type="text/css">
#featured { width: 940... | 5a7753af6a7949f523d6a06b2369eaf2165e0450 | [
"JavaScript",
"Python",
"HTML",
"C++"
] | 13 | HTML | Madara228/aprog | 06387fee7368b458890c1c00b8bb398f0f1eddb3 | ecb98eed00d971beab6aa93e154ecd42deae4a24 |
refs/heads/master | <repo_name>Razakai/front-end-vue-app<file_sep>/src/components/clubModel/clubModel.js
import TextInput from '../sections/TextInput/TextInput.vue'
import GButton from '../sections/GButton/GButton.vue'
export default {
name: 'clubModel',
components: {
TextInput,
GButton
},
props: {
editClub: {
... | c48647b19820228d373215871c7d0c1c30a1e5da | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | Razakai/front-end-vue-app | 00250a030e4e8976c3d741db21e96f7df22b246c | 047bfea46e2bb9c9dabc96aaf005453425a73059 |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const { Schema } = mongoose;
// User Schema
const UserSchema = new Schema(
{
name: {
type: String,
required: true,
unique: true,
dropDups: true,
},
email: {
type: String,
required: true,
unique: true,
dropDup... | 514e36785ed0471d0623cc8bd4845bd8b787d304 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | Coder-Srinivas/Project-Bud | 77b087ce6439ac538fba7ab0eaa75fd4a5e88a1f | 0e9b52136f974cd35cfde1a617c190bbdf5d4c4d |
refs/heads/master | <repo_name>LindaLopezR/errors-components<file_sep>/errors-components.js
import React from 'react';
export const ErrorFallback = (error) => {
console.log('ERROR = > ', error);
return (
<div role="alert" style={{marginTop: 15}}>
<h3>Something went wrong:</h3>
<pre style={{color: 'red'}}>
{TAP... | 2ed7f9be9a04d740a2d64266011c4c56b1dedb07 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | LindaLopezR/errors-components | 241d4563266f83a38c47c4ebf889db82570aef33 | 1b48bd88f1cb17d03ea99446b64c567aa79e94fe |
refs/heads/master | <repo_name>cabbagecbl/Electronical-License<file_sep>/migrations/2_deploy_contracts.js
var ECLibrary = artifacts.require("./ECLibrary.sol");
module.exports = function(deployer) {
deployer.deploy(ECLibrary);
};
<file_sep>/README.md
# Electronical-License
// truffle console下插入电子证照
ECLibrary.deployed().then(function(i) ... | ccaba34a804a6e5e34bd70eb2354868a2683ffb7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | cabbagecbl/Electronical-License | 49b291f3e7e546569b1a91fac5ed59b5fbad4731 | ec4a4ee8c8ba9e4a7b95863cfe9ab54b89d9393f |
refs/heads/master | <file_sep># Cerea remote control
[](https://opensource.org/licenses/MIT)
[](https://github.com/danrauch/arduino-cerea-remo... | 4d09a1621f2baceae6cd0ef88395fd74c3a56ba2 | [
"Markdown",
"Python",
"C++"
] | 4 | Markdown | danrauch/arduino-cerea-remote-control | a68609e1601488d0d8cf764d6438f886a54f208a | bc43dfd90362ac5e8fe4b527b96d068a8ed06ec0 |
refs/heads/master | <file_sep>
# coding: utf-8
# # Creating Helper Functions
# In[1]:
import pandas as pd
import matplotlib.pyplot as plt
import sqlite3
get_ipython().magic('matplotlib inline')
# Function that takes a SQL query as an argument and returns a pandas dataframe of that query
def run_query(q):
with sqlite3.connect('ch... | 0aec62467382120e589e345ca301dfaec144b5ee | [
"Python"
] | 1 | Python | ernhung92/Answering-Business-Questions-Using-SQL-Queries | 0d948914973438a3c6c2b9cae0fb83d1acbb6bcf | e27e5f275e64ba5bc88d7e8d7b7ef414ded85442 |
refs/heads/master | <repo_name>grafismoweb/tarea_2_1<file_sep>/tarea_2_1/src/tarea_2_1/Tarea_2_1.java
/* tarea_2_1. Tres números (uso de if-else).
Almacena en una constante numérica tipo entera llamada "D" el número 22.
Después, lee tres números enteros por teclado (podrán ser negativos o positivos).
Dados esos tres números:
•Si los... | f40fb5131c72f1d443d358edfd90a5acaefe8d57 | [
"Java"
] | 1 | Java | grafismoweb/tarea_2_1 | 849e172d138ccf91a3e35407fbaf758b41d133af | 7deaea0c21ffef064325252b47b11db520fa2265 |
refs/heads/master | <file_sep>import path from 'path';
import { defineConfig } from 'umi';
export default defineConfig({
dynamicImport: {
loading: '@/components/Loading',
},
dva:{
immer:true,
},
// autd:{},
// nodeModulesTransform: {
// type: 'none',
// },
base:'/',
title:'H5-Vis',
// routes: [
// { ex... | 66ad45d90ddfb08735ced5594cf31dbc93f01460 | [
"Markdown",
"TypeScript"
] | 13 | TypeScript | keyzf/H5-Vis | 8427fc5ce90346e50ec559426d3039aa225961c0 | 5b58dccff38ac58dff5e61b10907ee7ef6fd27e8 |
refs/heads/main | <file_sep>function escapeHTML (string) {
const entityMap = {
'&' : '&',
'<' : '<',
'>' : '>',
' ' : ' ',
'!' : '!',
'"' : '"',
'$' : '$',
'%' : '%',
"'" : ''',
'(' : '(',
')' : ')',
'+' : '+',
'/' : '/',
'=' : '=',
'@' : '@',
'['... | 303e835ce000b7644b0f65bc2e131a195b811b6a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | beingmrkenny/human-readable-opml | 064217458c30b5fcad8b7915f235352d8b460ca5 | 61e9ed66f391aed79bed5ae14637971765efb8d8 |
refs/heads/master | <repo_name>Chaanchess/GamingApp<file_sep>/src/app/juegos/juegos/juegos.component.ts
import { Component, OnInit } from '@angular/core';
import { JuegosService } from '../../servicios/juegos.service';
@Component({
selector: 'app-juegos',
templateUrl: './juegos.component.html',
styleUrls: ['./juegos.component.css'... | 4bcfef2cfe0621bd233f5862d696adc38bd818d1 | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | Chaanchess/GamingApp | 6d7ad26edeec0aae21b6ec641a960f750a133e47 | ce63650a110f1f09e7d68501a9d901f015cba1d9 |
refs/heads/master | <file_sep>package com.dorkcloud;
public class Main {
public static void main(String[] args) {
// Foolish program - <NAME> 10/10/2016
int age = 44;
String lastName = "Burke";
String firstName = "Stephen";
System.out.println(age);
int x = 1;
while (x <= age) {... | 75ad00a65dd9e7317764a5b5d0b6522a8edce95b | [
"Java"
] | 1 | Java | se7enack/java | be7cbe1609b4387287cf80439fb67ee44f29792d | 319d8968db75490958f91b70ad3640b49d92db3d |
refs/heads/master | <repo_name>krsvarma/HomeInsuranceSystem<file_sep>/home-insurance-management-system/src/main/java/com/cg/hims/service/IAgentServiceImp.java
package com.cg.hims.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ster... | 9dde0d2c6ad3dc9a7722fb4f5f1b381a87f77c4a | [
"Java"
] | 5 | Java | krsvarma/HomeInsuranceSystem | 7831510d368f4609e1cf5ae4360dcd5c47c097c0 | a7cd36ffe7c1a65f12c24d4ce8d803e2a5c9166f |
refs/heads/master | <repo_name>PawelDarlak/cpp_python<file_sep>/main.py
import sys, platform
import ctypes, ctypes.util
# Get the path to the system C library
mojsystem = platform.system()
if platform.system() == "Windows":
path_libc = ctypes.util.find_library("msvcrt")
else:
path_libc = ctypes.util.find_library("c")
# Get a ha... | 2d3488effe3d2484d95e338a16615e7f33ef9875 | [
"Python"
] | 1 | Python | PawelDarlak/cpp_python | 2d4972f36c21eb0c53909affd7bcf368039e58eb | ef35edf369a99b782db51cdcb6b52d4b98c3ff87 |
refs/heads/master | <repo_name>slnky/slnky-hipchat<file_sep>/lib/capistrano/tasks/hipchat.rake
namespace :slnky do
task :hipchat do
# do something
end
end
<file_sep>/lib/slnky/hipchat/command.rb
module Slnky
module Hipchat
class Command < Slnky::Command::Base
attr_writer :client
def client
@client ||= Sln... | 103e8f4092a2bbdbbe589b9370f5a0be7b76d3e4 | [
"Ruby"
] | 8 | Ruby | slnky/slnky-hipchat | a49c0595dc05b5905f5e8dc496a655cd33115a05 | bfa8062ec3be92e958b74b45416e195bb0e41f1c |
refs/heads/master | <file_sep>## Install
```
npm i string-repeater --save
```
<file_sep>"use strict"
/**
* Repeat a string.
*
* @param input The string to repeat.
* @param times The number of times to repeat.
*
* @return A new repeated string.
*/
function repeat(input, times) {
return impl.call(input, times);
}
/**
* Pro... | cda0793c41b0a6dd09185c65f173e6f3857aa0bd | [
"Markdown",
"JavaScript"
] | 6 | Markdown | tmpfs/string-repeater | ba8a2ceafaf0b6532c6a526ae16ebf0584579c7c | 5a7ebc19e44cf0f1362e38abfa399e72da44780a |
refs/heads/master | <repo_name>j-angnoe/flextension-server<file_sep>/README.md
# Flextension server
NodeJS capabilities for authorized browser extensions.
The flextension server is a process that the user starts on
their local machine. Some (authorized) browser extension may
connect to the flextenion server and perform operations, lik... | d45e1fbad4a426c463caac9f62c6137e66c876d8 | [
"Markdown",
"JSON",
"JavaScript"
] | 8 | Markdown | j-angnoe/flextension-server | 3607390ca5c6386b429aaa773ddee6576f13a1c7 | a667b8396244f4f45fc585dc714f38550828012e |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Medi... | 5219d1a2aeaaa5599dfb9464f76b805669004941 | [
"C#"
] | 15 | C# | RubenSaldanha/ExploreONET | e3d3958fc7c8fb699d98ecf266e40ed09e21b5d6 | 416f24109b9d5a1cdab4f988a04f94451de8bee7 |
refs/heads/main | <repo_name>JiaJinRong12138/Linker-Program<file_sep>/SRC/DAY1/Linker/text/sum.c
//global, object, common
unsigned long long bias;
//global, function, .text
unsigned long long sum (unsigned long long *a, unsigned long long n)
{
unsigned long long i, s = 0;
for(i = 0; i < n; ++ i)
{
s += a[i];
}
... | e6ee91a6b1df3f4ecdcf37fa7fe3ed383facb858 | [
"Markdown",
"C"
] | 7 | C | JiaJinRong12138/Linker-Program | 815a96fd34da76b242fd05e335e6ac3f7feaa872 | f3ac5ceafc506a886cb8939b55e7d977275cf426 |
refs/heads/master | <file_sep>package com.app.kotlinbasews.ui
import android.app.ProgressDialog
import android.os.Bundle
import android.os.Handler
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentTransaction
import android.support.v7.app.AppCompatActivity
import an... | a6945d28a1051ad5be53775f68afe421624c57e1 | [
"Kotlin"
] | 12 | Kotlin | chintansonis/kotlin_base_ws | e4d51131f9316c77a8e799a4cb3754eed9da5274 | 0d7304847c6c4198a31530573b543b3a775b38c1 |
refs/heads/master | <file_sep>package parameters
import (
"net/url"
"strconv"
)
// ProjectColumnSearch is the structure for the params of `project.column.search` query
type ProjectColumnSearch struct {
Constraints struct {
Projects []string
}
}
// ToConduitParams turns the structure to url.Values
func (p ProjectCol... | 78a3af3e7076248e96e06250811af702641ad56c | [
"Go Module",
"Go"
] | 24 | Go | glUk-skywalker/conduitclient | 984958a5431e0d2ba983b07d5569c492cd01d632 | aabc799cedd95a72ff39b43fc7b756c976ad7faf |
refs/heads/master | <repo_name>axelolsson/coffee-monster<file_sep>/src/containers/FreshBrews/FreshBrews.jsx
import React, { useState } from 'react';
import Filter from '../../components/Filter/Filter';
import Photo from '../../components/Photo/Photo';
import './FreshBrews.css';
const defaultPhotos = [
{
title: 'Title 1',
cate... | 7c9496a274e0715be6bf1661255dea7c2eb7e7a1 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | axelolsson/coffee-monster | 6852d57e7365eefca992d494f27e6d874b1bdfe2 | 394010a8c3c63d2c3c1a818fa60d447a62240d52 |
refs/heads/main | <file_sep>package com.example.mymovies;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Transaction;
import java.util.List;
@Dao
public interface MovieWithCategoriesDao {
@Transaction
@Insert
void insert(List<MovieCategoriesCrossRef> movieWithCateg... | 110589a953539a3b48c8ae4e9fee698df31c3597 | [
"Markdown",
"Java"
] | 14 | Java | andreeaplesa/Proiect-Android | 1dedfcb9038d675dde2a919db3e7186656f71272 | 2994630f080190561d3e50c36ea157d570ef96db |
refs/heads/master | <repo_name>sanchguy/CocosCreator_UIFrameWork<file_sep>/assets/Script/UIScript/UISetting.ts
import UISetting_Auto from "../AutoScripts/UISetting_Auto";
import AdapterMgr from "../UIFrame/AdapterMgr";
import CocosHelper from "../UIFrame/CocosHelper";
import { UIWindow } from "../UIFrame/UIForm";
import UIPop from "./UIPo... | 9a99218aa71ea8a0345ac64467054298bf7a9d8e | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | sanchguy/CocosCreator_UIFrameWork | 9c7cfab7c5219f52a83d93f83135b5fde1405940 | c2fa689a8cc3969d59960e911b9d088beadad27c |
refs/heads/master | <repo_name>monisha2214/c-programs<file_sep>/swaping.c
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,temp;
clrscr();
printf("enter two integer values\n")
scanf("%d%d",&x,&y);
printf("before swaping \n first integer=%d \n second integer=%d \n",x,y);
temp=x;
x=y;
y=temp;
printf("after swaping \n... | ecda63baacd1063ce2a30580f12b983fc2650c58 | [
"C"
] | 3 | C | monisha2214/c-programs | 40ee1961c7d4127870d69e92971fe26bc7519bce | 801645f713f9ab943a407df3482c49d6135180c5 |
refs/heads/master | <repo_name>brad-jones/teamcity-playground<file_sep>/ts-schema/schema/rest-api/deno/types/ObjectParamAPI.ts
import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts';
import * as models from '../models/all.ts';
import { Configuration} from '../configuration.ts'
import { Agent } from '../models/Agent.t... | 74778d23a46e56f53c475b0dc1e2c440cc2509d4 | [
"Markdown",
"TypeScript"
] | 76 | TypeScript | brad-jones/teamcity-playground | 7f714a76629970785c19bd7fc83dfb4b7ad0eca2 | 8b5812856952888aa653c1d35934df0bdbc4b859 |
refs/heads/master | <file_sep>#!/usr/bin/python
import ephem
from datetime import datetime
from datetime import timedelta
import time
import os
day_shots = 30
dawn_shots = 7
twilight_shots = 7
snapshot_script = "/root/Timelapse/snapshot.py"
# cabin location and elevation
cabin = ephem.Observer()
cabin.lat = '42.380238'
cabin.lon = '-71... | bf773a6a24aced3b261bb90f06338ab3b0d25f4b | [
"Python"
] | 4 | Python | dlaporte/Timelapse | eff8c08ce4c623823a3417b5ed380cada54260da | d426e7f357f4b18216bac595c0d03de322e441b3 |
refs/heads/master | <repo_name>poakapx/Reacting_to_day_time_1<file_sep>/GetTime2.js
function GetTime()
{
var date = new Date();
var hour = date.getHours();
if (hour >= 5 && hour < 12) { greeting = "Доброе утро!"; }
else if (hour >= 12 && hour < 18) { greeting = "Добрый день!"; }
else if (hour >= 18 && hour < 24) { greeting = "Добры... | 92a7a638f2a9db2f92f42f0041fd98ba313e33d2 | [
"JavaScript"
] | 1 | JavaScript | poakapx/Reacting_to_day_time_1 | 7aafb132b1cccc0ddee6a30bfb3b4b34255685af | d2feac86e7cdb6bbbecebe7626cb8f835777ffbc |
refs/heads/master | <repo_name>jlstack/WebScraping<file_sep>/RegisterSnipe.py
__author__ = 'lukestack'
from selenium import webdriver
import time
from datetime import datetime, timedelta
USERNAME = ''
PASSWORD = ''
REGISTERPIN = ''
SEMESTER = 'Fall 2015'
CRNS = ["11156", "10387", "16238", "10383", "10384", "10658", "13435"] # max 10 CRNS... | 045de593bea386d61492286cdd228ee9d6e3c3d2 | [
"Markdown",
"Python"
] | 3 | Python | jlstack/WebScraping | bed7ddbea49cc08c1fc4d6c382f9406f870d9fdb | 63f3254f0be78740c5b0e171d1426a05d670b868 |
refs/heads/master | <repo_name>evibobevy/revolve<file_sep>/lib/mobileMenu.js
$(document).ready(function(){
$("#show").click(function(){
$("ul").show();
});
$("#hide").click(function(){
$("ul").hide();
$(".mobileMenu").hide();
$("#nav").show();
});
});
var vid = document.getElementById... | 8fcf71a542e76490b32ec8e07a801cabc11cb4a3 | [
"JavaScript"
] | 1 | JavaScript | evibobevy/revolve | 116e0564109593ac52e1938967d330be98ca1251 | 78715d575fc64ca9e127daeb6d95a0a226a58a3d |
refs/heads/main | <repo_name>chinmaygit/tasty_api<file_sep>/pages/api/request.ts
import axios, {Method} from 'axios';
export type Headers = {contentType: string};
export type Request = {
url: string;
method: Method;
requestName: string;
headers: Headers;
body: object;
};
export type Response = {status: number; headers: Header... | 331a262e13626820b3c75781c1385f169672d8df | [
"TypeScript"
] | 1 | TypeScript | chinmaygit/tasty_api | 43505cbdc1ed4e119a260b3652f448c2055dc378 | 898a2bf4b586193c0d5b0df7da79fdc394e55283 |
refs/heads/master | <repo_name>guilhermemntt/fastify-mongo-boilerplate<file_sep>/src/services/fastify.service.ts
import fastifyJwt from "fastify-jwt";
import fastify from "fastify";
import fastifyCors from "fastify-cors";
import multer from "fastify-multer";
import { Server, IncomingMessage, ServerResponse } from "http";
import routes fro... | 2c9a6f7efffa7a00d80ab4cccbe8d66fa1cc5c00 | [
"Markdown",
"TypeScript"
] | 15 | TypeScript | guilhermemntt/fastify-mongo-boilerplate | d4524b023430c7c25ff429ce38e560d6f81a6dd8 | ebe01018f5ebed2236563c3cbb5120bdc8666548 |
refs/heads/master | <file_sep>#include <bits/stdc++.h>
using namespace std;
#define NUM_SCORE 13
#define MAX_ROUND 12
#define NUM_DICE 5
int player[2][NUM_SCORE];
const string scoreType[NUM_SCORE] = {
"Aces ", "Deuces ", "Threes ", "Fours ", "Fives ", "Sixes ", "Bonus(>=65) ",
... | b9e9b1aa906171e0c58081c3683771f8f398d2c5 | [
"Markdown",
"C++"
] | 2 | C++ | 96glory/yacht-dice | 5e23eadedfc31502a5040dff92851927391181a4 | 09b3098bc9d7604cfb23d7fd7afe0683a231be1e |
refs/heads/master | <file_sep>#!/bin/bash
# Compiles src.md into README.md and push to master
gitex src.md README.md -i _gitex
git add img/ _gitex/ *.md
if [ "$#" -eq 1 ]; then
git commit
git push origin master
fi
<file_sep># Asynchronous family
## Asynchronous Advantage Actor-Critic (A3C)
Asynchronous Methods for Deep Reinfor... | c0b2399b679de51a58a0afc8787ffdf52eeb07ca | [
"Markdown",
"Shell"
] | 3 | Shell | RongRG/RL-Pseudocode | aa3273c62343a4de12436c9294de1e221917d309 | 14029b14509ea2bfbf6116dc85ce29022a4005ee |
refs/heads/master | <file_sep><?php
class Cuisine
{
private $style;
private $id;
function __construct($style, $id = null)
{
$this->style = $style;
$this->id = $id;
}
function getId()
{
retur... | ec37961c6f76730cf4f3d442c3b3bf80d26da05b | [
"Markdown",
"PHP"
] | 5 | PHP | jakeruleaux-zz/restaurant-php | f83413b40726ddb68b2c5981273bbb82271a793c | f233529953e5ccfc5846055f8e2c2f271b472eb6 |
refs/heads/master | <file_sep>#addin Cake.GitVersioning
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
// Repository-specific variables for build tasks
var buildNumber = GitVersioningGetVersion().SemVer2;
var artifactsDir = "./artifacts";
var projectToPublish = "./src/KubernetesClie... | b552ab18b9a557c4acb3dd5199baf4bf042909f6 | [
"C#"
] | 1 | C# | Gearset/kubernetes-client | 357859b708592710322e124de8a6ab71ec2c8079 | 49841bacab60afb232c1452f98cbabf532cec150 |
refs/heads/master | <file_sep>/* eslint-disable no-unused-vars */
function split(wholeArray) {
let firstHalf = wholeArray.slice(0, Math.floor(wholeArray.length / 2))
let secondHalf = wholeArray.slice(Math.floor(wholeArray.length / 2))
return [firstHalf, secondHalf];
}
function merge(array1, array2){
let outputArray = []
let ... | cf9a7caf11c61191ef442decdabcd853c74398cc | [
"JavaScript"
] | 4 | JavaScript | macp92/bubblesort | e827c3221789872acda26f1e91182b7472c956fb | d33ef838961c67f495db917491e830b9ab1c59e4 |
refs/heads/master | <repo_name>migorez/musikero<file_sep>/MusiKero/app/src/main/java/com/bubble/musikero/controlador/Reproduccion/MusicPlayerService.java
package com.bubble.musikero.controlador.Reproduccion;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
impor... | 8bfb0ac94d96432da3fd39f65eb8f3c23395e746 | [
"Markdown",
"Java"
] | 6 | Java | migorez/musikero | be1b146d6754815ee1f56c84161818d7f889b254 | c9c87acd16288ce1401a3175b1247074069f3628 |
refs/heads/master | <file_sep>package edu.edaily.sysuedaily.utils;
public class Constant {
public static final String DEBUG_TAB = "SYSU_EDAILY";
public static final String PATH_PIC = "/sdcard/sysuedaily/pic/";
public static final String PATH_SPIC = "/sdcard/sysuedaily/spic/";
public static final String NEWS_KIND = "news_kind";
... | 23addb2e9bab1adf7949d99e6e7bd9546656df25 | [
"Java"
] | 6 | Java | zonyitoo/SYSU_EDAILY | 72f8e44daffcbc684082f86b87fb92e8d617e884 | cbbc8269bbfd405e328b303dbc6845092f8c58d6 |
refs/heads/main | <file_sep># java-frame-study
java框架demo
<file_sep>package client;
import lombok.extern.slf4j.Slf4j;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransp... | eaf49dc2d005f2ef8470812d075bf2ad24e3186a | [
"Markdown",
"Java",
"INI"
] | 14 | Markdown | CarlBeBetter/java-frame-study | df540fde354e47048e8088860486a658faea7d96 | 43b2c73f2f023a0300f96c062e0197f9a7db34bf |
refs/heads/master | <file_sep>import ASUS.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.ASUS)
GPIO.setup(252,GPIO.OUT)
GPIO.setup(253,GPIO.OUT)
GPIO.setup(164,GPIO.OUT)
GPIO.setup(166,GPIO.OUT)
GPIO.setup(167,GPIO.OUT)
GPIO.setup(257,GPIO.OUT)
GPIO.setup(256,GPIO.OUT)
GPIO.setup(254,GPIO.OUT)
GPIO.setup(165,GPIO.OUT... | 7125980d50c3ed160c923659eee94a9c02b12a6e | [
"Python"
] | 1 | Python | sperinck/hello-world | 57b104165372717f98871c4886e31bb2ac170133 | 7b3e4983183e147ebead33cc142122ee6126f282 |
refs/heads/master | <file_sep>'use strict';
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$('html').addClass('ismobile')
}
$(document).ready(function() {
function scrollBar(selector, theme, mousewheelaxis) {
$(selector).mCustomScrollbar({
theme: theme,
... | c34d82180238e67b8641a4a8435e6be6ee8ef37c | [
"JavaScript"
] | 1 | JavaScript | OwO-Studio/Pr0j3c1X.github.io | 73abe1abd2718cfea1d0a6e1d5c88ab724104cab | 0e6ab508a87ee6640b3a4f23a7fa35273947d360 |
refs/heads/master | <repo_name>bastelbjoern/JLD505<file_sep>/JLD505.ino
#include <SPI.h>
#include <Wire.h>
#include <EEPROM.h>
#include <mcp_can.h>
#include <INA226.h>
#include <EEPROMAnything.h>
#include <SoftwareSerial.h>
#include <AltSoftSerial.h>
#include <DS2480B.h>
#include <DallasTemperature.h>
#include <FrequencyTimer2.h>
/*
Notes... | 3eaa022e908aca76722df71e19b660f3fcbdcc15 | [
"C++"
] | 1 | C++ | bastelbjoern/JLD505 | 68ff1ba703a934071bd1a89fe5be0b01ddd0cfbf | 7f329a8da8374c7b47741b35b29ce5a93ffc8bf7 |
refs/heads/master | <file_sep>var Listener = require('./Workers/listener')
prompts = {
alreadyInGame: 'You already in game',
whoIsInterested: 'Who is interested?',
noFreeRecorders: 'Sorry, no free recorders',
askRate:
'You just finished playing. How would you rate your experience: 1 (bad) - 5 (great)?',
askFeedback:... | 89ea22d93794626f300e19fb5bc92ae12b529b6c | [
"JavaScript"
] | 2 | JavaScript | zombie9988/discordownbot | b0646a59208d06b26bf6f64a21826bb7e08ccfd8 | c5d7632f34659e0662e1e49f95b8a164026fac71 |
refs/heads/master | <file_sep>const {Builder, By, Key, until} = require('selenium-webdriver');
const dotenv = require('dotenv');
dotenv.config();
(async function example() {
let driver = await new Builder().forBrowser('chrome').build();
try {
await driver.get('https://www.researchgate.net/login');
await driver.findElement(... | 23de238bbacae368b4592ee6781bc810fb066374 | [
"JavaScript"
] | 1 | JavaScript | jnkindi/scrap-researchgate | f33edb6bb192463eb162e2d4fef5260a844c5444 | e8393a27326a3d3cf42ad49adc4572bf5f78e085 |
refs/heads/master | <repo_name>jarvi652/Etch-a-sketch<file_sep>/script.js
const start = document.querySelector('#start')
const reset = document.querySelector('#reset')
const container=document.querySelector('.container')
function createGrid(size){
totalSquares = size * size
for(let i =0; i < totalSquares; i++){
const new... | 2479323abf2a625d74856f77a81b01ca2b92a126 | [
"JavaScript"
] | 1 | JavaScript | jarvi652/Etch-a-sketch | 78610d50b81dbf45d1223a362eb7dc349c37475c | 2768bda56bb0c1babcd16440c4e3be2b08485b84 |
refs/heads/main | <repo_name>MOMOJMOGG/Leetcode-Practice-Library<file_sep>/Easy/0009# Palindrome Number/PalindromeNumber.c
/**** Leetcode-Easy 0009# Palindrome Number *****/
/***
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Follow up: Could you solve it without co... | 73af4edb2e9554d60c82290e2bb8a18d6cf09fdd | [
"Markdown",
"C",
"C++"
] | 13 | C | MOMOJMOGG/Leetcode-Practice-Library | 4df3c429709a51ffb7c872247e901f3e8d8f2cb1 | 94560ba5e3ce785b0b4e382c8550c0f9ccdc416b |
refs/heads/master | <repo_name>LucasHilgevoord/IDP_Hearthstone_PersonalScripts<file_sep>/UI/YourTurn/YourTurn2.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class YourTurn2 : MonoBehaviour {
public Animation YourTurnAnim;
void Start()
{
YourTurnAnim = GetComponent<Animatio... | 15b78b5f7fac3c290dd3740b577572c82ae5fef7 | [
"C#"
] | 11 | C# | LucasHilgevoord/IDP_Hearthstone_PersonalScripts | ffbbbb73cdbc728632039afe70002e01928e3cc8 | f86d80bf305b7e40f14f06e8a6627bdb3ae198f3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.