This file contains hidden or 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
Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out - connect(2) for "aws-eu-cache01.rubygems.org" port 80 (http://rubygems.org/gems/rdoc-3.12.2.gem) |
This file contains hidden or 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
" === Selecting methods === | |
" MAP: vim, vam to visually select, but almost anything goes. Examples: | |
" cim: change method contents | |
" dam: delete whole method | |
" ,cim: comment out method contents | |
vmap im <Esc>[mjV]Mk | |
vmap am <Esc>[mV]M | |
omap im :normal vim<CR> |
This file contains hidden or 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
" put this in your .vimrc | |
inoremap <Tab> <C-R>=pumvisible() ? "\<lt>C-N>" : "\<lt>Tab>"<CR> | |
inoremap <CR> <C-R>=pumvisible() ? "\<lt>ESC>o" : "\<lt>CR>"<CR> |
This file contains hidden or 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
require 'test_helper' | |
class InteractionTest < Test::Unit::TestCase | |
include Less | |
setup do | |
unless defined?(TestInteraction) | |
class TestInteraction < Less::Interaction | |
def run | |
end | |
end |
This file contains hidden or 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
should "fail if an expected parameter is not found" do | |
class InteractionExpectingParameter < Less::Interaction | |
expects :title, String | |
def run | |
end | |
end | |
assert_raise(MissingParameterError) { InteractionExpectingParameter.run } | |
end |
This file contains hidden or 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
>> ActiveSupport::SecureRandom.hex(10) | |
=> "8a2cf0a838e64f6f85d1" | |
>> ActiveSupport::SecureRandom.base64(10) | |
=> "fUL81hGd77YyGg==" |