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 python3 | |
import logging | |
from logging.handlers import RotatingFileHandler | |
import sys | |
import colorama | |
def configure_logging(): | |
# enable cross-platform colored output | |
colorama.init() |
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 python3 | |
import gzip | |
import io | |
import numpy as np | |
import random | |
import requests | |
# reproducibility | |
np.random.seed(1337) | |
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
@echo off | |
if NOT EXIST %HOMEDRIVE%%HOMEPATH%\vmshare ( | |
echo shared vm folder %HOMEDRIVE%%HOMEPATH%\vmshare does not exist | |
exit /B | |
) | |
if NOT EXIST %HOMEDRIVE%%HOMEPATH%\arch.iso ( | |
echo arch linux iso %HOMEDRIVE%%HOMEPATH%\arch.iso does not exist | |
exit /B | |
) | |
where vboxmanage > nul 2>&1 |
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 python3.7 | |
from scipy.cluster import hierarchy | |
from matplotlib import pyplot as plt | |
import numpy as np | |
class ClusteringItem: | |
def __init__(self, label, features): | |
self.label = label | |
self.features = features | |