This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window){ | |
var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
var eventIsRunning, | |
_eventStack, | |
_findByName, | |
stackEvent, | |
removeEvent, | |
eventListener, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// brew install ansible didn't work properly, | |
// even tried brew install python but no joy | |
// so use pip on standard python install | |
sudo pip install ansible | |
// if you get errors try this | |
// from https://github.com/ansible/ansible/issues/7146 | |
When you get to the step 'sudo pip install ansible', do this instead: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Debounced autosave for Ember.js | |
// Original code by Mitch Lloyd http://gaslight.co/blog/?author=mitchlloyd | |
// updated from http://gaslight.co/blog/an-autosave-pattern-for-ember-and-ember-data | |
// repo at https://github.com/gaslight/ember-autosaving | |
// Changed to work with latest Ember Data as of 2013-12-16 by Genkilabs | |
// Includes hooks for pacifier from http://ricostacruz.com/nprogress | |
// NOTE: This requires a 2 part install in which the controller and any models it loads have the corresponding mixin | |
// This is how long we will wait on a form before saving. I like to put this in App.AUTOSAVE_DELAY | |
var AUTOSAVE_DELAY = 1500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// Implement debounce until backburner implements a proper debounce | |
var debouncees = [], | |
pop = Array.prototype.pop; | |
var debounce = function (target, method /*, args, wait */) { | |
var self = Ember.run.backburner, | |
args = arguments, | |
wait = pop.call(args), |