Skip to content

Commit 466ca97

Browse files
committed
added geohash
1 parent 57b5f13 commit 466ca97

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Hello World!
88
```
99

1010
### 2. The classic
11-
```
11+
```py
1212
>>> import this
1313

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

4141

4242
### 4. A simple life lesson
43-
```
43+
```py
4444
>>> import this
4545
...
4646
>>> love = this
@@ -74,7 +74,7 @@ The name Python has nothing to do with the type of Snake.
7474
### 8. The confuscation
7575
This is how the `this.py` module looks, which prints the Zen of Python.
7676

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

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

130+
### 11. Picking a place for meetup?
131+
```py
132+
>>> from antigravity import geohash
133+
>>> # Your location, a date and that date's (or most recent) DJIA opening.
134+
>>> geohash(37.421542, -122.085589, b'2005-05-26-10458.68')
135+
37.857713 -122.544543
136+
```
137+
This can generate a GPS coordinate in a region which is 1 longitude long and 1
138+
latitude wide based on your location.
139+
130140
## Notes
131141
1. Easiest hello world program in a language without calling any function
132142
2. Each and every line is the philosophy of Python's design and is a supreme holy guide
@@ -138,6 +148,7 @@ True
138148
8. It's a substitution cipher called [ROT13](https://en.wikipedia.org/wiki/ROT13)
139149
9. In many languages there are two ways to do the same thing `--no` and `no--`. The message has a hidden example in itself
140150
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.
151+
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
141152

142153
## Add more
143154

0 commit comments

Comments
 (0)