Skip to content

Instantly share code, notes, and snippets.

View urban-1's full-sized avatar

Andreas Bontozoglou urban-1

  • Facebook
  • London
View GitHub Profile
@urban-1
urban-1 / btree.py
Last active February 25, 2017 18:40 — forked from yiakwy/btree.py
"""
Full credit to original authos of the gist:
https://gist.github.com/yiakwy/8380ee05a0bdbf6c291e
"""
import bisect
import itertools
import operator
import random
@urban-1
urban-1 / depres.py
Last active February 17, 2021 08:06
PUBLIC: Software Version Dependency Resolution
#!/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)
#