Delete Git local branch
git branch -D branch_name
NPM specific release version from Github
git+ssh://[email protected]:rodleviton/module.git#v1.0.0
Rebase to master
# 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 |
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 |
Delete Git local branch
git branch -D branch_name
NPM specific release version from Github
git+ssh://[email protected]:rodleviton/module.git#v1.0.0
Rebase to master
// 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`. |
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) { |