Last active
August 29, 2015 13:59
-
-
Save robtarr/10984313 to your computer and use it in GitHub Desktop.
Code samples for Event Map Foundry post
This file contains 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
function geoCode(addr){ | |
var gc = Maps.newGeocoder(); | |
var geoJSON = gc.geocode(addr); | |
var lat = geoJSON.results[0].geometry.location.lat; | |
var lng = geoJSON.results[0].geometry.location.lng; | |
return lat + ", " + lng; | |
} |
This file contains 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
set :output, "/log/cron_log.log" | |
every 1.hour do | |
command "cd #{server_path} && coffee google.coffee map-data.json" | |
end |
This file contains 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
table = tabletop.init | |
key: "############################################" | |
callback: (data) => | |
# do things |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment