This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tristan's Foot Pedals and Latency Tester Arduino Program | |
// Provides 5 buttons: left click, right click, scroll up, scroll down, latency test | |
// If you don't want all of these you can comment out the buttons you don't need. | |
#define BOUNCE_LOCK_OUT | |
#include <Bounce2.h> | |
#include "Keyboard.h" | |
const int scrollInterval = 80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make a PDF look scanned. | |
# Extracted from https://github.com/baicunko/scanyourpdf and modified for smaller output files (compression lower density). | |
INPUT_FILE=$1 | |
/usr/local/bin/convert -density '80' ${INPUT_FILE} -colorspace 'gray' -linear-stretch '3.5%x10%' \ | |
-blur '0x0.5' -attenuate '0.25' +noise Gaussian -rotate 0.5 \ | |
-compress lzw -quality 50 scanned_${INPUT_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; The Lisp defined in McCarthy's 1960 paper, translated into CL. | |
; Assumes only quote, atom, eq, cons, car, cdr, cond. | |
; Bug reports to lispcode@paulgraham.com. | |
(defun null. (x) | |
(eq x '())) | |
(defun and. (x y) | |
(cond (x (cond (y 't) ('t '()))) | |
('t '()))) |