As configured in my dotfiles.
start new:
tmux
start new with session name:
voices = %w(Agnes Kathy Princess Vicki Victoria) | |
("a".."z").each do |letter| | |
`say -v #{voices.shuffle.first} "#{letter}"` | |
end |
@mixin stretch-link { | |
& { position: relative; } | |
a { position: absolute; height: 100%; width: 100%; } | |
} |
require "thread" | |
$mutex = Mutex.new | |
$total = 0 | |
def incr | |
$mutex.synchronize { $total += 1 } | |
sleep | |
end |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
source :rubygems | |
gem 'sinatra', '1.0' | |
gem 'oauth2' | |
gem 'json' | |
group :development do | |
gem 'shotgun' | |
end |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="USER_NAME" | |
PASSWORD="SEKRIT" | |
# Project you want to export issues from | |
USER="REPO_OWNER" | |
PROJECT="REPO_NAME" |
One goal of Tokaido is to reduce the external dependencies of the precompiled Ruby.
There are several parts of the Ruby standard library that are normally linked against dylib
s in your system. One such example is OpenSSL. To reduce external dependencies and the possibility of future failure (for example, if Apple removes OpenSSL from a future release), we would like to statically link these precompiled parts of the standard library instead of dynamically linking.
Also worth noting: psych
depends on libyaml
, which doesn't come with OSX to begin with. We do not want to rely upon libyaml
existing in the system in order to use the precompiled Ruby, so we statically compile libyaml into psych.
In the output below, you can see that Tokaido compiled Ruby has dependencies only on libSystem
and libobjc
, which are extremely stable OSX libraries, and not on libruby
, libssl
or libcrypto
. Instead, those libraries are statically compiled into openssl.bundle
. This increases the portability of the prec