Skip to content

Instantly share code, notes, and snippets.

@ecoologic
Last active December 20, 2015 04:09
Show Gist options
  • Save ecoologic/6068794 to your computer and use it in GitHub Desktop.
Save ecoologic/6068794 to your computer and use it in GitHub Desktop.
App = Em.Application.create() # use App for every app and Em as a shortcut
window.h = # h a hash with all the non oo helpers
formatDate: (date) ->
date = new Date unless date?
[date.getDate(), (date.getMonth() + 1), date.getFullYear(), ].join('/')
$ ->
$('.datepicker').datepicker()
$('.tab').tabs()
# all the jquery goodies accessible with a class attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment