Skip to content

Instantly share code, notes, and snippets.

View toolslive's full-sized avatar

Romain Slootmaekers toolslive

  • Leuven, Belgium
View GitHub Profile
type ('a, 'e) result =
| OK of 'a
| NOK of 'e
let invoke (f: 'a -> 'b) x : unit -> 'b =
let input, output = Unix.pipe() in
match Unix.fork () with
| -1 -> (let v = f x in fun () -> v)
| 0 -> (* Child *)
@toolslive
toolslive / gist:4555867
Created January 17, 2013 13:14
my .emacs
(set-foreground-color "green")
(set-background-color "black")
;; intend using space instead of tabs
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
(add-to-list 'load-path "~/.emacs.d")
(require 'weblogger)