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 ProbCriticalNormal(P) | |
{ | |
// input p is confidence level convert it to | |
// cumulative probability before computing critical | |
var Y, Pr, Real1, Real2, HOLD; | |
var I; | |
var PN = [0, // ARRAY[1..5] OF REAL | |
-0.322232431088 , |
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
ops = db.currentOp().inprog.map(function(e){ | |
return [e.opid, e.secs_running] | |
}); | |
ops.filter(function(e){ | |
return e[1] > 200; | |
}).map(function(e){ | |
db.killOp(e[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
# Google Play LP API | |
This API is going to be used by our Android apps. The purpose is to increase subscriptions from Google Play. | |
## API | |
Verbs: | |
- visitId | |
- isSubscriber |
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
# Google Play LP API | |
This API is going to be used by our Android apps. The purpose is to increase subscriptions from Google Play | |
## API | |
Verbs: | |
- signup | |
- getVisitId |
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
tell application "System Events" | |
set width to 840 | |
set height to 495 | |
set y to 525 | |
tell application "Terminal" | |
do script "" | |
do script "" | |
do script "" | |
do script "" | |
end tell |
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
echo "/uae" | sed 's/.*/http\:\/\/wap\.mozook\.com&/' | xargs -I{} curl -H"user-agent:android" {} -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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
### GENERATE PRIVATE KEY (key.pem) | |
# openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem | |
### GENERATE CERTIFICATE (cert.pem) | |
# openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem | |
express = require("express") | |
fs = require('fs') | |
https = require('https') |