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 SECRET = 'R4@DtoelECf0', | |
CIPHER = 'aes-256-cbc', | |
crypto = require('crypto'), | |
cipher = crypto.createCipher(CIPHER, SECRET), | |
decipher = crypto.createDecipher(CIPHER, SECRET); | |
function encrypt(message) { | |
var crypted = cipher.update(message, 'utf8', 'hex'); | |
return crypted + cipher.final('hex'); |
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 getHome() { | |
return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']; | |
} |
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
defaults.metas = [ | |
{ | |
"name":"description", | |
"content":"Some useful description" | |
}, | |
{ | |
"name":"apple-mobile-web-app-capable", | |
"content":"yes" | |
}, | |
{ |
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
SELECT TO_CHAR(SYSDATE, 'DD-Mon-YYYY') FROM Dual; |
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 args = Array.prototype.slice.call(arguments); |
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
theWebView.scrollView.bounces = NO; |
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 rmrf(dir, callback) { | |
fs.stat(dir, function(err, stats) { | |
if (err) { | |
return callback(err); | |
} | |
if (!stats.isDirectory()) { | |
return fs.unlink(dir, callback); | |
} |
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 isNumeric(x) { | |
return x === +x; | |
} | |
function isString(x) { | |
return Object.prototype.toString.call(x) == '[object String]'; | |
} |
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
db.currentOP().inprog.forEach(function(v){if (v.op == "query") { db.killOP(v.opid);}}); |