This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging as lg | |
import re | |
from random import randint, choice | |
from distutils.version import LooseVersion as Version | |
from collections import OrderedDict | |
lg.basicConfig(level=lg.DEBUG) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Full credit to original authos of the gist: | |
https://gist.github.com/yiakwy/8380ee05a0bdbf6c291e | |
""" | |
import bisect | |
import itertools | |
import operator | |
import random |