Skip to content

Instantly share code, notes, and snippets.

View sebleier's full-sized avatar

Sean Bleier sebleier

  • Counsyl, Inc
  • San Luis Obispo, Ca
View GitHub Profile
@kyuu840
kyuu840 / organize-by-date.py
Last active February 21, 2023 01:35
Organize images and videos into folders according to date. Supports EXIF, video metadata, and file-modified time.
import argparse
import os
import time
import exifread # https://pypi.org/project/ExifRead/
import ffmpeg # https://pypi.org/project/python-ffmpeg/
def is_picture(file):
''' Returns True if the file is an image. '''
extension = os.path.splitext(file)[1]

In Memory of Malcolm

Last night, I received the news that Malcolm Tredinnick had passed away. I was at the hotel bar, concluding the first night of sprints at PyCon 2013. It took everything I had not to spontaneously start crying on the spot.

Malcolm was a friend, a mentor, a valued community mentor, a leader and a wonderful human being. He gave freely of himself to so very many people & causes. He made himself available to others, even when he was so busy he could

@jezdez
jezdez / gloss.py
Created August 24, 2011 10:10
A dictionary like object that supports attribute access, too.
import copy
class gloss(dict):
"""
A dictionary like object that supports attribute access, too.
>>> import pickle
>>> s = gloss(a=123)
>>> c = s.copy()