brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/
is a symlink to /usr/local/Cellar/mongodb/x.y.z
(e.g., 2.4.9
)
async function nextFrame() { | |
return new Promise((resolve) => { | |
requestAnimationFrame(resolve) | |
}) | |
} | |
async function randomDelay(min, max) { | |
const delay = Math.random() * (max - min) + min; | |
const startTime = performance.now() | |
while (performance.now() - startTime < delay) { |
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
Delete Git local branch
git branch -D branch_name
NPM specific release version from Github
git+ssh://git@github.com:rodleviton/module.git#v1.0.0
Rebase to master
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 |
# You need to reclaim ownership of the .npm directory | |
sudo chown -R <username> ~/.npm | |
# And need the write permission in node_modules directory | |
sudo chown -R <username> /usr/local/lib/node_modules |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
// Full Blog Post: http://viget.com/extend/time-based-animation | |
// requestAnimationFrame() polyfill: https://gist.github.com/1579671 | |
window.APP = window.APP || {}; | |
APP.pause = function() { | |
window.cancelAnimationFrame(APP.core.animationFrame); | |
}; | |
APP.play = function() { |
var Generator = window.Generator || {}; | |
Generator = (function() { | |
'use strict'; | |
var container; // Container to append items to and get size constraints | |
function init(id, total, className) { | |
container = document.getElementById(id); |