This file contains 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 CRLF = '\r\n'; | |
var STATUS_CODES = exports.STATUS_CODES = { | |
100 : 'Continue', | |
101 : 'Switching Protocols', | |
102 : 'Processing', // RFC 2518, obsoleted by RFC 4918 | |
200 : 'OK', | |
201 : 'Created', | |
202 : 'Accepted', | |
203 : 'Non-Authoritative Information', | |
204 : 'No Content', |
This file contains 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 box, cmds, next = 0, | |
cb = function(err) { | |
if (err) die(err); | |
else if (next < cmds.length) cmds[next++].apply(this, Array.prototype.slice.call(arguments).slice(1)); | |
}; | |
cmds = [ | |
function() { | |
imap.connect(cb); | |
}, function() { |
This file contains 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
/\*.{0,}/ |
This file contains 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
// parseUri 1.2.2 | |
// (c) Steven Levithan <stevenlevithan.com> | |
// MIT License | |
function parseUri(str) { | |
var o = parseUri.options; | |
var m = o.parser[o.strictMode ? "strict" : "loose"].exec(str); | |
var uri = {}; | |
var i = 14; | |
while (i--) uri[o.key[i]] = m[i] || ""; |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>桌面创建快捷方式</title> | |
</head> | |
<body> | |
<script> | |
function createDesktop(sUrl, sName) { | |
try { |
This file contains 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 checkNested(obj /*, level1, level2, ... levelN*/) { | |
var args = Array.prototype.slice.call(arguments), | |
obj = args.shift(); | |
for (var i = 0; i < args.length; i++) { | |
if (!obj || !obj.hasOwnProperty(args[i])) { | |
return false; | |
} | |
obj = obj[args[i]]; | |
} |
This file contains 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() { | |
function timer(delay) { | |
var self = this; | |
this._queue = []; | |
setInterval(function() { | |
for (var i = 0; i < self._queue.length; i++) { | |
self._queue[i](); | |
} | |
}, |
This file contains 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
--- | |
title: Nginx使用url参数做反射代理 | |
--- | |
``` | |
server { | |
server_name www.demo.com; | |
listen 80; | |
location / { |