Skip to content

Instantly share code, notes, and snippets.

View kavsingh's full-sized avatar
💭
I may be slow to respond.

Kav Singh kavsingh

💭
I may be slow to respond.
View GitHub Profile
@kavsingh
kavsingh / ocr
Created December 17, 2021 15:09
quick and dirty pdf ocr script
#!/bin/bash
set -e
# based on https://ryanfb.github.io/etc/2014/11/13/command_line_ocr_on_mac_os_x.html
# dependencies:
# brew install imagemagick tesseract pdftk-java
# make sure to chmod +x
# then ./ocr some/image.pdf output
source_file="$1"

Keybase proof

I hereby claim:

  • I am kavsingh on github.
  • I am kavsingh (https://keybase.io/kavsingh) on keybase.
  • I have a public key whose fingerprint is 4AE8 4AE6 15D2 28A5 6292 541D 00C5 7475 8860 C570

To claim this, I am signing this object:

@kavsingh
kavsingh / inflatable.ino
Created September 15, 2016 14:47
arduino code for penny's exhibit
// For inflatable
// Input pins
// Motion sensors
const int PIR_PINS[] = {2, 3, 4};
// Stepper limit on/off switches
const int OFF_SWITCH_PIN = 7;
const int ON_SWITCH_PIN = 6;
// Output pins
// Stepper controls