Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env python3
import faulthandler; faulthandler.enable()
import numpy as np
import cairocffi as cairo
UNITS = {
'in': 1,
'cm': 1 / 2.54,
'mm': 1 / 25.4,
@seehuhn
seehuhn / ex1.go
Created August 9, 2013 22:11
A test program to illustrate time.Time support in the github.com/seehuhn/sqlite3 module.
package main
import (
"database/sql"
"fmt"
"time"
_ "github.com/seehuhn/sqlite3"
)
Entropy = 8.000000 bits per byte.
Optimum compression would reduce the size
of this 1073741824 byte file by 0 percent.
Chi square distribution for 1073741824 samples is 252.69, and randomly
would exceed this value 52.91 percent of the times.
Arithmetic mean value of data bytes is 127.4990 (127.5 = random).
Monte Carlo value for Pi is 3.141597894 (error 0.00 percent).