Skip to content

Instantly share code, notes, and snippets.

@bowbow99
Created March 12, 2012 11:01
Show Gist options
  • Save bowbow99/2021165 to your computer and use it in GitHub Desktop.
Save bowbow99/2021165 to your computer and use it in GitHub Desktop.
なんか疲れたので #xyzzy で三三七拍子してみた
(defun 337-ding (&optional (rhythm '(nil nil t nil nil t nil nil nil nil nil nil)))
(labels ((backding ()
(ding)
(when rhythm
(start-timer (if (car rhythm) 0.6 0.3)
#'backding t)
(setf rhythm (cdr rhythm)))))
(start-timer 1 #'backding t)))
=> 337-ding
(337-ding '(nil nil t nil nil t nil nil nil nil nil nil))
=> t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment