Install by running the following command in your terminal:
exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/jondkinney/2040114/raw/vim.sh 2> /dev/null)
Lesson 2 SUMMARY | |
1. To delete from the cursor up to the next word type: dw | |
2. To delete from the cursor to the end of a line type: d$ | |
3. To delete a whole line type: dd | |
4. To repeat a motion prepend it with a number: 2w | |
5. The format for a change command is: | |
operator [number] motion |
set shell=/bin/sh "Need to start from a shell so that RVM is read in properly when using zsh as your shell. | |
nmap <leader>v :tabedit ~/.gvimrc.local<CR> | |
set macmeta "Need this to enable M and D | |
"Color Scheme | |
color jonkrails | |
"color AutumnLeaf |
# Capistrano Multistage Support | |
# Uncomment the following lines if you'd like Multistage Capistrano support. | |
set :default_stage, "staging" | |
set :stages, %w(production staging alpha) | |
require 'capistrano/ext/multistage' | |
require 'capistrano/gitflow' # needs to come after multistage | |
# Include Bundler Extensions | |
# Comment out the following line if you're not using Bundler. | |
require "bundler/capistrano" |
Name: Demo | |
Description: H.264 | |
File Extension: mp4 | |
Estimated size: 225.23 MB/hour of source | |
Audio Encoder | |
Sample Rate: 32.000kHz | |
Channels: 2 | |
Bits Per Sample: 16 | |
AAC encoder quality: high | |
Data rate: 64 Kbps |
require "rubygems" | |
require "pivotal-tracker" | |
namespace :pt do | |
desc "list avail pivotal tracker tix from which to create a git fea branch" | |
task :list do | |
def truncate_words(text, length = 5) | |
return if text == nil | |
words = text.split() | |
words = words - %w(feature scenario for in on a an the of so that they be able to are it its with) #remove non critical words (experiment with this) |
render :text => "<html><body><script type='text/javascript' charset='utf-8'>parent.location.href = '/somewhere';</script></body></html>" |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
class InvestmentCreationService | |
def initialize(investment, current_user) | |
@investment = investment | |
@current_user = current_user | |
end | |
def save | |
if @investment.save | |
log_activity |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Fn keys for iterm</name> | |
<identifier>private.fn_keys_for_iterm</identifier> | |
<only>TERMINAL</only> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::VOLUME_UP, KeyCode::F12</autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::VOLUME_DOWN, KeyCode::F11</autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8 </autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::KEYBOARDLIGHT_HIGH, KeyCode::F6 </autogen> |