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
// to exec a command in shell, use http://APP_NAME.cloudfoundry.com/shell?cmd=COMMAND_TO_RUN | |
exports.shell = function(req, res){ | |
var exec = require('child_process').exec; | |
var child = exec(decodeURIComponent(req.query.cmd), function (error, stdout, stderr) { | |
res.send('<dl><dt>stderr</dt><dd><pre>' + stderr + '</pre></dd></dl>' + | |
'<dl><dt>stdout</dt><dd><pre>' + stdout + '</pre></dd></dl>'); | |
}); | |
}; |
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 words = {}; | |
for (var i = 0; i < 5000; i++) { | |
words['word' + i] = 1; | |
} | |
var t0 = +new Date; | |
for (var j = 0; j < 100000; j++) { | |
if (words[j]) { | |
// do something here | |
} | |
} |
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() { | |
var REQUEST_PATH = '/virtual/im/'; | |
var REQUEST_NAME = ['buy-now', 'tech-support', 'vip', 'agent']; | |
var GET_ITEMS = function() { | |
var list = document.getElementById('doyoo_panel_main'); | |
return list ? list.childNodes : []; | |
}; | |
window._hmt = window._hmt || []; |
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() { | |
var REQUEST_PATH = '/virtual/im/'; | |
var REQUEST_NAME = ['float', 'popup']; | |
var GET_ITEMS = function() { | |
return [ | |
document.getElementById('BDBridgeIconWrap'), | |
document.getElementById('BDBridgeInviteWrap') | |
]; | |
}; |
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() { | |
/** | |
* 虚拟URL的路径名 | |
* 必须以"/"开头,后面字符允许字母、数字、"-"和"/" | |
*/ | |
var REQUEST_PATH = '/qq'; | |
/** | |
* 虚拟URL的页面名。 | |
* 每个属性名都是统计请求的一个虚拟页面名,允许用字母、数字、"-"和"/" |
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() { | |
var REQUEST_PATH = '/virtual/im/'; | |
var REQUEST_NAME = ['53kf']; | |
var GET_ITEMS = function() { | |
return [document.getElementById('iconDivMain1')]; | |
}; | |
window._hmt = window._hmt || []; |
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() { | |
var REQUEST_PATH = '/virtual/im/'; | |
var REQUEST_NAME = ['business1', 'agent', 'tech-support', 'bussiness2', 'tel']; | |
var GET_ITEMS = function() { | |
var list = document.getElementById('doyoo_panel'); | |
return list ? list.getElementsByTagName('a') : []; | |
}; | |
window._hmt = window._hmt || []; |
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() { | |
/** | |
* 虚拟URL的路径名 | |
* 必须以"/"开头,后面字符允许字母、数字、"-"和"/" | |
*/ | |
var REQUEST_PATH = '/virtual/qiao'; | |
/** | |
* 虚拟URL的页面名。 | |
* 每个属性名都是统计请求的一个虚拟页面名,允许用字母、数字、"-"和"/" |
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
/** | |
* @file 显示百度网盘文件下载链接 | |
* @author WangYang (@firedfox) | |
*/ | |
/** | |
* 在控制台批量输出下载地址,给文件名加链接,恢复系统右键菜单 | |
*/ | |
var hackLink = function(title, url) { | |
console.log(url); |
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() { | |
/** | |
* 虚拟URL的路径名 | |
* 必须以"/"开头,后面字符允许字母、数字、"-"和"/" | |
*/ | |
var REQUEST_PATH = '/virtual/53kf'; | |
/** | |
* 虚拟URL的页面名。 | |
* 每个属性名都是统计请求的一个虚拟页面名,允许用字母、数字、"-"和"/" |