Skip to content

Instantly share code, notes, and snippets.

Gordon McCreight gmccreight

Block or report user

Report or block gmccreight

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 macvim-rails-speed.sh
#!/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 Oct 27, 2019
A script that gives you a playground for mastering vim
View master.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 Feb 4, 2012
Recursively process all the @2x images to create the 1x images alongside them
View 1x_the_2xs.rb
#!/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 Jan 14, 2012
All the pants that are fit to fit
View anujypants.sh
#!/bin/bash
# Usage:
# (first time)
# ./anujypants.sh from_scratch
# (subsequently)
# ./anujypants.sh
#-----------------------------------------------------------------------------
# Load RVM into a shell session *as a function*
View viminvim.txt
" 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>
You can’t perform that action at this time.