Skip to content

Instantly share code, notes, and snippets.

View iufuenza's full-sized avatar

iufuenza

View GitHub Profile
@goyalankit
goyalankit / web-starter-kit-deploy
Created July 10, 2014 17:28
Web Starter Kit Deploy
cd web-starter-kit
git init
git add .
git commit -m "new starter kit"
heroku create
heroku config:set BUILDPACK_URL=https://github.com/zeke/harp-buildpack
heroku config:set HARP_ROOT=./app
git push heroku master
heroku open
@dmozzy
dmozzy / CalcDistance.js
Created April 16, 2012 13:00
Calculate Distance using google.maps.geometry.spherical.computeDistanceBetween
<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry" type="text/javascript"></script>
<script type="text/javascript">
function calcDistance (fromLat, fromLng, toLat, toLng) {
return google.maps.geometry.spherical.computeDistanceBetween(
new google.maps.LatLng(fromLat, fromLng), new google.maps.LatLng(toLat, toLng));
}
</script>