Skip to content

Instantly share code, notes, and snippets.

Working from home

Ryan Haywood haywoood

Working from home
View GitHub Profile
View gist:9260128
### Keybase proof
I hereby claim:
* I am lsdafjklsd on github.
* I am haywood ( on keybase.
* I have a public key whose fingerprint is 6E56 DA77 3F4F 28A2 8104 7178 7983 8032 15C6 26AF
To claim this, I am signing this object:
View timer.js
$(document).ajaxSuccess(function(a,b,c,d) {
if (d.IsCaptcha) {
} else if (d.AutosRemaining === 0) {
}, 500)
}, (12*1000))
haywoood /
Last active Aug 29, 2015
Fever in the hurricane

Fever in the hurricane

The last time I was in Kansas, my brother was competing for the top spot in his high school's prestigious group. It wasn't until the gunman funneled his way through the air ducts that I realized we weren't going home that night.

“Alright Julie, that's my queue, wish me luck!”

Greg darted through the curtains to take the last seat on stage with the other finalists. A natural showman, Greg stood in front of his chair, arms raised like a gymnast who stuck the landing of a lifetime. He squatted down, hovered over the seat but still not officially seated -- the crowd went nuts. 'Sit! Sit! Sit!' they chanted.

The gymnasium was ablaze with excitement as Greg held his pose, he didn't give in to their outcries, he knew he was in control. Teasing them, he bobbed his bottom up and down, mere centimeters from seat. The crowd reached a tepid frenzy as he finally sat down. His weight shifted fully to the seat, his legs kind of rocked off the ground as he settled into the chair. BOOM. Greg exp

newMode = ([mode, type] = pair) ->
newProps = ramda.mixin { term: mode.term, eventCount: mode.count }, type
Em.Object.create newProps
View gist:ca576a75e5da555f5047
in paris, japanese-american
shirts are tied-together by
the sounds of congratulations
in paris, tunics is currency
the tunics are held together by volunteers
one volunteer is laughing with a child
while gender-identity-omitted buys a bike
with a pile of folded tunics.
the child is excited.
haywoood /
Last active Aug 29, 2015
React tutorial
TU = React.addons.TestUtils
{ div
button } = React.DOM
# Component actions
toggleAction = (state) ->
val = state.get 'showSubhead'
haywoood / message.cljs
Created Jan 15, 2015
message react component translated to clojurescript
View message.cljs
(ns brazil.core)
(def TU (.. js/React -addons -TestUtils))
(def d js/React.DOM)
(defn toggle-action [state]
(let [val (not (:show-subhead state))
new-state (assoc state :show-subhead val)]
(render new-state)))
TU = React.addons.TestUtils
# Component actions
toggleAction = (state) ->
val = state.get 'showSubhead'
newState = state.set 'showSubhead', not val
render newState
incrementCounter = (state) ->
val = state.get 'count'
haywoood /
Created May 3, 2015
Saving work done in coffee console
getRamda = ->
script = document.createElement('script')
script.type = 'text/javascript'
script.src = ''
letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
charToNumber = (char) ->
idx = R.indexOf char, letters
haywoood / gist:4540930
Created Jan 15, 2013
Command to load postgres .dump file to local development db
View gist:4540930
turn this into a script
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U rhaywood -d flp_development latest.dump