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
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 |
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
<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> |