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
# like https://gmarti.gitlab.io/ml/2017/09/07/how-to-sort-distance-matrix.html | |
# but using just 4 lines of code thanks to 'optimal_ordering' argument | |
# added to scipy.cluster.hierarchy.linkage | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.cluster.hierarchy import linkage | |
# distance matrix | |
m = np.zeros((500, 500)) |
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
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |