Skip to content

Instantly share code, notes, and snippets.

@fbmnds
fbmnds / jdk.bat
Created May 19, 2013 10:26
JDK path
# works both in Powershell and Cmd
> env | grep JDK
JDK_BIN=C:\Program Files\Java\jdk1.7.0_21\bin
@fbmnds
fbmnds / ext-path.bat
Created May 19, 2013 10:31
extend Path setting
Path=%JDK_BIN%;%HOME%\bin;C:\emacs\bin;%CLOJURE_CLR%
@fbmnds
fbmnds / lein-self.bat
Created May 19, 2013 10:40
Leiningen self install
# works both in Powershell and Cmd
> lein self-install
@fbmnds
fbmnds / lein-version.bat
Created May 19, 2013 10:42
Leinigen version
# in ~\bin\lein.bat
...
set LEIN_VERSION=2.1.3
...
@fbmnds
fbmnds / lein-clr-foo.bat
Created May 19, 2013 10:45
lein-clr foo
# create a CLR project foo:
> lein new lein-clr foo
> cd foo
# edit project.clj according to your needs
@fbmnds
fbmnds / add-to-livel.el
Created May 19, 2013 10:50
Emacs Live config
;; in ~\.emacs-live.el
;;
;; start Cmd with M-shell:
(setq shell-file-name "cmdproxy.exe")
(setq explicit-shell-file-name shell-file-name)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
;;
;; Powershell configuration:
;; download the *.el files from http://www.emacswiki.org/emacs/PowerShell
;; place them in ~\.emacs.d\vendor
@fbmnds
fbmnds / lein-clr.bat
Created May 19, 2013 10:52
Leiningen CLR
@echo off
echo ;
echo ; starting ~\bin\lein-clr
echo ; ...will fail, if project.clj not found in:
pwd
echo ;
echo ; set cwd with:
echo ; -------------
echo ; (System.IO.Directory/SetCurrentDirectory "c:\\path\\to\\directory")
echo ;
# e.g. in Emacs buffer *PowerShell*
> cd ~\projects\foo
# then start Clojure CLR
M-x run-lisp
# change to repl buffer *inferior-lisp*
C-x C-b
@fbmnds
fbmnds / Rserve.conf
Created May 19, 2013 12:45
/etc/Rserve.conf
remote enable
auth disable
fileio enable
maxinbuf 500000
> library( Rserve )
> Rserve()