String Clustering with Python (and C)
I became interested in string clustering through developing fpos, a set of Python scripts for graphing my spending habits. In a clear failure of research I missed the existance of libraries like:
I became interested in string clustering through developing fpos, a set of Python scripts for graphing my spending habits. In a clear failure of research I missed the existance of libraries like:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python3 | |
import sys | |
from collections import namedtuple | |
GpioRegsetConfig = namedtuple("GpioRegsetConfig", "banks value direction") | |
banks = ( "ABCD", "EFGH" ) | |
broken = ( |
#!/usr/bin/python3 | |
from collections import namedtuple, deque | |
from datetime import datetime, timedelta | |
import argparse | |
import csv | |
from fpos import core | |
from fpos.groups import DynamicGroups | |
Transaction = namedtuple("Transaction", "date, amount, description, category") |
#!/usr/bin/env python3 | |
import toml | |
import argparse | |
from random import randint, sample, choice, shuffle | |
from collections import namedtuple | |
from itertools import islice | |
Guest = namedtuple("Guest", "name, requires, wants") | |
Table = namedtuple("Table", "capacity, guests") |
# 1 2 3 4 5 6 7 8 9 10 11 | |
+-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ | |
SGPMCK ... | | | | | | | | | | | | | | | | | | | | | ... | |
+-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ | |
+---+ +-----------------------------------+ | |
SGPMLD ... | | ... | |
+---+ |
----------------------------- MODULE write_all ----------------------------- | |
EXTENDS Integers, TLC, Sequences | |
CONSTANT L | |
VARIABLE wrote, remaining, result | |
vars == << wrote, remaining, result >> | |
write_errors == { -11, -9, -89, -122, -14, -27, -4, -22, -5, -28, -1, -32 } |