Skip to content

Instantly share code, notes, and snippets.

@comfuture
Created July 11, 2013 12:20
Show Gist options
  • Save comfuture/5974971 to your computer and use it in GitHub Desktop.
Save comfuture/5974971 to your computer and use it in GitHub Desktop.
def xxrange(start, stop, step=1):
cur = start
while cur < stop:
yield cur
cur += step
locs = reversed([(lat, lng) for lat in xxrange(18.0, 64.0, 0.1) \
for lng in xxrange(-124.0, -66.0, 0.1) if lat is not lng])
for i, loc in enumerate(locs):
print i, loc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment