Skip to content

Instantly share code, notes, and snippets.

from datetime import datetime
import subprocess
import json
OFFSET = 1288834974657
TIME_DIFF = 359
MACHINE_ID = 377
N = 10
def tweet_id_from_timestamp(utcdttime):
from itertools import permutations
import networkx as nx
import matplotlib.pyplot as plt
def flips(x):
for idx, (a, b) in enumerate(zip(x[:-1], x[1:])):
yield x[:idx] + (b,) + (a,) + x[idx+2:]
G = nx.Graph()
for perm in permutations(range(4)):

Excerpt from Cat's Cradle (1963) by Kurt Vonnegut (1922-2007)

Context (emphasis mine):

We Bokononists believe that humanity is organized into teams, teams that do God's Will without ever discovering what they are doing. Such a team is called a karass by Bokonon, and the instrument, the kan-kan, that brought me into my own particular karass was the book I never finished, the book to be called The Day the World Ended.