Handy javadoc-style documentation of the Javascript DOM API (tags: javascript code programming web web2.0 reference)
A Ruby one-liner to create an HTTP proxy:
ruby -r webrick/httpproxy -e 's = WEBrick::HTTPProxyServer.new(:Port => 9999, :RequestCallback => Proc.new{|req,res| puts req.request_line, req.raw_header}); trap("INT"){s.shutdown}; s.start' (tags: ruby)