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
router.get('/:uid', service.getInteractionById)
router.get('/:uid/abort', service.authorizeDeclined)
router.post('/:uid/continue', urlencoded, service.continue)
router.post('/:uid/login', urlencoded, service.login)
router.post('/:uid/confirm', urlencoded, service.authorizeConfirmed)
@big-kahuna-burger
big-kahuna-burger / settings.json
Created September 2, 2019 14:16
standard setup
{
// Prevents VS Code from formatting JavaScript with the default linter
"javascript.format.enable": false,
// Prevents VS Code linting JavaScript with the default linter
"javascript.validate.enable": false,
// Lints with Standard JS
"standard.enable": true,

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@big-kahuna-burger
big-kahuna-burger / cerficate-fetcher.sh
Created January 10, 2019 09:47 — forked from mustafaturan/cerficate-fetcher.sh
Fetch Certificate From A Web Page
#!/usr/bin/env bash
openssl s_client -connect {hostname}:{port} -showcerts
@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;
}
};

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:

language: node_js
node_js:
- "node"
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)
@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.
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) =>
{