Skip to content

Instantly share code, notes, and snippets.

@camerond
camerond / gist:2502862
Created April 26, 2012 20:33 — forked from shaneriley/gist:1854893
WTF CoffeeScript (refactor)
# Refactor of shane_riley's issue
$("dl.card :text").change ->
$e = $(@)
val = $e.val()
odd = []
even = []
for v, i in val.split("")
if !(i % 2) then odd.push(v)
else