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
| {{my-component click=(action "foo")}} |
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
| https://ember-cli.com/user-guide/#standard-non-amd-asset | |
| First, generate the shim: | |
| ember generate vendor-shim moment | |
| Next, provide the vendor asset path: | |
| app.import('vendor/shims/moment.js'); | |
| Finally, use the package by adding the appropriate import statement: |
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
| machine: | |
| node: | |
| version: 0.12.0 | |
| dependencies: | |
| pre: | |
| - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH | |
| - npm config set spin false | |
| - npm install -g npm@^2 | |
| - npm install -g bower |
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'; | |
| import DS from 'ember-data'; | |
| /** | |
| * Returns true iff the number passed in is even | |
| * @param {Number} x | |
| * @return {Boolean} | |
| */ | |
| function isEven(x) { | |
| return x % 2 == 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
| Capybara.register_driver :chrome do |app| | |
| Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
| end | |
| Capybara.default_driver = :chrome |
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
| save relanships | |
| https://guides.emberjs.com/v2.7.0/models/relationships/ | |
| ``` | |
| let blogPost = this.get('store').peekRecord('blog-post', 1); | |
| let comment = this.get('store').createRecord('comment', { | |
| }); | |
| blogPost.get('comments').pushObject(comment); | |
| comment.save().then(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
| 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
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| "._*" | |
| ], | |
| "folder_exclude_patterns": | |
| [ | |
| ".svn", |
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
| <!doctype html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | |
| <head> | |
| <title></title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <style type="text/css"> | |
| #outlook a { padding: 0; } | |
| .ReadMsgBody { width: 100%; } | |
| .ExternalClass { width: 100%; } | |
| .ExternalClass * { line-height:100%; } |