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
Object.assign ?= (target, sources...) -> | |
unless target? | |
throw new TypeError "Cannot convert undefined or null to object" | |
output = Object target | |
for source in sources when source? | |
for own key of source | |
output[key] = source[key] |
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
/* jQuery Quantum Pub/Sub | |
* -- from -- | |
* jQuery Tiny Pub/Sub v0.7 (http://benalman.com) | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function( $ ) { | |
var o = $( {} ), | |
fn = $.fn, | |
proxy = $.proxy; |
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
1 / 0 | |
//-> Infinity | |
-1 / 0 | |
//-> -Infinity | |
0 / 0 | |
//-> NaN | |
Infinity === Infinity |
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://github.com/toy/image_optim | |
gem install image_optim | |
brew install advancecomp gifsicle jhead jpegoptim jpeg optipng pngcrush | |
npm install -g svgo |
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
bundle exec middleman build | grep -E '\b(create|delete|error|update)\b' |
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
@mixin column-grid-background( | |
$total : null, // unused | |
$column : $grid-background-column-width, | |
$gutter : $grid-background-gutter-width, | |
$offset : $grid-background-offset, | |
$column-color : $grid-background-column-color, | |
$gutter-color : $grid-background-gutter-color | |
) { | |
$column-stop: 100% * $column / ($column + $gutter); |
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
// http://compass-style.org/reference/compass/support/ | |
// Omit hacks for IE ≤ 8 | |
$legacy-support-for-ie6: false | |
$legacy-support-for-ie7: false | |
$legacy-support-for-ie8: false | |
// E.g., no -o-* properties :( | |
$experimental-support-for-opera: false |
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 install html2haml --prerelease | |
for f in $(find . -type f -name \*.html); do echo "$f -> $f.haml" && html2haml --ruby19-attributes $f > "$f.haml"; done |
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
# In a separate shell, watch using your config settings (e.g. production): | |
# compass watch | |
# compass watch --environment production | |
compass watch --css-dir css-dev --environment development | |
# or compile as needed: | |
# compass compile --css-dir css-dev --environment development |
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
# compass help create | |
compass create my-project --syntax sass --sass-dir sass --css-dir css --images-dir img --javascripts-dir js --relative-assets --bare | |
# mate my-project my-project/config.rb | |
# subl my-project my-project/config.rb | |
open -t my-project/config.rb |