Skip to content

Instantly share code, notes, and snippets.

View kimdwkimdw's full-sized avatar
🏃‍♂️
Running & Learning

Arthur Kim kimdwkimdw

🏃‍♂️
Running & Learning
View GitHub Profile
@kimdwkimdw
kimdwkimdw / gist:1882555
Created February 22, 2012 06:54
Get Top 10 Favorite Photographer in Raysoda
// 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) {
@kimdwkimdw
kimdwkimdw / gist:1593822
Created January 11, 2012 09:06
Get Longest Word From List
# 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])
@kimdwkimdw
kimdwkimdw / gzip.js
Created March 7, 2011 12:51 — forked from kig/gzip.js
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;