This comment thread has moved to simonw/simonwillisonblog#1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Narcoossee Middle School | |
| 2700 N Narcoossee Rd, St Cloud, FL 34771 | |
| latitude=28.122861, longitude=-81.272736 | |
| Liberty High School | |
| 4250 Pleasant Hill Rd, Kissimmee, FL 34746 | |
| latitude=28.122861, longitude=-81.272736 | |
| ------- | |
| Livestock Shelter: Oconee Heritage Park | |
| 2380 Athens Hwy, Madison, GA, United States | |
| latitude=33.6284624, longitude=-83.4531959 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class BatchIndexer(object): | |
| def __init__(self, batch_size): | |
| self.batch_size = batch_size | |
| def __enter__(self): | |
| self.batch = [] | |
| return self | |
| def index(self, item): | |
| self.batch.append(item) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "TOTAL_POPULATION": 115, | |
| "GENERAL_POPULATION": 115, | |
| "ORG_POC_AFTER_HOURS_PHONE": null, | |
| "PET_ACCOMMODATIONS_CODE": null, | |
| "FACILITY_TYPE": "SHELTER", | |
| "COUNTY_PARISH": "MARION", | |
| "FIPS_CODE": null, | |
| "INCIDENT_ID": null, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Docker for Mac runs a virtual machine on your laptop. To view the volumes, you need to attach a terminal to that virtual machine. You can do that like this:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Now the volumes can be found here:
cd /var/lib/docker/volumes
I found an interesting looking dataset about Polar Bear ear tag tracking on a USGS website: https://alaska.usgs.gov/products/data.php?dataid=130
I deployed it as a datasette website and API here: https://polar-bears.now.sh/
Here's how I did it:
- Install datasette and csvs-to-sqlite: