- Use Control+W instead of Alt+Backspace
- To unindent a line, use Ctrl+D
- To indent a line, use Ctrl+T
- Upper-case J joins lines (same as Cmd+J in Sublime Text)
- Use :edit! to force a reload of the current file from disk.
- To skip to the first non-whitespace character on a line, press ^
- yy copies (yanks) a line
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
<%= form_for @customer, :html => {:multipart => true} do |f| %> | |
<%= f.hidden_field :id %> | |
<p> | |
<%= f.file_field :image %> | |
</p> | |
<p><%= f.submit "Upload" %></p> | |
<% 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
" copy all this into a vim buffer, save it, then... | |
" source the file by typing :so % | |
" Now the vim buffer acts like a specialized application for mastering vim | |
" There are two queues, Study and Known. Depending how confident you feel | |
" about the item you are currently learning, you can move it down several | |
" positions, all the way to the end of the Study queue, or to the Known | |
" queue. | |
" type ,, (that's comma comma) |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
- Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
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
@next_upgrade ||= false | |
source 'https://rubygems.org' | |
if @next_upgrade | |
gem 'rails', '5.0.0.beta3' | |
gem 'rails-controller-testing' # https://github.com/rails/rails-controller-testing | |
else | |
gem 'rails', '~> 4.2.5.1' | |
end |