Skip to content

Instantly share code, notes, and snippets.

View brunchybit's full-sized avatar
:octocat:

Micah Adams brunchybit

:octocat:
View GitHub Profile
@brunchybit
brunchybit / keybase.md
Created July 23, 2015 23:46
keybase.md

Keybase proof

I hereby claim:

  • I am larquin on github.
  • I am larquin (https://keybase.io/larquin) on keybase.
  • I have a public key whose fingerprint is 6704 45E2 6943 E896 D5CB 04FA 2877 8551 3B0B F93F

To claim this, I am signing this object:

Object::delegates = (methods, to) ->
methods.forEach (method) =>
this::[method] = (args...) ->
@[to][method].apply(this, args)
class AjaxService
start: (target) ->
console.log("STARTING AJAX AT #{target}")
success: (message) ->
console.log("YOU DEED IT #{message}")
@brunchybit
brunchybit / chart dispatch
Created August 1, 2014 18:58
Dispatchination
nv.addGraph(function() {
var chart = nv.models.stackedAreaChart()
.x(function(d) { return d[0]})
.y(function(d) { return d[1]})
// axis stuff
chart.xAxis //...
chart.yAxis //...
function override_clicks() {
// if you have a stacked area chart, the overrides you want to dispatch are as follows
chart. stacked.dispatch.on("areaClick", function(hadouken) { console.log(hadouken);}) // hadouken will give you the element you clicked on
@brunchybit
brunchybit / ws.clj
Created August 21, 2012 14:33 — forked from anonymous/ws.clj
Example of JSON message exchange and world update in Aleph using websockets
(ns test.ws
(:use
lamina.core
compojure.core
compojure.response
aleph.core
aleph.http
aleph.formats
hiccup.core
ring.middleware.reload