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
@Debilski
Debilski / AStarImplementations.ipynb
Last active September 27, 2016 10:59
AStarImplementations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---
- name: Add Anaconda to Pool
hosts: pool
user: root
tasks:
- name: Check, if Anaconda is installed
stat: path=/opt/anaconda3/bin/conda
register: conda
# Dockerfile
FROM ubuntu
RUN apt-get update
RUN apt-get install -y git python3-pip
RUN pip3 install -U pip
RUN pip3 install --user git+git://github.com/ASPP/pelita
ADD pelita_hidden_players /pelita-hidden-players
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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()
@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',
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 / 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.
@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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.