Skip to content

Instantly share code, notes, and snippets.

View katyo's full-sized avatar

Kayo Phoenix katyo

View GitHub Profile
@katyo
katyo / Makefile
Last active February 8, 2025 07:55
Excellon Specification
all: excellon.html excellon.pdf
excellon.html: excellon.md
@pandoc $< -o $@
excellon.pdf.md: excellon.md
@cat $< | sed 's/\.png/\.pdf/g' > $@
excellon.pdf: excellon.pdf.md
@pandoc $< --latex-engine=pdflatex -o $@
(defun read-c-radix (s)
(let ((c (substring s 0 (min (length s) 1))))
(cond ((string= s "2") 2)
((string= c "b") 2)
((string= s "8") 8)
((string= c "o") 8)
((string= s "16") 16)
((string= c "h") 16)
((string= s "10") 10)
((string= c "d") 10))))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.