Skip to content

Instantly share code, notes, and snippets.

@marvinbernhardt
marvinbernhardt / stations.csv
Created January 4, 2024 09:25
1brc stations.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Abha;18.0
Abidjan;26.0
Abéché;29.4
Accra;26.4
AddisAbaba;16.0
Adelaide;17.3
Aden;29.1
Ahvaz;25.4
Albuquerque;14.0
Alexandra;11.0
@marvinbernhardt
marvinbernhardt / change-cite-keys.py
Created May 18, 2022 07:35
Change cite keys in a TeX document from vanilla Zotero to BetterBibTeX standard
#!/usr/bin/env python
# coding: utf-8
"""Compares cite keys by first author name, first word, and year
Assumes old format: name_word_year
Assumes new format: anything that contains name, word, and year possibly stripped
of ':' and removed '-'.
@marvinbernhardt
marvinbernhardt / direct-elimination.ipynb
Last active July 17, 2021 19:20
direct elimination
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.