Skip to content

Instantly share code, notes, and snippets.

View behackl's full-sized avatar

Benjamin Hackl behackl

View GitHub Profile
@behackl
behackl / Dockerfile
Last active September 3, 2023 09:28
Manim example scenes @ mybinder.org
FROM manimcommunity/manim:v0.3.0
COPY --chown=manimuser:manimuser . /manim
@behackl
behackl / Dockerfile
Created February 2, 2021 13:24
Manim Community v0.3.0 interactive release tour (mybinder.org)
FROM manimcommunity/manim:v0.3.0
COPY --chown=manimuser:manimuser . /manim
@behackl
behackl / README.md
Last active October 4, 2021 16:39
Manim Video Slideshow

This is a rough, hacked-together tool for creating "slide show"-like presentations using the partial video files Manim renders for scene caching.

Setup

  • Put the slides.html into the directory containing the partial_movie_files_list.txt for some scene you have rendered.
  • Start a web server serving the files from that directory (e.g., via docker by running something like docker run --rm -v $(pwd):/usr/share/nginx/html:ro -p 8080:80 nginx.
  • Extra step: make sure that slides.html has read permissions, otherwise 403: chown a+r slides.html
@behackl
behackl / 2021-06 minimal critical points.ipynb
Last active June 9, 2021 00:04
SageMath code (translated from Maple) for finding minimal critical points for multivariate combinatorial generating functions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@behackl
behackl / vaccination-capacity-bot.py
Last active August 13, 2021 09:52
Scraper for available vaccination dates in the Uppsala region
"""
This is a utility bot parsing the available vaccination slots
in Uppsala's region and sending changes whenever new vaccination
dates become available to a (Discord) webhook.
I've put this together during a train ride, so don't expect
well-documented code. It has helped me to get a suitable
vaccination date, and as such it has done its job well.
Python dependencies are beautifulsoup4 and timeloop.
@behackl
behackl / Dockerfile
Created September 18, 2021 23:18
Interactive manimation worksheet: center of mass of emptying can
FROM manimcommunity/manim:v0.10.0
COPY --chown=manimuser:manimuser . /manim
@behackl
behackl / 01-first steps.ipynb
Last active June 1, 2024 07:06
Interactive Manim environment for Workshops
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@behackl
behackl / Dockerfile
Created November 1, 2021 20:26
[Manimation] Complex exponential function
FROM manimcommunity/manim:v0.11.0
COPY --chown=manimuser:manimuser . /manim
FROM manimcommunity/manim:v0.13.1
COPY --chown=manimuser:manimuser . /manim
@behackl
behackl / dyck_path_iterator_7.py
Created March 27, 2022 14:35
Code for manimation of all Dyck paths with 14 steps
from __future__ import annotations
from manim import *
from combpyter import DyckPaths, DyckPath
def draw_path(path: DyckPath, plane: NumberPlane | None = None) -> VGroup:
if plane is None: