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
| def google_fonts(*query) | |
| raise ArgumentError, 'Expected at least one font.' if query.empty? | |
| if query.first.is_a? Hash | |
| query = [*query.first].transpose | |
| query = [query.first, query.last.to_enum] | |
| end | |
| api_base_url = 'http://fonts.googleapis.com/css' | |
| # Iterate through given font families, building the query string from them and given styles | |
| query_string = '?family=' + [*query.first].collect { |family| | |
| # Stringify and title-case family name, replacing underscores with spaces |
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 "susy/sass/susy"; | |
| @import 'susy/sass/plugins/svg-grid/'; | |
| $susy: ( | |
| 'columns': susy-repeat(6), | |
| 'gutters': 2em, | |
| 'svg-grid-colors': hsla(180, 50%, 50%, 0.25), | |
| ); |
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
| ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib |
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
| $sizeUnit: rem; | |
| $marginKey: 'has-margin'; | |
| $paddingKey: 'has-padding'; | |
| $separator: '-'; | |
| $sizes: ( | |
| ('none', 0), | |
| ('xxs', 0.125), | |
| ('xs', 0.25), | |
| ('sm', 0.5), | |
| ('md', 1), |
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
| middleman init my_new_project --rack | |
| rvm --create --ruby-version use 1.9.3 | |
| rvm env . -- --env > .powenv |
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
| .location .blip { | |
| position: relative; | |
| display: inline-block; | |
| height: 30px; | |
| width: 30px; | |
| left: -10px; | |
| } | |
| .location .blip .blip-base { | |
| position: absolute; | |
| height: 10px; |
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
| require 'rubygems' | |
| require 'httparty' | |
| ## define class | |
| class Facebook | |
| ## load and inherit HTTParty class | |
| include HTTParty | |
| ## set the default base URI | |
| base_uri 'https://graph.facebook.com' | |
| ## set the format to JSON, so that HTTParty will automatically decode it |
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 | |
| TIMESTAMP=$(date +"%F") | |
| BACKUP_DIR="/backup/$TIMESTAMP" | |
| MYSQL_USER="backup" | |
| MYSQL=/usr/bin/mysql | |
| MYSQL_PASSWORD="password" | |
| MYSQLDUMP=/usr/bin/mysqldump | |
| mkdir -p "$BACKUP_DIR/mysql" |
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
| def markdown(text) | |
| Tilt['markdown'].new { text }.render(scope=self) | |
| end |
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
| url: http://www.example.com |
NewerOlder