Skip to content

Instantly share code, notes, and snippets.

View romuloceccon's full-sized avatar

Rômulo Ceccon romuloceccon

  • Frankfurt am Main, Deutschland
View GitHub Profile
@romuloceccon
romuloceccon / google_maps.xml
Last active October 4, 2021 19:32 — forked from cmtsij/google.xml
Custom "Google Maps" source (pt-BR) for Mobile Atlas Creator 1.9.16. Save as *.xml in /mapsources.
<customMapSource>
<name>Google Maps</name>
<minZoom>0</minZoom>
<maxZoom>20</maxZoom>
<tileType>PNG</tileType>
<tileUpdate>IfNoneMatch</tileUpdate>
<url>http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&amp;hl=pt-BR&amp;x={$x}&amp;y={$y}&amp;z={$z}&amp;s=Galileo&amp;scale=1</url>
<serverParts>0 1 2 3</serverParts>
</customMapSource>
@romuloceccon
romuloceccon / fetch-flickr-html-codes.rb
Last active December 26, 2015 09:18 — forked from anonymous/fetch-flickr-html-codes.rb
Generates a list of html code blocks for all pictures in a Flickr set.
require 'flickraw'
# 1. Define FLICKR_API_KEY and FLICKR_SHARED_SECRET. Get them at
# http://www.flickr.com/services/api/keys/
# 2. Run `fetch-flickr-html-codes.rb auth` and follow the instructions.
# 3. Run `fetch-flickr-html-codes.rb <token> <secret>` to list all sets.
# 4. Run `fetch-flickr-html-codes.rb <token> <secret> <set_id>` to
# generate the html code blocks of all pictures from the given set
# using the 'Medium' size.