Skip to content

Instantly share code, notes, and snippets.

View dbaker3's full-sized avatar
☣️

David Baker dbaker3

☣️
View GitHub Profile
@dbaker3
dbaker3 / watchmd.sh
Last active August 29, 2015 14:18
Markdown Watch & Convert
#!/bin/bash
# Watches and converts MD to HTML as you save changes
if [ $# -lt 2 ]
then
echo "Usage: watchmd input.md output.htm"
exit 1
fi
while true; do
change=$(inotifywait -e close_write,moved_to,create .)
change=${change#./ * }
@dbaker3
dbaker3 / openaccessbuttonsearchbox.htm
Last active May 2, 2018 19:35
Open Access Button Search Box
<!-- Box for searching Open Access Button (openaccessbutton.org) -->
<style>
#oabtext {
width: 70%;
height: 2em;
margin-right: 1em;
background-image: url('https://openaccessbutton.org/static/icon_OAB.png');
background-repeat: no-repeat;
background-size: 1em;
@dbaker3
dbaker3 / speller.htm
Last active March 24, 2025 18:00
Speech to Spelling
<!-- Speak a word and I'll give you the spelling. Utilizes Web Speech API (Firefox not supported). -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Speech to Spelling</title>
<style>
body {
font-family: Arial, sans-serif;