Skip to content

Instantly share code, notes, and snippets.

View lckarssen's full-sized avatar

Lennart C. Karssen lckarssen

View GitHub Profile
@lckarssen
lckarssen / gist:a438371825bd76e05057f33cb7cc8a72
Created September 5, 2017 12:11 — forked from drorata/gist:b05bfd59c45eec0470f6
Nice output of pandas.DataFrame in org-mode
import pandas as pd
import numpy as np
from tabulate import tabulate

df = pd.DataFrame(np.random.random((4,3)), columns=['A','B','C'])
print("foo")
return(tabulate(df, headers="keys", tablefmt="orgtbl"))
@lckarssen
lckarssen / git-log-to-tikz.rb
Last active December 17, 2022 22:08 — forked from hauspie/git-log-to-tikz.rb
Extract git history to tikz picture
#!/usr/bin/env ruby
# A small ruby script to extract a git history to a tikz picture
# Author: Michael Hauspie <Michael.Hauspie@lifl.fr>
# Author: Lennart C. Karssen <lennart@karssen.org>
#
# Not clean code, not always working well, but does its job in most of
# the cases I needed :)
#
# LCK: Added some ideas from this tex.stackexchange answer: