Skip to content

Instantly share code, notes, and snippets.

View Jorge-C's full-sized avatar

Jorge Cañardo Alastuey Jorge-C

View GitHub Profile
"""Cool histograms from your gmail account.
Remember to turn on IMAP, and if you're using two-steps verification
(you should) you'll have to request a password just for this (security
"tab" of your account configuration).
"""
from collections import Counter
from itertools import izip
import imaplib
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import matplotlib
matplotlib.use('webagg')
import numpy as np
from scipy.special import binom
import matplotlib.pyplot as plt