start new:
tmux
start new with session name:
tmux new -s myname
| #require 'rubygems' | |
| require 'pp' | |
| #require 'ap' # Awesome Print | |
| class Object | |
| # expects [ [ symbol, *args ], ... ] | |
| def recursive_send(*args) | |
| args.inject(self) { |obj, m| obj.send(m.shift, *m) } | |
| end | |
| end |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| // Source for the Accidental Tech Podcast (ATP) T-Shirt: | |
| // http://www.marco.org/2014/04/29/atp-shirts | |
| // | |
| // By Marco Arment, April 28, 2014. MIT license. | |
| @implementation ATPLogoView | |
| - (void)drawRect:(CGRect)rectIgnored | |
| { | |
| NSString *fontName = @"MyriadPro-Semibold"; |
The channel layer received significant features and an overhaul of the topic abstraction. Upgrade your 0.7.x channels should only require a few simple steps.
Notable changes:
phoenix.js is required, replace your priv/static/js/phoenix.js with https://github.com/phoenixframework/phoenix/blob/v0.8.0/priv/static/js/phoenix.jsevent/3 callbacks. In 0.8.0, event/3 has been renamed to handle_in/3, and outgoing events callbacks can be defined via handle_out/3join/3, leave/2, handle_in/3, and handle_out/3 now accept the socket as the last argument. This mimicks GenServer APIshandle_in, `handle_| /* | |
| * Compile with: | |
| * rustc -Z unstable-options --pretty expanded pipe.rs | |
| */ | |
| /* @file pipe.rs | |
| * @author Jeremy W. Sherman (GitHub: @jeremy-w) | |
| * @license ISC | |
| * | |
| * Implements and demonstrates use of the "pipe" (aka "thread-first") macro. | |
| */ |
| Kaminari.configure do |config| | |
| # config.default_per_page = 25 | |
| # config.max_per_page = nil | |
| # config.window = 4 | |
| # config.outer_window = 0 | |
| # config.left = 0 | |
| # config.right = 0 | |
| # config.page_method_name = :page | |
| # config.param_name = :page | |
| end |
| // Contains support for: SASS/SCSS, concatenation, and minification for JS and CSS | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-ruby-sass'); | |
| var concat = require('gulp-concat'); | |
| var compress = require('gulp-yuicompressor'); | |