View pushtry.sh
# https://wiki.mozilla.org/ReleaseEngineering/TryServer#Using_a_custom_Gaia | |
# https://wiki.mozilla.org/Gaia/Team/Taipei/BubbleTea#How_to_push_bubble-tea_to_try | |
hg qref -m "try: -b o -p emulator,emulator-jb,emulator-kk,linux_gecko,linux64_gecko,macosx64_gecko,win32_gecko -u gaia-unit,gaia-ui-test,gaia-integration -t none" | |
hg push -f try |
View action_cmd.js
function action_cmd(cmd) { | |
var sys = require('sys') | |
var exec = require('child_process').exec; | |
function puts(error, stdout, stderr) {sys.puts(stdout)} | |
exec(cmd, puts); | |
} |
View probe.js
var start = new Date().getTime(); | |
for (var n = 0; n < maxCount; n++) { | |
/* perform the operation to be measured *// | |
} | |
var elapsed = new Date().getTime() - start; | |
console.log('Measured time: ' + elapsed); |
View axe1.js
var http = require("http"); | |
var cheerio = require("cheerio"); | |
/** | |
* Utility function that downloads a URL and invokes | |
* callback with the data. | |
*/ | |
function download(url, callback) { | |
http.get(url, function(res) { | |
var data = ""; |
View axe2.js
var http = require("http"); | |
var cheerio = require("cheerio"); | |
/** | |
* Utility function that downloads a URL and invokes | |
* callback with the data. | |
*/ | |
function download(url, callback) { | |
http.get(url, function(res) { | |
var data = ""; |
View axe3.js
var request = require("request"); | |
var cheerio = require("cheerio"); | |
var jar = request.jar(); | |
var request = request.defaults({ | |
jar: jar, | |
followRedirect: true, | |
maxRedirects: 10 | |
}); |
View axe4.js
var request = require("request"); | |
var cheerio = require("cheerio"); | |
var jar = request.jar(); | |
var headers = { | |
"user-agent": "Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0" | |
}; | |
var options = { | |
jar: jar, |
View build.js
var provecss = require('provecss'); | |
var fs = require('fs'); | |
// read file | |
var input = fs.readFileSync('headers.css', 'utf8'); | |
var output = provecss(input, {path:'headers.css'}); | |
// write file | |
fs.writeFileSync('headers.out.css', output); |
View headers.css
/* ----------------------------------------------------------------- | |
HEADERS: layout | |
This is our base CSS file. | |
Should not be defined here form factor or skin | |
dependent styles. | |
----------------------------------------------------------------- */ | |
section[role="region"] > header:first-child { | |
position: relative; | |
z-index: 10; |
View logobject.js
console.log(JSON.stringify(obj, null, 4)); |
OlderNewer