Skip to content

Instantly share code, notes, and snippets.

View gregsabo's full-sized avatar

Greg Sabo gregsabo

View GitHub Profile
@gregsabo
gregsabo / middle_america.py
Created November 2, 2013 05:11
Source code for "Middle America"
import random
choices = (
"why",
"Why",
"why?",
"why.",
"Why...",
)
choices = choices * 30 + ("why!?", "why...\n\n", "why?\n\n")
@gregsabo
gregsabo / gist:5854893
Created June 25, 2013 00:16
Yeoman newbie output. Trying out Yeoman for the first time, these commands run without errors, but the index page doesn't load ("No data received" message in the browser after a couple of minutes of no response). This is the output of me trying to get started with "Bitter" (a stupid name for a Twitter clone).
dev|⇒ mkdir bitter
dev|⇒ cd bitter
bitter|⇒ yo webapp
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
@gregsabo
gregsabo / gist:5647482
Last active December 17, 2015 17:39
Documentation on how to use the Prom Achievements Server.
@gregsabo
gregsabo / fadein.scpt
Created August 24, 2012 12:13
Simple alarm clock with hour-long fade-in.
set volume 0
repeat until time string of (current date) starts with "7:00"
delay 10
end repeat
-- fade in volume
set my_vol to 0
repeat until my_vol = 7
set volume my_vol
set my_vol to (my_vol + 0.1)