Skip to content

Instantly share code, notes, and snippets.

View gcapnias's full-sized avatar

George J. Capnias gcapnias

View GitHub Profile
var degrees2meters = function(lon,lat) {
var radius = 6378137.0;
var x = radius * lon * Math.PI / 180.0;
var y = radius * Math.log(Math.tan(Math.PI / 4.0 + lat * Math.PI / 360.0));
return [x, y]
}
lon= -77.035974
lat = 38.898717
@gcapnias
gcapnias / datepicker-focus.js
Last active December 18, 2015 21:39 — forked from jeffsheets/datepicker-focus.js
jQuery 1.9.x for $.browser missing fix - Chrome fix
/*
After jquery ui datepicker selection, blur and change
events fire before focus is returned to the input field,
handling a quirk from IE browsers & Chrome
*/
$("input.dateInput").datepicker({
changeMonth: true,
changeYear: true,
showAnim: "fadeIn",