Skip to content

Instantly share code, notes, and snippets.

Rike-Benjamin Schuppner Debilski

  • Institute for Theoretical Biology, Humboldt-University
  • Berlin
View GitHub Profile
View gist:dfb564a737f6f15488c582aa8123d23b
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 Aug 5, 2018
Convert pecunia csv to moneymoney
View converter.py
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
Intel distribution for Python benchmark
View fftbench.py
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()
View Pelita_Script_Match.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Dockerfile
# 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
View anaconda-playbook.yaml
---
- name: Add Anaconda to Pool
hosts: pool
user: root
tasks:
- name: Check, if Anaconda is installed
stat: path=/opt/anaconda3/bin/conda
register: conda
@Debilski
Debilski / AStarImplementations.ipynb
Last active Sep 27, 2016
AStarImplementations.ipynb
View AStarImplementations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View python-call-by-reference.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View opencv-anaconda-helper
import argparse
import subprocess
description = """
This sets up the build for OpenCV and helps with finding
the right Python versions."
Run as:
View debootstrap-install.markdown

Debian installation using only debootstrap

Prerequisites

A minimal Debian installation on a USB stick in EFI mode.

Using grml would be easier to prepare but only works from legacy (BIOS) boot and does not come with systemd-nspawn.

A future task would be to add statelessness to the USB stick and enable boot to RAM.

You can’t perform that action at this time.