Skip to content

Instantly share code, notes, and snippets.

Avatar
🪙

Martin Kersner martinkersner

🪙
View GitHub Profile
@martinkersner
martinkersner / KMeans.py
Created Jul 23, 2017
k-Means clustering
View KMeans.py
#!/usr/bin/env python
# Martin Kersner, m.kersner@gmail.com
# 2017/07/23
from __future__ import division
import sys
import numpy as np
import scipy
# Modified version of https://stackoverflow.com/a/5468119
View faster_grep
#!/usr/bin/env bash
# Martin Kersner, m.kersner@gmail.com
# 2016/04/08
# faster_grep $1 $2
# $1 pattern file
# $2 input file
PATTERN_FILE="$1"