Skip to content

Instantly share code, notes, and snippets.

# Load DSL and Setup Up Stages
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rbenv'
require 'capistrano/bundler'
require 'capistrano/rails/migrations'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
<a class="tf_upfront_badge" href="http://www.thefind.com/store/about-goodsmiths" title="TheFind Upfront" style="text-decoration:none;"><b>Goodsmiths</b> is <u>Upfront</u></a>
<script type="text/javascript">
(function() {
var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true;
upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js";
upfront.text = "thefind.upfront.init('tf_upfront_badge', '089a0f679a709de734d408d2bb3073b6')";
document.getElementsByTagName('HEAD')[0].appendChild(upfront);
})();
</script>
factory :user_with_tasks, :parent => :base_user do |user|
user.after(:create) do |u|
u.tasks = FactoryGirl.create(:task, :user => u)
end
end
#regenerate conf
bundle exec rake ts:conf
#rebuild indexes
bundle exec rake ts:rebuild
def vim_gist
1
end
@bruschill
bruschill / vim_presentation.rb
Created September 18, 2012 15:21
irb text editor brawl
# n: Brandon Ruschill
# c: github.com/bruschill
# t: @bruschill
# BASICS (command mode)
# never ever use the arrow keys. ever
#
# k
# h l
# j