Skip to content

Instantly share code, notes, and snippets.

View stefanpenner's full-sized avatar
🎯
Focusing

Stefan Penner stefanpenner

🎯
Focusing
View GitHub Profile
@stefanpenner
stefanpenner / SketchSystems.spec
Last active November 30, 2020 19:33
My Awesome Sketch
My Awesome Sketch
First State
next -> Second State
Second State
previous -> First State
for name in (curl 'https://emberobserver.com/api/v2/search/addons?query=process.env.EMBER_CLI_FASTBOOT&regex=false' | jq -r '.results | .[].addon')
printf "- [ ] "
printf $name
printf " [homepage]("
printf (npm info --json "$name" | jq -r '.homepage')
printf ")\n"
end
for name in (curl "https://emberobserver.com/api/v2/search/addons?query=fastboot-filter-initializers" | jq -r ".results | .[].addon")
printf "- [ ] "
import Ember from 'ember';
export default Ember.Component.extend({
isChecked: false,
label: 'laber before input'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.name = 'Pikachu';
},
pokemon: Ember.computed('name', function() {
let url = `https://pokeapi.co/api/v2/pokemon/${this.get('name')}`.toLowerCase();
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.name = 'Pikachu';
},
pokemon: Ember.computed('name', function() {
let url = `https://pokeapi.co/api/v2/pokemon/${this.get('name')}`.toLowerCase();
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.set('items', []);
Ember.run.later(() => this.set('items', [1]), 1000);
},
toString() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.set('items', []);
window.x = this;
},
length: Ember.comptued.readOnly('items.length'),