Skip to content

Instantly share code, notes, and snippets.

View jamsajones's full-sized avatar

James Straub jamsajones

View GitHub Profile

Keybase proof

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:

@jamsajones
jamsajones / .simple_echo_server
Created August 10, 2015 03:46
A simple server written in node.
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
@jamsajones
jamsajones / Hello.md
Created July 19, 2012 05:01
Hello World

Hello gist.io

This is cool. Looks like you need to name the file, not just call it markdown.