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
| gem update --system | |
| gem update | |
| # gem sources --clear-all | |
| # gem sources --update | |
| # gem install sass --version 3.4.25 | |
| # gem uninstall |
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
| sass --compass --style nested --line-numbers --line-comments --debug-info --trace --no-cache --force --stop-on-error --unix-newlines --update roboto.scss:roboto.css |
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
| #!/bin/bash | |
| # https://gist.github.com/rc1/5346303 | |
| # Convert a TTF font into WOFF, SVG and EOT format. | |
| # @source: http://stackoverflow.com/a/2467452/179015 | |
| # @usage: ttf2webfont.sh FontName | |
| woffFont="$1.woff" | |
| svgFont_tmp="$1_tmp.svg" | |
| svgFont="$1.svg" | |
| ttfFont="$1.ttf" | |
| eotFont="$1.eot" |
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.Handlebars.helper('filesize', function(value) { | |
| if (typeof value === 'undefined') { | |
| return null; | |
| } | |
| var i, | |
| filesize, | |
| units = ['B', 'KB', 'MB', 'GB', 'TB']; | |
| for (i = 0; i < units.length; i++) { | |
| if (value < 1024) { | |
| filesize = Math.floor(value) + units[i]; |
NewerOlder