I hereby claim:
- I am jamsajones on github.
- I am jamsajones (https://keybase.io/jamsajones) on keybase.
- I have a public key ASBkEDLdyQSp4_6gxAv7UAjiWVWrR-5nNjQp3ijsnbyilQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function simple_server { | |
NODE_PATH=$(which npm |sed -e 's/bin\/npm/lib\/node_modules/') | |
if [[ $(npm --depth 0 --parseable=true list express 2>/dev/null) = '' ]]; then | |
npm install -g express 2>/dev/null 1>/dev/null; | |
fi | |
if [[ $(npm --depth 0 --parseable=true list json-stringify-safe 2>/dev/null) = '' ]]; then | |
npm install -g json-stringify-safe 2>/dev/null 1>/dev/null; | |
fi |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
(function(){ | |
function do_save(name) { | |
localStorage.setItem(name, document.body.innerHTML) | |
} | |
window.addEventListener('load', function() { | |
var name = window.location.pathname || 'baseobject', | |
content = localStorage.getItem(name), | |
save = undefined | |
if(content !== null) { | |
document.body.innerHTML = content |