Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
ruby_version=2.1.1
folder_name=macvim-rails-speed
gemset=macvim-rails-speed
rails_version=4.0.3
source "$HOME/.rvm/scripts/rvm"
#-----------------------------------------------------------------------------
@gmccreight
gmccreight / master.vim
Last active November 21, 2024 14:36
A script that gives you a playground for mastering vim
" 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)
@gmccreight
gmccreight / 1x_the_2xs.rb
Created February 4, 2012 01:34
Recursively process all the @2x images to create the 1x images alongside them
#!/usr/bin/env ruby
# Recursively process all the @2x images to create the 1x images alongside them
# If you've used this script in the past, you may only want to process any @2x
# images that are newer than the 1x images you already have.
require 'find'
require 'fileutils'
mode = ARGV[0]
@gmccreight
gmccreight / anujypants.sh
Created January 14, 2012 20:38
All the pants that are fit to fit
#!/bin/bash
# Usage:
# (first time)
# ./anujypants.sh from_scratch
# (subsequently)
# ./anujypants.sh
#-----------------------------------------------------------------------------
# Load RVM into a shell session *as a function*
@gmccreight
gmccreight / viminvim.txt
Created September 9, 2011 04:54
Learn Vim in Vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now vim acts like a specialized application for learning vim
" type ,c (that's comma c)
" You don't really know the command at all and want to see it again soon.
" ,c moves the current command down a several positions in the 'Study' stack
" so you'll see it again soon.
nmap ,c ^v/^$<cr>dma/^$<cr>/^$<cr>/^$<cr>/^$<cr>jP'azt<c-y><c-l>