Skip to content

Instantly share code, notes, and snippets.

View romuloccomp's full-sized avatar

Romulo cComp romuloccomp

  • Belo Horizonte, MG, Brazil
View GitHub Profile
@ricardodantas
ricardodantas / gmaps-lat-lon.js
Created March 11, 2014 18:35
Google Maps API - Pegar a latitude e longitude de um endereço
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);
});
@Mic92
Mic92 / deploy.rb
Created September 5, 2012 20:15
My mina deploy setup
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)