Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| # Add to your `.bash_profile`. If you do something that is incredibly | |
| # destructive, like `git push --force origin HEAD`, you can then | |
| # delete it, how ever many times you've run it, from your history | |
| # using `hidegrep --force`. | |
| function hidegrep() | |
| { | |
| while true; do | |
| hist=$(history | grep -e "$1" | head -n 1) | |
| if [ -z "$hist" ]; then break; fi |
| /************************************************************************** | |
| * OSM2GEO - OSM to GeoJSON converter | |
| * OSM to GeoJSON converter takes in a .osm XML file as input and produces | |
| * corresponding GeoJSON object. | |
| * | |
| * AUTHOR: P.Arunmozhi <aruntheguy@gmail.com> | |
| * DATE : 26 / Nov / 2011 | |
| * LICENSE : WTFPL - Do What The Fuck You Want To Public License | |
| * LICENSE URL: http://sam.zoy.org/wtfpl/ | |
| * |
| > m = 2.days.method(:ago) | |
| => #<Method: Fixnum(ActiveSupport::CoreExtensions::Numeric::Time)#ago> | |
| > m.__file__ | |
| => "/Users/paul/.rvm/gems/ree-1.8.7-2011.03@deals/gems/activesupport-2.3.5/lib/active_support/core_ext/numeric/time.rb" | |
| > m.__line__ | |
| => 64 | |
| > class Method; def open_in_textmate; `mate -l #{__line__} #{__file__}`; end; end | |
| => nil | |
| > 2.days.method(:ago).open_in_textmate | |
| => "" |
| <script> | |
| // test for localStorage support | |
| if(('localStorage' in window) && window['localStorage'] !== null){ | |
| var f = document.getElementById('mainform'); | |
| // test with PHP if the form was sent (the submit button has the name "sent") | |
| <?php if(isset($_POST['sent']))){?> | |
| // get the HTML of the form and cache it in the property "state" | |
| localStorage.setItem('state',f.innerHTML); |