Skip to content

Instantly share code, notes, and snippets.

Alex Matchneer machty

Block or report user

Report or block machty

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
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
firstName: 'Godfrey',
lastName: 'Chan',
fullName: computed('firstName', 'lastName', function() {
@machty
machty / 0_reuse_code.js
Created May 2, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@machty
machty / controllers.application.js
Last active Dec 13, 2016 — forked from sukima/controllers.application.js
e-c acceptance testing timers
View controllers.application.js
import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
export default Ember.Controller.extend({
lockoutTimer: task(function * () {
while(true) {
yield timeout(10000000);
}
}).on('init')
});
View components.delete-blog.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: [ 'delete-blog' ],
sudoDeferred: null,
isDone: false,
isWorking: false,
message: null,
View controllers.application.js
import Ember from 'ember';
import { task, timeout, all } from 'ember-concurrency';
const { Controller, get, set } = Ember;
const TaskTracker = Ember.ObjectProxy.extend({
task: null,
error: null
});
View query-param-ideas.js
FooController = Em.Controller.extend({
queryParamBindings: ['bar'], // maps to foo[bar]
bar: 'baz',
widgets: Ember.computed.sort('content', 'bar')
});
FooController = Em.Controller.extend({
queryParamBindings: ['bar:lalal'], // maps to lalal
bar: 'baz',
You can’t perform that action at this time.