Skip to content

Instantly share code, notes, and snippets.

View madhead's full-sized avatar
😐

madhead

😐
View GitHub Profile

Keybase proof

I hereby claim:

  • I am madhead on github.
  • I am madhead (https://keybase.io/madhead) on keybase.
  • I have a public key ASDAPtL3R3tp5j-5SPc_KcDMfRtwn1CXon3SGK6uO3FTZAo

To claim this, I am signing this object:

@madhead
madhead / springer.py
Created April 30, 2020 20:33
springer.py
import sys
import csv
import requests
from pathlib import Path
if __name__ == '__main__':
with open(sys.argv[1]) as csv_file:
csv = csv.DictReader(csv_file, delimiter=",", quoting=csv.QUOTE_ALL)
next(csv)
@madhead
madhead / script.sh
Created February 27, 2021 22:02 — forked from cheungnj/script.sh
Convert asciidoc to Github Flavored Markdown
# Adapted from https://tinyapps.org/blog/nix/201701240700_convert_asciidoc_to_markdown.html
# Using asciidoctor 1.5.6.1 and pandoc 2.0.0.1
# Install pandoc and asciidoctor
$ sudo apt install asciidoctor
$ sudo wget https://github.com/jgm/pandoc/releases/download/2.0.0.1/pandoc-2.0.0.1-1-amd64.deb
$ sudo dpkg -i pandoc-2.0.0.1-1-amd64.deb
# Convert asciidoc to docbook using asciidoctor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@madhead
madhead / Cura.FCMacro
Last active April 3, 2024 08:11
FreeCAD × Cura × Flatpak integration
# -*- coding: utf-8 -*-
import FreeCAD
import Mesh
import MeshPartGui, FreeCADGui
import MeshPart
import Mesh, Part, PartGui
import uuid
import subprocess