branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>rloyola/dotfiles<file_sep>/dotfiles/zshrc
#Variables de ambiente
export TERM="xterm-256color"
export EDITOR=vim
# ZSH Vi Mode
bindkey -v
# ZSH History
setopt extended_history
setopt inc_append_history
setopt share_history
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_expire_dups_first
set... | e41541008c6ad8d956716f507ab4afbb51c7088c | [
"Shell"
] | 1 | Shell | rloyola/dotfiles | fbaa6f017f588077a894e22288111a4c6c2073d6 | ca0cb20caf9d38fb927454838617647543aa6f7a |
refs/heads/master | <file_sep>const DRAWING_MODE_MANUAL_A = "DRAWING_MODE_MANUAL_A",
DRAWING_MODE_MANUAL_B = "DRAWING_MODE_MANUAL_B",
DRAWING_MODE_AUTO_A = "DRAWING_MODE_AUTO_A",
DRAWING_MODE_EDIT = "DRAWING_MODE_EDIT";
const CONNECTION_MODE_INNER = "CONNECTION_MODE_INNER",
CONNECTION_MODE_OUTER = "CONNECTION_MODE_OUTER";... | 298b8825487e261b771045fcdb32f76159f5488d | [
"JavaScript",
"Python",
"Markdown"
] | 13 | JavaScript | EndzeitBegins/pin-and-thread-art | fa73f407f440ba98fcb019441d3ec5a8ea9a2604 | 113bc5faa9434219f4ea66d5f8d67c9886a295bb |
refs/heads/master | <repo_name>BioMediaLab/Goodbye-PHP<file_sep>/schema/schema.js
const graphql = require("graphql");
const _ = require("lodash");
const {
GraphQLObjectType,
GraphQLString,
GraphQLSchema,
GraphQLID,
GraphQLInt,
GraphQLList
} = graphql;
//dummy data
var books = [
{ name: "The Book of Matthew", genre: "History... | df7e879504ba2c0ee5f75ae1b77a7679681e6f77 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | BioMediaLab/Goodbye-PHP | 2385670eefd9da0c31933b0ba0a2293d3760c0f6 | a3201f26d8f4562d908e3e9e860d58bd6ebe9729 |
refs/heads/master | <file_sep>realpython
==========
all my learning files
<file_sep>import os
from bottle import route, run, template
index_html = '''My first web app! by {{ author}}'''
@route('/anything')
def something (anything=''):
return template(index_html, author=anything)
@route('/')
def index():
return template(index_html,... | b797970b84ef9f7894c452ad9abc0e47c07d9ec9 | [
"Markdown",
"Python"
] | 2 | Markdown | willyhakim/realpython | 48ef7bb109e2c6ac89e410481164e01f83608137 | 9998a2b5a2cd6e5aaadd43c43fcd353dd9b5484a |
refs/heads/master | <file_sep>/*
<NAME>
Árvore binária de busca
https://www.urionlinejudge.com.br/judge/pt/problems/view/1195
*/
#include <stdio.h>
#include <stdlib.h>
typedef struct Nodes
{
int info;
struct Nodes *leftNode ;
struct Nodes *rightNode;
} Node;
Node* createTree(int rootValue, Node* inputLeftNode, Node* input... | 3298497f083936fab8c684a6fe1a0feab849799b | [
"C"
] | 1 | C | vhazin/algoritmos-2018-2-exercicio-05-arvore-binaria-de-busca-Arthurcrs | d8639fbc2a484ec521e30cb3978869c4b037f887 | 55e992726b1b22bde85e751ffe8c8b4b203d9d9b |
refs/heads/main | <repo_name>ironman3921/snail-game<file_sep>/sketch.js
var snail, snail_img;
var tomato, tomato_img;
var ground, ground_img;
function preload(){
ground_img = loadImage("ground.png");
}
function setup(){
createCanvas(600,200);
ground = createSprite(600,180);
ground.addImage("ground1",ground.png);
}
function draw... | 4a857d21763db46648948bba2c4c969a75ce1c66 | [
"JavaScript"
] | 1 | JavaScript | ironman3921/snail-game | 57feab18773917045ca219e3225afd2fc5796138 | 260499497d7312bdb44acc7e9e10c2fdd9957e24 |
refs/heads/master | <file_sep>//
// Created by <NAME> on 17.05.2017.
// Copyright © 2017 Droids on Roids. All rights reserved.
//
public struct Snap {
let url: String
let fileName: String
}
<file_sep>//
// Created by <NAME> on 17.05.2017.
// Copyright © 2017 Droids on Roids. All rights reserved.
//
import UIKit
extension UI... | 7909875ae3ae208d05b4654c658806f2ed4b1e96 | [
"Swift"
] | 3 | Swift | KordianKL/SnapLikePreview | b2beb10091042bd85b21f6800c002e6aeffb0536 | 480aa1f4570ad6fba7d14fa7ac41fa53f7ee585a |
refs/heads/master | <file_sep>/*
* File: Graphics.cpp
* Author: juan.garibotti
*
* Created on 24 de febrero de 2014, 14:36
*/
#include "Graphics.hpp"
#include <cassert>
#include <fstream>
#include "GLT/Model.hpp"
#include "TGA/tga.hpp"
#include "TLS/Tools.hpp"
#include "Movement.hpp"
#include <iostream>
namespace
{
constexpr au... | 89eab8818d717b1ec7805beb3325e2af01386daa | [
"Makefile",
"C++"
] | 26 | C++ | jpgaribotti/pong | 6c8b099a62c157be7d513f55f3f1a9022eeaedd5 | 57373c804e80ea32f5bca5af08499ef7dcb15025 |
refs/heads/master | <repo_name>gautam-07/Code-Chef<file_sep>/README.md
<img src="./code-chef.png">
<br><br>
<pre>Level: 0 - 1000</pre>
<table>
<tr>
<th align="center" colspan=2>Arrays</th>
<tr>
<tr>
<th align="center">S.no</th>
<th align="center">Question List</th>
<tr>
<tr>
<td align="center">1</td>
<td a... | 6ed99983ca4bbe44c991a6b0658b350d82802269 | [
"Markdown",
"C++"
] | 12 | Markdown | gautam-07/Code-Chef | 272512213be9915dcffb523e540e3c06ba3d84db | a8c05f009ac4d09fb84a6965c205f1d846e55573 |
refs/heads/master | <file_sep># VideoChat27
This is a basic Video Chat app with one on one video chat feature.
I have used Nodejs for backend and ReactJs for frontend. Along with this I have used Simple-peer from WebRTC for peer to peer communication.
The Demo for this is deployed at https://kdvideochat.netlify.app/
Some of the basic ... | 1685af5c55b6a79f0c994e4241052fd9e73b73a5 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | karthikedar/VideoChat27 | 6528c662aec5b3f36129514e852f76f07ce7ffd9 | 3a27768b734870f40f87c65ad80b8fa92d260057 |
refs/heads/master | <file_sep>{_id:1,name:"Álava",region_id:17},
{_id:2,name:"Albacete",region_id:7},
{_id:3,name:"Alicante",region_id:18},
{_id:4,name:"Almería",region_id:1},
{_id:5,name:"Ávila",region_id:6},
{_id:6,name:"Badajoz",region_id:10},
{_id:7,name:"<NAME>",region_id:4},
{_id:8,name:"Barcelona",region_id:8},
{_id:9,name:"Burgos"... | 7109faa8082a3feeb27e485a76713fdfd101506f | [
"SQL",
"Ruby",
"JavaScript",
"Markdown",
"INI",
"Gradle",
"Java"
] | 20 | JavaScript | capitanh/mikasaweb | 6d0b5ba5c2f9d923e81e329ffc7ef5eee56756c2 | 6807b0a433c46773784eb636a186036064b826c3 |
refs/heads/master | <file_sep># CoinControl
Everyone, who mine on P2Pool or solo, or use many faucets, sometimes hit a wall: how to send many coins in one transaction and not pay huge fee?
I hit this problem, when I sent few hundred transactions to exchange and kill them wallet for week :P
Because most of altcoins not have coin control ... | 4dc0bfcc7ceabdc7b69d7681b6ee4666cfd5ed77 | [
"Markdown",
"C#"
] | 2 | Markdown | Rav3nPL/CoinControl | 70290d7ac8079c3f16018d0b4846d280ecb26046 | dcef543d9569a95f29494d17fc182535d7db77b9 |
refs/heads/master | <repo_name>gxyau/handwai<file_sep>/generate_weight.py
#!/usr/bin/env python
import json
def gen_weight(input_file="model/train.txt", output_file="model/weight.json"):
class_total = {}
weight = {}
token_count = 0
with open(input_file, 'r') as f:
lines = f.readlines()
for line in li... | 4e437fa0094b88ecb9dfe23b2ecf45b705c5b9ec | [
"Python"
] | 4 | Python | gxyau/handwai | 64e6e57d6e1e6f96a5c74e4998c8aa42399f9166 | 52365012b843ef938f7150eddd99c811a6b4fed1 |
refs/heads/master | <file_sep>var test = require('tape');
var MishearPhrase = require('../mishear-phrase');
var callNextTick = require('call-next-tick');
var WordPOS = require('wordpos');
var wordpos = new WordPOS();
function shouldMishearWord(word, done) {
wordpos.getPOS(word, testPartOfSpeech);
function testPartOfSpeech(posReport)... | d663b08ab77ddab5ee947465ccfc2e4dc56f34fc | [
"JavaScript",
"Makefile",
"Markdown"
] | 4 | JavaScript | jimkang/mishear-phrase | 2f1f25b52102f21a2a5797fb321c55acde5ee7bc | 9dfa56d6f2ead650684aefa6a4b59fb8c12fb988 |
refs/heads/main | <file_sep>'''
Author: <NAME>
Date : 26/05/2021
About : Creating a Conway's game of life to be run in terminal with ASCII characters
Resources: Drawing a grid in pygame
||||||||||||||||||||||||
https://stackoverflow.com/questions/33963361/how-to-make-a-grid-in-pygame
http://programarcadegames.co... | a33f86f4a43bb9d70db0d9d0f2225b2d36c4f0fd | [
"Markdown",
"Python"
] | 4 | Python | ArieSH3/Conway-s-Game-Of-Life | fec7024e9388003e43f716477e06f3b9d298156c | 78b15988fc1b62390be9d4cb6ef78e77f1d9fbdf |
refs/heads/master | <repo_name>SuphieLiang/ssm_shiro_demo<file_sep>/src/java/com/yz/demo/domain/YaoPin.java
package com.yz.demo.domain;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
public class YaoPin {
private int id;
private String title;
private String sell_point;
private int price;
pri... | 6829a76a72e1d13e53da18d267771f44139778a9 | [
"Java",
"INI"
] | 8 | Java | SuphieLiang/ssm_shiro_demo | fe40d188f5ba361ca6a3adfdcef68c35bf9c2254 | 936f9bb6d3413676339da2967a2f45cc730a843f |
refs/heads/master | <file_sep># algorithms
Implementation of various algorithms in Python.
<file_sep>from collections import OrderedDict
from graphs import DirectedGraph, Edge, Node
class GraphSearch(DirectedGraph):
def bfs(self, src, dest):
level = {src: None}
parent = {src: None}
counter = 1
queue... | a8379ce3a4b0aeaac19b4a21f98b36599446359d | [
"Markdown",
"Python"
] | 12 | Markdown | shubham3121/algorithms | 476d13ce6550f3cc500e161e2dba23bde0d576b0 | 4536769733fa9975088a96155c91832121bff0dc |
refs/heads/master | <repo_name>asiellb/suspicious-serverless<file_sep>/src/services/__test__/url_redirection.spec.ts
import * as chai from "chai";
import * as chaiAsPromised from "chai-as-promised";
import * as nock from "nock";
chai.use(chaiAsPromised);
// chai.should();
const expect = chai.expect;
import { RedirectionResolver } from "... | 8b72b776b616b85e64bd5713cc16918011b0025d | [
"Markdown",
"TypeScript",
"JavaScript"
] | 7 | TypeScript | asiellb/suspicious-serverless | 4b272fadb52f4f5c7f794f190ce1e2d37246283a | d14d50bb6315eb85021d99fa73b00e4191aece4d |
refs/heads/master | <file_sep># Autodeploy PHP script
Create deploy-config.json in your git project.
Example deploy-config.json:
```json
{
"DEPLOY_USER":"user",
"DEPLOY_SERVER":"localhost",
"DEPLOY_DIR":"/var/www/any/",
"REMOTE_GROUP":"apache",
"REMOTE_PERM":"0777",
"DELETE_FILES":fal... | d7bd27bb9d0964a36b4ba5a685b47e37693aa1a4 | [
"Markdown",
"PHP"
] | 3 | Markdown | Sanya1991/php-deploy-script | 42ce771435beaec7d4809e1cf73cba11769a625e | 0290768a61bf12d9999536f9f9835414e03fbed7 |
refs/heads/master | <file_sep>nette-project
=============
For install:
```bash
git clone https://github.com/shinigamicorei7/nette-project
cd nette-project
composer install
touch app/config/config.local.neon
```
### config.local.neon
```coffeescript
database:
dsn: 'mysql:host=127.0.0.1;dbname=test'
user: root
password: <PASSWORD>
opt... | 668f58698f8e388c45a0dd6fab44264073b98ee4 | [
"Markdown",
"PHP"
] | 2 | Markdown | shinigamicorei7/nette-project | 45ab4cdc6a044c30348e714aefcddc5bd297ada5 | 228d1952d1d3d6c3435c4402cde09a56f1ca24d6 |
refs/heads/master | <file_sep>package com.ntrlab.gpb.common.api.responses;
import lombok.Getter;
import lombok.Setter;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import javax.ws.rs.core.Response;
import java.util.ArrayList;
import java.util.List;
/**
* Created by gakopyan on 2015-07-06
*/
public class EmptyR... | d3cad6d59c8df7fe83a31e0c71c79b0877050545 | [
"Java"
] | 1 | Java | Dueto/gpb | acb8c6aa220573b727c79e9aec66c814a42b4133 | 9bd35aae5b67d98e1508594d3607c076170b1f27 |
refs/heads/master | <repo_name>atharv1033/WifiZone-Server<file_sep>/WifiZone-Server.py
from http.server import HTTPServer as BaseHTTPServer, SimpleHTTPRequestHandler
from zeroconf import IPVersion, ServiceInfo, Zeroconf
from tkinter import filedialog
from tkinter import *
from tkinter import messagebox
from time import sleep
import ... | 7c2954ffe4b72d744a4d179bf1edfe564537a52d | [
"Markdown",
"Python"
] | 2 | Python | atharv1033/WifiZone-Server | a0e253c9db40c708ac28a5fcd1099173c48ae457 | ffb39b1659dd8a5c2e65b46856a02b2858ec4ac6 |
refs/heads/master | <repo_name>bubbafett1936/Hangman<file_sep>/src/hangman/Hangman.java
package hangman;
import java.util.ArrayList;
import java.util.Scanner;
class Hangman
{
public static void main(String[] args)
{
// To hold the answer, guess, misses, and Scanner object
Scanner kbd = new Scanner(System.in);
String answer = ... | ce7c9ea4128cf305fdfce6463df8ddf2f91e1235 | [
"Java"
] | 1 | Java | bubbafett1936/Hangman | db2528a2a5731c293599a2c9cefb5048290ea319 | 0912cf78908c04f9961f55bbb0496d1a823227e7 |
refs/heads/main | <repo_name>ivoreynoldsmoore/golcw<file_sep>/benchmark_test.go
package main
import (
"fmt"
"testing"
"uk.ac.bris.cs/gameoflife/gol"
)
// BenchmarkGol will be used to create benchmark graphs for the game of life
// Its code is based on the TestGol function, but it does not validate the output
// This is because tha... | 24fe3faef346382616ccc30d4d75e8386c21466c | [
"Go"
] | 12 | Go | ivoreynoldsmoore/golcw | 62d14b47ad55b8d1e37ae72df68d27536c658182 | af19f70a6d1d1abfac5121cecfd1a25a16d05642 |
refs/heads/master | <file_sep>package com.codingwithme.moderndashboard
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.TextView
import android.widget.Toast
import androidx.co... | 9cc621dc8ba901845a7f449e8cd9a849616ebd98 | [
"Kotlin"
] | 5 | Kotlin | lslesecure/ClockControl-app | 456b920b56e18e8bc70fe7a2abc46f15e81348df | 92598dfa5c614d07824cc6e20ad095381c272cfb |
refs/heads/main | <repo_name>JarrodTarico/pythonplayground<file_sep>/test_imports.py
# whenever you import a file, python runs the code in that file, thats
# why __name__ variable will be the the name of the file and not __main__
# now if python is running a file directly __name__ == '__main__'
# This way you can run code you only want ... | 6563e78b2ce54a711599851732cd25ceb27244f7 | [
"Python"
] | 2 | Python | JarrodTarico/pythonplayground | c0d9927374e457dcc16a6129e9239e93a52ce797 | 57cecad640d4e7469702480253f63da9fb14685b |
refs/heads/main | <file_sep>// nothing here yet ¯\_(ツ)_/¯ | 3cb19edfcbe6a9580650dc0f5377f2abfbc547f2 | [
"JavaScript"
] | 1 | JavaScript | Sirbananathe6th/sirbananathe6th.github.io | 8405ff32b2b57669141e92de973858d7a78b7275 | 24ff9ca9d01dc3ca8cae4ea047f99b96cba63028 |
refs/heads/master | <repo_name>ivanmakarychev/tcp-chat-server<file_sep>/tcp-chat-server.c
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MSG 1
#define STOP 0
#define BUF_SIZE 1024
typedef stru... | 593863201227470b156d201b2760fad94364a02b | [
"Markdown",
"C"
] | 2 | C | ivanmakarychev/tcp-chat-server | 134f09ba25e76cc72242f4918bc0ca5b03085449 | a35b157f85563ab3db2a73af3569b6c6f8392c3f |
refs/heads/master | <file_sep>#define GLEW_STATIC
#include <gl/glew.h>
#include <glfw/glfw3.h>
#include <stdio.h>
#include <stdlib.h>
GLFWwindow* initilizeWindowContext() {
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
// specify opengl 3.2
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENG... | 948529d186d7c8b779c855c9b813e527803f9c0a | [
"Markdown",
"JavaScript",
"C++"
] | 6 | C++ | YaroBear/opengl | 7353cc1036336c9903c128af2f8d8466a9556920 | 1147bc393eec5fd965d223fcebaa92576dee291e |
refs/heads/master | <repo_name>vsrz/cs421-2<file_sep>/passwd/pwd.c
// passwd.c
// By <NAME>
// Programming Asssignment Extra Credit
// 12/10/2008 FALL 08
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
#include <string.h>
#include <iostream>
#include <vector>
#define MIN_STR_SIZE 3
#define MAX_STR_SIZE 128
static void pwd_e... | 710e1c719a1bf1aba865df1022c2e1f838396bcb | [
"C"
] | 3 | C | vsrz/cs421-2 | e9382c7a3ec6e470ce7e7b67032b02bf818c8ef9 | 2c6cc6f647d0ea021c3711631a839d21f4219717 |
refs/heads/master | <file_sep>"use strict";
const azure = require("@pulumi/azure");
const pulumi = require("@pulumi/pulumi");
class LB extends pulumi.ComponentResource {
constructor(lbname,resourceGroupName, location,path, opts)
{
super("az-pulumi-js-loadbalancer:LB",lbname, resourceGroupName,location, {}, opts);
... | 892c302df7cfd21b2834977ae497a5cf9df50425 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | himsh/pulumi-POC | d7513a10aad69fdfc31a1c97c42bc49038583c12 | 00636b94549590b03bc75067a27c5ff8fd2646fd |
refs/heads/master | <repo_name>trosar/ccalexaEndpoint<file_sep>/index.js
module.change_code = 1;
'use strict';
var alexa = require( 'alexa-app' );
var app = new alexa.app( 'test-skill' );
app.launch( function( request, response ) {
response.say( 'Welcome to your test skill' ).reprompt( 'Way to go. You got it to run. Bad ass.' ).should... | 0495dd97dfab409546ef691e2af5db857e4065c2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | trosar/ccalexaEndpoint | a9d52eb5f0ada75cf9efe59158f302a0507059b3 | 23040025bdc13c6eb0114e8e965dd555bc6c24fe |
refs/heads/master | <repo_name>benhawker/todo_challenge<file_sep>/js/toDoListController.js
toDoList.controller("toDoListController", [function() {
}]); | b508391d91908943745ad12b8fa56edcc472c3eb | [
"JavaScript"
] | 1 | JavaScript | benhawker/todo_challenge | d41d9d8ae451c94418fe8e841cc937deb5dda840 | 6c3a44f2cbb51e87b22ca6f8ccba41d1f1abae84 |
refs/heads/master | <repo_name>547/SWCommonFramework<file_sep>/SWCommonFramework/SWCommonFramework.podspec
Pod::Spec.new do |s|
s.name = "SWCommonFramework"
s.version = "1.0.3"
s.summary = "项目常用库"
s.homepage = "https://github.com/547/SWCommonFramework"
s.license = 'MIT'
s.author = {... | 4d5213471a124f52efce3dae9d24127a796fb0a8 | [
"Markdown",
"Ruby",
"Swift"
] | 4 | Ruby | 547/SWCommonFramework | 842996c8bacfdccac381199f4b656163d5bc8d4d | 6f58d8ced3b6aff267808a26bb3402ce92f73b42 |
refs/heads/master | <repo_name>willy12262001/TapRippleAnimationView<file_sep>/README.md
# TapRippleAnimationView
Make Ripple Effects when you tap UIView.

## Installation
Just add the following line to your Podfile:
```js
pod 'TapRippleAnimatio... | c1772a39262c2ae357fd5c8e3a8501ccfa7d3764 | [
"Markdown",
"Swift"
] | 3 | Markdown | willy12262001/TapRippleAnimationView | 43c1a444e98fcf4cec4dd6813320fd73734d825f | 53ae5c0d2b8f84b332fa591d4205a263b36a5817 |
refs/heads/master | <file_sep>int led = 3; // the pin that the LED is attached to
int brightness = 0; // how bright the LED is
int lastSensor = 0;
int sensorStart = 0;
int lastBrightness = 0;
const long interval = 10;
unsigned long previousMillis = 0;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
for(int... | f3c445972aab52eace790ab3c4a64448141273ea | [
"C++"
] | 1 | C++ | mrdavidjwatts/IR_Reflectance | 83459a574c6428d95d2941460a0f84c210ac7690 | 644b6185dac896a978c1b806010ebf63656d1a27 |
refs/heads/master | <repo_name>npmcdn-to-unpkg-bot/react_course<file_sep>/static/js/simple_3d_example.js
/**
* Created by codgod on 8/30/16.
*/
// sizes for area
var width = 700;
var height = 600;
var radius_1 = 100;
var radius_2 = 80;
var radius_3 = 50;
var circle_data = [
{ x: width/2, y: height - (radius_1), r: 100, color: "#AD... | 8b5d786f7ce341263d359ee811767cf3fe246f7e | [
"JavaScript"
] | 1 | JavaScript | npmcdn-to-unpkg-bot/react_course | ecba1fad1cd451b3d4a874688180a01feaa5722e | f260b631d0668059749f75cc7a5b629772278d57 |
refs/heads/master | <file_sep># eve-simple-route
A simple route planner module for the game EVE Online.
Reimplementation of https://github.com/fuzzysteve/Eve-Route-Plan
### Installation
`npm install eve-simple-route --save`
### Usage
````
var eve_router = require("eve-simple-route");
console.log(eve_router(30000142, 30002187)); // Ji... | c63a003dd77a1445293b352fb678cd091f2a47ad | [
"Markdown",
"JavaScript"
] | 2 | Markdown | gsumpster/eve-simple-route | 51bde80c59843f9a4497f9c7bac175c497c4b507 | 23ca11f96d6f65211978454956828d2defa4f7a7 |
refs/heads/master | <file_sep>function createChat(server){
root.io = io = require('socket.io').listen(server);
var guestnumber = 1;
var nicknames = {};
var namesUsed = {};
io.sockets.on('connection', function(socket) {
guestnumber += 1;
socket.on('message', function(message) {
io.sockets.emit('sendToAll', message)... | d1940f2f253bf46259bdaa963c03075573c88827 | [
"JavaScript"
] | 4 | JavaScript | NavyAnt24/node.js_chat_app | 0218bdc2e78f09fef78e13450d3e63e4e2a2a212 | 8873b4eba14d19c159ed067b214f304d17d0d99f |
refs/heads/master | <file_sep>require 'test_helper'
class SongTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
test "not valid without title" do
@song = Song.new(title: "", artist: "<NAME>", band_id: 1, active: true)
refute(@song.valid?, "Should not be valid without a title")
end
test "not ... | e2f99f369391a447304938ca2de780bcefce2323 | [
"JavaScript",
"Ruby",
"Markdown"
] | 25 | Ruby | kylelaughlin/band-mngt | 2a6c3525ca9a8e64dd8ecab9146b59145312f78c | 8cc105c2d0d0756432190b76590c212c9fa224dd |
refs/heads/main | <file_sep>import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
public class demo7_relatpath
{
public static vo... | 00b311792988fa717da8304a2dd39d06f53ee98c | [
"Java"
] | 11 | Java | Stepin104341/work_files | 7c8309924308dc2356f9624551524a248194a367 | 9f938ea860809d33ccd704b494b682297ef9cf10 |
refs/heads/master | <file_sep>module.exports = require('./lib/json2memory');<file_sep>/**
* Created by wuqingkai on 17/5/23.
*/
var pomelo = require('pomelo');
var path = require('path');
var fs = require('fs');
var logger = require('pomelo-logger').getLogger("pomelo");
var config = "config/json2memory/config";
var Json2memory = funct... | f7281555f6fcf594162b93c3e3fff0a565a0d5a8 | [
"JavaScript"
] | 2 | JavaScript | luckyqqk/json2memory | 1da28c974510b3b9aeb042c58b6fd0d475d8420f | 7f55f3b062d18c3417cfd45448144f632dc07a0e |
refs/heads/master | <repo_name>Daiki-Kawanuma/MobileFirstSample<file_sep>/MobileFirstSample/ViewModels/MainPageViewModel.cs
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using System;
using System.Collections.Generic;
using System.Linq;
using Reactive.Bindings;
using System.Diagnostics;
using System.Threading.Tasks;
usi... | 19c72387cd60a9f81710eb47e5313b68261c2494 | [
"C#"
] | 7 | C# | Daiki-Kawanuma/MobileFirstSample | 65a8e46daeea36a84d4655f54fa55afc01f4698a | 47792360b856d0c29fbe0174578218105fff2065 |
refs/heads/main | <file_sep>const path = require('path')
const fs = require('fs')
const exec = require('child_process').exec;
const glob = require('glob')
const tempfile = require('tempfile')
function exec_evmone(code_file) {
return new Promise(resolve => {
command = path.normalize("evmone/build/bin/evmone-bench --benchmar... | afd884568b1ce46bd4817185b918cdb055632a41 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jwasinger/evm1024 | 981ad5b9d0cdcf7978681b3d11527262ad043402 | 5550ba6244cbf07a3e52407f0e129f5f4109f06c |
refs/heads/master | <file_sep>// JavaScript Null Checks
// variables to test
var myNull = null;
var myObject = {};
var myStringEmpty = "";
var myStringWhiteSpace = " ";
var myStringHello = "hello";
var myIntZero = 0;
var myIntOne = 1;
var myBoolTrue = true;
var myBoolFalse = false;
var myObject = {};
var myUndefined;
// s... | a6efdc5ecfe1d56f64494ab4d6ddb87cdc83c1ee | [
"JavaScript",
"SQL",
"Markdown"
] | 7 | JavaScript | aaronhoffman/utils | 04f33dfdd84ecf5d46c1e8d9b066dc5fe35f44a3 | 1ed7e6d661b735d2efd3cdffd340cb4b5cf66e6b |
refs/heads/master | <repo_name>brettski/Grack-Mod<file_sep>/minecraft/bcs2/grackmod/GrackSeedsWheat.java
package bcs2.grackmod;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.i... | e9ba7d768629432b3fa04733f9447b9041e7e81f | [
"Markdown",
"Java"
] | 7 | Java | brettski/Grack-Mod | 69d39d6e3460eb3ba0f450ffeeec8c9cd4beb236 | b48143082d7f579566768e5988f9ac67741e12dd |
refs/heads/master | <repo_name>baujathan/pyplay<file_sep>/script002.py
#!/usr/bin/env python
import math
print math.sqrt(16)
print math.pi
<file_sep>/script001.py
#!/usr/bin/env python
############
#Variables
############
x=10
y=2
############
#Comment
############
''' is this
a comment '''
print (x+y)
if x==10:
print "x=10"
date... | bf91c2aec3a9f5d6fe47f6307b15afc25b18a5d7 | [
"Python"
] | 3 | Python | baujathan/pyplay | 3d7ac760838777c004c5412a5bc080ab70b2fc78 | a8fbe2171226e887894d1e711ba6c907cc9928e1 |
refs/heads/main | <repo_name>Teaching-HTL-Leonding/chuck-norris-import-quiz-BastianHaider<file_sep>/ChuckNorrisQuiz/Program.cs
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using System;
using... | e96f817bdbda690fe0f845f060d6bf7621406570 | [
"C#"
] | 1 | C# | Teaching-HTL-Leonding/chuck-norris-import-quiz-BastianHaider | 0d41602973dcda4f1310f533b8f478cf72c18b26 | 272417dfc456b518f2df6353732da6ad631db826 |
refs/heads/master | <file_sep>class String
def to_yuml_me_class
"[#{self}]"
end
def append_char_at_the_beginning_if_not_blank(char)
self.blank? ? '' : "#{char}#{self}"
end
end<file_sep>class Organisation < ActiveRecord::Base
end<file_sep>class UserMailer
#Code here
end<file_sep>class User < ActiveRecord::Base
with_... | 8e69a14ccecf800ebc784f02dff3e4c33fdd5740 | [
"Ruby"
] | 17 | Ruby | jmgarnier/class_diagram_generator | 0b20738a2f777dca43d5873e7ea2e6b00f6ac128 | fb231f311181a7e9962c473d7b93681d8044ce7a |
refs/heads/master | <repo_name>asny23/slack-scripts<file_sep>/devide_emoji.sh
#!/bin/sh
# requirements: sips command
# original file
SOURCE=''
# devided emojis filename will be DEST-n-m.DEST_EXT
DEST=''
DEST_EXT='png'
# size of devided emoji
CELL=128
# devided emojis for slack message
EMOJICODE=''
# for x in [1 129 257 385 513 641 76... | 943afa7f6a14343207f006fa2cd533814a07c64e | [
"Shell"
] | 2 | Shell | asny23/slack-scripts | 3efd14bde326277634e9e64286345c96c48e89c7 | af7fca2de1bff5352b9ede413dbe2db4c2e23113 |
refs/heads/master | <repo_name>KaviyaSriBathrachalam/HTML_to_PDF-jsPDF-JAVaSCRIPT-<file_sep>/src/app/epdf/epdf.component.ts
import { Component, OnInit } from '@angular/core';
import * as jsPDF from 'jspdf';
@Component({
selector: 'app-epdf',
templateUrl: './epdf.component.html',
styleUrls: ['./epdf.component.css']
})
export class E... | 75049da4b9792ccc979c01abef61e0fde9d50539 | [
"TypeScript"
] | 1 | TypeScript | KaviyaSriBathrachalam/HTML_to_PDF-jsPDF-JAVaSCRIPT- | 142f014102719ae7bfd9496e190b6c41b8f3eb84 | b5f5f8b4f369eff053fd55bd4cb19d57bc778a21 |
refs/heads/master | <repo_name>Reggora/reggora-csharp<file_sep>/Reggora.Api/Requests/Lender/Orders/GetSubmissionRequest.cs
using Newtonsoft.Json;
using RestSharp;
namespace Reggora.Api.Requests.Lender.Orders
{
public class GetSubmissionRequest : ReggoraRequest
{
public GetSubmissionRequest(string orderId, uint version, st... | c4b955bea1cc923fd48e23dca28d43065f9e7a99 | [
"Markdown",
"C#"
] | 95 | C# | Reggora/reggora-csharp | a786bf2ed7eb150a7807073fb40018626cedb7d9 | ef1f361c92dca2181f2cbe5c2bfae65ec75d3425 |
refs/heads/master | <repo_name>dreizehnutters/EFBP<file_sep>/simulation/El-Farol-Bar/simulation-worker.js
self.importScripts("../framework/simulation-worker-core.js");
self.importScripts("simulation.js");
if (sim.model.objectTypes) {
sim.model.objectTypes.forEach( function (objT) {
self.importScripts( objT + ".js");
});
}
... | 0ed8e34fd59559129439558eea16e67c391a5748 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | dreizehnutters/EFBP | 8e60c86343297b14b716d80c75205fcf347abbde | b42d3c693e67602b4d5baeccc19257f9b3ec0110 |
refs/heads/main | <repo_name>jamesETsmith/ablog_test.github.io<file_sep>/pyscf_api_docs/pyscf.cc.rst
pyscf.cc package
================
Submodules
----------
pyscf.cc.addons module
----------------------
.. automodule:: pyscf.cc.addons
:members:
:undoc-members:
:show-inheritance:
pyscf.cc.ccd module
-------------------
.. a... | af7031297533203a3b4e14f2462a0d5e15c13536 | [
"HTML",
"reStructuredText",
"Markdown",
"Text",
"Shell"
] | 86 | reStructuredText | jamesETsmith/ablog_test.github.io | aaf48db23ecaf01db1c9f36690ce102b4cdc10c6 | 01d046bd5bc40ec64f23b342a124f817dda74b30 |
refs/heads/master | <file_sep>package edu.temple.spinnercolor;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import static edu.temple.spinnercolor.... | 918695ad2ae84b0222897a2a003d840a90454459 | [
"Java"
] | 2 | Java | Frankiskandar/SpinnerColorPicker | 470102acd7857ba76ee1a0387abb9228479764a8 | 7238b1cbdd7e14937ea7a43b767bedf39204ad00 |
refs/heads/master | <repo_name>akhabali/talend-components<file_sep>/salesforce/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apa... | 974034c288168203eaf2a06a412fa11ce452a5e7 | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Maven POM | akhabali/talend-components | 35ed8cb85c8df50cdeff5381fe64c3347b6f8b41 | c399737195082ad2772e00d0bdd08db18b8a3691 |
refs/heads/master | <file_sep><?php
class Address extends Widget{
public function getData(){
return array("street"=>"123 Washington St","state"=>"CA","city"=>"Sunnyvale");
}
}
?><file_sep><?php
class Widget{
var $request;
function __construct($request){
$this->request= $request;
}
public function getData(){
... | 68c33cdb486814147fa40387ee6643d740c02e05 | [
"Markdown",
"PHP"
] | 9 | PHP | oude3c/stupidMVC | d8d5bcd882837174f750b9245c89b8139c06f0e1 | b362cfa18abeee1ef0a0e43383ffcb05a3007441 |
refs/heads/main | <file_sep>Nt-Injector
Here is my first software that I code in C#.
Hi, I'm Toffelz and this is my first software that I coded in C# on Visual Studio Code Community 2019.
This software honestly is useless, it has no purpose but I will bring updates anyway because it tis a bit
of software that I use to practice what I ... | d8e492a689172e7a9b9a2d5816821a259077c504 | [
"Markdown",
"C#"
] | 2 | Markdown | ToffelzWiiU/Nt-Injector | 7f72b1a3de9d5ae6695f1abf54f32ced58fca232 | 3da9841bd828332ca50450356afa1d0da6c3d6fc |
refs/heads/master | <file_sep>const request = require('request');
const fs = require('fs');
const db = require('./db');
const log = require('./log');
const wake = require('./wake');
const moment = require('moment');
const sharp = require('sharp');
let lastCollectAll = null;
const lastQueryDev = {};
/* расписание для каждого устройства. i... | f8b920907db7341d7b7bf2bf0dd48adf436e1f55 | [
"JavaScript"
] | 3 | JavaScript | sanygus/app-new | 5870ad01f434f32c13da043fed62ea9eb2bee5cf | ba492971989795c73e5584c31f03470cf6174ded |
refs/heads/master | <repo_name>nkrajew/ds_salary_proj<file_sep>/model_building.py
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 24 13:05:05 2020
@author: nkraj
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('eda_data.csv')
# choose relevant columns
df_model = df[['avg_salary', 'Rating', 'T... | aeb9ee0fe34ad4b8232d56588aaf4e9a6f1b0ffa | [
"Markdown",
"Python"
] | 2 | Python | nkrajew/ds_salary_proj | 4385dee685032f60e1ac9f1b563211ce85aa3d22 | eb70ec86dab2974adc9a87c37936bb8efb843d83 |
refs/heads/master | <repo_name>tipu002/imtipu_static_php<file_sep>/index.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Blak | Multi-Purpose HTML5 Template </title>
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="">... | 63ad4a862105fc1345cdf6bf5b66f52f99f41886 | [
"PHP"
] | 1 | PHP | tipu002/imtipu_static_php | 78472f552bd77c460e74a2f26409c5c7aeb9bbb5 | 36398e78235497c6e4a3c563682c0fe5388efdf1 |
refs/heads/master | <repo_name>NikitaG/WikiArticleExtractor<file_sep>/main.py
import bz2
import json
import os
import psycopg2
import time
from collections import namedtuple
def _json_object_hook(d): return namedtuple('X', d.keys())(*d.values())
def json2obj(data): return json.loads(data)
conn = psycopg2.connect(host="localhost",data... | 8cadbe941dfb84d93d64578ec4608d98c9c43a02 | [
"Python"
] | 8 | Python | NikitaG/WikiArticleExtractor | b7fb2d8cce060f04b998c785f9e61d68dabf480e | a2c2faeba0149f54c7b76a9127b1efe2273de4f9 |
refs/heads/master | <file_sep># BOM Digi-Key Plugin
This module contains the and table files for accessing Digi-Key from
[bom_manager](../bom_manager/README.md).
<file_sep># # BOM Manager Digi-Key Plugin
#
# ## License
#
# MIT License
#
# Copyright (c) 2019 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining... | 4a10bb1cdc9534d718362253e211b05c7146e556 | [
"Markdown",
"Python"
] | 2 | Markdown | waynegramlich/bom_digikey_plugin | 6199be26b770b9a0b82aeec5d06af514af3f2f90 | dd29179a0bc0119f26a535493f4de65f83aaf17d |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
struct node {
void *data;
struct node *right;
struct node *left;
};
struct list {
struct node *front;
struct node *back;
};
struct node *create_node(void *x);
struct list create_list();
int is_empty(struct list *l);
void push_front(struct list *l,... | 22a4095b32a2c416bcf9bae8ca8ee7f93f175a4c | [
"C"
] | 1 | C | ian-howell/double-list | bf4e12c6eb79d079f4b67e6d4095b12402594f26 | cad9c052cc0295521eb62c95af143f22e4353f2f |
refs/heads/master | <file_sep>$(function() {
// 注册
(function() {
var $registModal = $('#regist-modal'),
$registSure = $('#regist-sure'),
$registCancel = $('#regist-cancel'),
$toLogin = $('#to-login');
$registModal.ToggleModal($.noop, function() {
$('#username').val('');
$('#phone').val('');
$('#password').val('');
... | ff65cdbee2e7bb3b7bd423525527f535c3bdd566 | [
"JavaScript",
"Java",
"Markdown"
] | 4 | JavaScript | 1791317931/itjpt | 3cd3462c1d7e81fc5e4fa44534d0cd0ee78f2382 | 0b7bc6013071f3dcc02993ef91c5d7091d81524b |
refs/heads/master | <repo_name>nexeh/recipeApp<file_sep>/public/js/controllers/main.js
angular.module('recipeApp.recipe', [])
// inject the Recipe service factory into our controller
.controller('mainController', ['$scope','$http','RecipeService', function($scope, $http, RecipeService) {
$scope.formData = {};
$scope.loading = true;... | 3018f11d7db0f88b2488287f21657b107398cfc6 | [
"JavaScript",
"HTML"
] | 9 | JavaScript | nexeh/recipeApp | cdb9e97a2a2769281e6c1ffa117f21f6d33b2d7a | d36bc5e25bed7e91b414bf56053dbd26d00e0d51 |
refs/heads/master | <file_sep>#ifndef SHOP_H
#define SHOP_H
#include <algorithm>
#include <iostream>
#include <vector>
#include <boost/uuid/uuid.hpp>
#include "character.h"
#include "equipment.h"
struct Customer {
boost::uuids::uuid id;
bool allowed;
};
bool operator==(const Customer& lhs, const Customer& rhs);
class Shop {
... | df90661efc0295911728788d5175e9659249d7c8 | [
"JavaScript",
"CMake",
"C++",
"Markdown"
] | 21 | C++ | mathiasgredal/RPG_Classes | c47a064bfb476ee7f66b098f8c4ff16e201f207d | eb3ba3163f27971bf7b61c1c88399301aa341158 |
refs/heads/master | <repo_name>SIRTTS/hcPortal<file_sep>/src/main/webapp/app/entities/vs-body-temperature/vs-body-temperature-info.component.html
<div class="modal-header">
<h4 class="info-modal-title" id="body_temperature-info" jhiTranslate="hcPortalApp.info.body_temperature">Body Temperature</h4>
</div>
<div class="info-modal">
... | 137c83da39bde95c5276903aa15ca0c7e7fc706a | [
"Java",
"TypeScript",
"HTML"
] | 89 | HTML | SIRTTS/hcPortal | ea6d0f4962619bdc7c06cbde47d8e693deb5ccbb | 98a2f6a7c1834756493a47fa33f3849df21d4283 |
refs/heads/master | <file_sep>package com.lecode.chatranslator;
/*
* Developed by <NAME>
* Rights reserved by lecode
* Dedicated to my Maama - <NAME>.
* She has been great in my live
* I love you Mom
* */
public class OneComment {
public boolean left;
public String comment;
public OneComment(boolean left, String comment) {
s... | 7ddce13f22037ec711ae26ba65bcb2161ba9d323 | [
"Markdown",
"Java"
] | 2 | Java | sseguku/Chat-Translator | 99ad1e20e82b80e81c4af535418ee27a7c914b95 | 05f99cb91c9e43894ccec4780819b9c7695f82fa |
refs/heads/master | <repo_name>yamanayama/tutorial-svelte-style-cssinjs<file_sep>/src/apps/style/Color.js
export default {
BaseColor: '#FFF',
/*メイン色(黒)*/
KeyColor: '#444',
/*サブ色(グレー)*/
SubColor: '#ececec',
/*サブ色(グレーストライプ)*/
SubColorBg: 'if(--common-device == pc, url(/images/common/stripebg.png) repeat left top #ececec,u... | 303b329db10efc6ebeb4a7a2d068754d200f6eca | [
"JavaScript"
] | 2 | JavaScript | yamanayama/tutorial-svelte-style-cssinjs | d166586f57525c12db7ceac71600afc27c306a57 | 65bb7e1b87595b7a43d2f9e6f487a062662a9fee |
refs/heads/master | <repo_name>dilipchand/6<file_sep>/chase-atm-search-test-pack/src/test/java/com/chase/web/qa/utils/BrowserConfig.java
package com.chase.web.qa.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class BrowserConfig extends Properties {
/**
*
*/
private... | 3fcbcbcb0ec08905f97d448a08e5f757e3da872e | [
"Java",
"INI"
] | 9 | Java | dilipchand/6 | 426bc5e2ee69f80477a8dd4d4be2aefcea00de79 | 293b0f06d325b8bc7ec847a4d1d6ec5cac629a39 |
refs/heads/master | <repo_name>kvzakhar/resume<file_sep>/src/main/java/net/simplesoft/resume/component/ImageResizer.java
package net.simplesoft.resume.component;
import java.io.IOException;
import java.nio.file.Path;
import javax.validation.constraints.NotNull;
public interface ImageResizer {
void resize(@NotNull Path sourceImageFile... | 09c35f39ef55bd86f0d56ba9aa81f950d0ce88ba | [
"SQL",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 26 | Java | kvzakhar/resume | f10e71ede194628f676ae2e53ab7f1b8401430d4 | b5a058462811d0ac4374b8f3fe677b89abb814f6 |
refs/heads/master | <file_sep>require "active_support/concern"
require "santas-little-helpers"
module Mongoid
module Slug
extend ActiveSupport::Concern
included do
cattr_accessor :slugged_fields, :slug_name, :slug_builder
end
module ClassMethods
def slug(*fields, &block)
options = fields.extract_o... | 06d287bfc27eedb30a46134da8e5c0d0f155d266 | [
"Ruby"
] | 11 | Ruby | jazen/mongoid-plugins | c42ddb4c7455ec3c6bbb7024e43e7b3312d735a8 | 6d4d6e0997769306e1018cb3e8ca183d4291f858 |
refs/heads/master | <repo_name>Bdegraaf1234/TicTacToe<file_sep>/coordinate.h
class coordinate
{
public:
int x;
int y;
int getX() {return x;};
int getY() {return y;};
};<file_sep>/grid.cpp
#include <iostream>
#include <vector>
#include <string>
#include "grid.h"
using namespace std;
grid::grid()
{
for (int i(0); i < 3... | bad988efe8a67e997d89eacec57a442696fae037 | [
"C++"
] | 5 | C++ | Bdegraaf1234/TicTacToe | d90d97a5aa39d2f45624ea217bdc93eba92aaf31 | c9727913e0178ace1eda417a0b048c4d13af362d |
refs/heads/master | <repo_name>romanpras/InvadersGame<file_sep>/states/option.py
from states.Invaders_Game import *
from utils.font import *
class OptionState(GameState):
def __init__(self, game):
super(OptionState, self).__init__(game)
self.mainMenuState = None
self.backgroundState = None
self.space... | bb5c6dfc10b0cac60d3fcc7796877753814605e2 | [
"Markdown",
"Python"
] | 15 | Python | romanpras/InvadersGame | b5b14c66f761df7b5951ae6e83462fdfe979000e | 0c545be5e3eca7f2b01e0adfd7618136b3f5f02b |
refs/heads/master | <file_sep>from django.db import models
class VoteModel(models.Model):
class Meta:
abstract = True
votes = models.PositiveIntegerField(default=0)
sum_of_rates = models.PositiveIntegerField(default=0)
def upvote(self, rate):
self.votes += 1
self.sum_of_rates += rate
sel... | 6261c8f98c7993f13be4a8cc5c0cd812f54e74ee | [
"Markdown",
"Python"
] | 8 | Python | Emu-Emax/carsDjango | 83d73c20f13225f2dc1959760f8fd92551c1ea19 | 3eb74f07f4f16d4759e97c8477df820268646e5e |
refs/heads/main | <repo_name>Mark-Walen/VueProgramm<file_sep>/src/main.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element.js'
import './assets/font/iconfont.css'
import './assets/css/global.css'
import axios from 'axios'
// 配置请求根路径
axios.default... | 9e2b44ccd43516159917c1de9144e0d179c6f4f9 | [
"JavaScript"
] | 2 | JavaScript | Mark-Walen/VueProgramm | 34f91ea6d77543cc7c8a0464659ad66763f4865f | ea6212f469dc2576806438f9f608e147874e7d28 |
refs/heads/master | <file_sep>
package com.capgemini.ec.gateway.model;
import org.apache.commons.lang.builder.ToStringBuilder;
public class AssignedTo {
private String link;
private String value;
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
... | 1f85f9c75e4260a48fa4fccca3c241c29969fd0f | [
"Java",
"INI"
] | 8 | Java | giriraj1995/VAPOC | 5005c169639a7d7bb45c1cda356f431cbfc6131a | 8ceec05f215b33c50fa7f48516771bef1ec4d93f |
refs/heads/master | <repo_name>gusfrehse/ruby-battleships<file_sep>/board.rb
class Board
@@ships = { :A => [ ['A', '+', '+'] ],
:B => [ ['~', 'B', '~'],
['+', '+', '+'] ],
:C => [ ['+'],
['+'],
['C'] ] }
def initialize( width, height )
r... | 94cd76f1acddcd27d08ddf999822b9c69bbd8b49 | [
"Ruby"
] | 2 | Ruby | gusfrehse/ruby-battleships | e242cb5ed8cf2d95c703998d4ac9fd59e06edde3 | e4737ab0d9cfdcf31309d5cf1b9e4291bfd88e5c |
refs/heads/master | <file_sep>Random Quote Generator Single Page
----------------------------------
A [Pen](https://codepen.io/firstCodePen/pen/pVePwb) by [<NAME>](https://codepen.io/firstCodePen) on [CodePen](https://codepen.io).
[License](https://codepen.io/firstCodePen/pen/pVePwb/license).<file_sep>
$(document).ready(function(){
g... | 51f810dd04f8527b3a5d3ffedaae6cf89bf54442 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | ntang58/Random-quote-generator | ba805bdf2820a344a3e4efe9e456d056473bd0f4 | 7f8c64878ebd3f0dd342d32c73438249ded9bf95 |
refs/heads/main | <repo_name>Felipe-Affonso047/ICS3U-Unit3-02-CPP<file_sep>/guessingGame.cpp
// Copyright (c) 2021 <NAME> All rights reserved
//
// Created by: <NAME>
// Created on: April 2021
// This program is a guessing number game
#include <iostream>
#include <cmath>
#include <iomanip>
int main() {
float number;
std::cou... | 4d2cdcc1c84cb4c637de8aa52fcf9a3c4ca3d112 | [
"C++"
] | 1 | C++ | Felipe-Affonso047/ICS3U-Unit3-02-CPP | c9d0eeb5b9d7473049d717bb8b1ff68d0163b7ad | 92890b7844979124c831a6d60b31ebdb9611c3e5 |
refs/heads/master | <file_sep>import pygame
import os
import sys
import copy
from pygame.locals import *
def get_file(file):
main_dir = os.path.split(os.path.abspath(__file__))[0]
data_dir = os.path.join(main_dir, "data")
return os.path.join(data_dir, file)
class Engine:
def __init__(self, width, height, g, caption = "NOPE"):
pyga... | 0c8e2c78ff49f9c156150f72023ff37834ba5b89 | [
"Python"
] | 7 | Python | strlght/glow | eb503be68bfe971b34b6e0ba858a67adc10d562f | 77551a30faebc3805cbfb465b760aefed39735cb |
refs/heads/main | <repo_name>Garald-48rus/SqlGuide<file_sep>/saleproduct.h
#ifndef SALEPRODUCT_H
#define SALEPRODUCT_H
#include <QWidget>
#include <QVector>
#include <QString>
#include <QMessageBox>
namespace Ui {
class SaleProduct;
}
class SaleProduct : public QWidget
{
Q_OBJECT
public:
explicit SaleProduct(QWidget *parent ... | 774d4026e08c230188a1257c4e2fae964ab38e9c | [
"C++"
] | 11 | C++ | Garald-48rus/SqlGuide | 9d1db8d28b9a844554dc281336eaaf2e19cb70a4 | e73f07bdeb2988d9ddffa9f85d8e8e5f2dba43bf |
refs/heads/master | <repo_name>suyridan/ConnectBD<file_sep>/README.md
# ConnectBD
Clase para conexión de base de datos en PDO con funciones de consulta y ejecución de SQL.
<file_sep>/connectDB.php
<?php
class connectDB {
/**
* Clase para conexion a base de datos por medio del metodo PDO
*
* @param string $database b... | ae4effae9f1d70f2b5ae3d107f720e212c5ffd35 | [
"Markdown",
"PHP"
] | 2 | Markdown | suyridan/ConnectBD | f3e02e6cdb7bee962e5e9b7245f062bb20241bec | 42a2911fc4aa3782f002dea72b16dd85c7360e59 |
refs/heads/master | <file_sep>package eu.iescities.pilot.rovereto.roveretoexplorer;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Configuration;
import android.content.res.Resources.NotFoundExcepti... | fc482b0696c873a7cf0cbb3502e88e17a75a4dd5 | [
"Markdown",
"Java"
] | 21 | Java | smartcommunitylab/smartcampus.vas.roveretoexplorer.android | 0b19d254f63a2a38a98c6ef6326f4e7d44177486 | 57b7b2167e059a2527f3a00ee8528f862c9f2e80 |
refs/heads/main | <repo_name>HaMa05/QuanLyBanDay<file_sep>/Code/QLBanDay/QLBanDay/FormProduct/fAddProduct.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;
namespace QLB... | 0786e1dded46799e4f36a364a72e28ae9600af8c | [
"C#"
] | 4 | C# | HaMa05/QuanLyBanDay | cb52278f3105aeea71b8245c229bb31f5a2976fe | 82baad1aa3c6811b8980faf309d1e74c539d17a8 |
refs/heads/master | <file_sep><?php
$currentPage = basename($_SERVER['PHP_SELF']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require_once('header.html'); ?>
</head>
<body>
<?php require_once('navbar.php'); ?>
<main role="main">
<div class="container">
<h1 class="heading">... | 2d5eab33385c9b145d1f629b8de08f1e13a099eb | [
"PHP"
] | 10 | PHP | cjqvita/AlohaCake | f7988e73832001dd3d7caff0f65f0146f97ec9ec | 80ff9a919e3337a430e9ffa1f45160e907bcec07 |
refs/heads/master | <repo_name>victorybringer/study<file_sep>/MiniProgram/pages/video/video.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
name:'',
url:'',
image:'',
click1: 'false',
click2: 'false',
text:'',
comment:[],
none:"false",
count:0,
share: 'false'
},
/**
* 生命周期函数--监听页面加载
*/... | df9f0d93b32d8865142c6b51964e2bfdb1a4a52b | [
"JavaScript",
"Java",
"Markdown"
] | 9 | JavaScript | victorybringer/study | a6df59e379491a9a86d975e145afb660e9877f86 | 25a43b35cd12f64aff7556deb74881db5367dce4 |
refs/heads/master | <repo_name>mattheath/ritly<file_sep>/app/models/url.rb
class Url < ActiveRecord::Base
validates_format_of :link, :with => /\A(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,15}(:[0-9]{1,5})?(\/.*)?\z/ix
end
<file_sep>/app/controllers/urls_controller.rb
class UrlsController < ApplicationController
before_act... | d1b9b4f8b34354fc4009e232981ed5f9fe52d33e | [
"Ruby"
] | 2 | Ruby | mattheath/ritly | 0b5bc5ba08f7b5ebd6889d755461e4f5d6c32f38 | 904038731da4d63a4784f58cb68fa12dbb1a5109 |
refs/heads/master | <repo_name>gregheo/XPlatSwiftDemo<file_sep>/README.md
# XPlatSwiftDemo
Cross-platform Swift demo from Indie DevStock 2016
This is the raw "finished project" and related files from my talk "Cross-Platform Swift" at Indie DevStock 2016.
<file_sep>/SessionsJSON.playground/Contents.swift
//: Playground - noun: a place wh... | e47e62d519be66d9821d583395b01eb04a27080c | [
"Markdown",
"Swift"
] | 7 | Markdown | gregheo/XPlatSwiftDemo | a28ad6177413355f3bec6daf23fd3c5f46034e5f | 087ebe9749e6de85b2d07eaf67e90571ce6f71c8 |
refs/heads/master | <repo_name>007xiaochen/news<file_sep>/02 网易新闻/Podfile
source ‘https://github.com/CocoaPods/Specs.git'
pod 'SDWebImage'
pod 'AFNetworking', '~> 3.0.4'
pod 'MJExtension', '~> 3.0.9' | cd82df216176c4bf703d84812c0e22b5e68ce16b | [
"Ruby"
] | 1 | Ruby | 007xiaochen/news | f11b40d62de0bd159aaee9b4c3a65a5af8772b50 | bf5bc7ee7044de26bdec524a71aed913d5644c15 |
refs/heads/master | <file_sep>/**
* functionsUtilService
* @description - Service with util functions used accross the whole application
* @constructor
*/
module app.core.util.functionsUtil {
'use strict';
/**********************************/
/* INTERFACES */
/**********************************/
e... | d7243d1aa069134389674fce22dff23caa7ebcdd | [
"JavaScript",
"TypeScript",
"Text"
] | 17 | TypeScript | sruda/angular-typescript-django-rest | 470cd23f36528f9408a27b39a4e584c42a007ec2 | 5033bfb499ad3014058c83a62d62a03b9d8b840c |
refs/heads/master | <file_sep>#ifndef TEXTURE_H
#define TEXTURE_H
struct texture
{
GLuint texture_id;
}
texture *texture_init(
texture *txt,
const char *fname);
#endif
<file_sep>CC = g++
CFLAGS = -pg -g -Wall -lGL -lGLEW -lSDL2 -lSDL2_image -lm
all: cube.bin 3d_menge_grid_displacements.bin \
menge_sponge.cpp ../si... | 2130126f1c5463faf18f19db801d3559f9cafda4 | [
"Markdown",
"Makefile",
"Python",
"C",
"C++"
] | 62 | C | John-Sharp/gl_demos | 8a17f1236d73b031feabc788b5a6cdc123af68ec | 482ec62e2c16b886e959c1806fcaed0c8781891e |
refs/heads/master | <file_sep>/**
* Created by eloy on 29/11/16.
*/
package factorial_capsa_negra;
/*
* Aquest algorisme no té en compte els valors negatius que demana a l'exercici
* Tampoc permet calcular valors superiors a factorial(12) ja que dóna error, cal
* pensar que s'ha utilitzat un int en lloc de un long.
*/
public class Fact... | 0958bae0ca556d88d02e82c4ec6d9dba2bddc760 | [
"Java"
] | 1 | Java | EloyAlbiach/java-capsa-negra | d1069a64cf2d09c0312a0f90f7446384b647c3f1 | adb979febc81803a7e8eccd9b8bf40e6243f16d4 |
refs/heads/master | <file_sep>package com.example.demo.user;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
public class User {
}
<file_sep>package studentForm;
import java.util.LinkedHashMap;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Ge... | 58816e5f82d1f186675491ce010ef0541dfb20db | [
"Markdown",
"Java",
"SQL",
"INI"
] | 50 | Java | ChiluveruSra1/ctsfsd | 833aa6de3cbd943dcd8f38353a41538738e0d637 | 8580abc6c86d417dbd75538d71709e7acb3ac50b |
refs/heads/master | <file_sep>import React from 'react';
class Articles extends React.Component {
truncate(str, num) {
return str.length > num ? str.slice(0, num) + '...' : str;
}
render() {
const { articles } = this.props;
return (
<div>
<h2 className="text-center mt-4">{this.props.title}</h2>
<d... | 8f2dec7ca0a6b335f088e3496275ef43ae390edf | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Serhii75/react-news-viewer | 65ad0ce64b1525a6c549f9cf9d6133e3f3b3c93f | 9c5465231a15f0ee5dcb631101d8a7bb35b3b110 |
refs/heads/main | <repo_name>Aurelien-Be/Youtube-transcript-auto-generated-included-<file_sep>/Transcription youtube.py
from youtube_transcript_api import YouTubeTranscriptApi
from youtube_transcript_api.formatters import TextFormatter
import os
ytlink = input('YT id:')
#yt id is what after https:// www.youtube.com/watch?v=
... | 012ac140a9800ead8905ceced947b6e315f621e4 | [
"Python"
] | 1 | Python | Aurelien-Be/Youtube-transcript-auto-generated-included- | bec339d2fe69ebb37204346484f78cf4ab03b4c6 | be2f1471c81bb7e36400d42c65a3589cba836584 |
refs/heads/master | <file_sep>-- // create tabela table
-- Migration SQL that makes the change goes here.
create table tabela (
id integer not null,
nome varchar(30)
);
-- //@UNDO
-- SQL to undo the change goes here.
drop table tabela;
| 6727767c4f6c827ecc4ef5f800a8df09fcb8490a | [
"SQL"
] | 1 | SQL | mbgarcia/migrations | 82c43515c3026e39a218d138851400615f8fc088 | ab9182b6365b4435f7376a5987171771bab9db92 |
refs/heads/master | <file_sep>#include "Game.h"
#include <iostream>
#include <string>
#include <vector>
#include <SFML/Graphics.hpp>
#include <cmath>
struct ball {
sf::Sprite sprite;
sf::Vector2f v;
};
int main()
{
Game game(sf::Vector2u(800, 600));
game.start_game();
}
<file_sep>#pragma once
#include <vector>
... | 52ae2219febd21e5d4830bf135d823570169a223 | [
"Markdown",
"C++"
] | 8 | C++ | malmakova-na/alien_game_cpp | d0a3b5bcf323c8435348ab78965cce51a987cbe5 | ce41f2e4f252b3c1390bae149e53536dc3d12c05 |
refs/heads/master | <file_sep>"""
MKDocs-Autodoc
This plugin implemented autodoc in MKDocs, just like autodoc in Sphinx.
Doc strings should follow Google Python Style, otherwise will not well parsed.
"""
import io
import os
from mkdocs import utils
from mkdocs.config import load_config
from mkdocs.commands import build
from mkdocs.comman... | 8a588180b044a357f84082c82ae59ab29406e731 | [
"Markdown",
"Python"
] | 5 | Python | watson8544/mkdocs-autodoc | 8a5031f84fe7bf713f365c7c74b7c22e94f54968 | 1be6238d6a80412c355e72c3ef7a080a60c96a22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.