This file contains 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
"lsauer.com , lo sauer 2013" | |
"JavaScript List of selected MIME types" | |
"A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503" | |
"mime": { | |
"a": "application/octet-stream", | |
"ai": "application/postscript", | |
"aif": "audio/x-aiff", | |
"aifc": "audio/x-aiff", | |
"aiff": "audio/x-aiff", |
This file contains 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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains 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
/*jslint node: true*/ | |
'use strict'; | |
/** | |
* Created by stkevintan(https://github.com/stkevintan/Cube/blob/master/src/model/Crypto.js) on 15-7-19. | |
* With modifications made by Tab/jy | |
*/ | |
const Crypto = require('crypto'); | |
const BigInt = require('big-integer'); |
This file contains 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
function extend(des, src, override) { | |
if (src instanceof Array) { | |
for (var i = 0, len = src.length; i < len; i++) | |
this._extend(des, src[i], override); | |
} | |
for (var ii in src) { | |
if (override || !(ii in des)) { | |
des[ii] = src[ii]; | |
} | |
} |
NewerOlder