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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
ui = auto | |
sh = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
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
require 'awesome_print' | |
require 'wirble' | |
# Print all output with awesome_print | |
module IRB | |
class Irb | |
def output_value | |
ap @context.last_value | |
end | |
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
" functions to deal with Tabs | |
command! Stab2 call Stab2() | |
function! Stab2() | |
let l:tabstop = 2 | |
let &l:sts = l:tabstop | |
let &l:ts = l:tabstop | |
let &l:sw = l:tabstop | |
setlocal expandtab | |
endfunction |
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
.fullscreen { | |
display: block; | |
position: fixed !important; | |
top: 0; | |
left: 0; | |
width: 100% !important; | |
height: 100% !important; | |
z-index: 9999; | |
margin: 0; | |
padding: 0; |
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
require 'awesome_print' | |
require 'wirble' | |
# Print all output with awesome_print | |
module IRB | |
class Irb | |
def output_value | |
ap @context.last_value | |
end | |
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
" from http://stackoverflow.com/questions/1562336/tab-vs-space-preferences-in-vim | |
" http://vimcasts.org/episodes/tabs-and-spaces/ is also worth checking out | |
" put all this in your .vimrc or a plugin file | |
command! -nargs=* Stab call Stab() | |
function! Stab() | |
let l:tabstop = 1 * input('set shiftwidth=') | |
if l:tabstop > 0 | |
" do we want expandtab as well? |
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
#!/usr/bin/env ruby | |
# Upgrades all files to use Rails.logger, rather than logger | |
Dir['app/**/*.*', 'config/**/*.*', 'lib/**/*.*'].each{ |filename| | |
data = File.read filename | |
File.open(filename,'w'){|f| | |
f.print data.gsub(/\slogger/, ' Rails.logger') | |
} | |
} |
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
require "rubygems" | |
module ActiveRecord; end | |
require "ap" | |
# Log to STDOUT if in Rails | |
if !Object.const_defined?('RAILS_DEFAULT_LOGGER') | |
require 'logger' | |
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT) | |
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
require 'yaml' | |
require 'net/http' | |
PROJECT_PATH = '/Users/mbuck/src/applicant_portal/hr_suite' | |
PORT = 3000 | |
def current_sha | |
`cd #{PROJECT_PATH} && git rev-parse origin/master`.chomp | |
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
#! /bin/sh | |
help0() | |
{ | |
echo "ERROR: No argument provided." | |
echo "Usage:" | |
echo " `basename $0` \"title\" to provide a new Terminal title." | |
} | |
help2() | |
{ |