Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
83df50ea
Commit
83df50ea
authored
Sep 14, 2018
by
觉
Committed by
Benjamin Peterson
Sep 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the xkcd link in comment over https. (GH-5452)
parent
19003841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/antigravity.py
Lib/antigravity.py
+1
-1
No files found.
Lib/antigravity.py
View file @
83df50ea
...
...
@@ -11,7 +11,7 @@ def geohash(latitude, longitude, datedow):
37.857713 -122.544543
'''
# http://xkcd.com/426/
# http
s
://xkcd.com/426/
h
=
hashlib
.
md5
(
datedow
).
hexdigest
()
p
,
q
=
[(
'%f'
%
float
.
fromhex
(
'0.'
+
x
))
for
x
in
(
h
[:
16
],
h
[
16
:
32
])]
print
(
'%d%s %d%s'
%
(
latitude
,
p
[
1
:],
longitude
,
q
[
1
:]))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment