Archive | January, 2011

control freak

31 Jan

??zip -r controlfreak.zip controlfreak -x '*.git/*'

Advertisements

more funny blogspam

30 Jan

"Hello, interesting to know the limit for an application where the z-index automatically increases. I am reassured."

throttle iFrame loading in CoffeeScript

15 Jan
$.fn.src = (url, throttle) ->
????namespace = arguments.callee
????return if ($iframe=$(this)).attr("src")==url
????throttle = throttle||5000
????now = +new Date
????clearTimeout(arguments.callee.timer)
????timeSinceLastReload = +new Date – (namespace.lastReload||0)
????timeTillReload = Math.max(0,throttle-timeSinceLastReload)
????namespace.timer = setTimeout( () -> ?? ??$iframe.attr("src", url) ?? ??namespace.lastReload = now
????, timeTillReload)

Weekend project: hn reader in coffeescript, less

10 Jan
Photo

Sent from my iPad