Skip to content

Instantly share code, notes, and snippets.

View ianfab's full-sized avatar

Fabian Fichter ianfab

  • Heidelberg, Germany
  • 15:44 (UTC +02:00)
View GitHub Profile
karolzlot /
Last active May 29, 2024 20:48
Monitoring real time cpu and ram usage with tqdm. If you like it please upvote this answer:
from tqdm import tqdm
from time import sleep
import psutil
with tqdm(total=100, desc='cpu%', position=1) as cpubar, tqdm(total=100, desc='ram%', position=0) as rambar:
while True:
niklasf /
Last active February 24, 2020 15:37
An implementation of the Bratko-Kopec Test using python-chess
import chess
import chess.uci
import sys
import time
MOVETIME = 120.0