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
# A syllable dictionary I built with Python. See https://zacs.site/blog/building-a-syllable-dictionary-with-python.html for the full writeup. | |
# | |
# This work is licensed under a Creative Commons Attribution 4.0 International License | |
# See https://zacs.site/disclaimers.html for more information. | |
# © 2012-2019 Zachary Szewczyk. | |
a,1 | |
a,1 | |
aa,1 | |
aal,-1 |
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
## Importing Necessary Modules | |
import requests # to get image from the web | |
import shutil # to save it locally | |
## Set up the image URL and filename | |
image_url = "https://cdn.pixabay.com/photo/2020/02/06/09/39/summer-4823612_960_720.jpg" | |
filename = image_url.split("/")[-1] | |
# Open the url image, set stream to True, this will return the stream content. | |
r = requests.get(image_url, stream = True) |
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
#!/bin/bash | |
# see https://github.com/microsoft/RoadDetections | |
# 1) get the data | |
wget https://usaminedroads.blob.core.windows.net/road-detections/Oceania-Full.zip | |
# 2) extract the records for Australia, second column of tsv only | |
zgrep AUS Oceania-Full.zip | cut -f2 > AUS.geojson | |
# 3) convert to GPKG, works better in QGIS |
OlderNewer