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
Note to self: possible to write a Lisp-like DSL within Haskell using Writer monad? | |
main = runLisp $ do | |
def "f" $ do | |
args $ do | |
"x" | |
"y" | |
body $ do | |
"x" + "y" | |
lispPrint $ "f" $ do |
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
*Main> main | |
> NICK tob | |
> USER tob 0 * :tob | |
:irc.codetalk.io NOTICE AUTH :*** Looking up your hostname... | |
failed to parse | |
:irc.codetalk.io NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address instead | |
failed to parse | |
PING :D433C6EE | |
failed to parse | |
^CInterrupted. |
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
<Player>: | |
canvas: | |
Rectangle: | |
pos: root.center | |
size: 40, 40 | |
<Screen>: | |
Player |
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
sudo apt-get install xsensor |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- /etc/fonts/fonts.conf file to configure system font access --> | |
<fontconfig> | |
<!-- | |
DO NOT EDIT THIS FILE. | |
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. | |
LOCAL CHANGES BELONG IN 'local.conf'. |
Basic functional references with pairs.
data FRef a b = FRef
{ get :: a -> b
, set :: b -> a -> a
}
fstF :: FRef (x, y) x
fstF = FRef
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
;; Visual stuff | |
(menu-bar-mode 0) | |
(tool-bar-mode 0) | |
(scroll-bar-mode 0) | |
(setq inhibit-startup-message t) | |
(global-linum-mode t) | |
(setq linum-format " %d ") | |
(set-window-fringes nil 0 0) | |
(set-fringe-mode 0) |
OlderNewer