Skip to content

Instantly share code, notes, and snippets.


Ethan Muller ethanmuller

View GitHub Profile
ethanmuller / 0_reuse_code.js
Created Nov 6, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
curl -sSL >> "$PROFILE"
echo "Sparkbox init function appended to $PROFILE"
echo 'Run "sb_init [project-name]" to get started!'
exec bash
function sb_init {
local RED="\033[0;31m"
local NC="\033[0m"
if [ ! $# == 1 ]; then
echo -e "${RED}Please specify a project name.${NC}"
echo -e "Usage: init project-name\n"
if ! type "ruby" > /dev/null; then
echo -e "${RED}Please install Ruby:${NC}"
You can’t perform that action at this time.