Skip to content

Instantly share code, notes, and snippets.

View michaelconnor00's full-sized avatar

Mike Connor michaelconnor00

View GitHub Profile
@michaelconnor00
michaelconnor00 / put_archive.py
Last active July 14, 2024 22:05 — forked from zbyte64/sample.py
Docker Python put_archive example
import tarfile
import time
import json
from io import BytesIO
import docker
src_code = """
if __name__ == "__main__":
print('Hello World, From Alpine!!!!!!!!!')
"""
@michaelconnor00
michaelconnor00 / convert-geojson-to-wkt.py
Created June 20, 2017 18:54 — forked from drmalex07/convert-geojson-to-wkt.py
Convert GeoJSON to/from WKT in Python. #python #geojson #geometry
import json
import geojson
from shapely.geometry import shape
o = {
"coordinates": [[[23.314208, 37.768469], [24.039306, 37.768469], [24.039306, 38.214372], [23.314208, 38.214372], [23.314208, 37.768469]]],
"type": "Polygon"
}
s = json.dumps(o)