I hereby claim:
- I am thibmaek on github.
- I am thibmaek (https://keybase.io/thibmaek) on keybase.
- I have a public key ASA2HCof3XCCjQiWBifGModqhxtnGhXgqlbKagrGc4Sncwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Usage: nvmi v6.0.1 (will install specified version) | |
# Usage: nvmi_latest (will install latest node version) | |
# these functions will replace the current 'default' version known in the shell. | |
# to install a node version next to your current 'default' just use nvm install vX.X.X | |
function nvmi() { | |
CURRENT=$(node -v) | |
nvm install $1 --reinstall-packages-from=$CURRENT |
# Given engine.node = 6.10.1 in package.json | |
# will output 6.10.1 in the shell | |
cat package.json | grep \"node\": | grep -E -o '(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)' | |
# Why? Auto install package.json version to nvm | |
cat package.json | grep \"node\": | grep -E -o '(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)' | nvm install |
javascript:void((function(){var%20e=document.querySelectorAll(".image__full");p=e[1].style.backgroundImage;f=p.substr(4,63);window.location=f;})()) |
### Thibault Maekelbergh ### | |
### http://blog.thibmaekelbergh.be/2014/12/18/http-python-server.html ### | |
cd "$(dirname "$0")" #Get current directory | |
ENTRY=index.html #Set the entry point for the server | |
if [ -f "$ENTRY" ]; then #Check if the entry exists then go on | |
sleep 1 && open "http://localhost:8000/"; #Delay a second then open localhost | |
python -m SimpleHTTPServer; #Start the HTTP Server |