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 |
| apply plugin: 'java' | |
| apply plugin: 'scala' | |
| // For those using Eclipse or IntelliJ IDEA | |
| apply plugin: 'eclipse' | |
| apply plugin: 'idea' | |
| def findPlay20(){ | |
| def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null } | |
| for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){ | |
| for(playExec in ['play.bat', 'play.sh', 'play']){ |
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 |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai] | |
| "Colour21"="255,255,255" | |
| "Colour20"="245,222,179" | |
| "Colour19"="200,240,240" | |
| "Colour18"="0,217,217" | |
| "Colour17"="179,146,239" | |
| "Colour16"="174,129,255" | |
| "Colour15"="122,204,218" |
| let g:ctrlp_buffer_func = { 'enter': 'CtrlPMappings' } | |
| function! CtrlPMappings() | |
| nnoremap <buffer> <silent> <C-@> :call <sid>DeleteBuffer()<cr> | |
| endfunction | |
| function! s:DeleteBuffer() | |
| let path = fnamemodify(getline('.')[2:], ':p') | |
| let bufn = matchstr(path, '\v\d+\ze\*No Name') | |
| exec "bd" bufn ==# "" ? path : bufn |
| let g:I=1 | |
| %g/^- id: \d\+$/ s/\d\+/\=g:I/|let g:I=g:I+1 |
| :job_title => "(.*?)", | |
| #this would match all instances of :job_title => "blah blah" |
| #include <QtDebug> | |
| #include <QImage> | |
| #include <QString> | |
| #include <QBitArray> | |
| #include <QByteArray> | |
| #include <QFile> | |
| #include <QCommandLineParser> | |
| namespace { | |
| enum { headerSize = 32 }; |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |