This file contains hidden or 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
" <K>ill trailing <W>hitespace | |
nnoremap <leader>kw :1,$s/ \+$//<CR> | |
vnoremap <leader>kw :s/ \+$//<CR> |
This file contains hidden or 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
# Module for re-running commands from the history in irb and its ilk (script/console) | |
# Usage: | |
# history => view the history | |
# history 7 => rerun line 7 in the history | |
# history /foo/ => rerun the last line in the history matching /foo/ | |
# | |
# Just add this code into your ~/.irbrc. | |
# NOTE: Readline support is required for this to work. | |
module HistoryRepeats | |
class << self |
This file contains hidden or 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
autoload -U colors | |
colors | |
setopt prompt_subst | |
parse_git_branch() { | |
local state remote | |
git rev-parse --git-dir &> /dev/null | |
git_status="$(git status 2> /dev/null)" | |
branch_pattern="# On branch ([[:alnum:]/]*)" |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | |
<plist version="0.9"> | |
<dict> | |
<key>PATH</key> | |
<string>/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin</string> | |
</dict> | |
</plist> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | |
<plist version="0.9"> | |
<dict> | |
<key>PATH</key> | |
<string>/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin</string> | |
</dict> | |
</plist> |
This file contains hidden or 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
# Sample localization file for English. Add more files in this directory for other locales. | |
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. | |
en: | |
hello: "Hello world" | |
array: | |
- foo | |
- bar | |
- baz | |
boolean: true |
This file contains hidden or 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 | |
def foo | |
bar | |
end | |
def bar | |
bar | |
end |
This file contains hidden or 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
Ugh. Twitter "shortens" laruby.com (laruby dot com) to http://t.co/JcCpu8I2. Bad Twitter! |