This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timer": { | |
"major-duration": 120, | |
"minor-duration": 20, | |
"format": "%02d:%02d" | |
}, | |
"lives": 5, | |
"start-duration": 20, | |
"totem-duration": 60, | |
"spawn-duration": 60, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ViewMixin | |
def view_has?(key) | |
false | |
end | |
def view_section(key, contents) | |
# use #view_fetch to render section | |
end | |
NewerOlder