Skip to content

Instantly share code, notes, and snippets.

View michael-benin-CN's full-sized avatar

Michael Benin michael-benin-CN

View GitHub Profile
@michael-benin-CN
michael-benin-CN / gist:8927111
Created February 11, 2014 00:31
Dynamically adding properties with a one liner - can it be done? Want to simplify.
var lessFiles = {};
lessFiles['public/css/copilot-' + version + '.css'] = 'public/less/copilot.less';
@michael-benin-CN
michael-benin-CN / gist:7267027
Created November 1, 2013 15:22
Sample error log from EmberJS
Uncaught ReferenceError: <App.GalleriesIndexController:ember1446>#needs does not include `current_user`. To access the current_user controller from <App.GalleriesIndexController:ember1446>, <App.GalleriesIndexController:ember1446> should have a `needs` property that is an array of the controllers it has access to.
@michael-benin-CN
michael-benin-CN / gist:6939969
Last active December 25, 2015 07:29
Sample Error Message in Ember
Uncaught ReferenceError: <App.ModalController:ember820>#needs does not include `preview`.
To access the preview controller from <App.ModalController:ember820>,
<App.ModalController:ember820> should have a `needs` property that is
an array of the controllers it has access to.