Skip to content

Instantly share code, notes, and snippets.

View keoshi's full-sized avatar
🙌
What's up?

Filipe Varela keoshi

🙌
What's up?
View GitHub Profile
@keoshi
keoshi / gmaps.js
Created March 30, 2016 20:10
Selecting Google Maps markers programatically
/*
* At first sight, it might seem impossible to target markers on Google Maps because of recent changes Google made to optimize them.
*
* In this example its shown how to populate your map with custom markers that have a dynamic (yet fake) ID appended to their `src` which, when used with the `optimized: false`, creates a unique DOM element, that you can then target with jQuery.
*
*/
var marker, i;
var locations = [['Seattle','United States',47.6062095,-122.3320708,'01'],['San Jose','United States',37.3382082,-121.8863286,'02'],['Los Angeles','United States',34.0522342,-118.2436849,'03'],['Dallas','United States',32.7766642,-96.7969878,'04'],['San Antonio','United States',29.4241219,-98.4936282,'05'],['Chicago','United States',41.8781136,-87.629798,'06'],['Washington DC','United States',38.9071923,-77.0368707,'07'],['Newark','United States',40.735657,-74.1723667,'08'],['Miami','United States',25.7616798,-80.1917902,'09'],['Sao Paulo','Brazil',-23.5505199,-46.6333094,'10'],['London','United Kingdom',51.
@keoshi
keoshi / killall coreaudiod
Created January 19, 2014 16:09
killall Mac audio to select Apple TV
sudo killall coreaudiod
@keoshi
keoshi / CSSCmdEnter.sublime-keymap
Created May 18, 2012 15:56 — forked from ttscoff/CSSCmdEnter.sublime-keymap
TextMate CSS {...} on Cmd-Enter for Sublime Text 2
[
{ "keys": ["super+enter"], "command": "insert_snippet", "args": {"contents": " {\n\t$0\n}"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
}
]