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
| set hidden " allow buffers to be hidden when they have unsaved changes | |
| set visualbell " turn off beeps | |
| set nobackup " don't need backups with git | |
| call pathogen#runtime_append_all_bundles() | |
| let mapleader = "," " map leader key | |
| imap jj <Esc> | |
| " Remap C-(e|y) so that they scroll by 3 lines |
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
| namespace :bundler do | |
| desc "Updates gems using bundler" | |
| task :update_gems do | |
| run "cd #{release_path} && bundle install vendor --disable-shared-gems --relock --without test" | |
| end | |
| end | |
| namespace :db do | |
| desc "Symlink database.yml config file" | |
| task :symlink_config do |
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
| DVORAK = { | |
| :a => 0, | |
| :b => 4, | |
| :c => 2, | |
| :d => 1, | |
| :e => 0, | |
| :f => 2, | |
| :g => 2, | |
| :h => 0, | |
| :i => 1, |
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
| def display_standard_flashes(message = 'There were some problems with your submission:') | |
| if flash[:notice] | |
| flash_to_display, level = flash[:notice], 'notice' | |
| elsif flash[:warning] | |
| flash_to_display, level = flash[:warning], 'warning' | |
| elsif flash[:error] | |
| level = 'error' | |
| if flash[:error].instance_of?( ActiveRecord::Errors) || flash[:error].is_a?( Hash) | |
| flash_to_display = message | |
| flash_to_display << activerecord_error_list(flash[:error]) |
NewerOlder