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
| { | |
| "files.associations": { | |
| }, | |
| "C_Cpp.intelliSenseEngineFallback": "Disabled", | |
| "C_Cpp.intelliSenseEngine": "Tag Parser" | |
| } |
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
| # git@协议 | |
| # 在~/.ssh/config 文件后面添加几行,没有可以新建一个 | |
| Host github.com | |
| User git | |
| ProxyCommand nc -X 5 -x 127.0.0.1:7890 %h %p | |
| # windows 版本 | |
| Host github.com |
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
| Host * | |
| ControlMaster auto | |
| ControlPath /tmp/ssh_mux_%h_%p_%r | |
| ControlPersist 600 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>tpl</string> | |
| <string>smarty</string> | |
| <string>html.smarty</string> | |
| </array> |
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
| Math.random().toString(36).substr(2, 12); |
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
| { | |
| "name": "Current TS File", | |
| "type": "node", | |
| "request": "launch", | |
| "args": ["${relativeFile}"], | |
| "runtimeArgs": ["-r", "ts-node/register"], | |
| "cwd": "${workspaceRoot}", | |
| "protocol": "inspector", | |
| "internalConsoleOptions": "openOnSessionStart" | |
| } |
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 dice = function(){ | |
| var num=3; | |
| return function(minimum, maximum){ | |
| var t = new Date(); | |
| var number = t.getMilliseconds(); | |
| number = (number*num)%6/5; | |
| if(num == 0){ | |
| num = 3; | |
| }else{ | |
| num = number; |
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
| Function.prototype.before = function(beforefn){ | |
| var self = this; | |
| return function(){ | |
| beforefn.apply(this,arguments); | |
| return self.apply(this,arguments); | |
| }; | |
| } | |
| Function.prototype.after = function(afterfn){ | |
| var self = this; |
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
| Function.prototype.after = function(fn){ | |
| var self = this; | |
| return function(){ | |
| var ret = self.apply(this,arguments); | |
| if(ret === "nextSuccessor"){ | |
| return fn.apply(this,arguments); | |
| } | |
| return ret; | |
| }; | |
| }; |
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 MacroCommand = function(){ | |
| return { | |
| commandsList : [], | |
| add : function(command){ | |
| this.commandsList.push(command); | |
| }, | |
| execute: function(){ | |
| for(var i = 0, command; command = this.commandsList[i++];){ |
NewerOlder