This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
boundValue: Ember.computed(function() { | |
return Ember.Object.create({name: "Some Name"}); | |
}), | |
actions: { | |
clearValue() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
let Mixin1 = Ember.Mixin.create({ | |
init() { | |
this.print("mixin1 calling super"); | |
this._super(...arguments); | |
this.print("mixin1 init finished"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
people: Ember.A(), | |
actions: { | |
add() { | |
this.get('people').pushObject("Phil K.S.") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
snapshot1: { | |
children: [ | |
{name: "id", value: 1}, | |
{name: "name", value: "Steve"} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
showCats: true, | |
actions: { | |
toggleCats() { | |
this.toggleProperty('showCats') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
websocket: Ember.inject.service(), | |
listener: Ember.inject.service('websocket-listener'), | |
appName:'Cat Trader', | |
users: Ember.computed.alias('model'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default Ember.Component.extend({ | |
user: null, | |
actions: { | |
createVacation(startDate, endDate) { | |
this.store.createRecord('vacation', {user: this.get('user'), startDate, endDate}); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
box-sizing: border-box; | |
font-family: "Helvetica Neue", Helvetica, arial, sans-serif; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
margin: 0; padding: 0; | |
} | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://blog.skylight.io/bending-the-curve-writing-safe-fast-native-gems-with-rust/ | |
http://stackoverflow.com/questions/24145823/rust-ffi-c-string-handling | |
https://siciarz.net/24-days-of-rust-calling-rust-from-other-languages/ |