Skip to content

Instantly share code, notes, and snippets.

View emilmont's full-sized avatar

Emilio Monti emilmont

View GitHub Profile
"""
Download results file from:
https://www.coachcox.co.uk/imstats/im/recent/
"""
import csv
import statistics
import datetime
from rich.console import Console
from rich.table import Table
@emilmont
emilmont / heap.py
Last active December 29, 2015 06:49
Heap and Heapsort
from math import floor
class Heap:
def __init__(self, items=None):
self.__items = items if items != None else []
self.__build_heap()
def __build_heap(self):
# Iterate across all the nodes that have at least one child from the