Skip to content

Instantly share code, notes, and snippets.

View open-dynaMIX's full-sized avatar
💥
Done. Your build exited with 1.

Fabio Ambauen open-dynaMIX

💥
Done. Your build exited with 1.
View GitHub Profile
@open-dynaMIX
open-dynaMIX / fibs_elo.py
Created December 28, 2020 15:01
FIBS Elo formula
def fibs_elo(
winner: int,
loser: int,
winner_exp: int = 400,
loser_exp: int = 400,
points: int = 1,
) -> (int, int):
"""
Calculate new FIBS Elo scores.
@open-dynaMIX
open-dynaMIX / profile.sh
Created May 13, 2020 13:56
Anonip profiling - column based vs. regex based IP detection
#!/usr/bin/env bash
n_runs=10
if ! [ -z ${1+x} ]; then
n_runs="$1"
fi
run () {
result=0