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>/// \file ExG4ActionInitialization01.hh
/// \brief Definition of the ExG4ActionInitialization01 class
#ifndef ExG4ActionInitialization01_h
#define ExG4ActionInitialization01_h 1
#include "G4VUserActionInitialization.hh"
/// Обязательный класс, который должен быть объявлен в проекте Geant4
/// Имя класса м... | 3bc2e95a172d99b5d0d90434e27793461ae2565e | [
"C++"
] | 9 | C++ | Vlad-Orlov/Basic-Simulation | 230232d3b4e0fcc7b9bcee6cc2e76b5bf7550e46 | 5561e1a5a81835cb3c0719a1d5fc9d1ea0f9f499 |
refs/heads/master | <file_sep>#include "vmcsolver.h"
#include "lib.h"
#include "WaveFunction.h"
#include "hamiltonian.h"
#include "slaterdeterminant.h"
#include "correlation.h"
#include "minimise.h"
#include <armadillo>
#include <fstream>
#include <iostream>
#include <mpi.h>
using namespace arma;
using namespace std;
VMCSolver::VMCSo... | 87b376a2fb1cbe80a0e5357695155efbc5b15c09 | [
"C",
"C++"
] | 27 | C++ | alborg/helium | 0f054f1f05500d7b51cb1a3e5b70e3bfebb0cfc1 | e050b454709482ed76a2478b6ced181f0a5c387b |
refs/heads/master | <file_sep>kubeabc
=======
A toolkit for k8s developers
## Usage
### To begin with
Some convenient commands are in `bin` directory. So you should add that directory to `$PATH` at first.
```bash
export PATH="$PWD/bin:$PATH"
```
### For CLI
- kube
- kubectx (extended of [ahmetb/kubectx](https://github.com/ahmetb/ku... | bc9e7fe7c05c01f7fb86e29095f201a8188ddfe0 | [
"Markdown",
"Go",
"Shell"
] | 12 | Markdown | b4b4r07/kubeabc | 0c1b5c56d6b5fdc3db2ce6a6ea360b4437c1ca1a | a06709629df6ee2c8e9a203d15633403e32c15b5 |
refs/heads/master | <repo_name>panagiotis3600/WeatherStationRpi<file_sep>/animationtest.py
import time
import datetime as dt
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import dht11
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
# Create figur for plotting
fig = plt.figure()
ax = fig.... | feb5d0ec7252328d2a412e291d0de5e0d0acdcef | [
"Python"
] | 1 | Python | panagiotis3600/WeatherStationRpi | b9f942dfa7d1ef4fe7c98d8283270091554317d1 | 32bd3cd69278a63fdfd16cc5e4388160edcdc955 |
refs/heads/master | <file_sep>from flask import Flask,make_response, jsonify,request
from flask_cors import CORS
from result_lookup import Results
from send_sms import SendSms
import os
app = Flask(__name__)
CORS(app,expose_headers=["Content-Disposition"])
@app.route('/')
def root():
CallSid=request.args.get('CallSid')
CallFrom=re... | ed13a8d88bccdf88a83118e38b2a14da87b50be1 | [
"Python",
"Text"
] | 5 | Python | cooljaya2016/telecaller | 46628279c821d0dc6d3e9193f26028b282d29033 | 24bddd0c9130e591ea5e4612b21e04ae3292bc77 |
refs/heads/master | <repo_name>aman-tiwari/ciri-term<file_sep>/README.md
Terminal for Wizardhacks.
To start, double click on `start-osx.command` or run in a terminal `./start-osx.command` (or `./node index.js`)
You have to be focused on the **Unity** window to type into the terminal.
The niceness of the colours in the terminal depends ... | a1f08675399bf91df0550878c4aeca0a23321788 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | aman-tiwari/ciri-term | a8692acee40a5f4c9b720ac0bbcb21ef7e516083 | 1ec5d62723361ad51b95e323ef2150ea52ebc126 |
refs/heads/main | <file_sep>package org.inex.Parser;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
import org.inex.Model.Request;
public class ParseRequest {
/**
* Parse the content of the request file
*
* @param pathRequest Path to the file that contain the requests
... | aaa510e1a54c77d200907308cb5c67c16fceaf50 | [
"Markdown",
"Java"
] | 4 | Java | eclair11/inex | 4d1563bd01e4eb15bdb36666e4f59eced949bc37 | cce01fc6b1b4b69afacdac925413c425d0fce20d |
refs/heads/master | <repo_name>Kevinvossen/S02Game<file_sep>/SE2 - S23 - SE2 Game/Entities/Player.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using SE2___S23___SE2_Game.Game;
using System.Windows.Forms;
namespace SE2___S23___SE2_Game.Entitie... | 825d1e121886d1dfa7145d25cea0261d1a47be82 | [
"C#"
] | 5 | C# | Kevinvossen/S02Game | dad282f079ded3b19fd7c6ba21ffcc075427bbc1 | 163d2be24a6e7182f10206399b8953c2be190393 |
refs/heads/master | <repo_name>Vishal-shakaya/channel<file_sep>/chat/urls.py
from django.urls import path
from chat import views
app_name = 'chat'
urlpatterns = [
path('',views.HomeView, name='home'),
path('<str:room_name>/', views.ChatRoom, name='chat_room'),
]
<file_sep>/chat/models.py
from django.db import models
# Create your mode... | 930068dbe899f9aaf7edea4a63642cf7f96fcf24 | [
"Python"
] | 5 | Python | Vishal-shakaya/channel | 8c54afdd4a18a925f31fd445ec8fc4713125adc9 | 01745d201adb6fdad8477c3b4ba5e274499f3b7d |
refs/heads/master | <repo_name>Toxu4/GraphQL-CSharp-Generator<file_sep>/src/cs/Toxu4.GraphQl.Client/GraphQlApiSettings.cs
namespace Toxu4.GraphQl.Client
{
public class GraphQlApiSettings
{
public string Endpoint { get; set; }
}
}
<file_sep>/src/cs/Toxu4.GraphQl.Client/RegistrationExtensions.cs
using System;
using Micro... | ff2f6e92c191266732d75a3d7fd3c780191e3cc3 | [
"Markdown",
"C#"
] | 17 | C# | Toxu4/GraphQL-CSharp-Generator | 7bb42bd2377315ed3ef88a9e41e84e36b159aaa8 | c7d100f63ff79a47fc0e08ad856feb634ec1a888 |
refs/heads/master | <file_sep>print("This is a Tic Tac Toe game.\nPlayer 1 is x, player 2 is o.\nCorrect input looks like: x, y i.e. 1,2, where x is number of column and y is number of row.")
table = [" "]*9
def printtable(table=[]):
print("_______")
print("|{}-{}-{}|".format(table[0], table[1], table[2]))
print("|{... | ecd9ae531b8134d1a631b33973a75ba7fdfd0cd1 | [
"Markdown",
"Python"
] | 2 | Python | bartoszbenna/tictactoe | 1ce88fbb0e3b27e6af8b90affdcb2f2271374a2c | b40570c6e73f12ba091ce2243a00e23892e66961 |
refs/heads/master | <repo_name>salviolorenzo/capstone<file_sep>/frontend/src/Components/Tiles/Calendar.js
import React, { Component } from 'react';
import BigCalendar from 'react-big-calendar';
import moment from 'moment';
import 'react-big-calendar/lib/css/react-big-calendar.css';
import Modal from 'react-modal';
moment.locale('en');
co... | 6e85d6722097a62a010dd06167b8e28460ee7c6e | [
"JavaScript",
"SQL",
"Markdown"
] | 24 | JavaScript | salviolorenzo/capstone | 39e425ced03e45153e48b076d973bbc4c42a4e5f | 4c19cd0167bfaa7bf56b4fde0cffd4817d81605e |
refs/heads/master | <file_sep># CHANGELOG.md
## (0.3.2)
Features:
- Fixes in injection process. Custom scope is processing properly now
## (0.3.1)
Features:
- Added FInject class which allow for inline injections if you really need it. In this case variants of same type has to be selected manually
- Added DiState class which e... | 36de2d77b9f775bd829e34b58ef439fbd65c7868 | [
"Markdown",
"Shell"
] | 7 | Markdown | TomMannson/Finject | 043c72540170acf688b814e60b8eb056a0b63bbb | 9f9428ee55eff057ad85fc19ff3e6f694b95fbb2 |
refs/heads/master | <file_sep><?php
session_start(); //สร้าง session สำหรับเก็บค่า username
//ตรวจสอบว่าทำการ Login เข้าสู่ระบบมารึยัง
$ses_userid =@$_SESSION['ses_userid']; //สร้าง session สำหรับเก็บค่า ID
$ses_username = @$_SESSION['ses_username'];
if(@$ses_userid <> session... | 73227277d989026f2591d551ee6a5e04c642e17b | [
"SQL",
"PHP"
] | 13 | PHP | itouwza1995/spares | c97f1880e1bdbcae17f236fc3541b08fd41042b3 | a4e95c3b106ac068899a023cf1c6a0cbdc391799 |
refs/heads/master | <file_sep>using System.Collections.Generic;
using WinAPI;
namespace Wizard.Core {
class NetworkOper {
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public NetworkOper() {
}
public List<Network> ge... | 7105d918ff1021296dc17607f236b107f01f0dc2 | [
"Markdown",
"C#"
] | 42 | C# | radtek/WinCenterClient | 0855899952efd8a473a3c66019055634bce6d53f | 08f3260cf16f1abe1f49762554b30d09f4757d75 |
refs/heads/master | <repo_name>louiemay/ARAP-surface-modeling<file_sep>/ARAP_3D/ARAP_3D/LocalGlobal.cpp
#include "LocalGlobal.h"
bool LocalGlobal::ReadFromFile(string InputFile)
{
if (!OpenMesh::IO::read_mesh(mesh, InputFile))
return false;
else
return true;
}
bool LocalGlobal::ExportToFile(string OutputFile)
{
if (!OpenMesh::IO:... | 499229763e12761f1447d686b92f423e5d47444b | [
"Markdown",
"C",
"C++"
] | 5 | C++ | louiemay/ARAP-surface-modeling | 686faf76e21b0353a4f1fd9aeb9632b0ab01d832 | cd129d6cd0648775e2fa16e21000f91593405561 |
refs/heads/main | <file_sep>const path = require('path');
const webpack = require('webpack');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const CopyPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
mode: 'development',
entry: {
background: './... | b07cad9e8d2518c9cfe3bd03f6817dd457589d15 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | dumnicki/KeepLearning | 9cf57f10c246fc8de2b5f7227c6359765ebce85c | 46a4d1ea7d0137dc52c478897577e0e494e75936 |
refs/heads/main | <file_sep>// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
// 云函数入口函数
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
return {
circum:(event.width + event.height)*2,
area:event.width*event.height
}
}<file_sep>// miniprogram/pages/familySupportOrder/familu... | aaeb615d6240b6511211d25ce26cfc2ab3bbf879 | [
"JavaScript"
] | 5 | JavaScript | HQ-Dev/CleanRoom | 83e45551aad5c708f0d2339d69222fddbfd5e007 | 1f047fad714c745210ab4015f31eac7a12e8a912 |
refs/heads/master | <repo_name>HIG-Student/Programvaruteknik_Servlet<file_sep>/Programvaruteknik_Servlet/src/se/hig/programvaruteknik/servlet/StatisticsServlet.java
package se.hig.programvaruteknik.servlet;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.BiFunction;
import jav... | 7ab39f3df5615a166e7a4ae30dd89c02d00ad17b | [
"Java"
] | 2 | Java | HIG-Student/Programvaruteknik_Servlet | c303345052f822ac44dce4b4618cc2b84c960eb3 | 875fbf03e887a17307c01f21b72b5d2a5896208a |
refs/heads/master | <file_sep>/*
* https://github.com/nikolapesic2802/Programming-Practice/blob/master/Schools/main.cpp
*/
#define fast ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#include <bits/stdc++.h>
using namespace std;
#define sqr 547
#define mid (l+r)/2
#define pb push_back
#define ppb pop_back
#define fi first
#define se... | af39be08551d6b7e084a9d1a054d0d928d82b5a8 | [
"C++"
] | 1 | C++ | besherislambouley/school | 27df5f1c9138009f76bb74799cecadc910749b0a | 113bec18e2ad8158e80397f4c813a03cc2186fc8 |
refs/heads/master | <repo_name>0x1100010010/rails-capstone<file_sep>/app/helpers/transactions_helper.rb
module TransactionsHelper
def groups(transaction)
grr = []
transaction.group_ids&.each { |id| grr << current_user.groups.find(id) }
grr
end
def group_icon(transaction)
unless groups(transaction).empty?
html_... | 52cc82d6905c448c8e4cba62647988c93e1bfdad | [
"Markdown",
"Ruby"
] | 21 | Ruby | 0x1100010010/rails-capstone | 4d71007062ffc83320087a454c200af3d63ba861 | c69b4d09d47d3b729eea6399f1b7066a3b177260 |
refs/heads/master | <file_sep>using System;
namespace StudentOrganizer.Entities
{
//Entity for interaction with database
public class Student
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public int Age { get; set; }
... | e2269242c93f2368d72a9b90eec0f2a822adb753 | [
"C#"
] | 12 | C# | AusNacht/StudentOrganizer | 5e779c1e5d3e920f6c72285ca566f14e0f1b5d60 | 52386847185d4f982f9e064a292daa32f044b59f |
refs/heads/master | <file_sep>Whiteboard
----------
* install node
* npm install -d
* node server.js
Useful Links
------------
Express
> http://expressjs.com/
Socket.IO
> http://socket.io
MongoDB Node Driver
> http://mongodb.github.io/node-mongodb-native/2.0/
License
-------
MIT
<file_sep>// client side socket
var socket = io(),
... | 7ed5aaa2e4af6ee0067190bb161bdc3eea596412 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | KiKiKi-KiKi/whiteboard | e5e46e09a5bbc68b252bc0198dfe1eb00aa1ec07 | 6bea17b87858a3853390fac25af94a32bb4982a6 |
refs/heads/master | <file_sep>function Haversine(...opts) {
this.opts = opts;
this.radii = {
km: 6371,
miles: 3960,
meters: 6371000,
nmi: 3440,
feet: 20908800,
yards: 6969600
}
this.toRad = deg => (deg * Math.PI) / 180;
this.toDeg = rad => (rad * 180) / Math.PI;
}
Haversine.prototype.distance = function(... | 87ef4e65651266e7392906cda916746618be5301 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | brotholopithicus/node-haversine | d6f5391b710c8ae9c72b0e8e58b525854edff93a | 58229a0db288992a1455b39dae42bb207cb90265 |
refs/heads/master | <file_sep>Simple Flask App
================
.. image:: https://travis-ci.org/AddaKowalczyk8/se_hello_printer_app.svg?branch=master
:target: https://travis-ci.org/AddaKowalczyk8/se_hello_printer_app
.. image:: https://app.statuscake.com/button/index.php?Track=oIcafpmold&Days=1&Design=5
:target: https://www.stat... | ab712cbff80b87da5272b8fd0e97e5ce8d2a5347 | [
"Makefile",
"Python",
"Text",
"reStructuredText"
] | 4 | reStructuredText | AddaKowalczyk8/se_hello_printer_app | 7e604afed22aa23b4aa4e85ff2738c38d2e15313 | 3e4332400c2c9e746a3d1773ba228ec42b8361ae |
HEAD | <file_sep><form name=alunos action=alunos_sql.php>
<center><table border=1 width=10%>
<input name=acao value=alterar type=hidden>
<tr>
<td>
<?
echo " <input name=codaluno value=$codaluno type=hidden>";
$sql_alunos="
SELECT
... | e6b64683a203f167c8ba4284c23098dd50affcf3 | [
"SQL",
"PHP"
] | 26 | PHP | VitorHugoSilva/escola | 809c25f993f5d436c2d0bce3191e9da8dee7ebc1 | 9baa4578b892147d75d0d6c8f6c4551bd8baed30 |
refs/heads/master | <file_sep>package com.kjoshi.droidsqlite.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.kjoshi.droidsqlite.model.Customer;
import java.util.ArrayList;
/**
* The CustomerRepo... | 0ab6513bfa04e2e2eb6a8c64ecf747c4d2ec8007 | [
"Java"
] | 2 | Java | kjoshi07/DroidSQLite | 51d801b94d905104aad19a9536b98f1a6af79ba9 | 4540c978f5435d4aef4533da4f6d140e3e1b6dbe |
refs/heads/master | <file_sep># pystan-sklearn
This module provides a scikit-learn estimator class based on Stan (http://github.com/stan-dev/pystan).
This allows all of the functionality of scikit-learn to be used in the fitting and checking of Stan models.
Run example.py from the root pystan-sklearn directory for an example of a gr... | 89b3f158659080efab8854b9f086ee62f06abc7d | [
"Markdown",
"Python"
] | 3 | Markdown | rgerkin/pystan-sklearn | 5c5cffe5389abb58fa85d0a47bd4760128b19d8a | 8ff3d7ee8450fe58b2d6a2e5ae3076daa8d16477 |
refs/heads/master | <file_sep>module.exports = {
jwtSecret: process.env.JWT_SECRET || '<KEY>'
}; | 041fa025e6b958796f48f48f530eb736b529f86a | [
"JavaScript"
] | 1 | JavaScript | smwellmer/stagecoach | 6e23bc48032c276c4293cf6f6a2d96291e28d11a | f48fcdb4c34d4776629da04d11ec2e9d59ddc976 |
refs/heads/main | <file_sep>const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const userSchema = new Schema({
name: {
type: String,
required: false
},
email: {
type: String,
required: true
},
password:{
type:String,
required:true
},
resetPas... | a1a6b69f5a040abd48df7d3acd1090638998c8c1 | [
"JavaScript"
] | 9 | JavaScript | rahulgarale/shopping-website | a037b5403da23b1506df3bb7811e28cb5d7c215e | 9af082bfda46000adebc28cdb27994cb1941ee9a |
refs/heads/master | <file_sep># Projeto
Projeto - PHP/MySQL
# SitePHP
<file_sep><?php
require('config.php');
$nome = $_POST['nome'];
$assu = $_POST['assunto'];
$tel = $_POST['tele'];
$email = $_POST['email'];
$msg = $_POST['mensagem'];
$sql = "INSERT INTO contato (nome,assunto,telefone,email,mensagem) VALUES ('".$nome."','".$assu."','"... | 8a15a40f63749e16764985927175a4564514cf18 | [
"Markdown",
"SQL",
"PHP"
] | 4 | Markdown | Valeria-Marques/SitePHP | cc7757b8faa2b278b4b3c410fab544583b2ca886 | 173e14e8b182e4119288fcf38191c4df0a91a094 |
refs/heads/master | <repo_name>berezovskyi/lambda-test-node<file_sep>/main.js
console.log('Loading function');
var doc = require('dynamodb-doc');
var dynamo = new doc.DynamoDB();
/**
* Provide an event that contains the following keys:
*
* - operation: one of the operations in the switch statement below
* - tableName: required f... | 1b891d850f0d304142446ec5b58de88eefffca3e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | berezovskyi/lambda-test-node | 4aee8706a2dc3cefdedf77ad7629c816f3b42171 | aced7a31f2f4f6f7ca9324c1f6f036f8b6f11a3f |
refs/heads/master | <repo_name>ibrahimuslu/udacity-p1<file_sep>/problem_1.py
class DoubleNode:
def __init__(self, key,value):
self.value = value
self.key = key
self.next = None
self.previous = None
class DoublyLinkedList:
def __init__(self):
self.head = None
self.tail = None
... | 9ca68acda64db0a6d3790facbcc1dec5630d5579 | [
"Markdown",
"Python"
] | 12 | Python | ibrahimuslu/udacity-p1 | 543494e7ec13e3e6fb717255faa14758cb83bdf1 | ed2f6de275299a2a13458cee8eda5ad4598f4043 |
refs/heads/master | <file_sep># Jeffrey's WebDev Portfolio *featuring React*
### <NAME>
UW Full Stack BootCamp
Week 20 Homework: React Portfolio Update
[<NAME>'s WebDev Portfolio](https://jeffreyadamo.github.io/ReactPortfolio/)
July 20, 2020
<img src="./src/utils/images/index.png" height="300">
## Objective
Here's a showcase o... | 7a0d4b945ef54d88d0d9ec0744e7fd0df40fe5ec | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jeffreyadamo/ReactPortfolio | 4621f45c8373cc4563f11fd9e93f6cfe5b6aec0d | d4bc51a74c67e531671a8545b41dde7dfb9a4196 |
refs/heads/master | <repo_name>misakilou/formationsf<file_sep>/src/Command/PromoteAdmin.php
<?php
namespace App\Command;
use App\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Sy... | bce4c741615e123ec047f638d716d8abffd57f86 | [
"JavaScript",
"PHP"
] | 27 | PHP | misakilou/formationsf | 0a00b354b24dc744996c1bc798f1c5fab7bb1f7b | 450390b093c5ceb2bbcccd3256281a62bf97e8fb |
refs/heads/master | <file_sep>var p1Button = document.querySelector("#p1");
var p1Display = document.querySelector("#p1Display");
var p1Score = 0;
var p2Button = document.querySelector("#p2");
var p2Display = document.querySelector("#p2Display");
var p2Score = 0;
var resetButton = document.querySelector("#reset");
var limitInput = docu... | 4c3963ef40eaddb9c4ab8685484df2e78245d574 | [
"JavaScript"
] | 1 | JavaScript | RNwebdk/Score-Application | ce611c30ddf0603273faa10b9b930cb51b77ab12 | bee5807ca5f3f4b3df093f69b56c5f5fd8598377 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import urllib.request
import xmltodict
def metro_status(line, language):
# Getting XML data
URL = "http://www2.stm.info/1997/alertesmetro/esm.xml"
metro_website = urllib.request.urlopen(URL)
metro_info = metro_website.read()
metro_website.close()
xml_data = x... | 61e7bbb2fb36341a82e7702c8b1e03b865f17b39 | [
"Python",
"Text"
] | 5 | Python | arthtux/stmcli | df578d49007174129a00f73fd678feeb8f8e0419 | d7eefdf01ab0beec85bda9dd997229a9f2eb0b2a |
refs/heads/master | <file_sep>package item
import (
"github.com/df-mc/dragonfly/dragonfly/item/armour"
"github.com/df-mc/dragonfly/dragonfly/item/bucket"
"github.com/df-mc/dragonfly/dragonfly/item/tool"
"github.com/df-mc/dragonfly/dragonfly/world"
)
//noinspection SpellCheckingInspection
func init() {
world.RegisterItem("minecraft:... | 00af8c23256204c0b6ea93afc6d4c442afdc2333 | [
"TOML",
"Go Module",
"Go"
] | 102 | Go | dragonfly-tech/dragonfly | d41c96a75dc28dc10b4706e83f90bb498f2d724c | 7a2e29b28b2744ca86e9cd4f7f71bbcfd64a8da2 |
refs/heads/master | <file_sep>import requests
long_url = input("Input Long URL : ")
if not long_url:
print("Empty Long URL")
exit()
# Credential Authentication
username = "o_4lovj8rfbu"
password = "<PASSWORD>"
# Log In to Get Access Token
auth_response = requests.post(
"https://api-ssl.bitly.com/oauth/access_token",
auth=(user... | da33b34db878b081b8675677b74cebdb38bf42d9 | [
"Markdown",
"Python"
] | 2 | Python | alfigufron/python-shortener-url | 289fc787293a8dd93ab789de5279a928651dfabe | 12c92e85bd6bbdf96920ffafbaeb8d83573d6849 |
refs/heads/master | <file_sep>package test
import (
http "github.com/gruntwork-io/terratest/modules/http-helper"
"github.com/gruntwork-io/terratest/modules/terraform"
"github.com/stretchr/testify/assert"
"log"
"testing"
"time"
)
func TestTerraformBasicExample(t *testing.T) {
// GIVEN the following tf resources
terraformOptions :... | 5d6d99553e75e5ff734593ec4fe9feefda370851 | [
"Makefile",
"Go"
] | 2 | Go | victorcosquithoughtworks/terraform-gcp-test | 67d7d5bfde351fdef98885774eb50c38d5d0bcc8 | 84d4c79ba226761f3702b1367e3100581c3288e2 |
refs/heads/master | <repo_name>npololnskii/tt<file_sep>/src/main/java/ActionFactory.java
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
/**
* Created by nick on 31.07.16.
*/
public class ActionFactory
{
private Action act=null;
private static HashMap<String,Action> actions=new HashMap<String, Action>();... | 71e4920e73ebce94abac691c32be32a52253adcd | [
"Java",
"Shell"
] | 2 | Java | npololnskii/tt | b8d9bd387ba7ed875c9f2281d005ea330df05e78 | efa4c64d12a6e678869414e306c0be78cda63718 |
refs/heads/main | <file_sep>package bgu.spl181.net.srv;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ConcurrentHashMap;
import bgu.spl181.net.srv.data.Database;
import bgu.spl181.net.srv.data.User;
public class MovieRentalServiceProtocol extends UserServiceTextbasedprotocol {
Database db... | bc23bb66e793ac6613ddbbc2dd1524b7449c752d | [
"Markdown",
"Java",
"C++"
] | 9 | Java | Awadibra/MovieRental | cd5a7878e4adf3ef30e386fbf5773e09b8c5a23a | 8224d0ae16a3631e0efe7a1aa9a808c9d7689895 |
refs/heads/master | <repo_name>jihoshin28/sinatra-basic-routes-lab-sf-web-102819<file_sep>/app.rb
require_relative 'config/environment'
class App < Sinatra::Base
get '/name' do
"My name is <NAME>."
end
get '/hometown' do
"My hometown is Fremont, California."
end
get '/favorite-song' do
"My fa... | 16fc8178ddf3b7da7b751c0cf5aeafc01ea436ef | [
"Ruby"
] | 1 | Ruby | jihoshin28/sinatra-basic-routes-lab-sf-web-102819 | ae71ee050eda3792aa6e2dd53940e7873300981d | 32d270043d127ea3f65e08f577f27ab6b5a6d2c8 |
refs/heads/master | <repo_name>umsu2/hacker_rank_practice<file_sep>/electronics_shop_question/main.go
package main
import (
"fmt"
"sort"
)
var array1 = []int{1, 4, 5, 1, 3, 2, 45, 6, 3, 4, 67, 7}
var array2 = []int{3, 4, 6, 7, 8, 39, 20, 34}
func main() {
v := findMaxValue(array1, array2, 4)
fmt.Println(v)
}
// finds the closest v... | b2b645e9c9a685be257591d3e1e28cbdcc6c648f | [
"Go"
] | 1 | Go | umsu2/hacker_rank_practice | 6cf5f4d7871dddbb3a050d8e00dccf20b0f81c34 | 58575cdc1b1905c30dbaab253b132c55c5419358 |
refs/heads/master | <repo_name>dgskinner/GameOfLife<file_sep>/play.rb
require_relative "board"
require_relative "game"
starting_coordinates = [
[[1, 1], [1, 2], [1, 3], [2, 2], [2, 3], [2, 4]],
[[2, 1], [1, 2], [1, 3], [2, 4], [3, 2], [3, 3]],
[[2, 1], [2, 2], [1, 2], [0, 1], [1, 3]]
]
Game.new(starting_coordinates.sample)
<file_s... | 0c3b80acdcc426cd679c38c500624fae7512532a | [
"Markdown",
"Ruby"
] | 4 | Ruby | dgskinner/GameOfLife | aedb9c09664172762dbb0b8c8320eddb36af8c23 | bd2fbac19df69f76ce0512f74bc762cbd749011f |
refs/heads/master | <file_sep>#!/bin/bash
set -e
ln -sf ~/.vim/vimrc ~/.vimrc
touch ~/.vimrc.local
mkdir -p ~/.vim_undodir
vim +PlugUpdate +qall
| 2934171eca89e052bdf0fcb69c64f958822b5250 | [
"Shell"
] | 1 | Shell | metti/dotvim | 320eeffa2e0784619e04f9ce560fc3d8b0dd01f2 | 23af162f3e194bc2e83efb5785202467927db8ae |
refs/heads/master | <file_sep>#функция, читающая данные из файла, которые нужно зашифровать
def readFile(fileName):
file = open(fileName)
return file.read()
#функция шифрующая данные по алгоритму простой замены.
#принимает на вход строку которую нужно зашифровать и таблицу правил преобраорваний
def getCryptChar(key, value, cryptT)... | bf0940b71c26fdbd0e3c33400856beba729c986f | [
"Python"
] | 1 | Python | ptrIslam123/CryptPython | c8e54d9a62a95e91b9bda221bbe4bb8a66bf0b47 | 83fea108a6405548c8d901a83483b91392202df6 |
refs/heads/master | <file_sep>/**
* Basic firebase init for FabricElements
*/
(function() {
'use strict';
const firebase = window.firebase;
if (typeof firebase === 'undefined') {
throw new Error('hosting/init-error: Firebase SDK not detected.');
}
// Initialize Firebase
firebase.initializeApp({
apiKey: '<KEY>',
a... | cc561e0e9bcdce9f7f5e85f4ec5dbe6254db3dff | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | FabricElements/firebase-config | c92cbbf62b00e37f2019d36c2a6945b3c6fc1804 | 6dd4506ef068ca471fb070efc83e9278421dee29 |
refs/heads/master | <file_sep>#include <iostream>
#include <cstdlib>
using namespace std;
char data[105][105];
bool used[105][105];
int m, n;
void dfs(int i, int j)
{
if (i - 1 >= 0 && j - 1 >= 0 && data[i-1][j-1] == '@' && used[i-1][j-1] == false)
{
used[i-1][j-1] = true;
dfs(i-1, j-1);
}
if (i - 1 >= 0 && d... | e8c4d5a743450d2ee8f63e34f56f9bf0af74a8f8 | [
"C",
"Makefile",
"C++"
] | 68 | C++ | xinali/acm | d019190664f247407e324d6a10751a5c9a93ae0f | 62a66e43872eb63250b74a1a71b52fe4745b8b80 |
refs/heads/master | <repo_name>cchostak/ctk<file_sep>/kong-plugin-master/kong/plugins/ctk/handler.lua
local singletons = require "kong.singletons"
local BasePlugin = require "kong.plugins.base_plugin"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local utils = require "kong.tools.utils"
local ... | ad128016dadd7b62e02007dc67a7e4dab74335b8 | [
"Lua"
] | 3 | Lua | cchostak/ctk | dd2ddb536b6c180cbe60c8333c3ebf0b45fec300 | 94a96ae452aa780fffee18be5b06c66e5bbdded0 |
refs/heads/master | <repo_name>formrausch/spree-cash-on-delivery<file_sep>/app/models/spree/order_decorator.rb
Spree::Order.class_eval do
def cash_on_delivery_payment?
payments && payments.last.payment_method.is_a?(Spree::CashOnDelivery::PaymentMethod)
end
def cash_on_delivery_adjustment
if cash_on_delivery_payment?
a... | 7455329bb95f895de2163b9ba3594a51ef09abd3 | [
"Ruby"
] | 1 | Ruby | formrausch/spree-cash-on-delivery | cca01a8434f6310e60b7bb379266a87ca35980f4 | b05e1dd226e1bf8a2bc1117bdc0673706029da17 |
refs/heads/master | <repo_name>tublitzed/tublitzed<file_sep>/resources/assets/js/modules/loader/index.js
var $ = require('jquery');
var loader = {
CSS_CLASS: 'loader',
DEFAULT_TEXT: 'Loading...',
/**
* Hide loader
*/
hide: function() {
this.$el.hide();
},
/**
* Add loading indicator to DOM
* @param {string=} text
*/
... | 9734e2d771793d65efb49bc85546b5178f56e7c0 | [
"JavaScript",
"Markdown",
"PHP",
"Shell"
] | 37 | JavaScript | tublitzed/tublitzed | 74fccd12565df19e64104af7d878045f1ecf5d2c | a980d9340b8649edb5e5560dd7d60e255d1fc9f7 |
refs/heads/master | <file_sep>#!/bin/bash
cd iudx-api-server
mvn package
cp target/java -jar iudx-api-server-0.0.1-SNAPSHOT-fat.jar .
tmux new-session -d -s vertx 'java -jar iudx-api-server-0.0.1-SNAPSHOT-fat.jar'
<file_sep>#!/bin/bash
directory=`dirname $0`
cd $directory
docker-compose start
docker exec postgres ./scripts/pgsql_s... | 76a9130934d94514e7481b193d03b8bd73bc576c | [
"Shell"
] | 3 | Shell | HankHannah/iudx | 24ae9d09068dada04cb48afd7474b47abb641d90 | 08139fea19d628b8ddb0c55a18214ae9466a5f48 |
refs/heads/master | <file_sep># simple-temperature-app
A simple temperature app practices on EJS view layer with Express/NodeJS backend
# How to run
git clone https://github.com/ploratran/temperature-app-ejs.git
npm install
npm start
Open on browser: http://localhost:3006<file_sep>$(function() {
var $h1 = $("h1");
var $zip = ... | afc258d9cbd17e61d0fb1b4c9a04c51a04d7708c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ploratran/temperature-app-ejs | 3d604232e49b319a31bc3dabf43c7cd84dea80c7 | 042d060d68a29f1f00f68a2f2c1cadfa8ac530e4 |
refs/heads/master | <file_sep>package com.dapavlov16.jobsgithubclient;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.widget.TextView;
import com.dapavlov16.jobsgithubclient.model.Vacancy;
public class VacancyActivity extends AppCompatAc... | 576ac88da435f24669589842735375a31d1f00dd | [
"Java"
] | 4 | Java | dapavlov16/JobsGithubClient | ba310fd69e644dcbeb2bfb707f2c14573bb28a83 | 111b1b480b38c8a4766653e4b66d4f24a8bd41a3 |
refs/heads/master | <file_sep>#include <Windows.h>
#include <XInput.h>
#pragma comment(lib, "xinput.lib")
int main(){
XINPUT_VIBRATION vibration;
vibration.wLeftMotorSpeed = 0xFFFF;
vibration.wRightMotorSpeed = 0;
XInputSetState(0, &vibration);
Sleep(10000);
vibration.wLeftMotorSpeed = 0;
vibration.wRightMotorSpeed ... | e7d29e83e05e952e3d2d8a6337d3b9d1199dbc92 | [
"Markdown",
"C++"
] | 6 | C++ | mucho613/practice | 9d4dc57f07a55bb879940dac63e63b7c4188f49c | cdd94434cdd2eea4a3c13408a409053fad54892c |
refs/heads/master | <repo_name>DeKinci/budding-jack<file_sep>/src/test/com/dekinci/contest/game/tactics/ConnectMinesTacticsTest.kt
package com.dekinci.contest.game.tactics
import com.dekinci.contest.connectedMap
import org.junit.jupiter.api.Test
internal class ConnectMinesTacticsTest {
@Test
fun isFinished() {
}
@Test
... | a7c4253b2a5d3e6a031116f8a1cc71668954ee4a | [
"Markdown",
"Kotlin"
] | 65 | Kotlin | DeKinci/budding-jack | 7a190f29f7504caad0432f153b13ab97b97115dc | 04b6f44a939eb72f44a08580c7919b3b8776471c |
refs/heads/master | <file_sep>/* nml: continents of the world */
"use strict";
module.exports = {
"confil" : [
{
"continent": "Africa"
},
{
"continent": "Antarctica"
},
{
"continent": "Asia"
},
{
"continent": "Europe"
},
{
"continent": "North America"
},
{
"contine... | 8d7d5481fa81b012b6f15dc1296bcdba6f410b93 | [
"JavaScript"
] | 1 | JavaScript | Usbeck95/nodeVII | c194c8c4d2d73bf3db73fbc404a12e5709dfc6d7 | 7c76f6eb7d261946cf264d9457e24b023395bb2e |
refs/heads/master | <repo_name>JimmyDinSpace/LITTLEscript<file_sep>/iwait_then_sync
#!/bin/bash
# Detect file changes and copy-and-paste to TARGET dir
# for web project develop
# Important to add slash to pwd, means rsync would copy
# > the content of directory
SOURCE_DIR=$(pwd)/
TARGET_DIR=$1
read -e -p "Enter target directory: " TARG... | 49404f09895050b02d89e28bbad39789fcdf9097 | [
"Shell"
] | 1 | Shell | JimmyDinSpace/LITTLEscript | 69fd3ef5428d949ad668ee1d447fc7ce0470a657 | 9882646f36d865a8801b6922214bfc1b6440ea3e |
refs/heads/master | <repo_name>monsenhordivisorias/monsenhordivisorias.github.io<file_sep>/js/angularapp.js
(function () {
'use strict';
var baseURL = 'https://monsenhordivisorias.github.io';
$('.button-collapse').sideNav();
var app = angular.module("app", ["ngRoute"]);
app.config(function ($routeProvider, $locationProvider) {... | 0afb50f620b263f9212758d14b9292ca5c77adaf | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | monsenhordivisorias/monsenhordivisorias.github.io | df135a13834f6c765d2991628a66d78bd9a9ed1e | 1ba6952c5ee57669568b49ccc844af845d5b8950 |
refs/heads/master | <repo_name>SimonePDA/VidorPeripherals<file_sep>/src/VidorUART.cpp
/*
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
versi... | b1d2b87c098da1889274b415b5948e6d4d870fc5 | [
"C",
"C++",
"INI"
] | 4 | C++ | SimonePDA/VidorPeripherals | 87fd3d8ec371c545d0ef2302e59e2ecdcca7500f | 0a6c7eed07898089033778c86e3d831348a923d9 |
refs/heads/main | <file_sep>#install necessary packages if required
#install.packages(c("matrixStats", "Hmisc", "splines", "foreach", "doParallel", "fastcluster", "dynamicTreeCut", "survival"))
BiocManager::install((c("GO.db", "preprocessCore", "impute")))
BiocManager::install('WGCNA')
#load packages
library(robustHD)
# from https://g... | fc7ad2ad43a670a73f7ceeef6b240e70cba84d8a | [
"Markdown",
"R"
] | 2 | R | PriceLab/WGCNA-Metabolon-Code | 6ca0b22550f980d48f5f9a7034a12bfb90d8c12c | 6332b6178d77d56825e7a892a6706b59bc8be8fe |
refs/heads/master | <repo_name>Ryudas/CG-OpenGL-Demo<file_sep>/include/gl/texture.h
#pragma once
#include "disable_all_warnings.h"
DISABLE_WARNINGS_PUSH()
#include <GL/glew.h>
#include <glm/vec3.hpp>
DISABLE_WARNINGS_POP()
#include <exception>
#include <filesystem>
#include <memory>
struct ImageLoadingException : public std::ru... | d4d8ffb0642e925b379bfeaeacb3f1653cee04d7 | [
"C",
"CMake",
"C++"
] | 53 | C++ | Ryudas/CG-OpenGL-Demo | 3f11460237bb425d015ae4c566e7fd38ace1b2c3 | ded40d9a248fcd7808a120b918829c54624c925b |
refs/heads/master | <file_sep>/*------------------------------------------------------------------*-
Port.H (v1.00)
------------------------------------------------------------------
'Port Header' (see Chap 10) for the project S_DELAY (see Chap 11)
COPYRIGHT
---------
This code is from the book:
PATTERNS FOR TIME... | 3905516703ceff7a9e3e3d933a8a1b6b779bf324 | [
"Markdown",
"Makefile",
"INI",
"Gradle",
"Java",
"Python",
"Text",
"C",
"C++",
"Shell"
] | 166 | C | ntarannum/Software-Work | c06364693eb6ab6ca400bee9819fbe329d93d9a0 | b3673191cf59ab779bc5ac001b8f36a6780c433f |
refs/heads/master | <repo_name>JorisSchelfaut/udemy-angular-8-course-project<file_sep>/src/app/recipes/recipes.component.ts
import { Component, OnInit } from '@angular/core';
import { Recipe } from '../recipes/recipe.model';
@Component({
selector: 'app-recipes',
templateUrl: './recipes.component.html',
styleUrls: ['./recipes.compon... | 93c57855e73f5fe066f3f6a36669bf059e064c68 | [
"TypeScript"
] | 1 | TypeScript | JorisSchelfaut/udemy-angular-8-course-project | df2db60d3865cb2badd522e597385fdd4e87cb45 | 53b6f7606a6aeb48fb43e26d7e66917963cb48aa |
refs/heads/master | <file_sep>// Dependencies
var express = require("express");
var mongoose = require("mongoose");
mongoose.Promise = Promise;
mongoose.connect("mongodb://heroku_5dx6346c:<EMAIL>:37100/heroku_5dx6346c");
var db = mongoose.connection;
// Show any mongoose errors
db.on("error", function(error) {
console.log("Mongoose ... | 1b9ecec84c474947613e716af02632cf20836d01 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | msibilsk/news-notes | e6478f9eade1b15fdaf30e91412b6b6cc13d2e4d | e3ebf5fbaacf22f55429c35f89cda5884d8f01be |
refs/heads/master | <repo_name>ropensci-archive/natserv<file_sep>/tests/testthat/helper-natserv.R
library("vcr")
vcr::vcr_configure(dir = "../fixtures")
vcr::check_cassette_names()
| 4679ede982884c01e34e47e1ce4a87e553baf14d | [
"R"
] | 1 | R | ropensci-archive/natserv | ef8d717cd81504e827f91a599dbbd1a7949f782f | ca25f820e42f57d15b856e60c40f616f441a81b8 |
refs/heads/master | <file_sep>require 'c_tokenizer_ext'
class StringEater::CTokenizer
def self.tokens
@tokens ||= []
end
def self.add_field name, opts={}
self.tokens << StringEater::Token::new_field(name, opts)
define_method(name) {@extracted_tokens[name]}
end
def self.look_for tokens
self.tokens << StringEate... | 840f772f3ba8f943ab9320005c82d6ff6adce2c0 | [
"Markdown",
"Ruby"
] | 11 | Ruby | gbitgit/string-eater | 7f3b9b99a2f7081eaeaa4beea4c5f11b2af99a60 | 800c1e9db87cca89fafda01b364bc4c216250210 |
refs/heads/master | <repo_name>2021alexl/StockX-to-Excel<file_sep>/main.py
from __future__ import print_function
import requests
import json
import openpyxl
import re
import os
import string
import math
def load_from_json(file):
try:
with open(file, 'r') as myfile:
return json.load(myfile)
except IOError:
... | 59526b15735470333a1ae6191f1cecd181fd553c | [
"Markdown",
"Python"
] | 2 | Python | 2021alexl/StockX-to-Excel | a46784f80a36de527eb893cd74cfa16e081fe81a | 0f967fecc5c7576f5af0903b16d908ce22ff47ff |
refs/heads/master | <repo_name>taochanglian/springcloud<file_sep>/springcloud-client/src/main/java/com/mycompany/microservice/client/ClientApplication.java
package com.mycompany.microservice.client;
import com.sun.deploy.util.SessionState;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Sp... | 6f0c5b9e12fea5f0649df03b8beddf06cfa18e7e | [
"Java",
"Maven POM"
] | 3 | Java | taochanglian/springcloud | 0f13de32cddc83619b5a69c5ddd58292c66a5113 | ad65b79041832882c055f87bc670256c930f8952 |
refs/heads/master | <repo_name>MrWZZ/WZZ_ZONE<file_sep>/pages/knowledge/knowledge.js
//首页导航数组(通用模块有这个的副本,需要一起修改)
var homeLinks = [
{ title:"主页", url:"/WZZ_ZONE/index.html" },
{ title:"知识总结", url:"/WZZ_ZONE/pages/knowledge/knowledge.html" },
{ title:"方法库", url:"#" },
{ title:"收藏", url:"/WZZ_ZONE/pages/collection/collection.html" },... | 6c7f7fab0831ccd3f97800122876bdc9584924f7 | [
"JavaScript",
"HTML"
] | 9 | JavaScript | MrWZZ/WZZ_ZONE | 72dad1333a70c143f87d630fd074004c1ca9da6f | 788d6ccc036dd66b60397d7d17dcc330dd237a68 |
refs/heads/master | <repo_name>antoniojunior52/estrutura-repeticao-array-junior<file_sep>/Ativ3/Program.cs
using System;
namespace Ativ3
{
internal class NewBaseType
{
static void Main(string[] args)
{
int salario;
Console.WriteLine("Informe seu salário:");
salario = Convert.To... | 28d5ea2466a219f1abd53f3e59c60c9d5ea9d034 | [
"C#"
] | 1 | C# | antoniojunior52/estrutura-repeticao-array-junior | 181bbb86e4ef17fe5e7cc5aa4b104ccfc71c266b | d658dfc98f1f11947b066635f34762dcda307088 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using raspberry_api.Models;
namespace raspberry_api.Controllers
{
[Route("api/[controller]")]
public class TemperaturesController : Controller
{
private readonl... | 0d3844d8106abae6dbcb07cc2da7a8d3e0c83ded | [
"C#"
] | 3 | C# | stefana99/raspberry-api | b17a732c5ca6e761b0380aeb79ea0842b5d18ad6 | 8b4245036ca90ea1cff7d216c87659612a729d36 |
refs/heads/master | <file_sep>### 1066.Campus-Bikes-II
此题是著名的带权二分图的最优匹配问题,可由KM算法解决。在这里我们尝试用比较容易理解的搜索的方法来解决。
我们将“自行车被选取的状态”作为节点,状态之间的跳转理解为节点之间的相邻关系,状态之间的权重差就是相邻边的权重,就可以用Dijkstra算法了。举个例子,状态0110表示前两个工人(0号和1号)已经被配对1号和2号自行车的最优价值(即最小的配对距离之和)。注意,这个状态中我们不再区分前两个工人分别配对了哪辆自行车,我们不关心,我们只关心前两个工人的总和状态。状态0110可以转移到另外两种状态:如果2号工人选择0号自行车,即转移到了1110,权重的变化就是d... | 9c5a2d26a36f820f8fc8f8516829f5d2eb7c0118 | [
"Markdown",
"C++"
] | 2 | Markdown | Yixiao99/LeetCode | 51b87cf5b84196e7bd99295710a27fbbed53d9a7 | 270b7ed43b237dc813961cba1894196d84db44cd |
refs/heads/main | <file_sep>use clap::{App, AppSettings, Arg};
use regex::Regex;
use rusqlite::{named_params, Connection, Result, NO_PARAMS};
use std::error;
// Regex pattern for query string
const PATTERN: &str = r"^(?P<book>\w+)( (?P<start_chapter>\d+)(:(?P<start_verse>\d+)(-((?P<end_chapter>\d+):)?(?P<end_verse>\d+))?)?)?$";
// Str... | 3a95d98d1538bd0ac7724c072f0b9d87d64f7ec8 | [
"TOML",
"Rust",
"Markdown"
] | 3 | Rust | ds411/dra-cli | 27ab6fbf628b11bf5aaaa315b75f614aa7338950 | 97f02b206e21c5ad33c30ffd14c6cef48d2bfddc |
refs/heads/main | <repo_name>rolandvarga/rename-tool<file_sep>/main.go
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
)
var (
dir = "/Volumes/stuff/tv/Batman_The_Animated_Series_1992"
)
type final struct {
Files []outputFile `json:"files"`
}
type outputFile struct {
Episode string `json:"episode"`
Tit... | 29884c422890b04949479d1c050ab10ad71bf91f | [
"Go"
] | 1 | Go | rolandvarga/rename-tool | 0819bb4f5b484c3a6192a9d68374abafc6491b46 | 657cd2d4f7d2c37b2837f14d7266e8741a8af57e |
refs/heads/master | <file_sep>const aes256 = require('aesencryption256');
console.log(aes256("testthescript"));<file_sep># Aes256EncryptionPackage
A aes256 package where only pass the value to encrypt in AES256 form and it will convert same as online tool available as PFL. https://www.devglan.com/online-tools/aes-encryption-decryption
... | a162edc5a59b549410c982d1be49b29097a5e155 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | shubhamJ0/Aes256EncryptionPackage | 92220f1f05ad9328736dc1e166867b15cec83a21 | 9c31fb44d85f967e9a18a93805f0b302899d7d15 |
refs/heads/master | <repo_name>shizunaito/ReactorKitSample<file_sep>/ReactorKitSample/Error/GitHubClientError.swift
//
// GitHubClientError.swift
// ReactorKitSample
//
// Created by 伊藤静那(<NAME>) on 2018/02/25.
// Copyright © 2018年 ShizunaIto. All rights reserved.
//
enum GitHubClientError : Error {
case connectionError(Error)
... | ee2bda3904e59455c4b8079ac3a13006e5b1b8ba | [
"Swift"
] | 11 | Swift | shizunaito/ReactorKitSample | c6f7ce47122985cf990328d9c311ed3e9507539f | 5dfd65586330533c0d6adea478bc50e3c82f760a |
refs/heads/master | <file_sep>package com.camilo.anotacoes.service.exception;
public class CategoriaJaCadastradaException extends RuntimeException {
private static final long serialVersionUID = 1L;
public CategoriaJaCadastradaException(String message) {
super(message);
}
}<file_sep>var Notesware = Notesware || {};
Notesware.Adi... | 54f9ccf11716c38df65528ff60cd63c198053184 | [
"JavaScript",
"Java",
"SQL"
] | 8 | Java | craitz/Notesware | 2ea4b18fe082de33b7d2053a8c5c8d2ebb7d0a76 | 9d0d66051aacba091b8f7eaac3d43039f79f3077 |
refs/heads/master | <file_sep>from pathlib import Path
from ..base.report import BaseSummaryHomeStage, BaseReport
from ..base.fastqc import FastQCStage
from . import RNASeqStageMixin, here
from .star import STARStage
from .cufflinks import CufflinksStage
from .cuffdiff import CuffdiffStage
class RNASeqFastQCStage(RNASeqStageMixin, FastQ... | c7f0c2e738816c857d1869338096fefbf53b4691 | [
"Markdown",
"Python",
"JavaScript",
"HTML"
] | 16 | Python | ccwang002/bc_report | b422cb201d15fcf4f7b8d164fb018111ad128e99 | eda92b7e136a910152b9db76c9c7457160c3bbd8 |
refs/heads/master | <file_sep>'use strict';
const validator = require('./validator');
validator.func = function() {
return 'dddd';
};
<file_sep>'use strict';
class Util {
static getDataType(target) {
// basic type, String Number Boolean Symbol undefined null
// reference type, Object
let type = Object.prototype.toString... | 8b98fd842ef5dcabb07caa4f537cd5a09c97d632 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jude-liu/koa-data-validator | 1ab7a29992f2f5f73e740552be2bcb32faf36f96 | 861ce47f6d100ec3eeb3ecb91e018201e2e8172d |
refs/heads/main | <file_sep><?php
echo "Ini konfig"
?><file_sep><?php
//file login
?><file_sep><?php
// skrip index
$data="Ini adalah kalimat";
?> | 282ed3aed35570cd6781194f3541d3659c251648 | [
"PHP"
] | 3 | PHP | rizaru22/login | c35ce0c610702f25034412df8659323a611a57fc | 54f403be2825ed13ad8704d762c842680695a79a |
refs/heads/master | <repo_name>finn722/temprespository<file_sep>/src/com/eduask/bean/User.java
package com.eduask.bean;
import java.util.Date;
public class User {
private Long uid;
private String account;
private String pwd;
private String username;
private String gender;
private String phone;
private String headImg... | c2f8b080a85bb696ce9211fef7b4b5387c25a2fa | [
"Java",
"INI"
] | 11 | Java | finn722/temprespository | 7e68fe000c39f3cde003cf78997a9e3753c1bf9b | 708ece65ca461340bae073f888dc7aed7f3a0036 |
refs/heads/master | <repo_name>vittorio101/openAtlas<file_sep>/databasemanager.cpp
//////////////////////////////////////////////////////////////////////////////
// //
// This file is part of openATLAS. //
// ... | 4e0131d536c575e9e770f1e62af368da17a6823d | [
"Markdown",
"SQL",
"C++"
] | 18 | C++ | vittorio101/openAtlas | fc972c28f06fdb0a31025f46def0bacd22c4236a | f77a9baa557b344dd0b1d1e5d627926bceb57bca |
refs/heads/master | <file_sep><h2>You can find me on:</h2>
<p>Codepen profile link: <a href="http://codepen.io/DevUIUX/" target="_blank">codepen.io/DevUIUX</a>.</p>
<p>Github profile link: <a href="https://github.com/Devuiux" target="_blank">github.com/Devuiux</a>.</p><file_sep>Portfolio
link: http://devuiux.github.io
<file_sep>Ractiv... | 3fed1b1765a59c3ad9685295f82f91bfd3309e66 | [
"JavaScript",
"Text",
"HTML"
] | 3 | HTML | Devuiux/devuiux.github.io | 24a95db9ed136365852f42715d18cf2012292053 | 9332192ea7eb422fac1da51e4a76606f21c1b986 |
refs/heads/master | <repo_name>ViniciusTLR/Codigos_em_c<file_sep>/valor sugerido#.cpp
#include <iostream>
#include <locale>
using namespace std;
//Calcula o valor do produto e mais 20% para sugerir para a pessoa que quer comprar
int main(){
setlocale(LC_ALL, "ptb");
//VARIAVEIS
double produto, valor, sug;
//Inicio
... | 2f56b3268831818f1fee5ab93c017e3a4da51b61 | [
"C",
"C++"
] | 32 | C++ | ViniciusTLR/Codigos_em_c | 01aa912e8089d56eaf1d33de9f2c0b536b6b5bf8 | 28fca11547ddf81b8e18be05fcee175529625b56 |
refs/heads/master | <file_sep>// Gruntfile.js
// our wrapper function (required by grunt and its plugins)
// all configuration goes inside this function
module.exports = function(grunt) {
require('time-grunt')(grunt);
require('jit-grunt')(grunt, {
jshint: 'grunt-contrib-jshint',
clean: 'grunt-contrib-clean',
uglify: 'gr... | c74cba04e4b383a18be2df9bec5ce9855eec23c4 | [
"JavaScript"
] | 3 | JavaScript | citizenken/panels-lib | 176735c2a1a2b1e10bb62c15638dc624af95a21d | 4460c5e53c7e76e65b1e6093abe36435de987d0e |
refs/heads/main | <repo_name>lukechant/typescript-workshop<file_sep>/src/components/form/state/types.ts
export interface Employer {
name: string;
duration: number;
}
export interface IForm {
name: string;
age: number;
employer1: Employer;
employer2: Employer;
employer3: Employer;
}
export interface IAction {
type: stri... | 9e5ea53a4fa9a0cb23f1eaeec3770de2c6674766 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 28 | TypeScript | lukechant/typescript-workshop | 81e7c903770e96a02601dd7dd18e234b989cc1ca | efffadc0fcad2546ad9dc3e08bec83022fba3d08 |
refs/heads/master | <repo_name>kereh/Kuyang-Tool<file_sep>/kuyangVG.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Napa Mau Recode.???
# atau mau lihat source.???
# dasar recoder
import os,sys,time,random
from time import sleep
from os import system
from sys import exit
system('clear')
def read(s):
for c in s + '\n':
sys.st... | 61ef01a740c5b6d767532bbb09fa08092c963213 | [
"Markdown",
"Python"
] | 2 | Python | kereh/Kuyang-Tool | ebeed1c50a00407bcb79f74d77e75737014a4441 | 9af5249923fc77d0cbb28e69a0a0e0d00d2ffd8d |
refs/heads/main | <repo_name>WesongaInc/JavaScript-Client-Side-Form-Validation<file_sep>/src/js/registration-form-validation.js
/* ========= LOGIN / REGISTRATION FORM CLIENT SIDE VALIDATION ========= */
// !select elements
const form = document.getElementById("input-form");
const fullName = document.getElementById("fullName");
const use... | 177b164cad6d4adb7fd0d9bbfc53510d0ebf788c | [
"JavaScript"
] | 1 | JavaScript | WesongaInc/JavaScript-Client-Side-Form-Validation | 3907930016d5673dbc0d4e46a176e305068102db | af3983685eb744a51187f0258dceaed31737ec33 |
refs/heads/main | <repo_name>Mahmoud-M-Hamdan/basic-express-server<file_sep>/src/middleware/validator.js
"use strict";
function validator(req, res, next){
if(! req.query.name && req.path === "/person"){
throw new Error("Opps ! , Bad query Name");
};
next();
};
module.exports= validator;<file_sep>/README.md
# basi... | 6938a9a74c6106c1a969839b50a7ec3738d9c421 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Mahmoud-M-Hamdan/basic-express-server | c79ad14135335511fc51b29f6e70e3d2db4453d5 | beef9feb0a586dfeff55dbd120287d54ab8d64a9 |
refs/heads/master | <repo_name>ryanjibin/EclipseTest<file_sep>/src/tstPack2/TstClass2.java
package tstPack2;
public class TstClass2 {
public static void main(String[] args) {
System.out.println("Hello to you");
System.out.println("2nd Step");
}
}
| 746f5a014813ace34fbd43feff8f8ed4c1fe9e68 | [
"Java"
] | 1 | Java | ryanjibin/EclipseTest | 86e4ed3cb5e3bfcb3848f3a93ebfe3af01f9c111 | 3c0b99d66b013cd259648a2c6b05b36b34db1aa5 |
refs/heads/master | <file_sep>#######################################################
# Author: <<NAME> >
# email: <<EMAIL> >
# ID: <ee364d25>
# Date: <2019/4/17 >
#######################################################
import os
from uuid import UUID
from pprint import pprint as pp
from enum impor... | c7910a655d286a0ee8a0d510fef83abcac7e5a2b | [
"Markdown",
"Python",
"Shell"
] | 32 | Python | ZGuo412/Software-Engineering | e1377d8889e65fd6d984d0bf7fa712ad74aeccfa | 5437d82516b4e6af9e37f3f657fcc889f3e7fe71 |
refs/heads/master | <repo_name>cdag22/SSR-App<file_sep>/src/server/renderIso.js
import React from "react";
import { renderToString } from "react-dom/server";
import { StaticRouter } from "react-router-dom";
import StyleContext from "isomorphic-style-loader/StyleContext";
import { renderRoutes } from "react-router-config";
import Routes f... | 211e7f2dec794585b72d1684a1b68c49e73dbd3d | [
"JavaScript"
] | 8 | JavaScript | cdag22/SSR-App | 9c8c3f6b175ec89a8a8e4af4b134091912911644 | 00432cfe6c00fd60adfdd7b80ad868c688514d54 |
refs/heads/master | <file_sep># Processor - teraslice_file_chunker
To install from the root of your teraslice instance.
```
npm install terascope/teraslice_file_chunker
```
# Description
This processor is used to take an incoming arrary of data and split it into reasonably sized chunks for storage by another module. It was primarily i... | e1990b7e06226cb3f9c9d5829853805eda218423 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ts-archive/teraslice_file_chunker | dc1e215ec629ac39a57b76ed2135ef0a4ddcc492 | 9bb7d789ba47cfdb7d9115672d51a0ac0c2a297b |
refs/heads/main | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_parse.c :+: :+... | 4756a78ea1377f99db56f3c63044f4019d6365e0 | [
"Markdown",
"C",
"Makefile"
] | 16 | C | seowooo/42Seoul_42cursus | 8d9fd8fd6f70f0e07194f1c76d4bb9086ed36e58 | c6b9cf2d06cc1f9f002d7ab2c4d2d17e95dadb54 |
refs/heads/master | <file_sep>package com.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.dbutil.*;
public class LoginDao {
public int checkUser(final String u_name,final String u_pwd){
String strSQL = "select * from user where u_name=? and u_pwd=?";
//简历数据库连接
DBConnect dbcon = new DBConnect();
Result... | dc389954d9c9abbaee66f38db6ef2332da29778f | [
"Java",
"INI"
] | 9 | Java | chunmu/blog | 72a45d734faaa7885146298255da2c3d017dffd0 | 07714ee1c85c1ef6e4df27ecacc135510ba2346f |
refs/heads/master | <file_sep>// Create Main Class
function Person(name, salary){
this.name = name || 'Anonimno';
this.salary = salary || 0;
}
Person.prototype.GetSalary = function(){
return this.salary;
}
// Create sub class
function Employee(obj){
Person.call(this, obj.name, obj.salary);
}
Employee.prototype = Object.c... | 5a6dcd0bfb97e664163bd5c40b8e75a96b07dce7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mesvil7/Object | b87c8d2e453dd8776da0ee1215327b4b68b5287b | d77e40941064f35cf3f95fead4f5a17b5e778372 |
refs/heads/master | <repo_name>SteevJ/ColorSlide<file_sep>/Grid.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Grid : MonoBehaviour {
public static Transform[,] grid = new Transform[4, 4];
public static Vector2 roundVec2(Vector2 v)
{
return new Vector2(Mathf.Round(v.x... | e45991585184a7ea159dbd5a524d93402eae0d15 | [
"C#"
] | 3 | C# | SteevJ/ColorSlide | 716ff2d3e6beac3bdde83941e05d80a59ba17276 | e240e85e5b6a03394894f17dfbc6b0798e1ce99d |
refs/heads/master | <repo_name>YaroslavBerko/pract_7<file_sep>/mainwindow.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
void MainWindow::mouseMoveEvent(QMouseEvent *ev)
{
emit coordinateChanged(ev->pos().x(), ev->pos().y());
}
void MainWindow::printCoordinate(int _x, int _y){ // _x, _y - позиція мишки
int... | 4bd8778c47026a626e39173a7409fd408adf98e3 | [
"C++"
] | 2 | C++ | YaroslavBerko/pract_7 | c3e207f266ddb73047ceec611ac81d54c8048869 | 0d28a1e00c14513675bd4833a525a41f39313fc2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.