Skip to content

Instantly share code, notes, and snippets.

var zoom = 1,
lat = -49.340336,
lng = 69.44458,
sin = Math.sin(lat * Math.PI/180),
pow = Math.pow(2, zoom),
x = ((lng + 180) / 360) * 256 * pow,
y = (0.5 - Math.log((1 + sin) / (1 - sin)) / (4 * Math.PI)) * 256 * pow;z
// http://msdn.microsoft.com/en-us/library/bb259689.aspx
var fs = require('fs'),
sys = require('sys'),
http = require('http');
http.createServer(function (req, res) {
sys.puts(req.url);
var request = http.createClient(3000, "localhost").request("GET", req.url, {});
request.addListener("response", function (response) {
5332311 Total
3397873 Zip
872375 Town
251962 Suburb
46653 County
9798 State
1449 Country
# install selenium as a plugin
script/plugin install http://svn.openqa.org/svn/selenium-on-rails/stable/selenium-on-rails/