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
/* | |
# GEOJSON TILE LAYER IN LEAFLET.JS | |
The original idea for this gist comes from Koko A.'s post on leaflet-js google groups | |
(https://groups.google.com/forum/#!msg/leaflet-js/d7ur-evSz7Q/p_B4ea_0K1AJ) | |
Use it at your own peril (• | |
## The basic concept | |
- setup the map and the tiles as usual | |
- respond to the "tileload" event with a function that loads the json file (that has the same name - z, x, y - as the tile) |
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
************************************************* Our journey is not complete until our gay brothers and sisters are treated like anyone else under the law. (6699fav/17845rt) | |
************************** Our journey is not complete until our wives, our mothers, and daughters can earn a living equal to their efforts. (3059fav/9974rt) | |
**************** Thank you, God Bless you, and may He forever bless these United States of America. (2191fav/5866rt) | |
*************** Our journey is not complete until all our children know that they are cared for, and cherished, and always safe from harm. (1743fav/5970rt) | |
************* Our journey is not complete until we find a better way to welcome the immigrants who still see America as a land of opportunity. (1774fav/5016rt) | |
************ We have always understood that when times change, so must we. —President Obama (1422fav/5049rt) | |
************ We, the people, declare today that the most evident of truths—that all of us are created equal—is the star that guides us still. (1418fa |
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
#!/usr/bin/env ruby -wKU | |
class Object | |
def destruct! | |
print "This message will self-destruct in..." | |
5.downto(0) {|i| print "#{i}..."; $stdout.flush; sleep(1)} | |
File.open(__FILE__, 'w') { } | |
end | |
end |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="xhrproxy.js"></script> | |
<script> | |
setupXHRProxy(); | |
</script> | |
</head> |