Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # Solution to 'The Truth' on rubeque.com | |
| # by mdyn | |
| # http://rubeque.com/problems/the-truth | |
| assert_equal true, true | |
| # Solution to 'Reverse' on rubeque.com | |
| # by mdyn | |
| # http://rubeque.com/problems/reverse |
| set nocompatible | |
| set noruler | |
| call pathogen#infect() | |
| set noshowcmd | |
| set number | |
| set incsearch | |
| set hlsearch | |
| set ignorecase | |
| set smartcase | |
| set scrolljump=7 |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <?php | |
| switch( preg_last_error() ){ | |
| case PREG_NO_ERROR : | |
| $preg_error = 'No error'; | |
| break; | |
| case PREG_INTERNAL_ERROR : | |
| $preg_error = 'An internal PCRE error'; | |
| break; | |
| case PREG_BACKTRACK_LIMIT_ERROR : | |
| $preg_error = 'Backtrack limit was exhausted'; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| #!/bin/bash | |
| DIRW=$1 | |
| echo "path $DIRW" | |
| find $DIRW -type f -exec sed -i 's/<departDate>/<startDate>/g' {} \; | |
| find $DIRW -type f -exec sed -i 's/<arriveDate>/<endDate>/g' {} \; | |
| find $DIRW -type f -exec sed -i 's/<departTime>/<startTime>/g' {} \; | |
| find $DIRW -type f -exec sed -i 's/<arriveTime>/<endTime>/g' {} \; | |
| find $DIRW -type f -exec sed -i 's/<departAirport>/<startCode>/g' {} \; |