This file contains hidden or 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 hidden or 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
| a qwsz | |
| b vghn | |
| c xdfv | |
| d serfcx | |
| e wsdr | |
| f drtgvc | |
| g ftyhbv | |
| h gyujnb | |
| i ujko | |
| j huikmn |
This file contains hidden or 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({ | |
| tagName: 'input', | |
| type: 'checkbox', | |
| attributeBindings: [ 'type', 'name', 'checked:checked' ], | |
| change: function() { | |
| this.sendAction('onChange', this.get('name'), this.$().is(':checked')); |
This file contains hidden or 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', | |
| noChange: function() { | |
| return 'foo'; | |
| }.property(), | |
| butWhy: function() { |
This file contains hidden or 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
| const expect = require('chai').expect; | |
| Array.prototype.doubleAll = function() { | |
| return this.map(a => a * 2); | |
| }; | |
| describe("Arrays", function() { | |
| describe("doubleAll method", function() { | |
| it("should exist on all arrays", function() { | |
| expect([].doubleAll).to.be.instanceof(Function); |
This file contains hidden or 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
| # List new merges since the last tag | |
| whatsnew = "!git log --merges --oneline $(git describe --tags --abbrev=0).." |
This file contains hidden or 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({ | |
| isShowing: false, | |
| actions: { | |
| toggle: function() { | |
| this.toggleProperty('isShowing'); | |
| }, | |
| emit: function() { | |
| this.sendAction('action'); |
This file contains hidden or 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', | |
| name: '', | |
| isNamed: function() { | |
| console.log('dirtied isNamed'); | |
| return !!this.get('name'); | |
| }.property('name'), |
This file contains hidden or 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', | |
| stuff: [ | |
| [ 'this', 'is', 'a', 'list' ], | |
| [], | |
| [ 'another', 'static', 'list' ] | |
| ], |
This file contains hidden or 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
| def setup(): | |
| global seed | |
| seed = 0 | |
| size(500, 500) | |
| frameRate(4) | |
| colorMode(HSB) | |
| def draw(): |