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
o.......Open files, directories and bookmarks....................|NERDTree-o| | |
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go| | |
t.......Open selected node/bookmark in a new tab.................|NERDTree-t| | |
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T| | |
i.......Open selected file in a split window.....................|NERDTree-i| | |
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi| | |
s.......Open selected file in a new vsplit.......................|NERDTree-s| | |
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs| | |
O.......Recursively open the selected directory..................|NERDTree-O| | |
x.......Close the current nodes parent...........................|NERDTree-x| |
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
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var index = require('./routes/index'); | |
var user = require('./routes/user'); | |
var auth = require('./routes/auth'); |
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
# .zshrc: users generic .zshrc file for zsh(1) | |
# | |
# This file is sourced only for interactive shells. It | |
# should contain commands to set up aliases, functions, | |
# options, key bindings, etc. | |
# | |
# Global Order: zshenv, zprofile, zshrc, zlogin | |
## General | |
# |
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
getRequest(url: string): Promise<any> { | |
return new Promise<any>( | |
function (resolve, reject) { | |
const request = new XMLHttpRequest(); | |
request.onload = function () { | |
if (this.status === 200) { | |
resolve(this.response); | |
} else { | |
reject(new Error(this.statusText)); | |
} |
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
快捷方式 切换工作台和目录 | |
``` | |
ctrl + w + h 光标 focus 左侧树形目录 | |
ctrl + w + l 光标 focus 右侧文件显示窗口 | |
ctrl + w + w 光标自动在左右侧窗口切换 | |
ctrl + w + r 移动当前窗口的布局位置 | |
o 在已有窗口中打开文件、目录或书签,并跳到该窗口 | |
go 在已有窗口 中打开文件、目录或书签,但不跳到该窗口 | |
t 在新 Tab 中打开选中文件/书签,并跳到新 Tab | |
T 在新 Tab 中打开选中文件/书签,但不跳到新 Tab |
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
ctrl + w + h 光标 focus 左侧树形目录 | |
ctrl + w + l 光标 focus 右侧文件显示窗口 | |
ctrl + w + w 光标自动在左右侧窗口切换 | |
ctrl + w + r 移动当前窗口的布局位置 | |
o 在已有窗口中打开文件、目录或书签,并跳到该窗口 | |
go 在已有窗口 中打开文件、目录或书签,但不跳到该窗口 | |
t 在新 Tab 中打开选中文件/书签,并跳到新 Tab | |
T 在新 Tab 中打开选中文件/书签,但不跳到新 Tab | |
i split 一个新窗口打开选中文件,并跳到该窗口 | |
gi split 一个新窗口打开选中文件,但不跳到该窗口 |