Skip to content

Instantly share code, notes, and snippets.

View ethanmuller's full-sized avatar

Ethan Muller ethanmuller

View GitHub Profile
@ethanmuller
ethanmuller / 0_reuse_code.js
Created November 6, 2013 18:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
PROFILE=~/.bashrc
curl -sSL https://gist.github.com/raw/4673740/init.sh >> "$PROFILE"
echo "Sparkbox init function appended to $PROFILE"
echo 'Run "sb_init [project-name]" to get started!'
exec bash
@ethanmuller
ethanmuller / init.sh
Last active December 11, 2015 22:59 — forked from asimpson/init.sh
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"
else
if ! type "ruby" > /dev/null; then
echo -e "${RED}Please install Ruby:${NC}"