This file contains hidden or 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 iAmAllDone() { | |
// Do something herebecause It's All Done! | |
} | |
function onContributionWizardAfterAddEntry(entries) { | |
for(var i = 0; i < entries.length; i++) { | |
parent.top.$j("#externalVideoID").val(entries[i].entryId); | |
} | |
// Trigger an event however the library event model handles event triggering. |
This file contains hidden or 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
#!/bin/bash | |
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]> | |
## License: GNU General Public License v2, v3 | |
# | |
# Lockable script boilerplate | |
### HEADER ### | |
LOCKFILE="/var/lock/`basename $0`" |
This file contains hidden or 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
var CountdownLatch = function (limit) { | |
this.limit = limit; | |
this.count = 0; | |
this.waitBlock = function () {}; | |
}; | |
CountdownLatch.prototype.async = function (fn, ctx) { | |
var _this = this; | |
fn.call(ctx, function () { | |
_this.count = _this.count + 1; | |
if(_this.limit <= _this.count){ |
This file contains hidden or 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
firstReport: computed.alias('reports.firstObject'), | |
someOtherThing: computed('reports.[]', function() { | |
return get(this, 'reports').map(report => doCoolStuff(report)); | |
}), | |
... | |
... | |
... | |
getReports: task(function*() { |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Concurrency Decendants' | |
}); |
This file contains hidden or 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
import Ember from 'ember'; | |
import CoreController from '../core/controller'; | |
const { computed } = Ember; | |
export default CoreController.extend({ | |
queryParams: ['appName', 'foobar'], | |
appName: 'Ember Twiddle', | |
foobar: 'baz', | |
something: computed('{appName,foobar}', { |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
thing: { | |
'first-name': '', | |
'last-name': '', | |
'status': '', | |
}, | |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
open(){ | |
//do stuff | |
let image = 'yay image' | |
this.get('childManager').select(image) | |
} | |
} |