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 python | |
""" | |
ssh-copy-id - alike public SSH key upload for gitlab | |
Needs python-gitlab, click. | |
""" | |
import click, gitlab, subprocess, re, sys, getpass, socket | |
from os.path import expanduser |
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
# Proof of concept Schleiferlturnier-Teamfinder | |
# Sehr schlichte Implementierung; Idee: Simulated annealing | |
# Bisher umgesetzt: lediglich zufaelliges Austauschen bei _besserer_ "Energie", | |
# d.h. keine Fluktuationen mit hoeherer Energie moeglich. | |
# Weitere Verbesserungsmoeglichkeit: selektives Update Begegnungsmatrix (nicht | |
# bei jedem Energieupdate komplett von vorn berechnen!!!) | |
# Aber es scheint trotzdem einigermassen zu gehen :-D | |
import time | |
import numpy as np |