Skip to content

Instantly share code, notes, and snippets.

for img in *.HEIC; do convert $img "${img%.HEIC}.jpg"; done
@arpol
arpol / bunch.py
Created January 27, 2021 10:01
Convert Python dict to a namespace object
# Create a namespace of variables:
class Bunch(object):
def __init__(self, adict):
self.__dict__.update(adict)