Skip to content

Instantly share code, notes, and snippets.

@takuto-h
takuto-h / e
Last active August 29, 2015 14:07
#!/bin/sh
emacs -nw "$@"
(setq *default-fileio-encoding* *encoding-utf8n*)
(setq *default-eol-code* *eol-lf*)
(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)
if [ -d $HOME/bin ] ; then
export PATH=$HOME/bin:$PATH
fi
if [ -f $HOME/.bashrc ] ; then
. $HOME/.bashrc
fi
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))
-- TypeTheory.hs
module Main where
import Control.Applicative
import Data.Unique
import qualified Data.Set as Set
-- Types
# contvm.rb
=begin
instruction set:
push object
pushclosure closure
pop
defvar symbol
getvar symbol