Skip to content

Instantly share code, notes, and snippets.

View big-kahuna-burger's full-sized avatar
🌑

Aranđel Šarenac big-kahuna-burger

🌑
View GitHub Profile
import git, os, shutil
DIR_NAME = "temp"
REMOTE_URL = "https://github.com/hasinhayder/LightBulb.git"
if os.path.isdir(DIR_NAME):
shutil.rmtree(DIR_NAME)
os.mkdir(DIR_NAME)
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
{
"env": {
"node" : true,
"es6" : true,
"mocha": true
},
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": [2, "never"],
"array-callback-return": "error",
@big-kahuna-burger
big-kahuna-burger / test.js
Created March 22, 2017 21:11
setup and teardown in tape
var test = require('tape');
test('setup', function (t) {
// ...
t.end();
});
// tests go here
test('teardown', function (t) {
static int Proc(int[] A)
{
if (A.Length < 3)
{
return A.Length;
}
var seed = new Tuple<int, int, int, int>(A[0], A[1], 2, 2);
return A.Aggregate(seed,
(a, b) =>
{
@big-kahuna-burger
big-kahuna-burger / commit_format.txt
Created April 20, 2017 21:27 — forked from mutewinter/commit_format.txt
My commit message format.
feat: add hat wobble
^--^ ^------------^
| |
| +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.
var Ajv = require('ajv')
var ajv = require('ajv-async')(new Ajv())
//schema configuration here
module.exports = function(schema, object, cb){
return ajv.validate(schema, object)
.then(function (value) {
cb(null, value)
}, cb)
language: node_js
node_js:
- "node"

Keybase proof

I hereby claim:

  • I am big-kahuna-burger on github.
  • I am bigkahunaburger (https://keybase.io/bigkahunaburger) on keybase.
  • I have a public key ASCzL4FcwErJh1qKg_ypXD14H6ybvmAEZYrOWu8Tri-DPgo

To claim this, I am signing this object:

@big-kahuna-burger
big-kahuna-burger / reduce-reducers-example.js
Created November 27, 2017 23:48 — forked from markerikson/reduce-reducers-example.js
Redux reduce-reducers example
const mainReducer = combineReducers({a, b, c});
const secondReducer = function(state, action) {
switch(action.type) {
case SOME_ACTION:
return someSpecificReducer(state.a, state.c);
default: return state;
}
};