Skip to content

Instantly share code, notes, and snippets.

View sevamoo's full-sized avatar
🏗️
Building something cool!

sevamoo sevamoo

🏗️
Building something cool!
View GitHub Profile
@melanieimfeld
melanieimfeld / cityshapes.py
Last active April 27, 2022 23:15
Ordering Cities using Python
import argparse
import requests
import json
import geopandas as gpd
import pandas as pd
from shapely import affinity
from shapely.geometry import Polygon, Point, MultiPolygon
from matplotlib import pyplot as plt
import numpy as np
from osmtogeojson import osmtogeojson
@thomastweets
thomastweets / PNGWhiteTrim.py
Last active February 8, 2024 18:53
Python script to trim all png images with white background in a folder
import Image
import sys
import glob
import ImageOps
# Trim all png images with white background in a folder
# Usage "python PNGWhiteTrim.py ../someFolder"
try:
folderName = sys.argv[1]