Skip to content

Instantly share code, notes, and snippets.

View casperc's full-sized avatar

Casper Clausen casperc

View GitHub Profile
@pesterhazy
pesterhazy / datomic-entity-history.clj
Last active December 7, 2020 11:13
Inspect a datomic entity's history
;; Show history of an entity
;;
;; useful for interactively inspecting what happened to a datomic entity in its lifetime
;;
;; use `entity-history` to get a list of transactions that have touched the entity (assertions, retractions)
;;
;; use `explain-tx` to find out what else was transacted in the txs
(defn entity-history
"Takes an entity and shows all the transactions that touched this entity.
@ninapavlich
ninapavlich / email_sender.py
Last active January 24, 2024 08:33
Convert HTML emails with python
from bs4 import BeautifulSoup
import os
import re
import requests
import urlparse
import smtplib
from smtplib import SMTP
from smtplib import SMTP_SSL
from smtplib import SMTPAuthenticationError