Skip to content

Instantly share code, notes, and snippets.

View Debilski's full-sized avatar

Rike-Benjamin Schuppner Debilski

  • Institute for Theoretical Biology, Humboldt-University
  • Berlin
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / checkvacc.py
Last active May 28, 2021 12:34
Search the Berlin Doctolib site for an available vaccination slot in the next N days. If you run macOS then add `--exec 'say -v Anna {NAME}'` and it will speak to you.
import argparse
from datetime import date, datetime
import subprocess
import shlex
import sys
import time
import requests
from requests.api import request
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / bot_eaten_demo.ipynb
Created June 16, 2019 19:36
Bot.eaten behaviour
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debilski
Debilski / broken_noiser.ipynb
Last active June 9, 2019 16:41
Bug in pelita noiser
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
layout="""
########
# ###E0#
#1E #
########
"""
str = str(create_layout(layout, food=[(1, 1)], bots=[(1, 2), (1, 2)], enemy=[(1, 1), (1, 1)]))
assert str == """
########
@Debilski
Debilski / converter.py
Created August 5, 2018 18:13
Convert pecunia csv to moneymoney
import pandas as pd
# This needs to be exported from Pecunia (in that order!)
names = [
'Datum', # Called 'Buchungsdatum' in Pecunia
'Wertstellung', # 'Valutadatum'
'Kategorien',
'Name', # 'Empfänger'
'Verwendungszweck',
'IBAN Empfänger',
@Debilski
Debilski / fftbench.py
Created May 18, 2018 11:54
Intel distribution for Python benchmark
import sys
import time
import numpy as np
import numpy.random as rn
def fftbench(size):
mat = rn.rand(size, size) + 1j * rn.randn(size, size)
start = time.time()