This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 5332311 Total | |
| 3397873 Zip | |
| 872375 Town | |
| 251962 Suburb | |
| 46653 County | |
| 9798 State | |
| 1449 Country |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install selenium as a plugin | |
| script/plugin install http://svn.openqa.org/svn/selenium-on-rails/stable/selenium-on-rails/ |