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 (d){ | |
| var iframe = d.body.appendChild(d.createElement('iframe')), | |
| doc = iframe.contentWindow.document; | |
| iframe.style.cssText = 'position:absolute; top:-999em'; | |
| doc.open(); | |
| doc.write(' | |
| <body onload=" | |
| YUI_config={win:window.parent,doc:window.parent.document}; |
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 os = require('os'); | |
| const RESOLUTION = 1000; // 1s CPU resolution | |
| function cpusInfo() { | |
| return os.cpus().map(function(cpu) { | |
| var t = cpu.times; | |
| return { | |
| total: t.user + t.nice + t.sys + t.irq + t.idle, |
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 client + ' (' + STRING(volume) + ')' AS client, mean, q_10th, q_25th, median, q_75th, q_90th, q_95th, q_99th | |
| FROM | |
| (SELECT | |
| 'desktop' AS client, | |
| COUNT(0) AS volume, | |
| AVG((bytesTotal / 1024) / (fullyLoaded / 1000)) as mean, | |
| NTH(101, QUANTILES((bytesTotal / 1024) / (fullyLoaded / 1000), 1001)) AS q_10th, | |
| NTH(251, QUANTILES((bytesTotal / 1024) / (fullyLoaded / 1000), 1001)) AS q_25th, | |
| NTH(501, QUANTILES((bytesTotal / 1024) / (fullyLoaded / 1000), 1001)) AS median, | |
| NTH(751, QUANTILES((bytesTotal / 1024) / (fullyLoaded / 1000), 1001)) AS q_75th, |
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 * FROM | |
| (SELECT * FROM [httparchive:runs.2010_11_15_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2010_11_29_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2010_12_16_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2010_12_28_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2011_01_20_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2011_01_31_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2011_02_11_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2011_02_26_pages] WHERE url = "http://www.twitter.com/"), | |
| (SELECT * FROM [httparchive:runs.2011_03_15_pages] WHERE url = "http://www.twitter.com/"), |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <script>console.log('pre css', performance.now());</script> | |
| <link rel="stylesheet" href="http://1.cuzillion.com/bin/resource.cgi?type=css&sleep=2&n=1&t=12345" onload="console.log('css load', performance.now())"> | |
| <script>console.log('post css', performance.now());</script> | |
| </head> | |
| <body> | |
| <h1>foo</h1> | |
| <script>console.log('dom', performance.now());</script> |
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 PAD = '00000'; | |
| var count = { | |
| all: 0, | |
| day: 0, | |
| single: 0 | |
| }; | |
| var timer, isFirst, imgs, current; |
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 page = require('webpage').create(), | |
| address, output, size; | |
| page.onConsoleMessage = function(msg, lineNum, sourceId) { | |
| console.log('CONSOLE: ' + msg); | |
| }; | |
| if (phantom.args.length < 2 || phantom.args.length > 6) { | |
| console.log('Usage: rasterize.js URL filename WxH retina ua'); | |
| phantom.exit(); |
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
| require('http').createServer(function(req,res){ | |
| console.log(req.headers['user-agent']); | |
| res.writeHead(200, { | |
| 'Content-Type': 'text/css', | |
| //'Cache-Control': 'private, max-age=' + 60*60*24*365*10, | |
| //'Expires': new Date(new Date().getTime()+(1000*60*60*24*365*10)).toUTCString(), | |
| 'Vary': 'Accept-Encoding' | |
| }); | |
| /*res.end(); return;*/ | |
| var d = new Date(); |
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 = require('system').args, | |
| page = require('webpage').create(); | |
| // valid options | |
| var opts = { | |
| 'v': 'viewport', | |
| 'a': 'area', | |
| 's': 'selector', | |
| 'o': 'output', | |
| 'c': 'custom' |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <script>foo = 'iframe'</script> | |
| </head> | |
| <body> | |
| <iframe src="index.html"></iframe> | |
| </body> | |
| </html> |
OlderNewer