(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # NullStorage provider for CarrierWave for use in tests. Doesn't actually | |
| # upload or store files but allows test to pass as if files were stored and | |
| # the use of fixtures. | |
| class NullStorage | |
| attr_reader :uploader | |
| def initialize(uploader) | |
| @uploader = uploader | |
| end |
| /** | |
| * Parse query string. | |
| * ?a=b&c=d to {a: b, c: d} | |
| * @param {String} (option) queryString | |
| * @return {Object} query params | |
| */ | |
| getQueryParams: function(queryString) { | |
| var query = (queryString || window.location.search).substring(1); // delete ? | |
| if (!query) { | |
| return false; |
| //--------------------------------------------------------------------------------------------------- | |
| // a sassier grid for spree | |
| // fixed-width - html whitespace not removed. | |
| // intended to be used as magic-classes, coupling markup&style. | |
| // based on skeleton v1.1 by dave gamache - thanks dude | |
| // | |
| //--------------------------------------------------------------------------------------------------- | |
| //- Contents | |
| //--- Grid classes | |
| //--- Grid Variables |
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| (($, window) -> |
| #!/bin/bash | |
| # Reads EXIF creation date from all .JPG files in the | |
| # current directory and moves them carefully under | |
| # | |
| # $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/ | |
| # | |
| # ...where 'carefully' means that it does not overwrite | |
| # differing files if they already exist and will not delete | |
| # the original file if copying fails for some reason. |