Skip to content

Instantly share code, notes, and snippets.

@jmazon
jmazon / zk-publish.el
Last active March 23, 2021 23:05
My WIP Org-roam publish setup
;; I'm not quite sure why this isn't in by default :-/
;; Possibly the ambiguous list-head modifying specification?
(gv-define-simple-setter plist-get plist-put)
(defun my-format-drawer (name contents &rest args?)
(if (string= name "TRANSCRIPTION")
(let ((h (format "%x" (sxhash contents))))
(concat
"<a id=\"show-" h "\" "
"onclick='"
@jmazon
jmazon / example-4.hs
Created September 13, 2017 17:05
GTK+ Custom Drawing example in Haskell
import Data.IORef
import Control.Arrow ((***))
import Control.Monad (when,void)
import Graphics.UI.Gtk hiding (rectangle)
import Graphics.Rendering.Cairo
type SR = IORef (Maybe Surface)
clearSurface :: Surface -> IO ()
clearSurface surface =
@jmazon
jmazon / gist:2519852
Created April 28, 2012 15:36
Russian tongue twisters (Астрахань 2011) I had to get in the cloud somehow
Шла Саша по шосссе
И сосала сушку.
Ехал Грека через реку
Видит Грека в реке рак
Сунул в реку руку Грека
Рак за руку Грека — цап
Тридцать три корабля́ лави́ровали, лавировали, лавировали.
Да не вы́лавировали.