This file contains hidden or 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
score' :: Int -> Char -> Int | |
score' _ '-' = 0 | |
score' b '/' = 10 - b | |
score' _ 'X' = 10 | |
score' _ '1' = 1 | |
score' _ '2' = 2 | |
score' _ '3' = 3 | |
score' _ '4' = 4 | |
score' _ '5' = 5 | |
score' _ '6' = 6 |
This file contains hidden or 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
#_ = require \prelude-ls | |
class Frame | |
(pin, prev)-> | |
@cell = pin | |
@prev = prev | |
@next = null | |
prev.next = this if prev? | |
#frameScore: -> _.fold (+), 0, @cell |
This file contains hidden or 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 dither-xpm (color1 color2) | |
"Return an XPM dither string representing." | |
(format "/* XPM */ | |
static char * dither[] = { | |
\"12 18 2 1\", | |
\". c %s\", | |
\" c %s\", | |
\"....... . . \", | |
\".. . . . \", | |
\"..... . . . \", |
NewerOlder