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
| #!/bin/sh | |
| emacs -nw "$@" |
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
| (setq *default-fileio-encoding* *encoding-utf8n*) | |
| (setq *default-eol-code* *eol-lf*) |
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
| (setq make-backup-files nil) | |
| (setq-default indent-tabs-mode nil) | |
| (setq-default show-trailing-whitespace t) | |
| (add-hook 'find-file-hooks | |
| '(lambda () | |
| (setq mode-line-buffer-identification 'buffer-file-truename))) | |
| (global-set-key "\C-m" 'newline-and-indent) | |
| (global-set-key "\C-j" 'newline) |
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
| if [ -d $HOME/bin ] ; then | |
| export PATH=$HOME/bin:$PATH | |
| fi | |
| if [ -f $HOME/.bashrc ] ; then | |
| . $HOME/.bashrc | |
| fi |
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
| let nil = fun f -> fun g -> f | |
| ;; | |
| let cons = fun x -> fun xs -> fun f -> fun g -> g x (xs f g) | |
| ;; | |
| let map = fun f -> fun lst -> | |
| lst | |
| nil | |
| (fun x -> fun xs -> cons (f x) xs) | |
| ;; | |
| let sample = cons 1 (cons 2 (cons 3 nil)) |
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
| -- TypeTheory.hs | |
| module Main where | |
| import Control.Applicative | |
| import Data.Unique | |
| import qualified Data.Set as Set | |
| -- Types |
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
| # contvm.rb | |
| =begin | |
| instruction set: | |
| push object | |
| pushclosure closure | |
| pop | |
| defvar symbol | |
| getvar symbol |
NewerOlder