As configured in my dotfiles.
start new:
tmux
start new with session name:
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |
//Useful if you have a slow CI server... | |
When /^I wait until all Ajax requests are complete$/ do | |
wait_until do | |
page.evaluate_script('$.active') == 0 | |
end | |
end |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# Salesforce originally used case-sensitive 15-character IDs. | |
# Later they added three error-correcting characters to make their 18-character ID. | |
# This class converts from one to the other and back | |
# | |
# Usage: | |
# SalesforceId.convert('a0D30000001n7Pi') => 'a0D30000001n7PiEAC' | |
# OR | |
# SalesforceId.convert('a0D30000001n7PiEAC') => 'a0D30000001n7Pi' | |
# SalesforceId.convert('A0d30000001N7pIeAc') => 'a0D30000001n7Pi' | |
# |
# It requires ACK - http://betterthangrep.com/ | |
task :find_unused_images do | |
images = Dir.glob('app/assets/images/**/*') | |
images_to_delete = [] | |
images.each do |image| | |
unless File.directory?(image) | |
# print "\nChecking #{image}..." | |
print "." | |
result = `ack -1 -G '(app|public)' --ruby --html --css --js #{File.basename(image)}` |
You can break these rules if you can talk your pair into agreeing with you.
$scope.pager = { | |
pageChange: function(pageNum) { | |
$scope.search(resultPager.get(pageNum)); | |
}, | |
next: function() { | |
this.pageChange(resultPager.next()); | |
}, |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{