start new:
tmux
start new with session name:
tmux new -s myname
| syntax on | |
| set noerrorbells | |
| set shiftwidth=2 | |
| set expandtab | |
| set smartindent | |
| set nu | |
| set nowrap | |
| set smartcase | |
| set noswapfile | |
| set nobackup |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
| #!/bin/bash | |
| # | |
| # Author: SuperPaintman <[email protected]> | |
| # | |
| ### | |
| # Constants | |
| ### | |
| RETVAL=0 |
| NSString *sql = [NSString stringWithFormat:@"insert INTO bookmark (href, title, tags, notes) values ('%@', '%@', '%@', '%@');", | |
| bookmark.href, | |
| bookmark.title, | |
| [bookmark.tags componentsJoinedByString:@","], | |
| bookmark.notes | |
| ]; | |
| [self.db executeUpdate:@"insert INTO bookmark (href, title, tags, notes) values (?, ?, ?, ?)", bookmark.href, bookmark.title, bookmark.tags, bookmark.notes]; |
| // Generated on 2014-07-08 using generator-angular 0.9.3 | |
| 'use strict'; | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: | |
| // 'test/spec/{,*/}*.js' | |
| // use this if you want to recursively match all subfolders: | |
| // 'test/spec/**/*.js' | |
| var modRewrite = require('connect-modrewrite'); |
local repository consists of three "trees".
first:
解决了冲突的文件后,需要将文件加入暂存区. git add 这样才能说明解决了confict.
Jonnie Hallman always write-up story about the website he has built.
Here are some:
5 keys defination:
⌘ Command key ⌃ Control key ⌥ Option key ⇧ Shift Key ⇪ Caps Lock Fn Function Key
Key or Key Combination Semantic