Skip to content

Instantly share code, notes, and snippets.

@avioing
avioing / jquery-1.4.4pre.js
Created March 9, 2011 04:22
monkey patched jquery 1.5.1 and 1.4.4 to fix the IE VML bug
/*!
* jQuery JavaScript Library v1.4.4pre
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
@avioing
avioing / adjust coordinates
Created March 16, 2011 19:26
adjusting coordinates of markers with identical coordinates
// add this inside your loop - looping over your marker locations
var coordinates_hash = new Array();
var coordinates_str, actual_lat, actual_lon, adjusted_lat, adjusted_lon;
actual_lat = adjusted_lat = this.locations[i].latitude;
actual_lon = adjusted_lon = this.locations[i].longitude;
coordinates_str = actual_lat + actual_lon;
while (coordinates_hash[coordinates_str] != null) {
// adjust coord by 50m or so
@avioing
avioing / gist:86dfa86ddc7d83004cbd
Created November 7, 2014 21:29
Google Picker - show top level items only
pickerBuilder.addView(new google.picker.DocsView().setParent('root').setIncludeFolders(true)).enableFeature(google.picker.Feature.MULTISELECT_ENABLED);