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
# contvm.rb | |
=begin | |
instruction set: | |
push object | |
pushclosure closure | |
pop | |
defvar symbol | |
getvar symbol |
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
-- TypeTheory.hs | |
module Main where | |
import Control.Applicative | |
import Data.Unique | |
import qualified Data.Set as Set | |
-- Types |
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
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 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 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 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 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 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
include "109.mayu" | |
keymap Global | |
key ~S-*半角/全角 = $GRAVE_ACCENT | |
key S-*半角/全角 = $TILDE | |
key A-半角/全角 = $ToggleIME | |
key ~S-*E0半角/全角 = $GRAVE_ACCENT | |
key S-*E0半角/全角 = $TILDE | |
key A-E0半角/全角 = $ToggleIME |
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
#!/usr/bin/env perl | |
$latex = 'platex -shell-escape -synctex=1'; | |
$latex_silent = 'platex -shell-escape -synctex=1 -interaction=batchmode'; | |
$bibtex = 'pbibtex'; | |
$dvipdf = 'dvipdfmx %O -o %D %S'; | |
$makeindex = 'mendex %O -o %D %S'; | |
$max_repeat = 5; | |
$pdf_mode = 3; # generates pdf via dvipdfmx | |
# Prevent latexmk from removing PDF after typeset. |
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
[core] | |
editor = emacs -nw | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
[push] | |
default = simple | |
[fetch] |
OlderNewer