brew install tmux
Run tmux -CC or tmux -CC attach in iTerm2 and then menu is shown on terminal:
- ESC to detach
- C to run commands
- X to force quit
- L for log
brew install tmux
Run tmux -CC or tmux -CC attach in iTerm2 and then menu is shown on terminal:
| { | |
| // JSHint Default Configuration File (as on JSHint website) | |
| // See http://jshint.com/docs/ for more details | |
| "maxerr" : 50, // {int} Maximum error before stopping | |
| // Enforcing | |
| "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
| "camelcase" : false, // true: Identifiers must be in camelCase | |
| "curly" : true, // true: Require {} for every new block or scope |
| function viewport () { | |
| var e = window, a = 'inner'; | |
| if (!('innerWidth' in window )) { | |
| a = 'client'; | |
| e = document.documentElement || document.body; | |
| } | |
| return { width : e[ a+'Width' ] , height : e[ a+'Height' ] }; | |
| } |
| <snippet> | |
| <content><![CDATA[ | |
| createLinearGradient(${1:startX}, ${2:startY}, ${3:endX}, ${4:endY}); | |
| ]]></content> | |
| <tabTrigger>lg</tabTrigger> | |
| <description>createLinearGradient()</description> | |
| </snippet> |
| <snippet> | |
| <content><![CDATA[ | |
| createRadialGradient(${1:startX}, ${2:startY}, ${3:startRadius}, ${4:endX}, ${5:endY}, ${6:endRadius}); | |
| ]]></content> | |
| <tabTrigger>rg</tabTrigger> | |
| <description>createRadialGradient()</description> | |
| </snippet> |
| <snippet> | |
| <content><![CDATA[ | |
| fillStyle = "${1:#000000}"; | |
| ]]></content> | |
| <tabTrigger>fs</tabTrigger> | |
| <description>fillStyle</description> | |
| </snippet> |
| <snippet> | |
| <content><![CDATA[ | |
| fillText("${1:text}", ${2:startX}, ${3:startY}); | |
| ]]></content> | |
| <tabTrigger>ft</tabTrigger> | |
| <description>fillText</description> | |
| </snippet> |
| <snippet> | |
| <content><![CDATA[ | |
| getContext("${2:context}"); | |
| ]]></content> | |
| <tabTrigger>gc</tabTrigger> | |
| <description>getContext()</description> | |
| </snippet> |