Skip to content

{ Author Archives }

prototypes in javascript for image onload handlers

All this was trying to get it so all subsequent images created in a document would have a onload handler already setup (yes you guessed it I was trying to spy on a metrics library).
This works:
var t = new Image();
t.onload = function(){alert(’yes’)};
t.src=”http://www.cisco.com/web/fw/i/logo.gif”;
does not work
Image.prototype.onload = function(){alert(’yes’)};
var t = new Image();
t.src=”http://www.cisco.com/web/fw/i/logo.gif”;
this works in that you get [...]

bio notes

(notes on) biology from ornana films on Vimeo.

flowchart: which social answer site is right for you?
tunisian government injects JS into facebook pages
solve a puzzle, get hired by facebook? and facebook’s arcitecture
simple JS module patterns
thingdb
episodes and boomerang for event based performance metrics
understanding git
stanford encyclopedia of philosophy
long now seminars
baen cds

nifty chain

links

scale of the universe
understanding git
facebook for phishing
openkeyval
node.js

lunches, figments, old stars and remodels

figments
old stars
lunches
remodels
tabs
red bag
boots

ie6 memories

http://mrdoob.com/lab/javascript/effects/ie6/

logorama

Logorama from Marc Altshuler – Human Music on Vimeo.

js1k contest entry

Here’s my entry into the 1k contest:
http://js1k.com/demo/754
It made me really appreciate the other entries (most of which are much more complex than mine).
Compression-by-hand is a fine art, which I’ve probably had enough of for a while now.
Here’s the code on github:
http://github.com/facetcounter/bubble1k.js
Here’s a bookmarklet so you can destroy any page!

giant bubbles

recipe for giant bubbles