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 () { | |
var queue; | |
queue = createQueue(0, 0, 100, 100, 25, function (xMin, yMin, xMax, yMax) { | |
var x, y; | |
for (x = xMin; x < xMax; x++) { | |
for (y = yMin; y < yMax; y++) { | |
// do someThing | |
} | |
} | |
}); |
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
public static function stripSubdomain($domainb) { | |
$tlds = array('.com','.net','.org','.biz','.ws','.in','.me','.co','.co.uk','.org.uk','.ltd.uk', | |
'.plc.uk','.me.uk','.edu','.mil','.br.com','.cn.com','.eu.com','.hu.com','.no.com','.qc.com', | |
'.sa.com','.se.com','.se.net','.us.com','.uy.com','.ac','.co.ac','.gv.ac','.or.ac','.ac.ac', | |
'.af','.am','.as','.at','.ac.at','.co.at','.gv.at','.or.at','.asn.au','.com.au','.edu.au', | |
'.org.au','.net.au','.id.au','.be','.ac.be','.br','.adm.br','.adv.br','.am.br','.arq.br', | |
'.art.br','.bio.br','.cng.br','.cnt.br','.com.br','.ecn.br','.eng.br','.esp.br','.etc.br', | |
'.eti.br','.fm.br','.fot.br','.fst.br','.g12.br','.gov.br','.ind.br','.inf.br','.jor.br', | |
'.lel.br','.med.br','.mil.br','.net.br','.nom.br','.ntr.br','.odo.br','.org.br','.ppg.br', |
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
/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:¥?([^#]*))?(?:#(.*))?$/; |
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 urlPatterns = createQueryPattern('http://hogehoge/',[ | |
'a=1', | |
'b=2', | |
'c=3', | |
'd=4', | |
'e=5', | |
'f=6' | |
]); | |
console.dir(urlPatterns); |
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
nazon.shuffle = function(ary) { | |
var i = ary.length, j, t; | |
while (i) { | |
j = Math.floor(Math.random() * i); | |
t = ary[--i]; | |
ary[i] = ary[j]; | |
ary[j] = t; | |
} | |
return ary; | |
} |
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
document.getElementsByClassName = function (needle) { | |
var allNodes = document.getElementsByTagName('*'), | |
nodes = Array.prototype.slice.call(allNodes), | |
outArray = [], | |
i,c,l; | |
for (i = 0, l = nodes.length; i < l; i++) { | |
if (nodes[i].hasAttribute("class")) { | |
c = " " + nodes[i].className + " "; | |
if (c.indexOf(" " + needle + " ") !== -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
function hoge() { | |
if (!(this instanceof hoge)) { | |
return new hoge(); | |
} | |
//以下クラスの実装 | |
} |
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
<html> | |
<head> | |
<meta http-equiv="Content-Script-Type" content="text/javascript" /> | |
<style type="text/css"> | |
#field td{ | |
width:100px; | |
height:100px; | |
border:1px solid #333; | |
text-align:center; | |
} |
NewerOlder