This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"es6": true | |
}, | |
"plugins": [ | |
"react" | |
], | |
"ecmaFeatures": { | |
"jsx": true, | |
"experimentalObjectRestSpread": true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Konnektid - rpc | |
* | |
* Copyright(c) 2015 Konnektid | |
* All rights reserved. | |
* | |
* Simple function to communicate with the API without all the | |
* bullshit that I made up when creating the original API.js module. | |
* Only handles setting up the correct headers and parsing the data. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Introducting MoSCoW for bash: | |
function must { | |
# Exit on errors | |
"$@" || exit $? | |
} | |
function should { | |
# Warn on errors | |
"$@" || echo "[!] Failed running $@" | |
} | |
function could { |
NewerOlder