I hereby claim:
- I am lsocrate on github.
- I am lsocrate (https://keybase.io/lsocrate) on keybase.
- I have a public key whose fingerprint is B638 0837 810E DC94 9202 227C F326 094F 0041 9C7E
To claim this, I am signing this object:
Array.prototype.popRandom = function() { | |
return this.splice(Math.ceil(Math.random() * (this.length - 1)), 1)[0]; | |
}; |
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Bitmask class | |
* @param {string[]} values - Array of names of masked properties | |
*/ | |
function Bitmask (values) { | |
this.mask = 0; | |
this.map = values.reduce(function (map, name, idx) { | |
map[name] = Math.pow(2, idx); | |
return map; | |
}, {}); |
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 list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
// requires strict mode | |
// set false to minimize out runtime checks | |
const DEBUG = true; | |
export const enum TagTypes { | |
A, | |
B, | |
// C | |
/* adding this will cause Tag and unreachable to Error |