Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ryan Haywood haywoood

🏠
Working from home
Block or report user

Report or block haywoood

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View yay.coffee
newMode = ([mode, type] = pair) ->
newProps = ramda.mixin { term: mode.term, eventCount: mode.count }, type
Em.Object.create newProps
@haywoood
haywoood / fever_in_the_hurrican.md
Last active Aug 29, 2015
Fever in the hurricane
View fever_in_the_hurrican.md

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

View timer.js
$(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))
View gist:9260128
### 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:
View wont_work.cljs
(ns test.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [<! chan put!]]
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(def app-state (atom {:projects
[{:id 1 :title "proj 1"}
{:id 2 :title "proj 2"}
{:id 3 :title "proj 3"}
View works!@#.cljs
(ns test.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [<! chan put!]]
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(def app-state (atom {:projects
[{:id 1 :title "proj 1"}
{:id 2 :title "proj 2"}
{:id 3 :title "proj 3"}
View sigh.cljs
(ns test.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [<! chan put! sliding-buffer]]
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(def app-state (atom {:default-project-id 5
:projects
[{:id 1 :title "proj 1"}
{:id 2 :title "proj 2"}
View gist:8294408
(ns test.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(def app-state (atom {:default-project-id 5
:projects
[{:id 1 :title "proj 1"}
{:id 2 :title "proj 2"}
{:id 3 :title "proj 3"}
{:id 4 :title "proj 4"}
View gist:8211908
(ns puree.core
(:require-macros [cljs.core.async.macros :refer [go]]
[secretary.macros :refer [defroute]])
(:require [cljs.core.async :as async :refer [>! <! put! chan]]
[goog.events :as events]
[clojure.browser.repl]
[secretary.core :as secretary]
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[puree.state :as state]
View gist:8191733
(ns examples.hello.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(defn handle-change [e data]
(let [val (.. e -target -value)]
(println val)
(if (= 13 (.-keyCode e))
You can’t perform that action at this time.