^— Jump to the beginning of the current line$— Jump to the end of the current lineG— Go to end of file5G— Go to line 5
bw— Close the current buffer
| // Based on Chris' post here: https://gist.github.com/3828790 | |
| @mixin respond-to($size) { | |
| // Small | |
| @if $size == "small" { | |
| @media only screen and (min-width: 320px) { | |
| @content; | |
| } |
| # | |
| # Coffeescript + Underscore syntactic sugar makes this so gracefully concise. | |
| # | |
| class LinkValidation | |
| constructor: -> | |
| @VALID_SERVICES = [ | |
| "flickr.com\/photos\/[a-z0-9_-]+\/(\d+)" |
| getRandomColor: -> | |
| number = Math.floor(Math.random() * (3 - 1 + 1)) + 1 | |
| switch number | |
| when 1 then "#983a30" | |
| when 2 then "#187598" | |
| # why not | |
| getRandomColor: -> ["#983a30", "#187598"][Math.ceil(Math.random() * 3)] |
| define (require) -> | |
| $ = require 'jquery' | |
| _ = require 'underscore' | |
| Backbone = require 'backbone' | |
| Handlebars = require 'handlebars' | |
| View = require 'lib/view' | |
| startTemplate = require 'text!templates/start.html' | |
| class StartView extends View |
| # USAGE | |
| # | |
| # > clone chriseppstein/compass | |
| # | |
| # Cloning into 'compass'... | |
| githubclone() { | |
| git clone [email protected]:$1.git; | |
| } |
| # USAGE | |
| # | |
| # $ hidden TRUE/FALSE | |
| showHidden() { defaults write com.apple.finder AppleShowAllFiles $1 && killall Finder; } | |
| alias hidden=showHidden |
| # Launches a native JavaScript terminal | |
| alias js="/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc" |
| // ---- | |
| // Sass (v3.4.6) | |
| // Compass (v1.0.1) | |
| // ---- | |
| %stuff { | |
| padding: 10px; | |
| } | |
| .stuff { |
| // ---- | |
| // Sass (v3.4.7) | |
| // Compass (v1.0.1) | |
| // ---- | |
| $screen-md: 768px; | |
| $screen-lg: 1100px; | |
| // ---------------------------------------------------------------------------- | |
| // Mixins |