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
http://dskd.jp/archives/46.html |
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
https://www.youtube.com/watch?v=soUDYB3cBf4 |
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
split window | |
:sp filename → ctrl-w s | |
:vsp filename → ctrl-w v | |
:help ctrl-w | |
close the rest windows of the current | |
:only | |
:on |
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
cお |
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
pry(main)> hist -T 30 -n | |
en = Entry.new | |
en = Entry.last | |
en2 = Entry.new | |
en2.theme_id = 1 | |
en2.item_id = 15 | |
en2.item_type = "Product" | |
en2.valid? | |
en2.item_type = "Movie" | |
en2.valid? |
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
NG | |
message_html = render_to_string "shared/messages", messages: resource.errors.full_messages | |
OK | |
message_html = controller.render_to_string "shared/_messages", locals: { messages: resource.errors.full_messages } |
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
https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/equality-matchers | |
in order to Strictly inspect being the same , use equal | |
same value and type , use eql | |
same value with type conversion , use be |
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
If you select multiple lines in Visual mode, pressing the key puts a virtual cursor at every line and leaves you in Normal mode. | |
and you should press <space> m . to color the cursor. |
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
bundle install | |
Fetching source index from http://production.cf.rubygems.org/ | |
Resolving dependencies... | |
Using rake (10.3.2) | |
Using i18n (0.7.0.beta1) | |
Using json (1.8.1) | |
Using minitest (5.4.2) | |
Using thread_safe (0.3.4) | |
Using tzinfo (1.2.2) | |
Using activesupport (4.2.0.beta2) |
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
$ rake virtualbox-build | |
virtualbox-iso output will be in this color. | |
==> virtualbox-iso: Downloading or copying Guest additions | |
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso | |
==> virtualbox-iso: Downloading or copying ISO | |
virtualbox-iso: Downloading or copying: http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso | |
virtualbox-iso: Download progress: 0% | |
virtualbox-iso: Download progress: 0% | |
virtualbox-iso: Download progress: 0% |