Skip to content

Instantly share code, notes, and snippets.

View betawaffle's full-sized avatar

Andrew Hodges betawaffle

View GitHub Profile
@betawaffle
betawaffle / gist:7477418
Last active December 28, 2015 09:18 — forked from jsvd/gist:7477358
def format event
{ header, payload } = SomeModule.somefn(event)
join_results(format_header(header), format_payload(payload))
end
def format_header(header)
# do stuff
....
# and return
@betawaffle
betawaffle / license
Created May 22, 2011 12:27 — forked from defunkt/license
license bash script
#!/bin/sh -e
# Usage: license
# Prints an MIT license appropriate for totin' around.
#
# $ license > COPYING
#!/bin/sh
echo "Copyright (c) `date +%Y` `git config --get user.name`
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the