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 random, time
from PIL import Image
class Avatar():
def __init__(self):
print('Avatar generator\n=======================================================')
avatar_size = int(input('Avatar size\nstandard value is 7: '))
avatar_scale = int(input('Avatar Scale\nstandard value is 7: '))
a... | 536ee6ee28b3a433af034a8e27b3dd0d75c5ca58 | [
"Python"
] | 1 | Python | InternalCode/Avatar_generator | bd26c0fccbe04f670145620ea5ba3a05ac50d61e | 20d26f8ad1597683c44f2707e6b132759dad406e |
refs/heads/master | <file_sep>Borisbikes
==========
First time experiencing classes and 'CRC' cards in making a program that tracks London's Boris bikes and their usage in day to day use.
Boris Bikes are the blue bikes that you may see dotted in and around london. The bikes interact with the users; the dockingstations the get parked int... | e9ca2075b80c868671ef0b7843a8f606432d3ec1 | [
"Markdown",
"Ruby"
] | 3 | Markdown | JackRubio26/Borisbikes | 0039d058f22028bf91689c4387ae9069586bbe71 | 072cf8c27c95209fd280a079d62c8ed3414ede4c |
refs/heads/master | <file_sep>// To set up player1, player 2
var game = {
player1: {
name: 'Player 1',
score: 0
},
player2: {
name: 'Player 1',
score: 0
},
ellapsedTime: 0,
currentPlayer: {}
};
// To make the game last only 10 seconds per player, then switch.
// if(game.ellapsedTime > 10){
// switchTurn(... | fdc7390fdb224d987884559f0772c47c849f9483 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | KJWBeige/UseofForceAR | 50ae5a5fbab9b41bff99b82b7ae1370143fd7067 | 15157eb0b3ac194cc3c43a2ae29323d69541b868 |
refs/heads/master | <repo_name>FredyC/grunt-shared-config<file_sep>/test/expected/config-amd.js
define( function() {
return {
"HEIGHT": 120,
"WIDTH": 380,
"AMOUNT": 0.33,
"ANIMATION_SPEED": 100,
"OFFSET": 20
}
} );
<file_sep>/test/expected/config.js
var globalConfig = {
"height": 120,
"width": 380,
"amount": 0.33,
"anima... | 3d9b1c4756c35e57867e7fd275cac8d60236216a | [
"JavaScript"
] | 2 | JavaScript | FredyC/grunt-shared-config | 641799f596c75c35502402ec361b632a47640df0 | 548378303fb0003e18b2799a9c972cdb1e0017ad |
refs/heads/master | <repo_name>cyberkom-learning/www.cyberkom.pl<file_sep>/inc/index.tpl.pl.php
<html>
<head>
<?php echo $t->head;?>
</head>
<body>
<center>
<div id="is" style="width: 770px;">
<?php echo $t->header;?>
<?php echo $t->main;?>
<?php echo $t->footer;?>
</div>
</center>
</body>
<script type="text/javascript">
var... | 869b4da43e5e7075810ebc9613ca9d75512bc4b3 | [
"PHP",
"INI"
] | 23 | PHP | cyberkom-learning/www.cyberkom.pl | 5cb56e789650987260c061c9477457e4867ee9c6 | 945c330258f65581a442796abd171022bf00b174 |
refs/heads/main | <repo_name>aarti7400/Git-Demo<file_sep>/math.py
# Add Imlementation
def add(x,y):
return x+y
# sub Imlementation
def subtract(x,y): #main
if y>x
return error;
else
return x-y
# mul Imlementation
def multiply(x,y):
pass
# div Imlementation
def divide(x,y):
pass<file_sep>/READM... | 57e0902acf4f2a7a09410411578b0f6b7f7cc289 | [
"Markdown",
"Python"
] | 2 | Python | aarti7400/Git-Demo | 91c365499fa579ed74e8430538b502b559a461e1 | 39bf5ca73d8ba91ff7cc9be1224e901ab7d79615 |
refs/heads/master | <repo_name>paoliniluis/shift-to-spectrum<file_sep>/index.js
const { Pool } = require('pg');
const argv = require('minimist')(process.argv.slice(2));
const fs = require('fs');
let dbConfig = {
user: argv.user,
database: argv.db,
password: <PASSWORD>,
host: argv.host,
port: argv.port || 5439, //defau... | 73c422e76bf89450f8334b64539b3403562833f0 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | paoliniluis/shift-to-spectrum | 453d1a436335a13b1f75f945275fe58a90adb24a | b999d063a09a1580db9e90c3cf45ca6c74d42eb4 |
refs/heads/master | <file_sep># Dog Articles Scraper
## What is it?
Dog Articles Scraper is an application that allows its users to scrape for the latest dog's articles from a dog website:https://moderndogmagazine.com/articles
Users can then comment on articles of interest and save them.
***
## User Interaction
When the user enters t... | 3ea74828794502758846a7324d3ba3206ac0c2f4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | AnnyHuynh/News-Scraper | 23f1357fd298654095220d382ef3cfc38a696cd3 | deb0f0bda21ca18579426ccc5ae93b4c2ef77081 |
refs/heads/master | <repo_name>tesfay-bsrat/OOP-project<file_sep>/Best/Best/Class1.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO.Ports;
namespace Best
{
public delegate void dataReceived(object sender, SerialPortEven... | 40a4bc6b80f4c8221ca45244668edcb99d9247cb | [
"C#"
] | 3 | C# | tesfay-bsrat/OOP-project | 7974d632c4f65b2e1ad8917d00a427133041fe07 | f0841df1327847f4e088c983ff304ed81aca4cf2 |
refs/heads/master | <repo_name>Ghostman100/predictionsBot<file_sep>/filename.js
<script>
document.addEventListener("DOMContentLoaded", function(){
var clickId = location.href.split("?clickid=")
var link = "http://172.16.31.10/click.php?cnv_id=#s2#&payout=#price#"
var s = link.replace("#s2#", clickId[1]).replace("#price#", 1);
... | 7e67a1dc58ac0d934e790b3034d9199050ef625b | [
"JavaScript",
"Ruby"
] | 8 | JavaScript | Ghostman100/predictionsBot | fd96320313cb0949868962596b6c8d6c73295af5 | eddc7409e6d60092a088c443ef6eedcb9c297e32 |
refs/heads/master | <file_sep>import csv
import os
csvpath = os.path.join('C:/Users/rajka/Desktop/UofT/Assignments/Instructions/PyPoll/Resources/election_data.csv')
with open(csvpath,newline='') as csvfile:
csvreader = csv.reader(csvfile,delimiter=',')
csvheader = next(csvreader)
listcsv = list(csvreader)
... | e5799f5ea2ed4dc80aaa746e125cc376b1af94aa | [
"Python"
] | 2 | Python | rajkamal85/python-challenge | fad97a85bcd98ed9610c5ea65491f49b7f0dab0c | 83e63e71afa0753758bee86e2354cc78ecabb488 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
using Newtonsoft.Json;
namespace ubit.ipt.server
{
/// <summary>
/// Summary description for Marksheet
/// </summary>
[WebService(Namespace = "ht... | 16d32958de7a0436fcaffb5cfe4b34f6c4aa7171 | [
"C#"
] | 1 | C# | inam-22/INAM-IPT-ASSIGNMENT-2 | b9cfe74251ee3d91aada08db4d1a749d2b6514d4 | 17407fd89211d1c2ab7850c828cc4cd35b66d3ce |
refs/heads/master | <file_sep>sqlite3 data/ufo.db <<EOF
.mode tabs
.output data/sighting_types.tsv
select * from sighting_types;
.output data/states.tsv
select * from states;
.output data/cities.tsv
select cities.*, count(*) as sighting_count , cities.name||', '||states.name_abbreviation as city_name from cities join sightings on sighting... | 039e93f05072f6e133a91da25b48ba782260a041 | [
"SQL",
"Ruby",
"HTML",
"Python",
"Shell"
] | 8 | Shell | TopazFist/cs424p3 | 33da34c35903f7580d5961864528ccbf89a5462d | 982c1c03be53ce372b9b1ca6b978cce61a6f3645 |
refs/heads/master | <file_sep>#pragma once
/*==============================================================================*/
/* */
/* @file title : cGameMain.h */
/* @brief : ゲームメインシーン */
/* @written : s.kosugi */
/* @create : 2018/12/02 */
/* ... | 38ac816be546215996fbe05089c3d2dab373a72b | [
"C",
"C++"
] | 135 | C++ | s-kosugi/FMAndroidBase | 5b3d62fb71942995dcbc7e9c19aa250ecb735094 | 105381f3834cf781b63e965c5b3b1f8ae4a38a25 |
refs/heads/master | <file_sep>
Given /^that the following animals exist:$/ do |fields|
fields.hashes.each do |dog|
Dog.create!(dog)
end
end<file_sep>require 'spec_helper'
describe "Add" do
before do
click_link 'Enter a new dog'
fill_in "Title", :with => "Munar"
fill_in "Description", :with => "dark but lov... | 67bbed0fba0187ceb26d1686d354b8a180704f73 | [
"Markdown",
"Ruby"
] | 11 | Ruby | imranyousuf/nonprofit_pet | 7f5bd085352e9e3d3fe4e53ff7f7007f0e686203 | 6ca5513cb0caba5ea43ead30d52412a169e5a8b2 |
refs/heads/gh-pages | <repo_name>RathanKumar/uptown<file_sep>/js/custom.js
// Closes the sidebar menu
$("#menu-close").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active");
});
// Opens the sidebar menu
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active... | d2f38c0a0885cc7371caa59e35f69d83b002942b | [
"JavaScript"
] | 1 | JavaScript | RathanKumar/uptown | cb79d32c7afecb71b5325e998cce4f9a7af8d1ed | 7b225816a861ad4b136694a2a0c83c1423868f3a |
refs/heads/master | <file_sep>'use strict';
$(document).ready(function() {
$.ajax({
url: "https://savingsmultipliedssh.firebaseio.com/items.json",
dataType: "jsonp",
success: function(data){
// data.preventDefault();
console.log(data);
console.log(data[0].title);
... | 161eca64429e23827361eb7b4430549fa746e5a8 | [
"JavaScript"
] | 1 | JavaScript | jlsears/savings-multiplied_part2 | 73dbf3665b7c1abe5cd6b1d2af22ff576f00d1fc | ce07f74f916d429bf1a06538080d98b4c8019d56 |
refs/heads/master | <repo_name>ServantBrea/canvas-api-test<file_sep>/README.md
# canvas-api-test
# this code is trying to build a game engine API.
# How to use this code...
## install typescript and operation "tsc" in terminal<file_sep>/src/api-for-canvas.ts
class EventObserver {
static eventObserver: EventObserver;
targetList: ... | d6ed7cccca5d19e9f932151222c46ff8d4f60899 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | ServantBrea/canvas-api-test | 05a4d62ad139b3df0e39c18f83378162de790484 | 45b2ad70c15a5c78ff52c3ff0b167f0c0f8a7c0f |
refs/heads/master | <repo_name>ADever/Career-Center-Log-In-Forms<file_sep>/Form3.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace... | d5de853d43dd141642314a1f9cb876f434d53ff0 | [
"C#"
] | 3 | C# | ADever/Career-Center-Log-In-Forms | bcfe05fee10f7bd3d5f32f97f88dbc2771001465 | 2a395028d7accc9f5c8e6155e83d1e5b179c9b56 |
refs/heads/master | <repo_name>ychen1012/online-judge<file_sep>/src/test/java/cn/oj/onlinejudge/OnlineJudgeApplicationTests.java
package cn.oj.onlinejudge;
import cn.oj.onlinejudge.service.JudgeService;
import cn.oj.onlinejudge.vo.JudgeTask;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.... | 2a72941fa206a7cf862c25660f87be8e505349f6 | [
"Java",
"Python"
] | 6 | Java | ychen1012/online-judge | 07e758c28b6898ce2146c7d8176a4f27331aef39 | c53e8703d6869e0d3d3e0e42c6675d07e8ba19e5 |
refs/heads/master | <repo_name>lgv-0/cs-module-project-iterative-sorting<file_sep>/src/searching/searching.py
def linear_search(arr, target):
for z in range(0, len(arr)):
if arr[z] == target:
return z
return -1 # not found
import math
# Write an iterative implementation of Binary Search
def binary_search(ar... | 1e1b2172680a76cb739dbb9d04ac08a312cc5705 | [
"Python"
] | 1 | Python | lgv-0/cs-module-project-iterative-sorting | be562f85dad0beceebfb749998f7498637f01ac9 | f6300eca7284b6dd0c4aa07290c29570deb738d5 |
refs/heads/master | <repo_name>xlhector10/Python<file_sep>/README.md
# Python
This directory contains personal proyects based totaly or parcialy on Python.
These proyects were made for personal interest or just booring, so everyone who needs can make use of them.
Some of proyects where made with help of OpenSource libreries.
<file_sep>/D... | 2159442085ccfe55ef7aecf42947c2e1564f3514 | [
"Markdown",
"Python"
] | 2 | Markdown | xlhector10/Python | ff1e8cadbfa6fbc2b877eaa8ab6d360ed48f3beb | a3a96d47f8655c7db2da3f838d1033f095557a5e |
refs/heads/master | <repo_name>MarinaKrivova/basic_projects<file_sep>/Document_Retrieval/my_retriever.py
class Retrieve:
# Create new Retrieve object storing index and termWeighting scheme
def __init__(self,index, termWeighting):
self.index = index
self.termWeighting = termWeighting
def count_docs_in_... | 398f3731e56c178d4fb55710ca9dbfd886f28525 | [
"Markdown",
"Python"
] | 2 | Python | MarinaKrivova/basic_projects | 62d2e531ab01f991d0b438bcb41c0a0dc4d13152 | c5abe0e0b3cbe571ca5d10e1ed159a44de58599f |
refs/heads/master | <file_sep>from flask import Flask, render_template, request
import requests
import datetime
import json
app = Flask(__name__)
x = datetime.datetime.today()
date = x.strftime("%d-%m-%Y")
@app.route('/')
def index():
return render_template('index.html')
@app.route('/suggestions')
def suggestions(... | 83127665d88f069febb1ee376189614954167606 | [
"Markdown",
"Python"
] | 9 | Python | AbhijeetArde/Overall | 367a96cb03cc465e69362ff9294e1effae73216f | 0e32364176bff929cc999298688f6ae650c54d6d |
refs/heads/master | <repo_name>aeoril/aeoril.github.io.old<file_sep>/hallidayResnick/2-2/index.html
---
layout: default
scripts: mathjax
css: hallidayResnick-2-2
navhilite: projects
title: QuarksCode | <NAME> and Walker 2-2
---
<div class="page">
<h1 class="title"><NAME> and Walker Chapter 2 Section 2</h1>
<div class="content">
... | de52298f1b44a543c69c5c77dd432bc551a8347c | [
"Markdown",
"JavaScript",
"HTML",
"PHP"
] | 31 | HTML | aeoril/aeoril.github.io.old | b37698587e4cbe59f17948af9e87da5429838e15 | 968c52e6f3b2c4b8ff76c1d03e017a43c900c642 |
refs/heads/master | <file_sep># SNU Chainer
Spiking neural unit implemented with Chainer-v5
See: https://arxiv.org/abs/1812.07040
## Requirements
- Chainer v5
- cupy
- tqdm
## Usage
### Train the network
Run, `python train.py -g 0 -b 128 -e 100 -t 10`
(gpu, batch, epoch, simulation time steps)
<img src="https://github.com/takyama... | c48e26ce1c1bc7e5b5def38b967be5ac3dc6a9e0 | [
"Markdown",
"Python"
] | 9 | Markdown | takyamamoto/SNU_Chainer | 124a81fd625b42fa530574c5c8a163946147a8d8 | 39742dfc2f46b3d67608093c3fe5c3d9f4d166ed |
refs/heads/master | <repo_name>AyuJ01/forsk<file_sep>/day12/Ayushi_Jain_38.py
# -*- coding: utf-8 -*-
"""
Created on Mon May 28 22:48:56 2018
@author: Ayushi
"""
import numpy as np
import matplotlib.pyplot as plt
incomes = np.random.normal(150, 20, 1000)
print(plt.hist(incomes,100))
print('std ',np.std(incomes))
print('var ',np.var(inco... | 8ee02bc022107aba1cf7b247a7b9b2b060ed9112 | [
"Python"
] | 87 | Python | AyuJ01/forsk | 94953d9c92ed3e380dc48ddfcf709581c2cd0fd4 | 5f2e9bb846648fd0efa6266718a56c37cf40610c |
refs/heads/master | <repo_name>endlos/poly-api<file_sep>/README.rdoc
== Polymorphic associations sample
0. New app
rails-api new poly-api --skip-sprockets
1. Generate the models
rails g model client name company
rails g model organization name
rails g model person name position organization:references
rails g model... | 4978413b1dfde41b8a21b65859ac8eca6f6b777f | [
"RDoc",
"Ruby"
] | 3 | RDoc | endlos/poly-api | d37c28139798dedaba8aec8b405e40eedfa24bf4 | 9c753bad943865ef9a64dcbaac1d39bcccf28f97 |
refs/heads/master | <repo_name>serobalino/PortalDeLaVida<file_sep>/readme.md
<img src="https://upload.wikimedia.org/wikipedia/en/thumb/5/5b/Lions_Clubs_International_logo.svg/1080px-Lions_Clubs_International_logo.svg.png" align="right" width="80"/>
# Club de Leónes - Portal de la Vida [{
super();
this.state = {
number1: 0,
number2: 0,
sum: null
}
this.updateFirstNum = this.updateFirstNum.bind(th... | 71a8a55ad94dfc253acd888dd2483fb67bdaf4b5 | [
"JavaScript"
] | 2 | JavaScript | sam-obembe/react-1-afternoon | d5561a9cce1f50caa4e4c0d5e33efbe40371939b | 38a2678cfa9fbb0f7abcd963bef06b8cd970127e |
refs/heads/master | <file_sep>const app = document.getElementById("app");
const initApp = () => {
const navContainerId = util.uuid();
const btnAddEntryId = util.uuid();
const btnSettingsId = util.uuid();
const btnAboutId = util.uuid();
const totalBalanceId = util.uuid();
const totalCreditId = util.uuid();
co... | 6c3688157d8b0d23d4b6b015fd351a75047b22ec | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | anasnajaa/Monthly-Budget-Calculator | e9f08d8fbd75f0256a858de2fb134914ed1d021a | f0134c428bf2bfa258ba194ea0a3a2e9f61d418d |
refs/heads/main | <repo_name>parvez843/Robot-Leena<file_sep>/robot-control/demo.py
import time
import RPi.GPIO as GPIO
from adafruit_servokit import ServoKit
'''GPIO.setmode(GPIO.BCM)
GPIO.setup(11,GPIO.OUT)
servo1=GPIO.PWM(11,50)
servo1.start(2)'''
h = ServoKit(channels=16)
'''
servo move demo
servo1.ChangeDutyCycle(12) for gpio pi... | ea54d918c05e882187ecfcc58e020444bdc6e35d | [
"Markdown",
"Python"
] | 3 | Python | parvez843/Robot-Leena | 2f2e406bc5a7d87101f809c2e5ffc7aefe2b300e | a79e2d87dfa0497017500dc6f501a1f8e2324d21 |
refs/heads/master | <file_sep><?php
/*
* <NAME> (<EMAIL>)
* Github: https://github.com/alissonpelizaro/SkypePHP
*
* Pt: Classe principal de integração de baixo nivel
* En: Main class of low-level Skype integration
*/
class Skype extends Methods{
/* Public user data */
public $username;
/* Private user data */
private $passwor... | 515e48d250112e28fee1381de0bb5109876a9fad | [
"Markdown",
"PHP"
] | 4 | PHP | AdoboFlush/SkypePHP | a75f5d4749185371ed788ee16f6fdd4830358f7f | e1619666c305c08ae56ff0d5ba385c4a3b1e7a76 |
refs/heads/master | <file_sep>const ethers = require("ethers");
const snarkjs = require("snarkjs");
const web3 = require("web3");
const {stringifyBigInts, unstringifyBigInts} = require("ffjavascript").utils;
const fs = require("fs");
const { Console } = require("console");
const { removeListener } = require("process");
const { createCode ... | d0ccecc5bdf04eca1b8ec869b2b85c62dea041ca | [
"JavaScript",
"Markdown",
"Shell"
] | 6 | JavaScript | WillZhuang/ZKP_ERC20 | 87dbb8f8606dc38e4e5d1b51a2c4caec1691b44b | 64c533d896b62098787df26581ad6db04b13f3a2 |
refs/heads/master | <file_sep># DEEP Neural Networks For Caribbean Based Accent Classification
This repo contains the code,csv files for each experimental sets as well as a link to the data collection tool we created. The code include the files we used to preprocess our dataset,the CNN model we created from the accents as well as the code... | 201356a4b31c02a25d732d32428e35da869ab643 | [
"Markdown",
"Python",
"Text"
] | 9 | Markdown | Kerschel/Accent-CAC | 67195c6025715cd03787c49501b035d23b7f7e49 | abb361699cd4d73d6578b225e559fb2ba40d0af4 |
refs/heads/master | <file_sep># Hangman
A web version of the classic Hangman guessing game. A secret word is generated upon initialization. You have ten guesses to complete the word or you're hanged.
# Installation
To play online go here [Heroku](https://glacial-retreat-36955.herokuapp.com/?guess=p)
To run the game locally, first clo... | 2deeb753ef1d1a1f7acb5162c1732f2d90e0785d | [
"Markdown",
"Ruby"
] | 2 | Markdown | ks927/sinatra_hangman | ac3fa1ba351631aa6fcbef4c1e065ee6d33cf9f1 | 865d82d52af2b570ec66cc49f611081451014bac |
refs/heads/master | <file_sep>"use strict";
var _ = require("lodash");
var errorHandler_1 = require("../../api/responses/errorHandler");
var successHandler_1 = require("../../api/responses/successHandler");
var dbErrorHandler_1 = require("../../config/dbErrorHandler");
var service_1 = require("./service");
var UserController = (function (... | d7b2d9b44dad4ff18e96bb1596439e435f5debdf | [
"JavaScript",
"TypeScript",
"Dockerfile",
"Markdown"
] | 39 | JavaScript | raphaellima8/typescript-api | d3f0a9a876d054e328cfbd54f5d20f6238a8c199 | 5ba6e195029876ce24623e6dc442991fa7a6dead |
refs/heads/main | <file_sep># android-oom
Simple Android App that will crash by Out of Memory
| e4495e2a2e16df83063001c4ee3c047a54e202e4 | [
"Markdown"
] | 1 | Markdown | fegoulart/android-oom | 6bac1fe34290e14946dcacaf3a220b7b036dfa35 | 3b35f12aed89faaf9bbc2e5cc20f68b950c0f7bf |
refs/heads/master | <repo_name>BreankingBad/ssm-crud<file_sep>/src/main/java/com/breaking/crud/bean/ResponseBean.java
package com.breaking.crud.bean;
import java.util.HashMap;
public class ResponseBean {
public static final int CODE_SUCCESS = 100;
public static final int CODE_FAIL = 300;
private int code;
private String msg;
... | 93caf9fd848f47f3aa6c835984ac53d03b3385e4 | [
"Java"
] | 2 | Java | BreankingBad/ssm-crud | 3d8775bb804e5c9345ff22bfcb3b444bd75ba323 | 4e6df2a710c2eec0d0c0bff1ae2c19e91ac150b5 |
refs/heads/master | <repo_name>Abhishek-VG/Santoryu-React-Components<file_sep>/webpack.config.js
const path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
const mode = 'development'; // temp
module.exports = {
context: path.resolve('src'),
mode: 'development',
devtool: 'eval-source-map',
entry: {
... | 58f2ab5c27ea232a87cc53f83fdbc105172e81c0 | [
"JavaScript"
] | 1 | JavaScript | Abhishek-VG/Santoryu-React-Components | 96f5f07fe7b048988b7110eb39ab55e2e9b5009d | 4d2fc6936427ec91e69298f8d56c58984d3ea658 |
refs/heads/master | <file_sep>let Service, Characteristic;
const packageJson = require('./package.json');
const request = require('request');
const ip = require('ip');
const http = require('http');
let globalHomebridge;
module.exports = function (homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Character... | 59cad2930db47fa4db27e5a47976e3329e1a3ea6 | [
"JavaScript"
] | 1 | JavaScript | BossaGroove/homebridge-http-request-thermostat | fad4546afdf1f4b852f810c6c1fa30773f3b2684 | 0072a829eefee32d8eadc5bd4f769cd0071149d3 |
refs/heads/main | <repo_name>Esoteric918/simple_shell<file_sep>/_built_in.c
#include "shell.h"
/**
* _exit_command - this function closes the simple_shell when
* @arg: pointer with the direction argument.
* @lineptr: standar input string
* @_exit: value of exit
* Return: None
*/
void _exit_command(char **arg, char *lineptr, int _... | b67aef853e31623e8b1b9b2f20175b69034cc2a8 | [
"Markdown",
"C"
] | 10 | C | Esoteric918/simple_shell | 491458ac754bca0301402af1ec33ed8c5f96045c | 81eb42e9c5b37b456796053f0a62762b08b16a92 |
refs/heads/master | <repo_name>raminorujov/qafqaz-java-web-2014<file_sep>/20141025/SessionDemo/src/java/sessiondemo/MySessionAttributeListener.java
/*
* 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... | 375e29bacf2443ddb6b690d30115bbbb4de063d0 | [
"Markdown",
"Java",
"INI"
] | 8 | Java | raminorujov/qafqaz-java-web-2014 | 408cc2e5dc70fe19f98e01f0fc9cf81c2603b9da | c66f2e7ca7d85f6202d6ca821431e1116389d96a |
refs/heads/master | <repo_name>dlthdlthdlth/hackTheGap_CodeYourAvatar<file_sep>/Main2Activity.java
package thesohyproject.codeyouravatar;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackba... | 0338c6759486f9f5c33d869808aa1b4b611f8f8a | [
"Markdown",
"Java"
] | 2 | Java | dlthdlthdlth/hackTheGap_CodeYourAvatar | 7c36b8b0471d59d6dfeb492579bf2e4892795a7c | 4d85ae8d2e9ef91c7736efaee77a50a1bb7b43a7 |
refs/heads/master | <repo_name>LeninGF/textClassificationTPU<file_sep>/trainWordCnn.py
"""
This script aims to train the model WordCNN migrated
from its tensorflow v1.X original version in Github
to its equivalent in Keras. Then it must be tested on TPU
Author: <NAME>
"""
#%% importing libraries
import tensorflow as tf
import os
import n... | 2824785aa9a5f27e5a9dc7f8fe2eaa5424213258 | [
"Markdown",
"Python"
] | 2 | Python | LeninGF/textClassificationTPU | c0865f8de99766ec882174883fe6dceca0fd8287 | 4141a2c04de321fb599d0e2f0e754fc81c3c5198 |
refs/heads/master | <repo_name>GabrielMarcelino/mclweb<file_sep>/briefing.php
<!DOCTYPE html>
<html lang="pt-br" itemscope itemtype="https://schema.org/Article">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta n... | f93ecba39e98e98c81e40c1cae82d1ddf43c8f68 | [
"Markdown",
"PHP"
] | 4 | PHP | GabrielMarcelino/mclweb | cab8b1282471da6ea5e3ba8c2828ab3658bc6e23 | 108a44f6ddf7ad0e025d7dc69f1a3193207a47ff |
refs/heads/master | <file_sep>import random
from twython import Twython
import time
import pickle
george_lines = pickle.load(open( 'C:/Users/ben/Desktop/seinfeld/george.pickle', 'rb'))
george_filter = [line.strip() for line in george_lines if 20 < len(line) <= 140]
auth_dic = pickle.load(open('C:/Users/ben/Desktop/seinfeld/auth.... | f58249df1229b146043a15b6457978306b5e93c2 | [
"Python"
] | 1 | Python | goodtimeslim/seinfeld_analysis | a6fcf777e4106873e2dc80887e033da35e02e73c | 494d7970b3ee714e1b8aeeffa402da6887f6c714 |
refs/heads/master | <file_sep>/*
* Author: <NAME>
* Implement 2d kd tree for quick near neighbor search in RRT and submaps.
*
* TODO: Add rebalance method and make the clss more unisersal
*/
#ifndef kd_tree_h
#define kd_tree_h
#include <vector>
#include "geometry_msgs/Point.h"
namespace cartographer_ros {
namespace cartographer_ro... | f9bb4a300741f70689d36d60770b26532b1f0816 | [
"Markdown",
"C++"
] | 8 | C++ | jeking1/cartographer_ros_path_planner | ef08f8f9b52a517a4e6a141d64fab99a1a5b1a9a | 713215934629be9329e798595b91fc0654610215 |
refs/heads/master | <file_sep>create table property (
propid serial primary key,
propname varchar(40),
propdescription varchar(200),
address varchar(200),
city varchar(40),
state varchar(20),
zip varchar(40),
image varchar(200),
loanAmount decimal(20, 2),
monthlyMortgage decimal(20, 2),
desiredR... | 8d4b579879e28883984d6fceac1a4627e4d6d21e | [
"JavaScript",
"SQL"
] | 11 | SQL | haftav/simulation-2 | efb8c66e5325fefd4a99e2126a29d0ad249a6913 | 49f468863c88567116f3a9d78af63cfbcdedf605 |
refs/heads/main | <repo_name>egdemems/Aurum<file_sep>/point/ExploreView.swift
//
// ExploreView.swift
// point
//
// Created by <NAME> on 7/13/21.
//
import SwiftUI
struct ExploreView: View {
@AppStorage("zipcode") var zipcode: String = UserDefaults.standard.string(forKey: "Zipcode") ?? ""
var categories = ["Appli... | c7f31eb35a67fd58d5b85d036d47af389324b3e6 | [
"Swift"
] | 13 | Swift | egdemems/Aurum | 84210e85ad3994a9604c302599872d812ba634e3 | 10392f827476fafffd2ed0cd9318d0a921878c04 |
refs/heads/master | <repo_name>mohitss/Coding_Practice<file_sep>/test.c
#include<stdio.h>
int int main() {
printf("Hello World22\n");
return 0;
}
| 3065c0208938f28672cdf1abc548523fce3b30b8 | [
"C"
] | 1 | C | mohitss/Coding_Practice | 4026c2a89f3a45ce41feb932d4eaaab15abd2a9f | 18db028ab12a3228ae9887fb23f3f2a0cee099c7 |
refs/heads/master | <repo_name>AlexandrMardanov/react-calculator<file_sep>/src/react/commonConfig.js
export const commonConfig = {
currencySignes: {
GBP: '£',
AUD: 'A$',
EUR: '€',
USD: '$'
},
showFields: {
levels: true,
subjects: true,
currency: true,
promo: true,... | 97dd84d1bc2e1a5daa9280b36ef7dac70075edaa | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | AlexandrMardanov/react-calculator | da7bd3b7fdfa201260e970c341680e273bc30981 | 29ce5a7ec38bd825c81328c024468d70e5eb2877 |
refs/heads/master | <repo_name>mazhurin/LifeExpectancy<file_sep>/README.md
# LifeExpectancy
Life Expectancy Calculator
## Description
Life expectancy is a statistical measure of how long an organism may live, based on the year of their birth, their current age and other demographic factors including sex.
This Life expectancy calculator i... | f1490253e47cbc75002ed9a5ac1a777aab9c8c88 | [
"Markdown",
"R"
] | 3 | Markdown | mazhurin/LifeExpectancy | 2ac0690afe2a59e70d2bdeaa8a4798fc2398bfd5 | 5fd36898f35fb0af33ab085142eb836bc653f7d3 |
refs/heads/master | <repo_name>ARAVINDDAYALAN/ecommerce<file_sep>/yankart_backend/databaseQueries.sql
CREATE TABLE category (
id IDENTITY,
name VARCHAR(50),
description VARCHAR(255),
image_url VARCHAR(50),
is_active BOOLEAN,
CONSTRAINT pk_category_id PRIMARY KEY (id)
);
INSERT INTO category (name,description,image_url,i... | 8939d3d7c81ae93c2eeefdfa1bd787e7a6b9fac9 | [
"SQL"
] | 1 | SQL | ARAVINDDAYALAN/ecommerce | 8373adfae2d858d4e44e3afeb839d9c64a875183 | 91d06703d1d9a958bef7349fdf90a217dafcfdf6 |
refs/heads/master | <repo_name>snpusr/sigtool<file_sep>/src/libasm/src/arch/sparc/handlers/asm_sparc_fcmpes.c
/**
* @file libasm/src/arch/sparc/handlers/asm_sparc_fcmpes.c
** @ingroup SPARC_instrs
*/
/*
**
** $Id: asm_sparc_fcmpes.c 1397 2009-09-13 02:19:08Z may $
**
*/
#include "libasm.h"
int
asm_sparc_fcmpes(asm_instr * ins, u_char * b... | 4429767c0a2c52c115c25d70fd467fe6dfe60f12 | [
"Markdown",
"C",
"Makefile"
] | 168 | C | snpusr/sigtool | 2c544793ee2f722ea017cdf4180279d1a0fb8348 | 6709bfd71869fd27f578e5298f8726fe348d5e00 |
refs/heads/master | <file_sep>$(document).ready(function() {
var socket = io.connect(url);
socket_init(socket);
var text = getText();
var wordArray = text.split(" ");
var textIndex = 0;
$("#text").html(bold(wordArray, textIndex));
$("#inputText").keyup(function() {
var currWord = wordArray[textIndex];
var input... | f24673eaffdae8a36664aaf2c70ce13e04beb778 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | qimingfang/typing-contest | 5fa1537e6de3d4847a9bcfee6aad36f46fbd1c19 | 32a720a406d84d4fbed009204cba1bf0f983ed1e |
refs/heads/main | <repo_name>Hrincon1055/react-frontend-asesoftware<file_sep>/src/App.js
import React, { useState } from "react";
import { Container, Col, Row, Navbar } from "react-bootstrap";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
// Mis componentes
import FormClient from "./com... | e7defd9df0cfde0c10ed652be510cd12a284ddc6 | [
"JavaScript"
] | 1 | JavaScript | Hrincon1055/react-frontend-asesoftware | 650683b95e32cf0f4139949bb3e6195d70046520 | 06633ed7ef45e248ce0c397910249379c274b7c8 |
refs/heads/master | <repo_name>gustavoJimenezz/claseDeingreso<file_sep>/5-InstruccionWhile/jsIteraciones (10).js
function mostrar()
{
var numnegativos=0;
var numpositivos=0;
var cpostivos=0;
var cnegativos=0;
var cceros=0;
var numerospares=0;
var respuesta='si';
var numero;
//var diferencia=numnegativos-numpositivos
//declarar... | 674d58c572dc9185a5ebac271cb0948c69c431a4 | [
"JavaScript"
] | 14 | JavaScript | gustavoJimenezz/claseDeingreso | 24ce2096d3a2cf266aeac9eb8ef85f6558d9b5c8 | eb3cd4b971537685bad58a92f0d6e662f92fc19a |
refs/heads/master | <file_sep>jQuery(document).ready(function () {
jQuery("#btnQuery").click(function(){
var code = jQuery('#txt_code').val();
jQuery('#result_info').text("正在查询中,请稍等...");
jQuery('#result_ico').attr("src", "images/code_warring.png");
if (code.length <= 0) {
jQuery("#txt_code").focus();
re... | 4f231e503f131d5e6f6f2a51d56662da5d10c878 | [
"JavaScript"
] | 1 | JavaScript | iamludar/china12-315_net | 1c86ff007fe8293da17bae8219e6ef11317dafdb | d16c621cf2fa62729c0671df5fc2daae5796ea8b |
refs/heads/main | <repo_name>WDev2021/mit-xpro-bad-bank<file_sep>/src/pages/CreateAccount.js
import { useContext } from 'react';
import { Formik, Field, Form, ErrorMessage } from 'formik';
import UserContext from '../UserContext.js';
function CreateAccount() {
const context = useContext(UserContext);
const formikProps = {
in... | d5375361fbdbdeb7eaf9e512f8a7b41881ef9835 | [
"JavaScript"
] | 5 | JavaScript | WDev2021/mit-xpro-bad-bank | db00631ca2a5c95ef27d1d378f9cb94f52aa80ff | f9324892b76374cc87be73ea4c0d318263320379 |
refs/heads/master | <file_sep>/* ========================================================================= */
/* ==== Floor ============================================================== */
function cw_createFloor() {
var last_tile = null;
var tile_position = new b2Vec2(-5,0);
cw_floorTiles = new Array();
Math.seedrandom(floorsee... | 95e7647dac6d2fa61c33ca5844e0091f603c6b99 | [
"JavaScript"
] | 1 | JavaScript | francesconero/HTML5_Genetic_Cars | bdcdd42f4141b9361269383b7f084f30d1c3da23 | 88c25398dd62276ff7ef5dfea4f4b054c349606d |
refs/heads/master | <repo_name>odin-platform/odin-core<file_sep>/README.md
This project has moved to odin/odin-core.
Please use the other project.
/stephane
<file_sep>/attic/plugins/hal/test/test.orm.js
var async = require ('async');
var mocha = require ('mocha');
var should = require ('should');
var TheBulk = require ('thebulk');
var r... | c4ed453ac6fb66eb3d04d378992a40b0d0b305b8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | odin-platform/odin-core | 99f61ece76bdcef6fdfa860255c019daf322804a | c5a85ebdcc04d76db86c244c722f1d7580b2725b |
refs/heads/master | <repo_name>kinnyng/test-struts<file_sep>/src/login_ex/loginAction.java
package login_ex;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;... | e3e0b7c7e2d70d01e238f0f0f81131a550867a3a | [
"Java"
] | 1 | Java | kinnyng/test-struts | 91df74915da9cf47dc2b56291026d4e6f2a5e702 | 40989a4f32ad78df084df31117b487992e0d4fc4 |
refs/heads/master | <repo_name>tammapriya/POM<file_sep>/src/main/java/testcases/TC_EditLead.java
package testcases;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import pages.LoginPage;
import wdMethods.ProjectMethods;
public class TC_EditLead extends ProjectMethods{
@BeforeTest
public void s... | 7d466483ed08c82e94392691ee9366d9df8b66db | [
"Java"
] | 1 | Java | tammapriya/POM | 68c3383854fa0f4602700ed29b3b09958fe6194b | 13254bbc2de8aedede726decc1bb3bcd986d7d15 |
refs/heads/master | <file_sep>select * from titleauthor;
select * from publishers;
select * from titles;
select * from authors;
SELECT * FROM sales;
# Challenge 1
CREATE TEMPORARY TABLE first_table
SELECT auts.au_id AS 'AUTHOR ID', auts.au_fname AS 'LAST NAME', auts.au_lname AS 'FIRST NAME', ta.title_id as 'TitleID', title.title as 'Titl... | cb3240e76d2efd7d2a0e386fa3cfc1d7fa2b501d | [
"SQL"
] | 1 | SQL | cleanspin/lab-mysql-select | 46e4969d77f2beaa49f07a6f0374b3e248cdad63 | d791802d4ccfec5745efb48e38d9e6c8abc898c1 |
refs/heads/master | <file_sep># HappySad
Built in Visual Studio for ~your~ my convenience.
Sometimes you just need a `happy.exe` and a `sad.exe` for testing or PoCs, or whatever.
*WARNING* Never run random binaries you find on GitHub or wherever. Review them or build these tiny things from source yourself first.<file_sep>#include <stri... | 4b2cd6724d380f8ae2375e579e3ed88a7a012ef2 | [
"Markdown",
"C++"
] | 2 | Markdown | malcomvetter/HappySad | 8338342ff4307a1f5e5c31323bafce590f882517 | 7e38ad426b83d62c5b6452a40501553227770929 |
refs/heads/master | <repo_name>smasher0310/crawler<file_sep>/crawler.py
import requests
from urllib.parse import urlparse,urljoin
from bs4 import BeautifulSoup
import cfg
import persistence
import time, os
from concurrent.futures import ThreadPoolExecutor
class crawler():
"""A simple Crawler"""
def __init__(self,url):
s... | d130e6727bd484764520a2cb62b6fb26e075f949 | [
"Markdown",
"Python"
] | 4 | Python | smasher0310/crawler | ca5f9253d09d7db50e351dbf18882294d58606d6 | e7e3205e0e599ab6ed97e854bf1c36a0a5b7eab2 |
refs/heads/main | <repo_name>hiepcm/bussiness-db-project<file_sep>/server-bussiness-db/app/InterviewerComment.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class InterviewerComment extends Model
{
protected $table = 'interviewer_comment';
protected $fillable = ['id','del_flag','interviewer_id','comment','r... | d0234adad7035b83e69b7ef9a1a5c476bd2e0fcb | [
"Markdown",
"PHP"
] | 15 | PHP | hiepcm/bussiness-db-project | 70fb54fb20c9056230eaac6e6f9cfe442a8e2e1a | f93d9e85d155fb35c1f26056ba82d77cc206e449 |
refs/heads/master | <repo_name>xgch/act7<file_sep>/multiplicar2.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tabla del 2</title>
</head>
<body>
<?php
//Tabla del 2
$numero=0;
echo "<h2>Tabla del 2</h2>";
while ($numero<=10) {
$resultado=$numero*2;
echo "2x$numer... | aa93f56f5ad84c67d1e9ed96506e16091d89968f | [
"PHP"
] | 1 | PHP | xgch/act7 | ca642ad0b8898c927d25ba1887896d82841cd833 | 7b625e3d00aae20393595dee17adf4b29919a14e |
refs/heads/master | <file_sep>read_epc <- function(){
#specifically reads the household_power_consumption.txt dataset.
compressed_file <- 'epc.zip'
data_file <- 'household_power_consumption.txt'
if(!file.exists(compressed_file)) {
print("downloading the file")
url <- "https://d396qusza40orc.cloudfront.net/e... | 0c237ad469847d3ddc85f07dcca23d127833c045 | [
"R"
] | 3 | R | joanenricb/ExData_Plotting1 | cd81790daa09eb9ad79af72ddc300f6f1210c221 | b9e2880d259f75639779832b4a77b5464ddd2e41 |
refs/heads/master | <file_sep>var raffle = require('raffle');
var express = require('express');
var path = require('path');
var app = express();
app.use('/public', express.static(path.join(__dirname, 'public')));
app.set('view engine', 'ejs');
app.get('/', function(req, res) {
res.render('index');
});
app.post('/draw', function(req, ... | 96c89ae27eb0fe57674490bf0eacc87220e46943 | [
"JavaScript"
] | 1 | JavaScript | johnfriz/raffle | 5d35080814e313a83abe651a7f8ef08f35b53e8e | 66a684b4f47e9fe29f53f7cfd703ffe933abe499 |
refs/heads/master | <repo_name>w-v/scale<file_sep>/include/player.h
#ifndef SCALE_PLAYER
#define SCALE_PLAYER
#include <entity.h>
#include <controllable.h>
#include <ncurses.h>
#include <bloc.h>
enum Status {standing, walking, jumping, falling};
class Player : public Controllable, public Entity
{
public:
Status status;
Blo... | fc119de02725431760f67f6629cd57f719562f30 | [
"Markdown",
"C",
"Makefile",
"C++"
] | 30 | C++ | w-v/scale | 5b6701e7937c54f637a2dabf872cd7e14575e2c8 | 74fff1fbdaa750b8bdd4e7ba4ff5b0e3d383f96f |
refs/heads/master | <repo_name>anirudhasj441/SNAKE-GAME<file_sep>/SNAKE GAME/newfile.py
import random , os
import pygame
pygame.init()
x=540
y=960
DISPLAYSURF=pygame.display.set_mode((x,y))
pygame.display.set_caption('snake game')
bg=(0,0,0)
BLUE=(0,0,255)
white=(255,255,255)
red=(255,0,0)
font=pygame.font.SysFont( None ,30)
font... | d480520ae6d6f2c1924f6a3d8b328bd273b855d9 | [
"Python"
] | 1 | Python | anirudhasj441/SNAKE-GAME | 83718db6f72ffdf162a6b86d5fcfe1cb872730f3 | 03c0692a0f5c9df3dcd60a1d62d8216c62448330 |
refs/heads/master | <file_sep>package stepDefinition;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class LoginTest {
@Given("^I open the chrome browser$")
public void i_open_the_chrome_browser() {
System.out.println("This is a maven project");
}
@Given("^I go to sal... | d82124fbfe777cf61c5eb3b0981dd0d6a7afa879 | [
"Java"
] | 1 | Java | MansoorMehfooz/Mansoor-Repository | 1b70d40828c2effd32304b39d61a24fb577aeb1d | 0f5ccffcca16fa42b309737be40e9bdac99c2ee9 |
refs/heads/master | <file_sep>import os
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_zipkin.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
with ope... | 73012482ca28efe7b1a5380f8c424ea200e535b2 | [
"Python"
] | 1 | Python | timgates42/flask-zipkin | 933f84d759827745d824701a3ccdfe7b329aaf56 | a5f7f8d0a153d1594359b45b103b317f86490641 |
refs/heads/master | <repo_name>BlueDG/Practice-with-React<file_sep>/src/App.js
import React, { useState } from "react";
import Counter from "./Counter";
import CounterHooks from "./CounterHooks";
export const Theme = React.createContext();
export default function App() {
const [theme, setTheme] = useState("lightblue");
return (
<... | e6f742033bee32ab8647753ffdf734c73480cd60 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | BlueDG/Practice-with-React | 2557f68812a94d2ffec988274b09ae306b6c2fc3 | 0777c104e4ec1acd4c05138bc83a66acb75081fa |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ActivatedRoute, Params } from '@angular/router';
import { BookService } from '../../services/book.service';
import { setPageTitle } from '../utils';
@Component({
selector: 'app-edit-book',
temp... | 9bc363180f4c69564e2cf1cc61af67b778563afd | [
"Markdown",
"TypeScript"
] | 22 | TypeScript | Dan4ykS/book-catalog | 6b6efaba4f9fafa8c49004893e3b62b1a50781d4 | 7d8b6274d294449fdc31cf583fbfa07bab1e99b6 |
refs/heads/master | <repo_name>elelias/CompuInvesting<file_sep>/strategySearch.py
#maketsim.py
#function for the first quizz:
import sys
# QSTK Imports
import QSTK.qstkutil.qsdateutil as du
import QSTK.qstkutil.tsutil as tsu
import QSTK.qstkutil.DataAccess as da
# Third Party Imports
import datetime as dt
import matplotlib.pyplot as plt... | 2bc7c2ab970b91abb6b7c6058a7e43d9fb68cec9 | [
"Python"
] | 4 | Python | elelias/CompuInvesting | 12efe4bad164aaf4ae93a44ddc49f118e774606c | 64cdab6f2848bd125c10d4e4087f9adaded43b62 |
refs/heads/master | <repo_name>Jdhaimson/joshhaimson<file_sep>/app/controllers/static_pages_controller.rb
class StaticPagesController < ApplicationController
def home
end
def mom
end
def bunko
end
def winecheese
end
def yogapantsandfinance
end
def puzzlesthebar
end
def aroundtheworld
end
def formal
e... | afaeddfd8196be9c19865917fd48136a6ecc677d | [
"Markdown",
"Ruby"
] | 2 | Ruby | Jdhaimson/joshhaimson | 7ee132a49e769c52f17c1c51accaf8b26f6e3a54 | 0e78bd9d32e6da2e17cfeb37583d78787cfbd357 |
refs/heads/master | <file_sep>---
layout: post
title: "Python与C的DLL调用"
subtitle: " \"Unity Shader\""
date: 2018-05-02 15:48:00
author: "Mas9uerade"
header-img: "img/watchdog2_sf.jpg"
tags:
- Python
- C
---
> “一个简单的使用Python调用C的DLL中的回调函数”
之前在思考Python如何调用C的Dll,网上也只搜到简单的加法调用,因此测试了一些简单的Python调用C的DLL的方式,附上例子。
## ... | 2d2fae85176824e7986779b4f41dc8541492d5fd | [
"Markdown",
"C#",
"C++"
] | 108 | Markdown | Mas9uerade/mas9uerade.github.io | 9cc273313fc1360daff57fe16dd1a60fe910259d | 4b0ee4ad342011deed023a5ad79e765ea3ab7150 |
refs/heads/master | <repo_name>bcpiotr/malePsotyV1<file_sep>/README.md
# malePsotyV1
To jest moj obecny, pierwszy komercyjny projekt.
Obecnie wprowadzane sa zmiany do projektu graficznego, wiec teraz stworzony jest tylko zarys kodu (aby potwierdzic u klienta ustalony uklad strony).
W zalozeniu projekt to:
- one page z linkami odsylaja... | cee71f95fb43a93e3c31f7edb497f1bafaaf1eec | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bcpiotr/malePsotyV1 | d270ef672748ea4026004fae2185dc9d05434860 | 9d867a33e2823f5059ba93d267b3ec27f20ff0ea |
refs/heads/main | <repo_name>aftaba/Spoonacular-Drupal-Module<file_sep>/src/Form/SpoonacularAPIForm.php
<?php
/**
* @file
* Contains Drupal\recipe_nutrition\Form\SettingsForm.
*/
namespace Drupal\recipe_nutrition\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class SettingsForm.
*
* @... | d4e2070f32703a342a9a4b3c4d4b283b211af12d | [
"PHP"
] | 1 | PHP | aftaba/Spoonacular-Drupal-Module | 1330a348313394f1f509839f1aa67685b6751b7f | 2c4fcc2b75de52d6275c882cf26840431f4f5856 |
refs/heads/master | <repo_name>Dauflo/4JVA<file_sep>/src/main/java/com/dab/household/entity/UserOrder.java
package com.dab.household.entity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Entity()
public class UserOrder extends BaseEntity implements Serializable {
@ManyToOne
... | 6f41413edca69cfa7e6f0ebb0705d43b13b3d224 | [
"Java"
] | 14 | Java | Dauflo/4JVA | dae43e7fb03e447b29bd88355d5ff228bfef6458 | 1828eda7c8985f587f9b3496a55312d19945d622 |
refs/heads/master | <file_sep><?php
header('Content-Type: application/json; charset=UTF-8');
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET");
$response = array();
$server_url = 'http://127.0.0.1:8000';
if (isset($_GET['id'])) {
$id = $_GET['id'];
$mysqli = new mysqli('127.0.0.1:... | 96ba5fff9ac721bf0839f9c43c33692453b8ff34 | [
"PHP"
] | 2 | PHP | TunNandaAung/student-profile | bde30a82e5dbbf7b4c183c13286d3b58932daa5c | ac4041a95201a73d3d37acfa82960eaef4911ade |
refs/heads/master | <file_sep>#include <iostream>
#include <random>
#include <ctime>
#include <cmath>
#include <iomanip>
#include <fstream>
using namespace std;
void subSquare();
void magicSquare();
void division();
int randRange(int min, int max); // Random Integer x, such that min <= x < max
int getInt(string prompt); //Safely aquire... | c33021f6259c6fcd88bd939cd47588d4ec331b9e | [
"C++"
] | 1 | C++ | TheKing42/Final | 8a0a8116fc6c7748b411ea25e1daf3ac68a50824 | 1caddbb070a7daa0b6a8bc787c2274698594f61a |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
from pylab import * # for plotting commands
import numpy as numpy
import math
#<NAME>
#This program solves a wave-like form of the Navier Stokes Equation under a set of assumptions.
#Equation details: -Incompressible form, newtonian fluid
c=0.5
nMax=20 #Number of time steps ... | c2f51702a245d0e2556631ce67d1b21dd05b59b2 | [
"Python"
] | 1 | Python | flnguyen/CFD | 34ab5b53b7348f43499344772f3548143b334023 | cfcc6a1ab617a60354443b3c9acff082d04cf0fc |
refs/heads/master | <file_sep>import React from 'react';
import Footer from './Footer';
import Header from './Header';
import ListItem from './ListItem';
import ListsList from './ListsList';
import NewList from './NewList';
import TodoItem from './TodoItem';
import TodoList from './TodoList';
import TodoService from './../se... | 6dcd83a1db58de6193ce3fe21444a322f228c1c0 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | BaronVonPerko/react-todo | d8cf4f715dec88fdd79768db85c2006fc2961719 | 8f399b1463350b75ce13f712d0f797dfebd37629 |
refs/heads/main | <file_sep>#ifndef TRAIN_H
#define TRAIN_H
#include "face.hpp"
#include <QThread>
#include <QMessageBox>
#include <vector>
#include <iostream>
#include <stdio.h>
#include <QDebug>
#include <opencv2\opencv.hpp>
#include <opencv2\core.hpp>
#include <opencv2\highgui.hpp>
#include <opencv2\imgproc.hpp>
#include <math.h>
#i... | ac2a3089001ff6369d5371daf605f5e116efd710 | [
"Markdown",
"C",
"C++"
] | 26 | C++ | 0000duck/FaceRecognition | 5f332e64d29769a879a856dcf593899470033de2 | 38c07e639518e7a3304b79aff6b3488dcab951d1 |
refs/heads/master | <file_sep>using System.Data.Entity;
using System.Data.SqlClient;
using System.Configuration;
namespace SendCollectionToStoredProcedureExample
{
public class BaseContext: DbContext
{
protected string connectionName;
public BaseContext(string connName = "BaseConnection")
: base(con... | 2ed2cfe71cccca1b79b892554a0d9c4f5562ea36 | [
"Markdown",
"C#"
] | 3 | C# | matsurigoto/SendCollectionToStoredProcedureExample | 03cf5e5c4cc33c8695615a39d66449257ece1868 | 49a8d63623f0a48601eb692f2c8632907e60cf5e |
refs/heads/master | <repo_name>elijahsciam/ancient-chinese<file_sep>/src/app/pie/pie.component.ts
import { Component, OnInit } from '@angular/core';
import laozi from 'src/texts/laozi';
import dufu from 'src/texts/dufu';
const dictionary = require('./dict/parser.js');
@Component({
selector: 'app-pie',
templateUrl: './pie.component.ht... | 140e7ed2edf9ebe602fecb460f5b8a8b1ce6ea8d | [
"JavaScript",
"TypeScript"
] | 4 | TypeScript | elijahsciam/ancient-chinese | 32e45477c6ff4796b5b72276e50abbf048318f1f | b59c1d990833c15329592e62735fea7929d99f76 |
refs/heads/master | <repo_name>Iced-Tea/star.js<file_sep>/README.md
[](https://badge.fury.io/js/star-correct) [](https://travis-ci.org/Decagon/star.js/branches)
# star.js
[![Join the chat at https://gitter.im/Decagon/star.js]... | 6a4a1c67ce348935885f9de300eb79dfac5302c5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Iced-Tea/star.js | 6bcdb9b2eea200b6e96b2adfdd56648f28c8357e | 6f04da71f2af9ebf3210c10816b4211aa069c7de |
refs/heads/master | <file_sep>package Livraria.Teste;
import java.util.List;
import Livraria.Autor;
import Livraria.Produtos.Ebook;
import Livraria.Produtos.Livro;
import Livraria.Produtos.LivroFisico;
import Livraria.Produtos.Produto;
public class RegistroDeVenda {
public static void main(String[] args) {
// TODO Auto-g... | 5f03fbcee6e4cc8585d885381bc478a39dde8663 | [
"Java"
] | 4 | Java | renatocantarino/DesbravandoJavaOO | 659bb770de4d860d61b7243c7a6907ae9de04ac0 | 11d79d1996f8053e8e87b53e5e317043b76ce61f |
refs/heads/master | <file_sep>#define PIN_ECHO 8 // Echo Pin
#define PIN_TRIG 9 // Trigger Pin
#define DISTANCE_MIN 0 //May want to set to 2 if needed as that is the sensor's actual minimum
#define DISTANCE_MAX 400 //Max effective range of sensor in cm
#define DISTANCE_INVALID -1
double duration, distance; // Duration used to calculate ... | 22ea12b216ee773b6f031340168874dc7a48a3f1 | [
"Markdown",
"C++"
] | 2 | C++ | SustainableLivingLab/ultrasonic-hc-sr04-usage | f7f7759e147cda62e19685379565773889c58a01 | 7f3753f640d2cfc6b655546db8cf641596ce89f2 |
refs/heads/master | <file_sep>import java.util.ArrayList;
public class MainMenu {
public static void main(final String args[]) {
final OliveGardenMenu oliveGardenMenu = new OliveGardenMenu();
final SubwayMenu subwayMenu = new SubwayMenu();
final ArrayList<Menu> menus = new ArrayList<Menu>();
menus.add(oli... | 0646288526f69fa624080989f95f35250db818f4 | [
"Java"
] | 2 | Java | saintsavon/IteratorPattern | 5fac4667e3371ebe5ff993cb94bc2897e7d23835 | 05a11ab6f11a7591a6583438b563bc798ed9d1ff |
refs/heads/master | <file_sep># subscan
利用查询啦接口,chinaz,ip138接口,百度云观测接口查询子域名
<file_sep>import socket
socket.setdefaulttimeout(0.5)
with open('eastmoney.com(filtered).txt') as f:
for line in f.readlines():
host = line
ip = socket.gethostbyname(host)
print(host,ip)<file_sep>import requests
import re
import base64... | 78b98528d23ceb868283956ff9a8e3434d88c640 | [
"Markdown",
"Python"
] | 3 | Markdown | huyuanzhi2/subscan | 328bbbb81e4f4b2346553235321dedc12abb0f53 | be21334e2e395cf516ebc63548f4e17572bd9eea |
refs/heads/master | <repo_name>talbn1/Insurance_queue<file_sep>/src/main/java/com/talbn1/insurancequeue/InsurancequeueApplication.java
package com.talbn1.insurancequeue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Insuranceque... | bea8b04f8285d8c9ad1d6371f823dee61740efbe | [
"Java"
] | 2 | Java | talbn1/Insurance_queue | e647597d6ca7d7cbd5f4fc8c2ba01cd0d6b1bc2f | 56219a8706646a61b4e9646210fe5d8e8b931f7c |
refs/heads/master | <repo_name>gaodazhu/gk-auto-connector<file_sep>/readme.md
#instroduction
This is a node-webkit project for industrial machine monitor!
It receives messages from auto-collections program!<file_sep>/testleveldwon.js
/**
* Created by gaozhu on 2015/4/10.
*/
leveldown = require("leveldown345");
leveldown("./db"); | 6765142cfa2f8d124aa6141ef799abcff8f92c21 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | gaodazhu/gk-auto-connector | 427b38df4a738f08c10d532ff0f399bb3daa452a | a7e2bf6753fa3e5a26e12279a9fece9fdd3593c8 |
refs/heads/master | <file_sep>package xr_algorithm_stack_queue;
import java.util.Stack;
/**
* 用两个栈实现队列的操作
* 先进先出
* @author X.R
*
*/
public class StackToQueueTest {
public static class MyStack{
private Stack<Integer> stack;
public MyStack(){
this.stack = new Stack<Integer>();
}
public void push... | 3149c7dff9162e962442f2ee449deeb6f5f96e4c | [
"Java"
] | 2 | Java | IamXiaRui/JavaSE_Demo_Algorithm | 02ed52924871c33f79c2adb9a615b596a8094475 | 9b50a4174ba32748483cf9600a9a19cbbfae2a35 |
refs/heads/master | <repo_name>msaha-finomial/movie-maker<file_sep>/FileDownloader/FileDownloader/AzureKeyVaultClient.cs
using Microsoft.Azure.KeyVault;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Thre... | 7e6219386dfbba53f82e404f4e36782eca290606 | [
"Markdown",
"C#"
] | 10 | C# | msaha-finomial/movie-maker | 73c9b04f1f839e2b5c75cdc56ad3aed5f26d8259 | eed8b17c9a71a88e4bfea7e34991a9e5350dcf7b |
refs/heads/master | <repo_name>hernan604/JooseComponent<file_sep>/lib/forms_joose.js
(function () {
"use strict";
Role("ElemEvents", {
requires : [
'setElem', // requires other class to have attr elem -- or this.setElem
],
has : {
events : { is : "rw", init : ( function () { return {} } ) },
},
methods... | 2b0e65286cf8ee85fb79c92a401f589449076e22 | [
"JavaScript"
] | 1 | JavaScript | hernan604/JooseComponent | d9015ac14f3ccdae466788f9226423293289c164 | 0b25c5f149737838f86d01a524a91565d8c9d38f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.