Skip to content

Instantly share code, notes, and snippets.

{
"timer": {
"major-duration": 120,
"minor-duration": 20,
"format": "%02d:%02d"
},
"lives": 5,
"start-duration": 20,
"totem-duration": 60,
"spawn-duration": 60,
(defun pretty-print1 ()
(interactive)
(beginning-of-buffer) ;; Retourne au debut du buffer
(setq level 0)
(while (search-forward-regexp "<[^\!]" nil t)
(let ((is-ending-tag (is-ending-tag)))
(if is-ending-tag
(setq level (- level 1)))
(indent-before-tag level)
(if (not is-ending-tag)
@aumgn
aumgn / test.el
Created April 17, 2012 11:15
Emacs tests
(defun test (start end)
(interactive "r")
(print (match-etag (buffer-substring start end))))
; (message (number-to-string
; (count-occurence ?e (buffer-substring start end) 0))))
(defun count-occurence (char str accu)
(if (= (length str) 0)
accu
(if (char-equal char (string-to-char str))
Noyade:
- "<player> s'est noye"
- "<player> nage avec les poissons"
- "<player> explore les profondeurs"
- "<player> s'est pris pour Nemo"
Chute:
- "<player> a fait une chute mortelle"
- "<player> a tente un saut de la foi"
- "<player> est tombe de haut, un peu trop haut"
Vide:
@aumgn
aumgn / gist:864853
Created March 10, 2011 20:23
Abstractview implementation
module ViewMixin
def view_has?(key)
false
end
def view_section(key, contents)
# use #view_fetch to render section
end