Skip to content

Instantly share code, notes, and snippets.

@dylan-k
dylan-k / contract-template.md
Last active April 1, 2022 13:37
Template for Contract

The contract

Between [company name]

And [customer name]

Summary

I will always do my best to fulfill your needs and meet your expectations, but it's important to have things written down so that we both know what's what, who should do what and when, and what will happen if something goes wrong.

@dylan-k
dylan-k / latex.template
Created April 1, 2022 13:39 — forked from michaelt/latex.template
Template for Pandoc LaTeX File
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@dylan-k
dylan-k / csv2bib.py
Created January 15, 2025 16:51 — forked from mikeesto/csv2bib.py
Convert CSV file to BibTeX
import csv
def generate_bibtex_key(authors, year):
"""Generate a BibTeX key from the first author's last name and the year"""
last_names = authors.split(",")[0].split()
last_name = last_names[-1] if len(last_names) > 0 else ""
return f"{last_name.lower()}{year}"
def convert_csv_to_bibtex(csv_file, bibtex_file):
"""Convert a CSV file to BibTeX format"""