Skip to content

Instantly share code, notes, and snippets.

@kane-thornwyrd
Last active August 29, 2015 14:08
Show Gist options
  • Save kane-thornwyrd/3963c321845a685cf7b6 to your computer and use it in GitHub Desktop.
Save kane-thornwyrd/3963c321845a685cf7b6 to your computer and use it in GitHub Desktop.
Coffeescript Syntactic Diabetes
inside = (what, from)=>
if typeof window isnt 'undefined'
window[what] = from
else
global[what] = from
we = (obj)-> obj
load = (thing)=> inside thing, we require thing
inside '$', we require 'jquery'
load 'assert'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment