Skip to content

Instantly share code, notes, and snippets.

View everton137's full-sized avatar

Everton Zanella Alvarenga everton137

View GitHub Profile
@everton137
everton137 / markov.py
Last active August 29, 2015 14:06 — forked from bgola/markov.py
#!/usr/bin/python2
# coding: utf-8
import re, datetime, random, time
CHAIN_LENGTH=3
START = '\1'
END = '\0'
ansi_escape = re.compile(r'\x1b[^m]+m')
data = {}