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> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<style type="text/css"> | |
.frame { | |
width: 100px; | |
height: 100px; | |
border: 5px solid black; |
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
Array.prototype.stack = function(array){ | |
this.push.apply(this, array); | |
} |
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 arr1 = []; | |
var arr2 = []; | |
for(var i=0 ; i<1000000 ; i++){ | |
arr1.push(i); | |
arr2.push(i); | |
} | |
var str1 = arr1.join(','); | |
var str2 = arr2.join(','); | |
bench('==', function(){return str1 == str2}); |
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 is(got, expected){ | |
got != expected && alert(['FAIL', got, expected].join(', ')); | |
} | |
function keys(o){ | |
var r = []; | |
for(var p in o) | |
r.push(p); | |
return r; | |
} |
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 time = Date.now(); | |
setInterval(function(){ | |
var now = Date.now(); | |
if(now - time > 5000) | |
alert('pageshow(fake)'); | |
time = now; | |
}, 1000); |
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> | |
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0"> | |
</head> | |
<body> | |
<pre id="out"></pre> | |
</body> | |
<script> | |
function checkSizes(){ |
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 text = new Array(500).join('-'); | |
String.prototype.getLength = function(){ | |
return this.length; | |
} | |
function getLength(str){ | |
return str.length; | |
} |
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
CACHE MANIFEST | |
NETWORK: | |
* |
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
// ==UserScript== | |
// @id www.rbmaradio.com-9a6f2253-11bd-4aa4-9f5c-cadfa1899da0@scriptish | |
// @name RBMA Radio - Add Download Link | |
// @include http://www.rbmaradio.com/shows/* | |
// @run-at window-load | |
// ==/UserScript== | |
var url = unsafeWindow.gon.show.akamai_url; | |
var ul = document.querySelector('.l-more ul'); |
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
// ==UserScript== | |
// @id vapor.strobes-34539d25-662b-4891-877a-706e35258457@scriptish | |
// @name Vapor Strobes | |
// @version 1.0 | |
// @namespace to.tumblr.com | |
// @author to | |
// @include * | |
// @run-at document-end | |
// ==/UserScript== |