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', | |
| actions: { | |
| toLower: function(value) { | |
| this.set('athing', value.toLowerCase()); | |
| } | |
| } |
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', | |
| baz: {foo: 'BLAMMO', bar: 'BLAZORZ'}, | |
| something: Ember.computed('baz.{foo,bar}', function() { | |
| return this.get('baz.foo') + ' ' + this.get('baz.bar'); | |
| }), |
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({ | |
| actions: { | |
| superCoolAction: function() { | |
| this.attrs.superCoolAction(); | |
| } | |
| } | |
| }); |
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({ | |
| _items: [], | |
| pushIt: function() { | |
| this.get('_items').pushObject('Hi ' + Date.now()); | |
| }, | |
| actions: { |
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', | |
| model: Ember.computed(function() { | |
| return [{ | |
| id: 1 | |
| },{ | |
| id: 2 | |
| }]; |
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
| var canvas = document.getElementById('canvas-id'); | |
| var context = canvas.getContext('2d'); | |
| var idoc = document.getElementById('iframe-id').contentWindow.document.body; | |
| domvas.toImage(idoc, function() { | |
| context.drawImage(this, 0, 0, width, height); | |
| // Download | |
| var rawImageData = canvas.toDataURL("image/png;base64"); | |
| rawImageData = rawImageData.replace("image/png", "image/octet-stream"); |
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.Route.extend({ | |
| model: function() { | |
| return [Ember.Object.create({name: 'One'}), Ember.Object.create({name: 'Two'}), Ember.Object.create({name: 'Three'}]; | |
| } | |
| }); |
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
| Running "karma:ci" (karma) task | |
| INFO [karma]: Karma v0.9.8 server started at http://localhost:9876/ | |
| INFO [launcher]: Starting browser PhantomJS | |
| INFO [PhantomJS 1.9.2 (Mac OS X)]: Connected on socket id IWLbOuryIH66v4vPOW9T | |
| DEBUG: 'DEBUG: -------------------------------' | |
| DEBUG: 'DEBUG: Ember : 1.2.0' | |
| DEBUG: 'DEBUG: Ember Data : 1.0.0-beta.2' | |
| DEBUG: 'DEBUG: Handlebars : 1.1.2' | |
| DEBUG: 'DEBUG: jQuery : 1.9.1' | |
| DEBUG: 'DEBUG: -------------------------------' |
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
| // Install jquery-mockjax into vendor | |
| // file: /app/index.html | |
| <!-- @if tests=true --> | |
| <link rel="stylesheet" href="/vendor/qunit/qunit/qunit.css"> | |
| <script src="/vendor/qunit/qunit/qunit.js"></script> | |
| <script src="/vendor/jquery-mockjax/jquery.mockjax.js"></script> | |
| // And add it to karma.conf | |
| // file: karma.conf.js | |
| files = [ |
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
| autoconf coreutils freetype gnutls libgpg-error libyaml p11-kit python wget | |
| automake ctags gd httperf libicns markdown patchutils readline wine | |
| bash-completion curl gdbm icu4c libpng mcrypt pcre redis xz | |
| casperjs d-bus gettext jasper libtasn1 megalodon phantomjs ruby yasm | |
| cclient dnsmasq git jpeg libtool mongodb pidof sqlite zlib | |
| cmake expat git-flow libgcrypt libxml2 mysql pkg-config tig |
NewerOlder