Skip to content

Instantly share code, notes, and snippets.

View stephenhandley's full-sized avatar
🎾
let

Stephen Handley stephenhandley

🎾
let
View GitHub Profile
@stephenhandley
stephenhandley / home.html
Created October 12, 2011 12:22
homepage
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function (evt) {
var bookmarks = {
sites: {
'g+': 'https://plus.google.com',
'hacker news': 'http://news.ycombinator.com',
techcrunch: 'http://techcrunch.com',
@stephenhandley
stephenhandley / LICENSE.txt
Created October 19, 2011 00:14 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@stephenhandley
stephenhandley / json_indentation_a.json
Created March 27, 2012 06:51
this is a way of indenting json
{
"this": {
"is": {
"a": "way",
"that": "json",
"could": "should",
"be": "indented"
},
"okay": "awesome"
},
@stephenhandley
stephenhandley / json_indentation_b.json
Created March 27, 2012 07:13
this is another way of indenting json
{
"this": {
"is": {
"another": "way",
"that": "json",
"could": "should",
"be": "indented"
},
"okay": "awesome"
},
@stephenhandley
stephenhandley / json_indentation_c.json
Created March 27, 2012 07:17
this is a third way of indenting json
{
"this": {
"is": {
"another": "way",
"that": "json",
"could": "should",
"be": "indented"
},
"okay": "awesome"
},
{
"this": {
"is" : {
"one more": "way",
"that" : "json",
"coulda" : "woulda",
"be" : "indented"
},
"okay": "awesome"
},
{
"this": {
"is": {
"one more": "way",
"that": "json",
"coulda": "woulda",
"be": "indented"
},
"okay": "awesome"
},
{
"this": {
"is": {
"one more": "way",
"that": "json",
"coulda": "woulda",
"be": "indented"
},
"okay": "awesome"
},
@stephenhandley
stephenhandley / __.traverse.coffee
Created March 29, 2012 08:47
is there a better way of doing mapping an iterator across an object
__.traverse = (obj, iterator, context)->
result = {}
return result unless obj
for k,v of obj
result[k] = iterator.call(context, k, v)
result
@stephenhandley
stephenhandley / CYOAGame.rb
Created March 29, 2012 10:24
me llamo Beto McLoserville
class CYOAGame
INVALID_CHOICE = "INVALID_CHOICE_aw_fuuuuuck_naw"
ENTER_PROMPT = " ... "
def initialize(events)
@events = events
@input = nil
self.run(:setup_merch)
end