Skip to content

Commit

Permalink
added geohash
Browse files Browse the repository at this point in the history
  • Loading branch information
anqurvanillapy committed May 14, 2017
1 parent 57b5f13 commit 466ca97
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hello World!
```

### 2. The classic
```
```py
>>> import this

The Zen of Python, by Tim Peters
Expand Down Expand Up @@ -40,7 +40,7 @@ The Zen of Python was introduced in [PEP 20](https://www.python.org/dev/peps/pep


### 4. A simple life lesson
```
```py
>>> import this
...
>>> love = this
Expand Down Expand Up @@ -74,7 +74,7 @@ The name Python has nothing to do with the type of Snake.
### 8. The confuscation
This is how the `this.py` module looks, which prints the Zen of Python.

```
```py
s = """Gur Mra bs Clguba, ol Gvz Crgref
Ornhgvshy vf orggre guna htyl.
Expand Down Expand Up @@ -117,7 +117,7 @@ There should be one-- and preferably only one --obvious way to do it.

### 10. Naming identifiers can be unspeakably cool
Just when you thought that working in Python couldn't possibly *be* any more fun,
```
```py
>>> from math import pi
>>> π = pi
>>> area = π * r**2
Expand All @@ -127,6 +127,16 @@ Just when you thought that working in Python couldn't possibly *be* any more fun
True
```

### 11. Picking a place for meetup?
```py
>>> from antigravity import geohash
>>> # Your location, a date and that date's (or most recent) DJIA opening.
>>> geohash(37.421542, -122.085589, b'2005-05-26-10458.68')
37.857713 -122.544543
```
This can generate a GPS coordinate in a region which is 1 longitude long and 1
latitude wide based on your location.

## Notes
1. Easiest hello world program in a language without calling any function
2. Each and every line is the philosophy of Python's design and is a supreme holy guide
Expand All @@ -138,6 +148,7 @@ True
8. It's a substitution cipher called [ROT13](https://en.wikipedia.org/wiki/ROT13)
9. In many languages there are two ways to do the same thing `--no` and `no--`. The message has a hidden example in itself
10. Support for unicode character set for naming identifiers was added in Python3. Though, it is not explicitly preferred while writing code, it adds flavour to working with scientific formulas.
11. The original code is [here](https://github.com/python/cpython/blob/master/Lib/antigravity.py) with the [xkcd comic](https://xkcd.com/426/) referenced, and maybe that's why this is also in the `antigravity` module

## Add more

Expand Down

0 comments on commit 466ca97

Please sign in to comment.