Skip to content

Instantly share code, notes, and snippets.

Jon Kinney jondkinney

Block or report user

Report or block jondkinney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View snippet.txt
:update_sources: true
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc
View snippet.txt
* How to play with Rails 3.1 and coffeescript now -
* Ordering of asset pipeline -
* Coffeescript TM Bundle -
* Remember to run: `osascript -e 'tell app "TextMate" to reload bundles'`
* Use Coffeescript in a Rails 2.3.x application -
* Rails 3.1 with Rspec, Cucumber, Factory Girl, Haml, and SimpleForm -
* What is autoloading -
* Getting started with Factory Girl -
* Rails3 tutorial (best follow along / learning tool period) -
View jons_vim_guide.txt
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
View .gvimrc.local
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
View deploy.rb
# 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"
jondkinney / settings.txt
Created Feb 15, 2012
Compressor 4 settings, used when exporting from Final Cut Pro X
View settings.txt
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
jondkinney / pivotal_tracker_git_flow.rake
Created May 3, 2012
Allows listing pivotal tracker stories and selecting one to start a new git flow feature or hotfix
View pivotal_tracker_git_flow.rake
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)
View sass_and_less_compared.markdown

Sass/Less Comparison

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.


View investment_creation_service.rb
class InvestmentCreationService
def initialize(investment, current_user)
@investment = investment
@current_user = current_user
def save
jondkinney / private.xml
Created Oct 11, 2012
Key Remap for private.xml
View private.xml
<?xml version="1.0"?>
<name>Fn keys for iterm</name>
<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>
You can’t perform that action at this time.