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
play -q -c 2 -n synth brownnoise gain -35 |
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
javascript:(function(){var a=document.createElement("iframe"),c=[];a.addEventListener("load",function(){var d=Array.prototype.slice.call(a.contentWindow.document.querySelectorAll(".wall_img_container img"));c=c.concat(d.map(function(a){return a.src}));if((d=Array.prototype.slice.call(a.contentWindow.document.querySelectorAll("#pagination a")).filter(function(a){return">"==a.innerHTML})[0])&&">"==d.innerText)d.click();else{a.parentNode.removeChild(a);var b=document.createElement("a");document.body.appendChild(b); var e=c.length.toString().length,f=Array(e).fill("0").join("");c.forEach(function(a,c){b.href=a.replace("_t.jpg","_f.jpg");b.innerText=b.download="img_"+(f+c).slice(-e)+".jpg";b.click()});b.parentNode.removeChild(b)}});a.src=location.href;document.body.appendChild(a)})(); |
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 map = require('./lib/mapping'); | |
const | |
TPL_CMD_TITLE = '#### NAME (works for CMDS commandPLURAL)', | |
TPL_CMD_KEY = '-KEY, ', | |
TPL_CMD_PARAM = ' _\\<PARAM\\>_', | |
TPL_CMD_OPT = '* **KEY--NAME**PARAM: INFO'; | |
function caps(word) { | |
return word[0].toUpperCase() + word.slice(1); |
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
TAP version 13 | |
1..24 | |
ok 1 A (91) overall score | |
not ok 2 F (48) ynumreq: Make fewer HTTP requests | |
--- | |
message: This page has 16 external Javascript scripts. Try combining them into one. | |
... | |
ok 3 B (80) ycdn: Use a Content Delivery Network (CDN) | |
--- | |
message: There are 2 static components that are not on CDN. <p>Using these CDN hostnames from your preferences: img.cdn-redfin.com</p> |
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> |
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
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 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
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
<!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> |
NewerOlder