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
| irb(main):001:0> class A; def self.b; puts "A"; end; end | |
| => nil | |
| irb(main):002:0> class B < A; end | |
| => nil | |
| irb(main):003:0> B.b | |
| A | |
| => nil |
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 edit-command-line | |
| zle -N edit-command-line | |
| bindkey '^X^E' edit-command-line |
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
| --type-add=ruby=.feature | |
| --type-set=cucumber=.feature | |
| --type-add=js=.coffee | |
| --type-add=css=.scss | |
| --type-add=html=.handlebars |
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
| $ lwp-request -m POST http://data.mwater.co/msewage/apiv2/users/jcmuller | |
| {"clientuid": "a695036f9c6d41d4980c0bf460cdc18e", "roles": []}% | |
| $ lwp-request -m PUT http://data.mwater.co/msewage/apiv2/users/7ecfbf201e500130ac78109add5e2ae1\?clientuid\=a695036f9c6d41d4980c0bf460cdc18e | |
| Please enter content (text/plain) to be PUTed: | |
| created_by=jcmuller&description=SomeDescription&latitude=23.23243&longitude=87.863731&name=NARUGRAM&source_type=0& | |
| <html><body><h1>Internal error</h1>Ticket issued: <a href="/admin/default/ticket/msewage/208.185.19.18.2012-12-02.01-54-15.4ba33f99-7b79-4043-9185-130f0b6d77e9" target="_blank">msewage/208.185.19.18.2012-12-02.01-54-15.4ba33f99-7b79-4043-9185-130f0b6d77e9</a></body><!-- this is junk text else IE does not display the page: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
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
| last_revision = `cat #{current_path}/current/REVISION` | |
| assets_modified = `git diff --name-only #{last_revision} | grep assets | wc -l` | |
| if assets_modified > 0 | |
| STDERR.puts "#{assets_modified} asset files changed detected. Compiling assets" | |
| run! "bundle exec rake RAILS_ENV=#{config.framework_env} RAILS_GROUPS=assets assets:precompile" | |
| else | |
| STDERR.puts "No asset changes detected. Copying assets from previous" | |
| run! "#{shared_path}/last_assets #{shared_path}/assets" | |
| 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
| """""""""""""""""""""""" | |
| " Useful maps | |
| """""""""""""""""""""""" | |
| " Map <C-L> (redraw screen) to also turn off search highlighting until the | |
| " next search | |
| nnoremap <C-L> :nohl<CR><C-L> | |
| " Don't use arrow keys | |
| map <up> <nop> | |
| map <down> <nop> |
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
| Some of my favorite bash tricks (most of these come straight from Emacs): | |
| Of course, most of these will ONLY work when 'set -o emacs' | |
| C-F Move to next character | |
| C-B Move to previous character | |
| C-A Jump to beginning of line (bol) | |
| C-E Jump to end of line (eol) | |
| M-B Jump to previous word | |
| M-F Jump to next word |
NewerOlder