https://www.youtube.com/channel/UCrJhliKNQ8g0qoE_zvL8eVg/feed
- Miguel Grinberg Asynchronous Python for the Complete Beginner PyCon 2017 - extremely clear conceptual introduction to concurrency (great central metaphor)
https://www.youtube.com/channel/UCrJhliKNQ8g0qoE_zvL8eVg/feed
| [ | |
| { | |
| "name": "Lower East Side", | |
| "center": [ | |
| -73.9836180698, | |
| 40.7155233255 | |
| ] | |
| }, | |
| { | |
| "name": "Marble Hill", |
| #!/usr/bin/env python2.7 | |
| # | |
| # This is a quick kmaxhash implemintation to test out the usefulness of this | |
| # datastructure for calculating jaccard metrics. It is quick because I wrote | |
| # it quickly :) | |
| # micha gorelick, [email protected] | |
| # | |
| import mmh3 | |
| import heapq |
| >>> import simplegeo | |
| >>> from itertools import ifilter | |
| >>> client = simplegeo.context.Client('your-key','your-secret') | |
| >>> location = client.get_context_by_address("41 Decatur St, San Francisco, CA") | |
| # Find the bounding box of your current city | |
| >>> sf = next(ifilter(lambda feature: feature['classifiers'][0]['category'] == 'Administrative', location['features']), None) | |
| >>> hoods = client.get_features_from_bbox(sf['bounds'], features__category='Neighborhood') |
| # | |
| # c - bash directory changing functions that maintain a | |
| # most-recently used stack. | |
| # | |
| # Run with -help as an argument to see invocation options, or find the | |
| # d_usage function below. | |
| # | |
| # To use these functions, store this in a file someplace and | |
| # then execute | |
| # |