Skip to content

Instantly share code, notes, and snippets.

View yushangakki's full-sized avatar
⛩️
I may be slow to respond.

L. L yushangakki

⛩️
I may be slow to respond.
View GitHub Profile
@oliverjam
oliverjam / mini-markdown.html
Last active December 6, 2020 15:39
A tiny markdown editor. Paste into your URL bar with `data:text/html,` at the front
<style>
body {
margin: 0;
min-height: 100vh;
display: grid;
grid: none / 1fr 1fr;
gap: 1rem;
}
%23i {
outline: 0;
@yig
yig / latexmk-ding
Created January 15, 2016 04:43
Runs latexmk in continuous mode. Runs quickly (draft mode followed by batch mode). Plays a ding sound when finished. Also copies the PDF aside, so that PDF viewers don't get confused by the partially-written PDF files.
#!/bin/bash
## I used cfxr to create a coin sound. afplay is an OS X command line sound playback tool.
DING='afplay -v .01 /mixed\ media/music/cfxr\ coin.wav'
## Silence the ding.
# DING=''
## Simple continuous ding with draft mode followed by a batch mode run which actually generates the PDF.
## Copies the PDF with the suffix -copy.pdf, so that live-updating PDF viewers don't choke trying to load the PDF while it is still being written.
### We can't distinguish between the first time latexmk launches the viewer regardless of changes and later launches of the viewer with changes.