Skip to content

Instantly share code, notes, and snippets.

View pfandzelter's full-sized avatar
🧑‍🎓

Tobias Pfandzelter pfandzelter

🧑‍🎓
View GitHub Profile
@pfandzelter
pfandzelter / igraph.Dockerfile
Last active March 3, 2023 10:10
slim Docker image with python3.8 and python3-igraph
# from https://github.com/igraph/python-igraph/blob/master/docker/minimal/Dockerfile
FROM python:3.8-alpine AS build
RUN apk add --no-cache --update \
make cmake gcc g++ libstdc++ git libxslt-dev libxml2-dev libc-dev \
libffi-dev zlib-dev libxml2 zlib libtool autoconf automake \
flex bison \
&& rm -rf /var/cache/apk/*
# this can take a while
@pfandzelter
pfandzelter / bar_chart.ipynb
Last active January 29, 2024 16:57
Bar Chart With a Broken Y Axis in Python Using Seaborn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pfandzelter
pfandzelter / Dockerfile
Last active September 30, 2020 08:01
FROM Scratch Dockerfile for Go projects using czmq
# stage 1: build the binary
# we are using alpine Linux with the latest version of golang
FROM golang:1.15-alpine as golang
# first install some dependencies
# (we are using the static versions for each for them as we want these libraries included statically, not dynamically!)
# czmq requires libzmq which in turn requires libsodium
# on alpine Linux we also need to install some specific tools to build C and C++ programs
# libsodium also requires libuuid, which is included in util-linux-dev
RUN apk add --no-cache libzmq-static czmq-static czmq-dev libsodium-static build-base util-linux-dev
@pfandzelter
pfandzelter / gist:b09be56789814f5ee332
Last active August 29, 2015 14:19 — forked from ps/gist:6ac0b69609661e3d8d6f
Java skeleton for vim
If you get tired of typing public class... and then the main method in vim
then here is your solution. This also includes a skeleton for class documentation (author and version) that is compliant with Javadoc guidelines.
autocmd BufNewFile *.java
\ exe "normal O/**\r*\r* @author: \r* @version: \r* \r*/\r\rpublic class " . expand('%:t:r') . "\r public static void main(String[] args){\r\r }\r}\<Esc>1G"
Just insert it into your '.vimrc' and that's it! The next time you create a brand new Java file with 'vim *.java' you
will see a template.