Skip to content

Instantly share code, notes, and snippets.

View olepbr's full-sized avatar

Ole Peder Brandtzæg olepbr

View GitHub Profile
@olepbr
olepbr / film_parse.py
Last active July 4, 2023 12:29
Quick script to help @mariusbax@snabelen.no get some Norwegian film data. Absolutely not production-grade; this script comes with zero correctness guarantees :-) Mastodon thread: https://snabelen.no/@mariusbax/110644892786488792
import json
from dataclasses import dataclass
from dataclass_csv import DataclassWriter
@dataclass
class Film:
""" Bare-bones class representing a film. """
name: str
distributor: str
@olepbr
olepbr / framework_efficiency_plot.py
Last active March 7, 2023 00:21
Plot & describe results of web framework energy efficiency results
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
data: pd.DataFrame = pd.read_csv("results.csv")
sns.violinplot(data=data, x="Framework", y="Energy (J)", order=["ASP.NET Core", "Actix", "Express", "Django", "Laravel"], scale="width")
plt.savefig("vioplot.png")
data.groupby("Framework").describe()
@olepbr
olepbr / README.md
Last active February 10, 2021 16:16

olepbr's GitHub stats Most Used Languages

Keybase proof

I hereby claim:

  • I am olepbr on github.
  • I am olepbr (https://keybase.io/olepbr) on keybase.
  • I have a public key whose fingerprint is E7A0 45DF 5259 0C4D BADC 5215 E304 8812 E4DB 74E0

To claim this, I am signing this object: