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 rgb($property, $red, $green, $blue) { | |
| #{$$property}:opacify(rgb($red, $green, $blue), 1); | |
| #{$$property}:$color; | |
| } | |
| #id { | |
| @include rgb(background, 255, 255, 255); | |
| } |
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 parse_git_branch { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "("${ref#refs/heads/}")" | |
| } | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| PS1="$RED\$ \w$YELLOW \$(parse_git_branch)$GREEN\$ " |
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 border-radius($radius, $prefixes: -moz -webkit -o) { | |
| @each $prefix in $prefixes { | |
| #{$prefix}-border-radius:$radius; | |
| } | |
| border-radius:$radius; | |
| } | |
| #id { | |
| @include border-radius(5px, -moz -webkit); |
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
| { "error" : "OK", | |
| "limit" : 1, | |
| "number_of_page_results" : 1, | |
| "number_of_total_results" : 1, | |
| "offset" : 0, | |
| "results" : { "aliases" : "", | |
| "api_detail_url" : "http://api.giantbomb.com/game/7856/", | |
| "characters" : [ { "api_detail_url" : "http://api.giantbomb.com/character/5/", | |
| "id" : 5, | |
| "name" : "Zelda", |
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 rlmb { | |
| current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
| if [ "$current_branch" != "master" ]; then | |
| echo "WARNING: You are on branch $current_branch, NOT master." | |
| fi | |
| echo "Fetching merged branches..." | |
| #git remote prune origin | |
| #remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$") | |
| local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$") | |
| if [ -z "$local_branches" ]; then |
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
| $grid-columns: 12; | |
| $grid-width: 63px; | |
| $grid-gutter-width: 20px; | |
| @function grid-width($n) { | |
| @return ($n * $grid-width) + (($n - 1) * $grid-gutter-width); | |
| } | |
| .l-container { | |
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
| <script> | |
| window.doLater = {}; | |
| doLater.foo = function(){ | |
| // Do some shiz here! | |
| $('body').append('foobars!'); | |
| }; | |
| </script> | |
| <script src="jquery.js"></script> |
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. Push Middleman site to Github | |
| 2. Clone project in Cloud9 IDE | |
| 3. Add Heroku as a deploy server in the IDE | |
| 4. Add articles, pages etc in the IDE | |
| 5. Deploy to Heroku | |
| You could even setup a second Heroku site as a staging site before you deploy to live demo new articles. |
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
| // Media Queries in Sass 3.2 | |
| // | |
| // These mixins make media queries a breeze with Sass. | |
| // The media queries from mobile up until desktop all | |
| // trigger at different points along the way | |
| // | |
| // And important point to remember is that and width | |
| // over the portrait width is considered to be part of the | |
| // landscape width. This allows us to capture widths of devices | |
| // that might not fit the dimensions exactly. This means the break |
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
| 'use strict' | |
| # -------------------------------------------------- | |
| # EventEmitter | |
| # -------------------------------------------------- | |
| emitter = Backbone.EventEmitter = _.extend {}, Backbone.Events | |
| # -------------------------------------------------- | |
| # Global subscriptions |