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
| require 'open-uri' | |
| require 'nokogiri' | |
| USER_AGENTS = [ | |
| 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3', | |
| 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)', | |
| 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3', | |
| 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4', | |
| 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2) Gecko/20100323 Namoroka/3.6.2', |
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
| # original php script: http://www.god-object.com/2009/10/23/convert-rijksdriehoekscordinaten-to-latitudelongitude/ | |
| def rd2wgs (x, y) | |
| dX = (x - 155000) * (10 ** - 5) | |
| dY = (y - 463000) * (10 ** - 5) | |
| somn = (3235.65389 * dY) + (- 32.58297 * (dX ** 2)) + (- 0.2475 * | |
| (dY ** 2)) + (- 0.84978 * (dX ** 2) * | |
| dY) + (- 0.0655 * (dY ** 3)) + (- 0.01709 * | |
| (dX ** 2) * (dY ** 2)) + (- 0.00738 * | |
| dX) + (0.0053 * (dX ** 4)) + (- 0.00039 * | |
| (dX ** 2) * (dY ** 3)) + (0.00033 * ( |
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
| # original php script: http://www.god-object.com/2009/10/23/convert-rijksdriehoekscordinaten-to-latitudelongitude/ | |
| util = require 'util' | |
| rd2wgs = (x, y) -> | |
| # Calculate WGS84 coördinates | |
| dX = (x - 155000) * Math.pow(10, - 5) | |
| dY = (y - 463000) * Math.pow(10, - 5) | |
| somn = (3235.65389 * dY) + (- 32.58297 * Math.pow(dX, 2)) + (- 0.2475 * | |
| Math.pow(dY, 2)) + (- 0.84978 * Math.pow(dX, 2) * | |
| dY) + (- 0.0655 * Math.pow(dY, 3)) + (- 0.01709 * |
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
| .image-set (@image) { | |
| background-image: url('@{image}.png'); | |
| @media screen and (-webkit-device-pixel-ratio: 1.5) { | |
| background-image:url('1_5x/@{image}.png'); | |
| } | |
| @media screen and (-webkit-device-pixel-ratio: 2) { | |
| background-image:url('2x/@{image}.png'); | |
| } | |
| } |
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
| pg_dump --data-only --no-owner --no-acl --inserts --disable-dollar-quoting --no-tablespaces -h localhost -U USER DATABASE > dump | |
| remove first couple of SETs | |
| remove all occurences of "SELECT pg_catalog etc..." | |
| mysql -u USER DATABASE < dump |
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
| Verifying that +egbert is my blockchain ID. https://onename.com/egbert |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am egbert on github. | |
| * I am egbert (https://keybase.io/egbert) on keybase. | |
| * I have a public key ASDD1kWMoATRjjDsfOt3zeNj_6ONyA30I4gHoLjxdHtLrgo | |
| To claim this, I am signing this object: |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am egbert on github. | |
| * I am egbert (https://keybase.io/egbert) on keybase. | |
| * I have a public key ASDD1kWMoATRjjDsfOt3zeNj_6ONyA30I4gHoLjxdHtLrgo | |
| To claim this, I am signing this object: |