Skip to content

Instantly share code, notes, and snippets.

View douglasgoodwin's full-sized avatar

Doug Goodwin douglasgoodwin

View GitHub Profile
{
"metadata": {
"name": "demo notebook"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": "Helium Lab Stations"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "levitation"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "legit fears"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// FFmpeg settings for vimeo.com
// =============================
// Trying to find the best settings for encoding videos as described here:
// http://vimeo.com/help/compression
//
// Input file: MOV
// Video: PAL DV, 720x576, 25fps
// Audio: aac Audio, Stereo, 48kHz, 256kbps
//
// OUT
#!/usr/bin/python
import imaplib
import csv
from email import message_from_string
import time
srv = imaplib.IMAP4_SSL("imap.gmail.com")
srv.login('joe@gmail.com', 'joepw')
srv.select('[Gmail]/Drafts')
# get images to go with those codes
import json
import os
import time
import requests
from PIL import Image
from StringIO import StringIO
from requests.exceptions import ConnectionError
def go(query, path):
@douglasgoodwin
douglasgoodwin / Measuring the redundancy of text
Last active August 29, 2015 13:57
Some examples of the entropy of text measured with ZLIB
{
"metadata": {
"name": "Measuring the redundancy of text"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{