javascript:!function(a,b,c){for(b=a.length;b--;)c=a[b],c.rel.match(/^sty/i)&&c.href&&(c.href=c.href.replace(/(\?|&)_.*/,"$1_"+ +new Date))}(document.querySelectorAll("link"));
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 () { | |
| var last = null; | |
| this.get('content').forEach(function (item) { | |
| item.set('prev', last); | |
| item.set('next', null); | |
| if (last) { | |
| last.set('next', item); | |
| } | |
| last = item; | |
| }); |
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
| gulp.task('qa') // jshint, jscs, tests | |
| gulp.task('js') // require/browserify, concat, uglify | |
| gulp.task('css') // stylus, autoprefixer, csso | |
| gulp.task('img') // imagemin, copy, svgmin | |
| gulp.task('html') // consolidate, htmlmin | |
| gulp.task('font') // ?? | |
| gulp.task('sprite') // ?? | |
| gulp.task('build', ['qa', 'js', 'css', 'img', 'html']) |
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.MyComponent = Ember.Component.extend({ | |
| startTimer: function () { | |
| // start timer | |
| }.on( 'didInsertElement' ), | |
| killTimer: function () { | |
| // stop timer | |
| }.on( 'willDestroyElement' ) | |
| }); |
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
| body { | |
| color: broken; | |
| } |
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
| Ember.STRINGS = { | |
| test : 'asdf' | |
| }; | |
| Ember.Handlebars.helper('_', function(string) { | |
| return Ember.String.loc(string); | |
| }); |
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
| if (config.stats.bad) { | |
| setFavicon('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAH0lEQVQ4T2P8z8AAROQDxlEDGEbDgGE0DIBZaBikAwCl1B/x0/RuTAAAAABJRU5ErkJggg=='); | |
| } else { | |
| setFavicon('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAHklEQVQ4T2Nk+A+EFADGUQMYRsOAYTQMgHloGKQDAJXkH/HZpKBrAAAAAElFTkSuQmCC'); | |
| } | |
| function setFavicon( uri ) { |
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
| # NPM | |
| # Remove local node modules | |
| rm -rf node_modules/ | |
| # Remove npm shrinkwrap | |
| rm npm-shrinkwrap.json | |
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
| cd $(git rev-parse --show-toplevel)/.git/hooks/ && echo -e '#!/bin/sh\n\ngrunt build' > pre-push && chmod 755 pre-push && cd - |
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 mimetypes | |
| mimetypes.add_type("application/font-woff", ".woff", True) |