Skip to content

Instantly share code, notes, and snippets.

Eli Flanagan efx

Block or report user

Report or block efx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@efx
efx / runloop-use-survey.md
Last active Sep 16, 2019
informal survey of our use of runloop methods
View runloop-use-survey.md

current uses

methods used

  • cancel
  • debounce
  • later
  • next
  • once
  • schedule
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.numerals = [ 'I', 'II', 'III' ];
}
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
action: {
editValue() {
}
}
});
@efx
efx / components.some-menu.js
Last active Mar 13, 2019
event deregister
View components.some-menu.js
import Ember from 'ember';
export default Ember.Component.extend({
closer() {
console.log('close some menu');
},
boundCloser() {
return this.closer.bind(this);
},
didInsertElement() {
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'I love odd syntax',
init() {
this._super(...arguments);
this.set('list', [
{ name: 'Fred' },
{ name: 'Kid' }
]);
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
onInput(ev) {
if (ev.key === 'Enter' || ev.keyCode === 13) {
this.get('editTagName')(ev.target.value);
}
}
}
@efx
efx / triaging-unloadAll.md
Last active Dec 18, 2017
triaging `unloadAll` related issues for ember-data
View triaging-unloadAll.md
@efx
efx / var-styles.js
Last active Nov 10, 2017
variable declaration styles
View var-styles.js
// proposed
const foo = 1;
const bar = 2;
// existing patterns
const foo = 1,
bar = 2;
You can’t perform that action at this time.