Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Stefan Penner stefanpenner

🎯
Focusing
Block or report user

Report or block stefanpenner

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 fastboot-addons.fish
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 "- [ ] "
View components.toggle-pill.js
import Ember from 'ember';
export default Ember.Component.extend({
isChecked: false,
label: 'laber before input'
});
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'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
View components.my-pokemon.js
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();
View components.my-pokemon.js
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();
View controllers.application.js
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() {
View controllers.application.js
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'),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.a = 1;
this.b = 0.5;
},
abs: Ember.computed('a', 'b', function() {
You can’t perform that action at this time.