Skip to content

Instantly share code, notes, and snippets.

View haywoood's full-sized avatar
🏠
Working from home

Ryan Haywood haywoood

🏠
Working from home
View GitHub Profile
### Keybase proof
I hereby claim:
* I am lsdafjklsd on github.
* I am haywood (https://keybase.io/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:
$(document).ajaxSuccess(function(a,b,c,d) {
if (d.IsCaptcha) {
alert('captcha')
} else if (d.AutosRemaining === 0) {
setTimeout(function(){
$('#BattleContinue').click()
setTimeout(function(){
$('#AutoBattleSubmit').click()
}, 500)
}, (12*1000))
@haywoood
haywoood / fever_in_the_hurrican.md
Last active August 29, 2015 14:01
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
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
haywoood / message.coffee
Last active August 29, 2015 14:13
React tutorial
TU = React.addons.TestUtils
{ div
h1
h3
button } = React.DOM
# Component actions
toggleAction = (state) ->
val = state.get 'showSubhead'
@haywoood
haywoood / message.cljs
Created January 15, 2015 05:06
message react component translated to clojurescript
(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)))
@haywoood
haywoood / react-message.coffee
Created January 15, 2015 15:35
react message start
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
haywoood / word-increment.coffee
Created May 3, 2015 19:13
Saving work done in coffee console
getRamda = ->
script = document.createElement('script')
script.type = 'text/javascript'
script.src = 'https://rawgit.com/ramda/ramda/master/dist/ramda.js'
document.head.appendChild(script)
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
haywoood / gist:4540930
Created January 15, 2013 18:45
Command to load postgres .dump file to local development db
turn this into a script
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U rhaywood -d flp_development latest.dump