This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Don't let capybara reset sessions | |
# See : https://github.com/jnicklas/capybara/blob/master/lib/capybara/rspec.rb#L16 | |
module Capybara | |
class << self | |
alias_method :old_reset_sessions!, :reset_sessions! | |
def reset_sessions!; end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map <silent> <F3> :!clear && bundle exec rspec "%:p"<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pascal_calc(row_num) | |
if row_num == 0 | |
return [1] | |
end | |
previous = pascal_calc(row_num - 1) | |
ret = [] | |
(previous.length - 1).times do |i| |
NewerOlder