4 ms·
A description of what the code does: First, the line webbrowser.open("https://xkcd.com/353/ https://xkcd.com/353/") is obvious, it opens a browser pointing t
by chronolitus 5y ago
A description of what the code does:
First, the line
webbrowser.open("https://xkcd.com/353/ https://xkcd.com/353/")
is obvious, it opens a browser pointing to the relevant XKCD comic, containing a joke which inspired this code.
Then, a geohash function is declared which takes the user's current latitude/longitude, and the current date-time, and returns a target latitude/longitude. According to a previous comic (https://xkcd.com/426/ https://xkcd.com/426/) this corresponds to the game of 'geohashing' where players are supposed to physically travel to arbitrary locations and prove it.
- nwsm 5y agoFor more context, "geohashing" is a play on geocaching [0]. This is not to be confused with a geohash [1]. [0] https://en.wikipedia.org/wiki/Geocaching https://en.wikipedia.org/wiki/Geocaching [1] https://en.wikipedia.org/wiki/Geohash https://en.wikipedia.org/wiki/Geohash