This file contains 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
// http://www.raysoda.com/Com/Photo/List.aspx?f=D&s=RD&d=120217 | |
a = document.createElement('script') | |
a.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" | |
document.body.appendChild(a); | |
Global = []; | |
function tryParse( num ) { | |
if (num == 0 ) return; | |
$.ajax('http://www.raysoda.com/App/Office/List/D.aspx?s=CD&pg='+num) | |
.success(function(d) { |
This file contains 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
# available above python 2.6 | |
from multiprocessing import Pool | |
def extractMaxLen( l ): | |
assert(len(l)>0) | |
elem,elemLen = l[0],len(l[0]) | |
for idx in xrange(1, len(l)): | |
if len(l[idx]) > elemLen: | |
elem,elemLen = l[idx],len(l[idx]) |
This file contains 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
TarGZ = function(){}; | |
// Load and parse archive, calls onload after loading all files. | |
TarGZ.load = function(url, onload, onstream, onerror) { | |
var o = new TarGZ(); | |
o.onload = onload; | |
o.onerror = onerror; | |
o.onstream = onstream; | |
o.load(url); | |
return o; |
NewerOlder