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
window.geocoder = new google.maps.ClientGeocoder(); | |
geocoder.getLocations('rua xyz, sp', function(result){ | |
var placemark = result.Placemark[0]; // Only use first result | |
var accuracy = placemark.AddressDetails.Accuracy; | |
var zoomLevel = 1; | |
var lon = placemark.Point.coordinates[0]; | |
var lat = placemark.Point.coordinates[1]; | |
gmap.setCenter(new google.maps.LatLng(lat, lon), zoomLevel); | |
}); |
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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' | |
# Basic settings: | |
# domain - The hostname to SSH to | |
# deploy_to - Path to deploy into | |
# repository - Git repo to clone from (needed by mina/git) | |
# user - Username in the server to SSH to (optional) |