Skip to content

Instantly share code, notes, and snippets.

@eflee
eflee / models.py
Last active August 4, 2017 17:18
Quick hack for json serialize/deserialize on a model with unsupported types, with pluggable interface
"""
This could probably be made a lot cleaner and add some more syntactic sugar that modifying the (de)serializers dicts on each object. First attempt
"""
class UtilModel(BaseModel):
class Meta:
abstract = True
class_serializers = {
UUID: lambda x: str(x),
@eflee
eflee / seaborn_dark_background.ipynb
Created June 27, 2019 06:25 — forked from mwaskom/seaborn_dark_background.ipynb
Use seaborn with a dark background, if you like that sort of thing.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.