Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
cd ~
# Install command line tools
xcode-select -r
xcode-select -p
if [[ $? -ne 0 ]]; then
xcode-select --install
fi
@k3n
k3n / ember-cli-update_test-failure
Created March 7, 2019 17:22
ember-cli-update_test-failure
$ npm run test
> [email protected] test /Users/k3n/Applications/_externals/ember-cli-update
> npm run test:both
> [email protected] test:both /Users/k3n/Applications/_externals/ember-cli-update
> npm run test:bin && npm run test:command
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
model: Ember.Object.create({
name: 'Sergio',
bio: 'Ogro malvado achuchable',
lovesEmber: true
})
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
model: Ember.Object.create({
name: 'Sergio',
bio: 'Ogro malvado achuchable',
lovesEmber: true
})
});
@k3n
k3n / controllers.application.js
Created December 7, 2016 21:39
get() with dots
import Ember from 'ember';
const { get } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
transition: Ember.Object.create({
params: {
'dynamicForm.show': { vendor_id: 'WINNER' }
}
@k3n
k3n / components.l-o-l.js
Created October 31, 2016 18:46
New Twiddle
import Ember from 'ember';
import one from '../templates/one';
import two from '../templates/two';
const { get } = Ember;
let tpls = {'one': one, 'two': two};
export default Ember.Component.extend({
tpl: null,
import Ember from 'ember';
export default Ember.Component.extend({
attributeBindings: ['tabIndex:tabindex'],
tabIndex: 123
});
import Ember from 'ember';
export default Ember.Component.extend({
});
@k3n
k3n / components.foo-bar.js
Created August 12, 2016 20:39
test-id classNames
import Ember from 'ember';
export default Ember.Component.extend({
isActive: true,
classNameBindings: ['isActive'],
classNames: ['foo', 'bar']
});
@k3n
k3n / controllers.application.js
Last active April 22, 2016 19:55
1.12.2 regression?
import Ember from 'ember';
export default Ember.Controller.extend({});