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
| App.SelectWithOptgroups = Ember.Select.extend({ | |
| // A version of Ember.Select that supports optgroup tags. | |
| // content can contain objects that represent the options or the optgroups | |
| // Example of an optgroup object: | |
| // Ember.Object.create({ | |
| // optgroup_label: 'foo', | |
| // content: [Ember.Object.create({label: 'First Name', value: 'first_name'}), Ember.Object.create({label: 'Last Name', value: 'last_name'})] | |
| // }) | |
| defaultTemplate: Ember.Handlebars.compile('{{#if view.prompt}}<option>{{view.prompt}}</option>{{/if}}{{#each view.content}}{{#if optgroup_label}}<optgroup {{bindAttr label="optgroup_label"}}>{{#each content}}{{view Ember.SelectOption contentBinding="this"}}{{/each}}</optgroup>{{else}}{{view Ember.SelectOption contentBinding="this"}}{{/if}}{{/each}}'), | |
| options: 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
| // You create your bookmarklet by instantiating | |
| // a new Bookmarklet function, then pass in the options like so. | |
| // This example checks to see if the var is already defined, and makes | |
| // sure not to overwrite it. This could happen if the user clicks on | |
| // the bookmarklet more than once. | |
| var MyBookmarklet = MyBookmarklet || new Bookmarklet({ | |
| // debug: true, // use debug to bust the cache on your resources | |
| css: ['/my/style.css'], | |
| js: [], |
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
| (function() { | |
| /*global __fail__*/ | |
| if ('undefined' === typeof Ember) { | |
| Ember = {}; | |
| if ('undefined' !== typeof window) { | |
| window.Em = window.Ember = Em = Ember; | |
| } | |
| } |
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
| ENV = {}; | |
| ENV.CP_DEFAULT_CACHEABLE = true; | |
| ENV.VIEW_PRESERVES_CONTEXT = true; |
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
| # start a Web server to share the current directory | |
| python -c "import SimpleHTTPServer;SimpleHTTPServer.test()" |
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
| ack --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g' |
NewerOlder