Skip to content

Instantly share code, notes, and snippets.


Jody Klymak jklymak

View GitHub Profile
jklymak / markdown-to-email
Last active Oct 31, 2018 — forked from cleverdevil/markdown-to-email
markdown-to-emailA simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
View markdown-to-email
#!/usr/bin/env python
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <>
To: Recipient One <>
Subject: Your subject line
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
jklymak /
Last active Jan 30, 2017 — forked from rabernat/
writable MDS store for dask
class writable_mds_store:
This will write each chunk to a binary file. Really only works if chunks are the k-index of the matrix
def __init__(self, prefix, itern, suffix='data', dtype='>f4'):
self.prefix = prefix
self.itern = itern
self.suffix = suffix
self.dtype = dtype
self.fname = '%s.%010d.%s' % (self.prefix, self.itern, self.suffix)