Skip to content

Instantly share code, notes, and snippets.

Robert Jackson rwjblue

Block or report user

Report or block rwjblue

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';
const Controller = Ember.Controller.extend({
appName: 'Ember Twiddle',
_foo: 0,
bar: 0,
// foo: Ember.computed({
// get() {
View controllers.application.js
import Ember from 'ember';
let deprecations = [];
Ember.Debug.registerDeprecationHandler((message, options, next) => {
deprecations.pushObject(message);
next();
});
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
});
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({
});
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'
});
@rwjblue
rwjblue / benchmark.sh
Created Feb 1, 2018
Stop random services before starting benchmarks on RHEL7...
View benchmark.sh
#!/usr/bin/bash
sudo service yum-cron stop
sudo service cfengine3 stop
sudo service osad stop
sudo service rhnsd stop
# execute the arguments as a command
$*
@rwjblue
rwjblue / controllers.application.js
Created Nov 14, 2017 — forked from jlami/controllers.application.js
ember-bug-multi-brace-plus-arrayproxy
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
items: [
{ id: 1, test: true, cat: 1},
{ id: 2, test: true, cat: 2},
{ id: 3, test: true, cat: 3},
{ id: 4, test: true, cat: 4},
{ id: 5, test: false, cat: 1},
{ id: 6, test: false, cat: 2},
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
items: ['one', 'two', 'three', 'four'],
reorderItems(newOrder) {
this.set('items', newOrder);
},
up(item) {
You can’t perform that action at this time.