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>#coding:utf8
"""
Author : zhangwenqi
Description : 读取excel内容
CreateTime : 2019-08-05
"""
import openpyxl
class ObtainEexcel():
def __init__(self,filename,sheetname):
self.filename = filename
self.handxl = openpyxl.load_workbook(filename)
self.sheet = self.handxl.get_sheet_by_name... | 6efe2ef6f6aefdd579dfc65e44c0ec5f401376cc | [
"Python"
] | 13 | Python | 18616703217/practice | 7ae213eb93ad966b2edf67d377be8721e5e7b872 | 6e1154b441f3950984048a4b8d6789794d45f62e |
refs/heads/master | <file_sep># TowerDefense for BlackBerry10!
The scope is to create a simple and easy game for all those Tower defense lovers.
--
Why do this?
Because we though it would be fun to make our own tower defense game while learning to increase our skills as a group.
I'm using the following to develop this :
* Phaser.io... | 09c9a5a0161da84eff3501036ecea0c8af35e8e3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dtuivs/TowerDefenseForBlackBerry | 68849fdf64fd8834c7b68bf769cf8a0b4f70baf5 | 5cd0250adbc0496795926133cb3d57a3049a8d5a |
refs/heads/master | <repo_name>cssko/UC-CourseCatalog<file_sep>/README.md
# UC-CourseCatalog
*A central course catalog for the University of Cincinnati*
All things considered the University of Cincinnati has a fairly navigable [website](www.uc.edu). However, one common complaint by staff and students both has been a lack of a central cou... | 078e34215cf03cda562c8b8a5defaa1045250afd | [
"Markdown",
"Python"
] | 2 | Markdown | cssko/UC-CourseCatalog | 2e0366fd7391ef06c8b6fbd7cde9f3402c315c26 | 9a8e4cdc4a8aa38286f688259e8dfcecbc87a8ad |
refs/heads/master | <repo_name>JenSarela/SCL009-data-lovers<file_sep>/README.md
# *Data Lovers*
## *CodePoke*
## *Índice*
* [CodePoke](#CodePoke)
* [Resumen del producto](#CodePoke)
* [Definición del producto](#definición-del-producto)
* [Proceso del diseño](#proceso-del-diseño)
* [Encuesta aplicada](#parte-)
* [Prototipo de baja fideli... | 10d6cfdee1c1a7dc5ef5b4a92aac83a20acf3f4a | [
"Markdown",
"JavaScript"
] | 4 | Markdown | JenSarela/SCL009-data-lovers | 40021d1598ea9bf49342af34f79ee23cd6c4984a | c2beab743488840317716d0eda2704cf6c6a939a |
refs/heads/master | <file_sep><?php
namespace App\DataTransformer;
use App\Entity\Recipe;
/**
* Class RecipeTransformer
*
* @package App\DataTransformer
*/
class RecipeTransformer
{
/**
* @param Recipe $recipe
*
* @return array
*/
public static function transform(Recipe $recipe)
{
return [
... | 3e720833c7e951dc0d7f8c820a2dfb5f6f6c52b9 | [
"Markdown",
"PHP"
] | 18 | PHP | dpcat237/pasishnyi-denys-techtask-20170209 | 5649081bf9229c81d1581ff2abadf889d35136a7 | 3f21fe5f97b8e5dacdec3e7b476154919f890ccf |
refs/heads/master | <repo_name>alex-krash/jazoo<file_sep>/README.md
# jazoo - Zookeeper Client based on Spring-Shell
jazoo - is a modern cli for zookeeper base on spring-shell.
## Debug run (for developers)
```
mvn spring-boot:run -Dspring-boot.run.arguments=--server=localhost:2182
```
## Build
```
git clone https://github.c... | be50fb71454d4704b34eec1a6013b05bdde33219 | [
"Markdown",
"Java"
] | 7 | Markdown | alex-krash/jazoo | 684fc3fd0686814f24849b0459ce3b2cc9a32c6a | 685215f2ac3b92fd2aa3fed28203a26c38e61f66 |
refs/heads/master | <file_sep>//****************************************
// Ball Object
//****************************************
function Ball(speed, startPosX, startPosY)
{
this.x = startPosX;
this.y = startPosY;
this.vy = 1*1;
this.vx = 0.5*1;
this.radius = 8;
this.speed = 1;
}
// Define t... | 91295df37fafd781cacc9d44bb2fe7ac2d346f61 | [
"JavaScript"
] | 1 | JavaScript | tphuc112358/Animation | 798ec09a30bfed96469dbf5dda47d47017ab9f01 | 6ec774b2e237f83706ecacbb717e484abfa1cf6a |
refs/heads/master | <file_sep>###just do one thing.
Find the word under cursor for Sublime Text
### usage
Command: shifti
Keymap: shift+f7
<file_sep>import sublime
import sublime_plugin
class ShiftiCommand(sublime_plugin.TextCommand):
def run(self, edit):
selection = self.view.sel()[0]
if len(selection) == 0:
... | 6032bec1db40d966db4a0517420923e966e8aef9 | [
"Markdown",
"Python"
] | 2 | Markdown | yleo77/shifti | 1ee38a806d02820dfec7c2ff2e6e773e75fc6a40 | 982fe577e1937a9c290142893f1737464c87adfe |
refs/heads/master | <repo_name>Patechoc/3Dslicer-extension-with-Docker<file_sep>/README.md
# 3Dslicer-extension-with-Docker
This is a demo to run, test, build extensions and package your own variant of 3DSlicer right from the latest released version (currently Slicer 4.4).
## How it works?
- [3DSlicer](http://www.slicer.org/) is built a... | e7fbcd893ec4ca3e6812f678744ab38923ca09e8 | [
"Markdown",
"Shell"
] | 2 | Markdown | Patechoc/3Dslicer-extension-with-Docker | 77a6deb95d6e7eff4eb1b1be42175bd38cfdf80a | 3e2110d5be37ecd871cd0e29fda5d0a78756d96b |
refs/heads/master | <repo_name>watsabitz/DSRH<file_sep>/common/services/auth.js
angular
.module('Dsrh')
.factory('Auth', Auth);
Auth.$inject = ['$firebaseAuth', '$q', 'Database'];
function Auth($firebaseAuth, $q, Database){
const authObj = {};
//initialize the $firebaseAuth service
let auth = $firebaseAuth();
//... | 7035709c0ef137c84d97f9488750cb6842328de5 | [
"JavaScript"
] | 15 | JavaScript | watsabitz/DSRH | d76cf36bec767507b19962ef25bc1aab4d7982a9 | 50b8f183fd7f85d760f59844531e3237ec01cf0f |
refs/heads/master | <file_sep>/**
* Mozaïk EXT_NAME widgets sample config.
*/
require('dotenv').load();
const config = {
env: 'prod',
host: '0.0.0.0',
port: process.env.PORT || 5000,
useWssConnection: process.env.USE_SSL === 'true',
theme: 'night-blue',
api: {},
rotationDuration... | deb0df44981a7845b70adf233ac29ba6548fd5ff | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | kylej13/mozaik-ext-twitter | 23f2310bff767d173772aae31bd0ae2e8b770d38 | d89e5ed955c266c27134d4dbe92ed34db70336bc |
refs/heads/master | <repo_name>NicolePell/javascript_bowling<file_sep>/lib/bowling.js
var TenPinBowlingGame = function() {
this.score = 0;
this.rolls = [];
};
TenPinBowlingGame.prototype.getScore = function() {
for(var i = 0; i < this.rolls.length; i++) {
if((this.rolls[i -1] + this.rolls[i-2]) === 10) {
this.score += thi... | 1480a2383a92574f4ce2531c238e0e597d7a66e1 | [
"JavaScript"
] | 1 | JavaScript | NicolePell/javascript_bowling | ad01a9994860dcd7511e41be4d1dfb2adda188e8 | 95a24606d7e59ce5a21f0430a67a8198c4ae5301 |
refs/heads/main | <file_sep>import os
import json
from flask import Flask, render_template, request, flash # imports the Flask class
if os.path.exists("env.py"):
import env
app = Flask(__name__) #creates an instance of the class Flask (capital letter denotes a class) and stores it in a vraiabe (app) # uses a default python varia... | 180641c01d5201d27450b0ac8e6c4b2b3ee1fe7b | [
"Python"
] | 1 | Python | AledPeart/Thorin-Co-CI-core-python-module | 30d5020f4c16216880b96cb7d3934daeeed7d962 | f6eaac3052af9adcb771e3b92fb4d9bc1a2d9014 |
refs/heads/master | <repo_name>wutt77/GREibt<file_sep>/app/models/userdetail.rb
class Userdetail < ActiveRecord::Base
belongs_to :user
#validates that one user can create just one user details
validates_uniqueness_of :user_id, :message => "details already exist"
end
<file_sep>/app/models/topic.rb
class Topic < ActiveRecord::Base
#... | 1197c92846282146bbd4a2fe54fcca0200ba0540 | [
"Ruby"
] | 2 | Ruby | wutt77/GREibt | f175879eb1f48819d60f7f810717b853bb483821 | c2b0e462a9768c1f4423a3fa0e3b0115ae849aac |
refs/heads/master | <repo_name>Sandernobel/Mad-Libs<file_sep>/app/src/main/java/com/example/sandernobel_madlibs/StoryActivity.java
package com.example.sandernobel_madlibs;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
pu... | db112838fe680cd388f132cb200641d39fe03e44 | [
"Markdown",
"Java"
] | 2 | Java | Sandernobel/Mad-Libs | 1efee12e72e0baf224664309871569cca5aa6d49 | 0b4f5af0d8b3a6f6886014b42ae95344c1ea525e |
refs/heads/master | <file_sep>import sqlite3
class DatabaseContextManager(object):
def __init__(self, path):
self.path = path
def __enter__(self):
self.connection = sqlite3.connect(self.path)
self.cursor = self.connection.cursor()
return self.cursor
def __exit__(self, exc_type, exc_val, exc_... | 3dc1cc790d09ebd3489902ffe5821ee069d96567 | [
"Python"
] | 1 | Python | MonikaMoniStaniulyte/DBpirmas | ef88ebc9242cd7daf5544401de31425f820794d7 | 9036fa9e1d0c94af90933212caaa3c720499f3d6 |
refs/heads/master | <file_sep>var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
res.set('Content-Type', 'application/json');
var object = {
a: 1,
b: 2
};
eval(locus);
res.send(JSON.stringify(object, null, 3));
//res.render('index', { title... | fe31d52e0260e1bd4caf2f9dcdbbe1f32e842822 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nianurag/express-api | 41555594bf7b9f02b1f7818b01a30f3a13b8cac2 | 9ac0d407057d3f0a880daf0d7026bb5e9cb62090 |
refs/heads/master | <repo_name>asd3638/movie_app_2021<file_sep>/README.md
### 영상
https://user-images.githubusercontent.com/59568523/124364901-72ce1d80-dc7f-11eb-9936-dd82e1a0c0f0.mp4
<file_sep>/src/components/State.js
import React from 'react'
class State extends React.Component {
constructor(props) {
super(props);
t... | d05628fa4bd49cea02dee7a9d6e5f6518c022242 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | asd3638/movie_app_2021 | 5117e3b0e1b15e3e3fbf26d263bc97c8021dd35d | 9277ccabe8b12d2a64867935465f2e4b64b7d95a |
refs/heads/master | <file_sep>package hello;
import org.springframework.context.annotation.ImportResource;
@ImportResource("/integration.xml")
public class Application {
//@Autowired
//RedisConnectionFactory connectionFactory;
// @Bean
// @ExportMetricWriter
// MetricWriter metricWriter(MetricExportProperties export) {
// return ne... | fcadb506d242e11bac70ccbb789a3c054bc795b9 | [
"Markdown",
"Java"
] | 2 | Java | ghillert/si-metric-spike-bootless | f0ae15a0a8cb2d66ac64da1c0ed84972ae683d9c | e616d27dfa867a8c1fb1d750c6af993de5d1a126 |
refs/heads/master | <repo_name>mastash3ff/bugfree-happiness<file_sep>/app/src/main/java/com/minu/lifecount2020/app/Constants.java
package com.minu.lifecount2020.app;
/**
* Created by Miro on 25/2/2016.
*/
public final class Constants {
public static final boolean SCALE_UP = true;
public static final boolean SCALE_DOWN = false;
... | d37614c35f3634edff47aed960cf9ba65fb86ade | [
"Java"
] | 1 | Java | mastash3ff/bugfree-happiness | a478e01a43b297d46dd5a024dc9280e6dfbdd387 | 5ef364d17284f2e556a1240418341bfb1a7a0549 |
refs/heads/master | <file_sep>app.controller('planecon', function($scope, contFact) {
$scope.m = {
x: 0,
y: 0
}
$scope.elev = 0;
$scope.rud = 0;
$scope.leftAil = 0;
$scope.rightAil = 0;
$scope.groundDisp = {
x: 0,
y: 0
};
$scope.worldRot = {
x: 0,
y: 0,
... | 3ec31740efab4ee72d977d0b5e46119d82a7c9e5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Newms34/heli | 6dd1458ad2762e755fd57c50d816f204dfc8f950 | 06bfe595947267eff42bfae2fbeb5f4503fe545c |
refs/heads/master | <file_sep>import React from 'react';
import PropTypes from 'prop-types';
import Input from '../Input/Input';
import Button from '../Button/Button';
import classes from './SignUpBox.css';
const SignUpBox = (props) => {
const {
email,
isEmailValid,
emailChangeHandler,
password,
isPasswordValid,
... | 7b98f297c78b43114dc584708b75f3abd97cdd85 | [
"JavaScript",
"Markdown"
] | 25 | JavaScript | eveshi/taste-label | b0ebd4eadb3b9550144c0685ca710d4cd21476e7 | c8967eafc7ed3dfd077aa4153e405a502cd833c4 |
refs/heads/master | <repo_name>ed-fruty/php-environment<file_sep>/src/Runtime.php
<?php
namespace Fruty\Environment;
/**
* Class Runtime
* @package Fruty\Environment
*/
class Runtime
{
/**
* @return int
*/
public function getProcessPid()
{
return getmypid();
}
/**
* @return int
*/
... | 1363b0944b9481513d612c267d866a7c2f3b33fa | [
"Markdown",
"PHP"
] | 8 | PHP | ed-fruty/php-environment | c3abd515ef933c8dcc291ab06ff9f80930c72447 | 70b0c74f51d112818d7607e9f6f4009a733d5188 |
refs/heads/master | <repo_name>bthomp4/481_TTT_Server<file_sep>/TTT_Game.py
# Game class for the tic tac toe game
class Game(object):
# when constructing a Game object there is an optional paramter for player_first
# if player_first is 1, the player makes the first move, the player is "X"
# if player_first is 0 (default), the... | c2cecfa2436f8e7a82b25f01b2ea725de12e2ff2 | [
"Python"
] | 3 | Python | bthomp4/481_TTT_Server | effcc95b86dbbadc5b93af044fa348071b4d6e47 | 6a727ecf416f8b372cb76ea8aff10ba8bd199826 |
refs/heads/main | <file_sep>//
// RecordTableViewCell.swift
// 1_Test_TableView_CollectionView
//
// Created by 1 on 2020/10/27.
//
import UIKit
class RecordTableViewCell: UITableViewCell {
static var nib: UINib {
return UINib(nibName: "RecordTableViewCell", bundle: Bundle(for: self))
}
override func awakeF... | 78386e9c8e769812ad25cc3dd5620b67115ff806 | [
"Swift"
] | 5 | Swift | liamwongw/IOS | 20516f028370f19c9917b7d8d770b4c1fbd4b534 | 72b685b089f6a7012c737703dc1b92cd96e5ebd3 |
refs/heads/master | <file_sep>#ifndef KDTREE_HPP_
#define KDTREE_HPP_
#include <algorithm>
#include <cfloat>
#include <vector>
#include "Point.hpp"
template <size_t D>
class KDTree {
private:
class KDTreeNode {
public:
/* Constructors */
KDTreeNode() : KDTreeNode{0, 0} {}
KDTreeNode(size_t axis) : KDTreeNode{axis, 0} {... | 9cf592b5bc876b87d7bd12228869d8543fd2a38b | [
"Markdown",
"CMake",
"Makefile",
"C++"
] | 7 | C++ | rukumar333/cs375-final-project | b825ef2c2f29ab9d6c8499f5b95eaf7749de050d | 962a973c54b09ff041b7c163f6488c2fbfe22749 |
refs/heads/master | <file_sep><?php
namespace Mebel\Model;
class Transaction
{
public $id;
public $type;
public $description;
public $material;
public $quantity;
public $sum;
public $tarif;
public $isWholesale;
public $isIncome;
public function exchangeArray($data)
{
$this->id = (!is_... | 94df7f413848b6f8e1741476d4f6bf5a3b0e994e | [
"JavaScript",
"SQL",
"PHP"
] | 32 | PHP | yerganat/meb | 16aa893dcf66678abc499d3301793df97709d484 | a6d2ad890c76f4ad903a7892f132212f12888e87 |
refs/heads/master | <repo_name>hopsor/pumarex<file_sep>/README.md
# Pumarex
A movie theater web application built with **Phoenix Framework 1.3** and **Elm 0.18**.
Don't take it seriously. It's just an exercise for me to learn Elm and try the
new features included in Phoenix Framework 1.3
## TODO list
- [x] Room management.
- [x] Roo... | 1ec29130658332ea8ff5d8e0691847bdc5872358 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | hopsor/pumarex | ac266e6f4775aac6a05f4fd999738e177aa4da9b | ab90be0add7aff356ca2595340121ff4a63e9a97 |
refs/heads/master | <repo_name>NewbergFTC/Bulletproof-2016-2017<file_sep>/Bulletproof/src/main/java/us/newberg/bulletproof/lib/Sensors.java
package us.newberg.bulletproof.lib;
import com.elvishew.xlog.XLog;
import com.qualcomm.hardware.hitechnic.HiTechnicNxtLightSensor;
import com.qualcomm.robotcore.hardware.HardwareMap;
public class Se... | ec4ac0e284aa59442f449024f33c87cad7d22f7c | [
"Markdown",
"Java",
"Makefile",
"Gradle"
] | 12 | Java | NewbergFTC/Bulletproof-2016-2017 | 6db9e558f5b4f5551dc6d93355bf47602d6d36cb | 8aa16bd8efca7a5dc99a64b54dd756b7ed1aeda6 |
refs/heads/master | <repo_name>binaychap/jersey-exercise<file_sep>/README.md
# jersey-exercise
<file_sep>/src/main/java/com/binay/ActivityResource.java
package com.binay;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import java... | 262e443b295f515b19feaa42f18a954415cda67c | [
"Markdown",
"Java"
] | 2 | Markdown | binaychap/jersey-exercise | 6103b25e0c4e7faec3c14edc16c8ec4eb48450a0 | 0417cae0a555587498cbed37dea7bb33d013300a |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Epam.Task6.BACKUP_SYSTEM
{
public partial class BACKUPSYSTEM : ... | 3255674a1ff54697fa7e2ca2dc5042a1e97dd7a9 | [
"JavaScript",
"C#"
] | 59 | C# | SergeyKormilicyn/XT-2018Q4 | aa8f3b55554bf66574c2f0727b298496fee3fa5e | 7b9257a649388cc0a1274622792588cb34ca9162 |
refs/heads/master | <repo_name>yyyAndroid/Sproject<file_sep>/app/src/main/java/com/abe/dwwd/sporjectone/ui/activity/BaseActivity.java
package com.abe.dwwd.sporjectone.ui.activity;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Persista... | 8b1031ff252da5ef1148924f0119f7c1df14f334 | [
"Markdown",
"Java",
"Gradle"
] | 20 | Java | yyyAndroid/Sproject | 03ad499463db63ad36cbc1c20f85b337e42ecea5 | dba3c8e756aa8db15f2a2cfc338696fb5b853eca |
refs/heads/master | <repo_name>Mastergalen/Zugy-Laravel-eCommerce-Store<file_sep>/app/Listeners/NotifyDriversOfOrder.php
<?php
namespace App\Listeners;
use App\Events\OrderWasPlaced;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Pushbullet\Pushbullet;
class NotifyDriversOfOrder
{
/**
... | 791d0d19c2f96e590e528c157c130feb6ebd7137 | [
"JavaScript",
"Markdown",
"PHP",
"Shell"
] | 191 | PHP | Mastergalen/Zugy-Laravel-eCommerce-Store | b9a25bb14d6ddae47276ab72c72f1fed48403e44 | edbcf6749e8ac79eaacb8872d0d6eb1f15e76f55 |
refs/heads/master | <file_sep># Protocols
Pick and choose an option from a second controller and reflecting the changes in the first using protocols and delegate methods.
<a href="https://imgflip.com/gif/2507ws"><img src="https://i.imgflip.com/2507ws.gif" title="made at imgflip.com"/></a>
<file_sep>//
// ChoosePlayerVC.swift
// Custom... | ca498de09446ec435197244f9ef3f6979b1157d5 | [
"Markdown",
"Swift"
] | 3 | Markdown | vigneshios/Protocols | 32bec34a94642555b7774c2ab8bcd535bdf9b8d6 | dcb2a4ba83446d201ea57ee7f900a332b760f97c |
refs/heads/master | <file_sep>/**
* This is a class that simulates a die.
* This was copied from the example in the book, with a few abbreviations to improve text
* efficiency.
* @author <NAME>
*
*/
import java.util.Random;
/**
* This is a class that simulates a six-sided die.
* This was copied from the example in the book, wit... | 86ad92037c0a08267cf3f9d34588e664fd0f5e62 | [
"Java"
] | 2 | Java | ryluchs17/GameOfTwentyOne | 34c5601d08a3e62167896e122af1fad3a98e122f | 60d968934fb9bfb6f530ce2e8e175c7c7c5b1014 |
refs/heads/master | <file_sep>package com.drin.mcrc;
import java.util.ArrayList;
public class Recipe {
private int result;
private Item output;
private ArrayList<Item> recipe;
private ArrayList<Item> raw;
public Recipe(ArrayList<Item> recipe, Item output, int number) {
this.result = number;
this.recipe = recipe;
this.outpu... | 37087d2ea22db93e9c4ed204214e6e8aacc59e4a | [
"Markdown",
"Java"
] | 2 | Java | drinfernoo/MCRC | 5663f5451fd35c1a6f7e220a0fd08c7db8bbeb93 | 14b307e779c0daae2ad57c98cde96070429fa598 |
refs/heads/master | <file_sep>// requires
var bluebird = require('bluebird'),
glob = require('glob');<file_sep>// requires
var bluebird = require('bluebird');<file_sep>var pJson = require('../package.json'),
core = require('./core'),
watch = require('node-watch'),
installing = false;
function throwError(err) {
console.lo... | 72870e2c06f9cede9bc58ace8cd12de8d661400d | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | israelst/ranza | aaa1c7a11f26a820265abfd3a6680cb627a2221c | bf407d79f29dbf9a7247699ff88b9ea33e88af84 |
refs/heads/master | <repo_name>Roboticsotago/robotics_repo<file_sep>/Projects/2017/SoccerBots/runeverything.sh
#!/bin/bash
if [[ $(hostname) == "Boris" ]]; then
sleep 7
pd_patch=goalie_control_refactored.pd
echo Goalie
xdotool mousemove --sync 0 0
sleep 3
python -u blob_tracking_cv2.py | python boris_python2.py
xmessage yo
else
... | 02835354198515fdc10f1a970ee20fc74064ed93 | [
"SQL",
"Markdown",
"Makefile",
"INI",
"Python",
"Text",
"C",
"C++",
"Shell"
] | 123 | Shell | Roboticsotago/robotics_repo | 6e597f4aac60fda3c5d3e23271205a49fa686bf2 | 02b2bfbe2edbadfac84dfbcc16dcd8192cf9f795 |
refs/heads/master | <file_sep>namespace aqh_daily_report.Domain
{
using SharpArch.Domain.DomainModel;
public class Employee : Entity
{
public virtual string EmployeeNo { get; set; }
public virtual string Password { get; set; }
public virtual Branch Branch { get; set; }
public virtual Permission Permiss... | 0394e9ba04417c48b08b0c237cdc08ef80ed463f | [
"C#"
] | 25 | C# | vincentzh/aqh_daily_report | 83f351478d89efcfa5df871b1e23e39e720ae89a | 6b6204be8eba49462e1eb3773dc7f9eb37c58172 |
refs/heads/master | <repo_name>jankney2/js306<file_sep>/script.js
console.log('connected')
const endpoint = 'https://gist.githubusercontent.com/Miserlou/c5cd8364bf9b2420bb29/raw/2bf258763cdddd704f8ffd3ea9a3e81d25e2c6f6/cities.json';
const cities=[]
let input=document.getElementById('input')
fetch(endpoint).then(response=>{
response.jso... | 40ff7299506cb40ce9d22bb349e6477ac051391b | [
"JavaScript"
] | 1 | JavaScript | jankney2/js306 | 49f356ca756b2b9efe03e64088aa7f39255b9ddd | 4f9256424c2ab95d7203a0b82e3e31903dc20cfe |
refs/heads/master | <repo_name>N3Wolf/gesMDL<file_sep>/routes/lacadores.js
const express = require('express');
const router = express.Router();
const passport = require('passport');
const jwt = require('jsonwebtoken');
const config = require('../config/database');
const Lacador = require('../models/lacador');
// List
router.get('/list',... | 954eacb16316a1ee9c008875c64a727a437306df | [
"JavaScript",
"TypeScript"
] | 37 | JavaScript | N3Wolf/gesMDL | a6dc31f7d5580e434319f289faf8cb0cc26d382f | 81c206f4b26a430ebc36539e096fe531c8706a0d |
refs/heads/master | <repo_name>DanielKolesnyk/The-HAM<file_sep>/Step_project_THE_HAM/Java_Script/main.js
$(document).ready(function () {
// -----------------------------------Our services
const $ourServicesButton = $('.our_ser_btn');
const $tabs = $('.our_ser_content div[data-tab]');
$ourServicesButton.on('click', function () {
... | be161285231447f465c06f9b2b6e4bac9a844bc7 | [
"JavaScript"
] | 1 | JavaScript | DanielKolesnyk/The-HAM | 11657b95d24e915dc51e0af5469156854489db37 | 0d4dda3b2d144a709ddc070ca2e46880b25ec92c |
refs/heads/main | <repo_name>DziugasMazulis/ToDO-List-REST-API<file_sep>/TO-DO_List/Models/ToDoTaskRequest.cs
using System.ComponentModel.DataAnnotations;
namespace TO_DO_List.Models.Dto
{
public class ToDoTaskRequest
{
[Required]
public string Title { get; set; }
public bool IsCompleted { get; set; }
... | 92897fe3adedc6ae04ea35d780538ddf6be5613e | [
"C#"
] | 24 | C# | DziugasMazulis/ToDO-List-REST-API | 582ca093a2f8a60b33d86ae43d151b8ceca75217 | 03651afbf9e7e439a9dcf9922fc83082feab057f |
refs/heads/master | <repo_name>leong985664/yeqingkong-api<file_sep>/controllers/contactController.js
// Return a list of all the contact
exports.list = function(req, res) {
var data = require('../data/contact.json');
res.json(data);
};
<file_sep>/controllers/conferencesController.js
// Return a list of all the conference experienc... | 2f0dcb433ec33dfb9475f2dcc0c39a53e4c7d743 | [
"JavaScript"
] | 7 | JavaScript | leong985664/yeqingkong-api | 8353a6d0ae437e987ea8823b2ffd7ce8a5b83757 | 88ce7ebee87779bcb5db18ca1e75533c88231610 |
refs/heads/master | <file_sep>var mongoose = require('./database');
var FuneralHome = require('../models/funeralHome');
var funeralHomes = [
{
"name": "<NAME>",
"street": "401 West Channel Islands Blvd. ",
"city": "Oxnard",
"county": "Ventura County ",
"state": "California",
"zip": 93033,
"phone": "(805) 487-4911",... | c4c67d7ccd762bb3f30289e62bdc05568d11c90e | [
"JavaScript"
] | 3 | JavaScript | agonzalez27/marigold-back-end | 6412c84ded5640b1845016367d1342e2b69624bb | 66a21dc29a7fe0e3bbd9a8ccf1505efd9f8dd118 |
refs/heads/master | <repo_name>ThanhPhat1080/react-spring-lightbox<file_sep>/src/components/ImageStage/components/Image/index.js
import React, { useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import { useSpring, animated, to, config } from '@react-spring/web';
import { useGesture } from 'react-use-gesture';
import {... | f8ef7e514a7404e6259de20d4aebf788a7778a87 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ThanhPhat1080/react-spring-lightbox | 92dffa34a6e902cd8e1b89cafc93af6b78c95d80 | dc6b26419d8fc8b1be335c5ac6d4f6fd68a4d69f |
refs/heads/master | <file_sep>Description
===========
A simple program to run an arbitrary application within a container and terminate the application when any signal is received from Docker.
The following signals will be sent to the app until it terminates:
* the signal received from Docker,
* SIGTERM
* SIGKILL
Each signal is delayed... | 4153b6a413e4684b02603911004407694993e091 | [
"Markdown",
"Go",
"Makefile"
] | 3 | Markdown | boxofrox/docker-run-app | d64ce01698f288fcda9321884ac441fc15d07742 | 62bcff82c2a6a9a626dcad553bc0e248ebaed5e2 |
refs/heads/master | <repo_name>kiquetal/kotlin-coursera-course<file_sep>/mastermind.kt
package mastermind
data class Evaluation(val rightPosition: Int, val wrongPosition: Int)
fun evaluateGuess(secret: String, guess: String): Evaluation {
if (secret.equals(guess))
return Evaluation(4, 0);
var idx = 0;
var right = 0... | 4097317dae620870cd4609580842fbde3b982b2b | [
"Kotlin"
] | 9 | Kotlin | kiquetal/kotlin-coursera-course | 04d43313977ea1e9ed64681c0d2ec5f110874c08 | ca11f5d42866f36199e06cb4d697840bff91b2a4 |
refs/heads/main | <file_sep>#!/data/data/com.termux/files/usr/bin/bash
# Hmei7
clear
blue='\e[0;34'
cyan='\e[0;36m'
green='\e[0;34m'
okegreen='\033[92m'
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
yellow='\e[1;33m'
###################################################
# CTRL C
#################################################... | 29b69468e5ab460aca127edb79bc99245c18cc44 | [
"Shell"
] | 1 | Shell | ramdanRm19/fanny | b0d46cbb8e428c1a058d74e1429ca2c61807effd | f49754b07e6413e1829b1bbe8b5dfbca7152a421 |
refs/heads/master | <repo_name>tales42/AS_TP2<file_sep>/src/Exception/ApostadorRegistadoException.java
package Exception;
/**
* Created by luismp on 11/11/2018.
*/
public class ApostadorRegistadoException extends Exception {
String email;
public ApostadorRegistadoException(String email){
this.email = email;
}
... | ee5d52348c8e4885b6f2c28a05dcfdc1d562f99f | [
"Markdown",
"Java"
] | 12 | Java | tales42/AS_TP2 | 74ead8193de48eb071006241fddb15a00aa8fade | b9f9326c08c52126c5ff1d7aa9d183ac36e2f912 |
refs/heads/master | <file_sep>using System;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;
namespace IntroToMEF
{
/// <summary>
/// Tutorial : Developing Modular Applications with MEF
/// URL : https://blogs.msmvps.com/bsonnino/2013/08/31/developi... | 74113e84a9d85da9a724c47221de804eb470b42c | [
"C#"
] | 4 | C# | goose-za/IntroToMEF | 4d080b3f8996c60a79916cfebf927adbd410d07a | 7a8473925a9744194d5640cb87842f0fb34d2aba |
refs/heads/master | <file_sep>package com.hqyj.dinner.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
/**
* <p> 分页<p>
*
* @Author : long
* @Date : 2020-10-26 14:24
**/
@Data
public class Page {
//页码
// @Transient
@TableField(exist = false)
private Integer page;
//每页显示的行数
// ... | 4eab261a82f543536b54ed97b60b0712cd4ff003 | [
"Java"
] | 18 | Java | Mirror-song/dinner | 3b951e6f2d493ec4f3ce006021296688c04f0d36 | fa64fcf6dc6df57ee5a337365a1ca8c6d1d289ab |
refs/heads/master | <repo_name>tivonY/Demo<file_sep>/test/src/main/java/com/tivon/server/aop4/TestMain4.java
package com.tivon.server.aop4;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.tivon.server.aop2.IUserDao;
public class TestMai... | 7615d384e76a0cd5982f3b263f068fba0c2eedb6 | [
"Java"
] | 10 | Java | tivonY/Demo | b049d050809aa2d66312352fbe2b1199a13ef191 | 3131e0169a10c2c192ac5ba243da9009b6918aab |
refs/heads/master | <repo_name>wagmarcel/oisp-sdk-go<file_sep>/cmd/test_api.go
package main
import (
"fmt"
"os"
"github.com/oisp-sdk-go/pkg/oispapi"
)
func main() {
username := os.Getenv("OISP_USERNAME")
password := os.Getenv("OISP_PASSWORD")
url := os.Getenv("OISP_URL")
api, err := oispapi.NewOispAPIFromUser(username, passwor... | 89398cf03aa2738f4323373f0dba48c5c6c3831b | [
"Go"
] | 4 | Go | wagmarcel/oisp-sdk-go | bd8de961654a90e65421ad5a0524fc949333f123 | 8a864ddc4849bcbc5f397f31730de8f7b03113dd |
refs/heads/main | <file_sep>N = input()
sizeN = len(N)
minval = int(N) - 9*sizeN if int(N) - 9*sizeN >= 0 else 0
maxval = int(N) + 1
for num in range(minval, maxval):
listNum = list(map(int, str(num)))
if int(N) == num + sum(listNum):
print(num)
break
elif int(N) == num:
print(0)<file_sep>N = i... | f670f54ad0a412c0985cb2d8dfcab461fd829e95 | [
"Python"
] | 9 | Python | kwang4372/ProblemSolving | 4d0a42cb545759a627bf295c64799dfa39092ad7 | b4b763ad9e51ba8981535fa8d7e155af6c188ab4 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class TagsService {
private tags = [
'All',
'Web',
'Database',
'API',
'Fullstack',
'DevOps',
'Operating Systems',
'Embedded Systems',
'Machine Learning',
'Game Development',
... | 1538d3241dbf53d47e1b8628d84314f3db0632df | [
"TypeScript",
"Dockerfile"
] | 15 | TypeScript | EVogel1999/hackhub-client | 5e961eda1bea2d859aa1e48505d9fe8c1f1d52a0 | f7500b7297456febecc4331da7f572f976959fd9 |
refs/heads/working | <file_sep>// generated on <%= date %> using <%= name %> <%= version %>
const gulp = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const browserSync = require('browser-sync').create();
const del = require('del');
const inlineCss = require('gulp-inline-css');
const $ = gulpLoadPlugins();
const r... | 3723068195b0339891706295c28f878dd182c90d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | jeffreysbrother/generator-ninthlink-email | 85b21cb7c2cf12e403a87da029392f85b2760656 | f16307edb60cb80814b5a55eda689f9132cef267 |
refs/heads/master | <repo_name>jserranochen/Asignacion-1-2led<file_sep>/Tarea 1/Tarea 1/main.c
/*
* Tarea 1.c
*
* Created: 06/11/2020 1:06:47 p. m.
* Author : Josue
*/
#define F_CPU 1000000UL
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRB |= (1<<PORTB4);
DDRB |= (1<<PORTB6);
DDRA &= ~(1<<PO... | df2ea6c4af94efe128f9414e75024f7d026cf3d0 | [
"C"
] | 1 | C | jserranochen/Asignacion-1-2led | a2fbc84dcbfc8feb06a864286ac8a317be339404 | a7fd63ef6449a0e81d645b6d4165eb4e6064117c |
refs/heads/master | <file_sep>package edu.javacourse.register.business;
// класс, исполняющий бизнес-логику
// Вызывается классом MarriageController, вызывает MarriageDao
import edu.javacourse.register.dao.MarriageDao;
import edu.javacourse.register.dao.PersonDao;
import edu.javacourse.register.domain.MarriageCertificate;
import edu.jav... | bf43bc81fd3b72eaac7b8e5298b1fe3be24325d6 | [
"Java"
] | 5 | Java | cisleithania/register-office | 727c3f54d22c13153a5f6d2b406344038cf6bebd | d124f7eb36d1695a741a1ea5386570407d9ed58a |
refs/heads/main | <repo_name>pedroantonioresendefogaca/DesafioGoDev<file_sep>/run.py
from pessoa import Pessoa
from espacos import Espacos
from salas import Salas
pessoa = Pessoa()
espacos = Espacos()
salas = Salas()
while True:
try:
interface = int(input('!!!DESAFIO GODEV!!!\nInsira a operação que gostaria de realizar\n1 ... | 2a5c3641c7a57768caa9433e4c758c6cd2e5987e | [
"Markdown",
"Python"
] | 5 | Python | pedroantonioresendefogaca/DesafioGoDev | 105d6077f91523cb1e21cfeda9df91bf316d24c7 | cfb2cc1f02062762e505092ffab03e913c5f2775 |
refs/heads/master | <file_sep>##Affordable Phone Purchase
* Write a program to calculate the total price of your phone purchase. You will keep purchasing phones (hint: loop!) until you run out of money in your bank account. You'll also buy accessories for each phone as long as your purchase amount is below your mental spending threshold.... | 74f8300d3e390ffda2ca88596880e4fce8a6fd51 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | amyhliao/JS-practice | 84a3d102bc4a7273e50600037f18e3a1bf975d2a | 62cd60f38bd306b1970cc0aa34fd6918acd086fc |
refs/heads/master | <repo_name>tusharuiit/2013_2014_VirtualPhysics<file_sep>/README.md
# 2013_2014_VirtualPhysics
I solved programming assignments in object-oriented, declarative language Modelica and applied it for computer simulation. I
modelled electrical and mechanical systems to model a car. I used extensive modeling libraries. I c... | d05f7a7a9438b1cdaacdcff52964d8ca7a80f413 | [
"Markdown",
"Python"
] | 2 | Markdown | tusharuiit/2013_2014_VirtualPhysics | f7eb78ac3fdc80a1e86ca5afe19645eae88cd47d | c8c0e86a81d78cecebae8ca8c44474710c3b2b15 |
refs/heads/master | <file_sep>import facebook
USER_TOKEN = "<KEY>"
APP_ID = ""
APP_SECRET = "<KEY>"
graph = facebook.GraphAPI(access_token=USER_TOKEN, version="3.0")
print(graph)
graph.put_object(parent_object='597998914309186', connection_name='feed', message='Hello, world')<file_sep><script src="https://cdnjs.cloudflare.com/ajax/libs... | 251421ff96d2932ef07e756b89fb87f2dcf5feed | [
"JavaScript",
"Python"
] | 2 | Python | saisani/InstantTweet | 6e822540b50b35019b5534fa3c9742e7260df789 | 8fa75adaa86d4fa42f6b248115cbe8b81998af33 |
refs/heads/master | <file_sep><?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once 'vendor/autoload.php';
//require_once 'src/InstagramScraper.php';
use InstagramScraper\Instagram;
//const MAIN_URL = "https://www.instagram.com",
//LOGIN_URL = "https://www.instagram.com/accounts/login/ajax/";
////echo 'Hello </b... | 51b2ccf7511cb1b4427b13e6d5412f759d91001d | [
"PHP"
] | 2 | PHP | perminder-klair/instagram-php-scraper | b1ae4f9ea06266e64a1be81a1b188212dc254ef9 | 9973c42e7228e90d8d6de85dde8b3c59bddefb7b |
refs/heads/master | <file_sep>package controller.page;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import common.ActorUtil;
import facade.actor.ArticleFacadeActor;
import facade.message.ArticleFacadeFindAllRequest;
import facade.message.ArticleFacadeFindAllResponse;
import java.util.concurrent.CompletionStage;
import javax... | 57f673f81fb82d362aa7500748c82abbf8a8ac35 | [
"Markdown",
"Java",
"TypeScript",
"INI"
] | 23 | Java | yakky-hub/notes | 4859b31d59be152d52394ee7b004503c1191bf5b | 11961465d352375356920f84c0d2d4f722029326 |
refs/heads/master | <file_sep># Cambridge_Email
Email pdfs to all Cambridge students.
<file_sep>import yagmail
import openpyxl
'''import datetime
x = datetime.datetime.now()
log = x.strftime('%d')+x.strftime('%m')+x.strftime('%Y')+'.txt'
open(log, 'w+')
import PyPDF2
pdf_reader = PyPDF2.PdfFileReader(pdf_file)
max_page = pdf_rea... | 61d7b137509aef762e7b0113ffa5ea8c7347134b | [
"Markdown",
"Python"
] | 2 | Markdown | timpsch/Cambridge_Email | 4449e1e9d1da77f860b6bd9c476e15afb26348f7 | d8b19ec64b5b2a9e380edf107eb4e687be6a5a5f |
refs/heads/master | <repo_name>YoumingZheng/Animal-Shelter_JAVA-Project_NetBeans<file_sep>/FinalProject/FinalProject/src/userinterface/VolunteerWorkArea/AssignJPanel.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template ... | ae696524b0757a3515d02d57d4c48f5c6f9630f6 | [
"Markdown",
"Java"
] | 17 | Java | YoumingZheng/Animal-Shelter_JAVA-Project_NetBeans | b452c69c327922e55f99c879116ca77c5f748dbf | 926b6d6c79f0ffd2c2c6268f11dee2eda4cc9bda |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VehicleSpawner : MonoBehaviour
{
public GameObject vehiclePrefab;
public Transform vehicleContains;
public int vehiclesToSpawn;
public Coroutine cor;
void Start()
{
cor = StartCoro... | f4d08e7b7f12b010a1a23435546ec55d3242a590 | [
"C#"
] | 3 | C# | NurYilmaz34/TrafficAI | dcc47906823d9f5cf1fade4a42b0a05cfbf13cf1 | f1ba08fa18329bfb1dfbee0cf65a27d65d24ffef |
refs/heads/main | <repo_name>jesuscardenascastro/Practica01Grupo08<file_sep>/selectionSortppc/SelectionSortPlusPlus.cpp
// heapSortV2.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina ahí.
//
// heapSort.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina... | cea7c75cea9e9c5dbe0f18d5255f9a8abedab642 | [
"Python",
"C++"
] | 2 | C++ | jesuscardenascastro/Practica01Grupo08 | 86208ce1f907572a85485031049e506dde33948e | f96d10c389a1653c8af77748b6c390c6c925e25f |
refs/heads/master | <file_sep>Rails.application.routes.draw do
devise_for :users
root to: 'pages#home'
resources :users, only: [ :show, :index ]
post 'users/:id/friendships', to: 'friendships#create', as: :user_friendships_create
resources :challenges, only: [ :new, :create, :index, :show ] do
resources :challenge_users, onl... | 2a0aaa4ff2a62b64be3a79803ea7fa49c000d9d6 | [
"Ruby"
] | 16 | Ruby | sebstrfra/my2022 | 5a3eae2913ad291ca61ce52f9f8e63ab032513b8 | 4216067a162716ea434aac7f1e1c1da69976959b |
refs/heads/master | <repo_name>jiahao0428/hadoop-spark-cluster<file_sep>/bootstrap.sql
CREATE DATABASE metastore;
USE metastore;
SOURCE /usr/local/hive/scripts/metastore/upgrade/mysql/hive-schema-0.14.0.mysql.sql;
CREATE USER 'hiveuser'@'%' IDENTIFIED BY 'hivepassword';
GRANT all on *.* to 'hiveuser'@localhost identified by 'hive<PASSWORD... | ba2521b84ddf53108436ca85aa305dc897482f96 | [
"Markdown",
"SQL",
"Dockerfile"
] | 3 | SQL | jiahao0428/hadoop-spark-cluster | 990f53794a4c69a75372c8319a6f047ec70ff63b | a73ab45923164f00530a190fe553c14a9fdcadbd |
refs/heads/main | <repo_name>meinert/pythonprojecttemplate<file_sep>/mypackage/mymodule.py
from datetime import datetime, timedelta
# Firebase guide
# https://morioh.com/p/a593f973aff0
class MyClass():
def __init__(self, input):
self.input = input
# set Write or replace data to a defined path, like messages/users/<us... | 9cdc0145a28a953ef62fbb24e04ac0216f387b6b | [
"Markdown",
"Python"
] | 7 | Python | meinert/pythonprojecttemplate | c368b2d3de2f64afdcf9eb79c9d982d9b037c711 | 8417aac44d81f5c1f994f5613ce7b184620b7665 |
refs/heads/master | <repo_name>click2tman/slmdinc.org<file_sep>/docroot/modules/custom/ocms_accessibility/src/Form/AccessibilityConfigForm.php
<?php
namespace Drupal\ocms_accessibility\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\C... | 3acc6180ba185f86774ea4ff56244080450d7e26 | [
"JavaScript",
"Text",
"PHP"
] | 63 | PHP | click2tman/slmdinc.org | ad2f70a03a3509c9d9ecb584b7453a7f88e003ff | ffc494395521d494e0189f072b916bf430ea6274 |
refs/heads/master | <file_sep>const validator = require('node-validator')
const UserSchema = require('../models/user.js')
/**
* User
* @Class
* {Object} app - express context
*/
class User {
constructor (app, connect) {
this.app = app
this.UserSchema = connect.model('User', UserSchema)
this.create()
this.delete()
... | 273b3de8d0dbeb92cbc0da2fbf4e43420ed25968 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | xzen/api-2020-v2 | fffc3428d78fefea9e0a0d6c177de206b6529051 | bd27773fa1712bb71c021596b8720bab75378fd3 |
refs/heads/master | <file_sep>'''
Check status of flight arriving at Zurich Airport. Sounds a beep if status changes.
'''
from selenium import webdriver
from selenium.webdriver.common.by import By
# from selenium.webdriver.support.ui import WebDriverWait
# from selenium.webdriver.support import expected_conditions as EC
import time
import... | 0c2d054bb41bb4d00ceb2500f725b81688dc0fd8 | [
"Python"
] | 1 | Python | kratzlos/flight-arrival-checker | 7ff3e2a5659a7eeb1c0f00ee7d50522a5ee74bbb | 67bd52e3a5ae0f3cccc11a3d474d2e4399cc6f77 |
refs/heads/master | <repo_name>chandanitschool/PremTest<file_sep>/src/main/java/com/tcs/com/JsondataobjApplication.java
package com.tcs.com;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterx... | f41b0e90b619969e22a47dd576e5294b4325d747 | [
"Java"
] | 1 | Java | chandanitschool/PremTest | e4e7e9a0a82263c80d783ffdb0f35c85f0a4e805 | 7eba8274ef26fc086dfb931e9bf21b06c7059b9f |
refs/heads/master | <repo_name>dcfreema/CSE337project<file_sep>/src/main.go
package main
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"html/template"
"net/http"
"os"
"strconv"
"strings"
"time"
_ "github.com/lib/pq"
)
var templates *template.Template
var databaseConnection DatabaseConnection
var database *sql.DB
ty... | 2ec93b36f2e74dfe7998429f1ba4fb59bd486856 | [
"Markdown",
"JavaScript",
"Go"
] | 3 | Go | dcfreema/CSE337project | bd494289ff14d3f6e7d5ad620e48ef651246b372 | 3906da2315d24bfc30417e4529aa6ad8b3f0ba37 |
refs/heads/main | <file_sep><?php
session_start();
include_once "config.php";
$fname = mysqli_real_escape_string($conn, $_POST['fname']);
$lname = mysqli_real_escape_string($conn, $_POST['lname']);
$email = mysqli_real_escape_string($conn, $_POST['email']);
$password = mysqli_real_escape_string($conn, $_POST['pas... | f8a81a60437b9f77ec172bc8b2ce62d2e30a2f31 | [
"PHP"
] | 1 | PHP | phunguyen58/ChatAppRealtime-JS-PHP-MySQL | 1598248c16318070cef514c2222ea7e60a7e1fb6 | a5ffe589ba1edac3ff5c5e572653e07984deb406 |
refs/heads/master | <repo_name>qiaokang92/linux-desert<file_sep>/.bashrc
# quick navigation
export p4tutorials="~/p4-workspace/tutorials/P4D2_2018_East/exercises"
alias go2p4tutorials="cd $p4tutorials"
export hotcloud18="~/p4-workspace/Poise/HotCloud-2018/p4"
alias go2hotcloud18="cd $hotcloud18"
# commond commands
if [[ `uname` == 'Linu... | 82f6deb0c6a67224bdfad29ce9f7d70c6fb80e62 | [
"Markdown",
"Shell"
] | 3 | Shell | qiaokang92/linux-desert | 54222fbd423b40ebfd93e7d336c2a253b2f2b7c5 | de3954d671d34ad8ab14807b9b3f2ecab213c537 |
refs/heads/master | <file_sep>/*!
* # Gremp
*
* `gremp` is a utility for searching for a string pattern in a file.
*/
use std::{
fs,
env,
error::Error,
};
pub struct Config {
pub pattern: String,
pub filename: String,
pub case_sensitive: bool,
}
impl Config {
pub fn new(
mut args: impl Iterator<... | e748e50acb9b90d628b2ef82caf2693d3ce8a8b9 | [
"Markdown",
"Rust",
"TOML"
] | 3 | Rust | crispinkoech/gremp | 0ee4466c638966a9be8458e4c1e2921f994f0af5 | e6df004bd4d87114676228a811d82e7ca92bf532 |
refs/heads/master | <repo_name>baicaiking0422/369A3<file_sep>/ext2_mkdir.c
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
#include "ext2.h"
#include "ext2_helper.h"
unsigned char *disk;
int main(int ar... | 4b7a87a0ec8e5c340c55a912f8d33986b4ab3831 | [
"C",
"Makefile"
] | 10 | C | baicaiking0422/369A3 | a33bce9711771433aa3be8046adb889c6435a21d | d07ef40496cb902ee643c6b954545a70837d334d |
refs/heads/master | <file_sep>import java.util.Random;
public enum BaseColor {
Red,
Green,
Black,
Orange,
White,
Purple,
Haze,
Nutella,
Banana,
Ice,
Mat,
XYZ,
Space,
A41,
B56,
C8585,
D90,
Zwart,
... | b9d259808497a322a149d06e913e4e460bbd89ce | [
"Markdown",
"Java"
] | 3 | Java | atapazvant/StripedLock | 84e19ced09ed7f5c00308eaf84163dbe63d49fd6 | 59676edcd235a019a1dc01d15b03ba726921118b |
refs/heads/master | <repo_name>andychen199/Student-management-system<file_sep>/src/attendance/dao/TeachDao.java
package attendance.dao;
//任职记录DAO,给管理员看的
import java.sql.*;
import javax.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import attendance.bean.Course;
import attendance.bean.Teach;
import at... | c3a16de05d8f6d277d0b49bad80cdf09eeacdb38 | [
"Java"
] | 38 | Java | andychen199/Student-management-system | 1ed6057e8630dd6ac859a0564e3191e94f14e264 | 2564f59beacfa2cdfcfe51bc5227dfee08245fa6 |
refs/heads/master | <repo_name>NakajiTatsuya/task<file_sep>/Detail.js
// https://api.github.com/users/ユーザー名/repos で一覧を取得
import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import Loader from './components/Loader'; // load用のmodal
import {
StyleSheet,
Text,
View,
Image,
ScrollView
} from 'react... | 9377fbffaa0c0775edd6c6a8fcc6a91a027177a9 | [
"JavaScript"
] | 1 | JavaScript | NakajiTatsuya/task | ea84eb9f7cb6bef3b00944ed3d2f02e929dc2cdf | 00274f531e1b10221c5015fc62a8aeb2a98268d8 |
refs/heads/master | <file_sep>#pragma once
// changeName 对话框
class changeName : public CDialogEx
{
DECLARE_DYNAMIC(changeName)
public:
changeName(CWnd* pParent = NULL); // 标准构造函数
virtual ~changeName();
// 对话框数据
enum { IDD = IDD_DIALOG2 };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_M... | 8b9b0af656027c8efd97458a28e9f1c277f68b78 | [
"C++"
] | 7 | C++ | 9crk/zsy | 4c1c5fa2865b4a11da55b2b47d3b574da366c0b4 | 96b6e0ef57729b32bba2b825786ddbaea88a8a87 |
refs/heads/master | <file_sep>import React from 'react';
import './styles.css';
function Footer() {
return (
<footer className="mt-5 py-3" id="footer">
<div className="container">
<div className="row justify-content-center mb-2">
<div className="col-auto">
<ul className=... | 5da341a8503e95da001075cb6f4e7faf5977464c | [
"JavaScript"
] | 2 | JavaScript | storey17/React-Portfolio | fb9b1f16a7c97a34d6743625ee55bafcfa2a8406 | baa8d1ee840f2a15edcc0cc8491675587178aab9 |
refs/heads/master | <file_sep>import numpy as np
gps_x = np.loadtxt('./config/log/Graph1.txt',delimiter=',',dtype='Float64',skiprows=1)[:,1]
acc_x = np.loadtxt('./config/log/Graph2.txt',delimiter=',',dtype='Float64',skiprows=1)[:,1]
gps_x_std = np.std(gps_x)
print(f'GPS X Std: {gps_x_std}')
acc_x_std = np.std(acc_x)
print(f'Acceleromete... | 0f74760db9842fc34216478f6cbdaeff999252e8 | [
"Python"
] | 1 | Python | Rish619/FCND-Estimation-CPP | a1ed69b47c223e04897820e7b012f6e08421ff3d | ab38f584f41df4efed0db45ab0291e0e341f9ab1 |
refs/heads/master | <repo_name>acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean<file_sep>/test/examples_test/04_module_test/04_module_tests.cpp
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "bank_account.h"
#include "checking_account.h"
using... | caee2abd1516a5f4efc864590ca4a22ee9e123fb | [
"Markdown",
"C",
"C++"
] | 21 | C++ | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | e4f96cac465751eaf800fc20862fae47d21f5dfe |
refs/heads/master | <file_sep>import cv2
import numpy
import glob
from tkinter import *
from tkinter import filedialog
from tkinter import ttk
def generalFormula():
Fi = 1
for i in range(0, len(arrayImg)):
Ii = numpy.array(arrayImg[i],dtype=numpy.uint8)
Fi = alpha*(Fi-1)+((1-alpha)*Ii)
cv2.imwrite("r... | 8bba2e2f4fe3e9d29e281da1807b0fe5895210fe | [
"Python"
] | 1 | Python | WilliamsDJGarcia/IA-PI | f27abf15a6a66b99fad4f935652356c12eef4aef | 28c1096efe1d507a2567816a40f483f1d9c32806 |
refs/heads/master | <repo_name>NHVZG/java_back_end_learning<file_sep>/java_basic/Effective_Java/test.java
public class test {
public static void main(String[] args) {
long startTime = System.currentTimeMillis();
for(int i = 0; i < 1000000; i++) {
// String s = new String("how"); // 11ms
String s = "how"; //4... | f50531c9955afab0aed1f80c7004b32b4d390267 | [
"Java"
] | 1 | Java | NHVZG/java_back_end_learning | cc360aaf63338e39b498ce120a18382af6a4825e | 023cd3607386ea4e684e4320f5c6522ba5d78b41 |
refs/heads/master | <repo_name>JJCinAZ/goaoc2020<file_sep>/day2/data.go
package main
var input = []string{
"8-11 l: qllllqllklhlvtl",
"1-3 m: wmmmmmttm",
"2-4 p: pgppp",
"11-12 n: nnndnnnnnnnn",
"17-19 q: qprqdcgrqrqmmhtqqvr",
"16-17 k: nphkpzqswcltkkbkk",
"6-9 c: rvcvlcjcbhxs",
"18-20 v: hbjhmrtwzfqfvhzjjvcv",
"5-9 z: jzzhztttt... | b03e27d74cef69aa2f0a14e9bcda78dd8a0e4116 | [
"Markdown",
"Go"
] | 16 | Go | JJCinAZ/goaoc2020 | 30c52ff9dd053c4fc7e45564306f60f769679148 | 063184ebd86dd773ad2bd7cce76e38bbdb9da115 |
refs/heads/master | <repo_name>MiUishadow/magnum-integration<file_sep>/package/ci/travis-desktop.sh
#!/bin/bash
set -ev
# Corrade
git clone --depth 1 git://github.com/mosra/corrade.git
cd corrade
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_INSTALL_RPATH=$HOME/deps/lib \
-DCMAKE_BUILD_TYPE=Re... | 4a52734c68893a3cad939ddc527dd06010f2112b | [
"Shell"
] | 1 | Shell | MiUishadow/magnum-integration | 2d154fae602e013f7fddf0232a034dfc680d8556 | 07ebf980e50a6a22db942f2cc5cdeb37a0b95221 |
refs/heads/master | <repo_name>cazwazacz/thermostat<file_sep>/public/src/Thermostat.js
var SETTINGS = {
initialTemp: 20,
step: 1,
min: 10,
PSMax: 25,
max: 32,
lowUsage: 18,
mediumUsage: 25
}
function Thermostat (settings = SETTINGS) {
this.settings = settings;
this._temp = this.settings.initialTemp;
this._isPowerSavin... | f56971e1b189e805286d7496a5604a532c64cbff | [
"JavaScript"
] | 2 | JavaScript | cazwazacz/thermostat | 8a8fe8fc684176f3ad82eb2c6c1a9049ed92c999 | 727551c8f520d0083e89a7cd14c8f643a5c2a7ae |
refs/heads/master | <file_sep>package com.gearcalc.entities;
import lombok.ToString;
import javax.persistence.*;
@Entity
@ToString
public class Wheel {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private int id;
@Column(name = "width")
private double width;
@Column(name =... | 729ecb070cf3e88b85d06c2b394fb172b358dfc8 | [
"Java"
] | 11 | Java | Inaimad/gear-ratio-calculator | 8825efcf1e49adb35ed95309d400b1ef4ef7447e | 3c921ba3e04384a760fd48350e3d37e63435328b |
refs/heads/master | <file_sep>//Stopping a programme from crashing.
using System;
class TryIt
{
public static void Main()
{
//dataType array, arrayName, =new dataType array of 5.
int[] mikesArray = new int[5];
try //start of error testing.
{
//loops ctr 10x
for (int ctr=0; ctr<10; ctr++)
{
//array... | 4a83884dee8b440fe5aed75fdf67ddb115cbac02 | [
"Markdown",
"C#"
] | 2 | C# | m2lawrence/C-Sharp-TryCatch-Errors-Block | 7350ebb00d9aae014bb0053361a447e84e3b69e2 | f11c472b95333f3025d932cfa77e770572d91cd4 |
refs/heads/master | <repo_name>fredThem/rails-mister-cocktail<file_sep>/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.c... | 951fc08c8dc07c2d9bbb24ae56ccb9fbcc818765 | [
"Ruby"
] | 3 | Ruby | fredThem/rails-mister-cocktail | d7295e1fe449ee7fff61f68dd8bd7110d3b604e9 | e7a098aa9f3712e99aaca5cd041e755b2c5aa777 |
refs/heads/master | <repo_name>carlosjgg22/LoginUsuario<file_sep>/backend/src/main/java/com/neoris/modelo/Usuario.java
package com.neoris.modelo;
public class Usuario {
private int idUsuario;
private String usuario;
private String password;
private String email;
private int privilegio;
public Usuario(int idUsuario, String usuario... | 92936360b3f803db95ea2698e99d49552311a3a4 | [
"Java"
] | 1 | Java | carlosjgg22/LoginUsuario | e4304e89f71521104ca6f83626351ee3cb5726eb | 713aa1857f48ad9d0bf28496c34d5e810402f859 |
refs/heads/master | <repo_name>sunpig/sunpig-mt-to-wp<file_sep>/copy-entry-keywords.sql
/*
The quickreviews blog (mt_blog_id=12, wp blog id = 4) used an entry-keywords plugin for storing
key-value data for an entry. In WP, this data is stored in the wp_postmeta table.
There are only three keys: imdb, amazon, and image
*/
insert into wp_... | faa34fd70752f8879e829eb8b323edc09c019c91 | [
"Markdown",
"SQL"
] | 8 | SQL | sunpig/sunpig-mt-to-wp | 3f8fd9454dd66974c5e2ad8bce2c3dac45126dfc | e17661e0fd798c10b60da7e87d3f98691325d232 |
refs/heads/master | <repo_name>hzy2017/myeclipse<file_sep>/src/com/test/userServlet.java
package com.test;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletConfig;
import javax.s... | af346275cf9911ccd234969426ed7d247393e03a | [
"Markdown",
"Java",
"JavaScript"
] | 6 | Java | hzy2017/myeclipse | e514948f1e48f3ec0345aa156e350069c4159d90 | 828bdb96b559844a1f57fbe862a62b18bedc4a2f |
refs/heads/master | <file_sep>// ==UserScript==
// @name EnglishMe sounds
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://app.englishme.cz/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var ctrlD... | c418331c81fa0ee2d20c00e71a0bc0ac08360d1f | [
"JavaScript"
] | 1 | JavaScript | jgresula/tampermonkey-scripts | baf11c244bbcf2893668ede9382b74d2e09f9c95 | ead755643f264259f6dc587a956411fab46890a9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.