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 / 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;
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@efx
efx / components.my-child.js
Last active Sep 15, 2017
prototype component props
View components.my-child.js
import Parent from 'twiddle/components/my-parent';
export default Parent.extend({
});
@efx
efx / keybase.md
Created Mar 22, 2017
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am efx on github.
  • I am eliflanagan (https://keybase.io/eliflanagan) on keybase.
  • I have a public key ASCdvVt30tziMDFEMzl0ZJOgcK9sVfv-MvRtR1v5Xj0DVwo

To claim this, I am signing this object:

You can’t perform that action at this time.