Skip to content

Instantly share code, notes, and snippets.

@thorrr
thorrr / Makefile
Last active January 2, 2016 15:09
Makefile for building quantlib + python extensions.
.PHONY: all downloads clean clean_downloads
### URLS ########
boost_url := 'http://downloads.sourceforge.net/project/boost/boost/1.53.0/boost_1_53_0.tar.bz2'
quantlib_url := 'http://sourceforge.net/projects/quantlib/files/QuantLib/1.2.1/QuantLib-1.2.1.tar.gz'
quantlib_swig_url := 'http://sourceforge.net/projects/quantlib/files/QuantLib/1.2/other%20languages/QuantLib-SWIG-1.2.tar.gz'
#################
#### subdirectory names #####
ql_swig_install_dir := quantlib-swig-install
boost_dir := boost_1_53_0
@thorrr
thorrr / Makefile
Last active January 2, 2016 15:09
Makefile for building cling from source. Works on win32 cygwin, need to modify the exename variable to make it work on Linux
cling-version := 45925
install-dir := $(shell pwd)/cling
exename := $(install-dir)/bin/cling.exe
.PHONY: all clean exe clang cling repl crepl cpprepl
all: exe
clean:
rm ./lastKnownGood
@thorrr
thorrr / turn-off-messaging.el
Created December 25, 2012 15:41
Emacs advice to temporarily turn off writing messages to the minibuffer. Goes nicely with real-auto-save mode.
;; the following is copied from http://lists.gnu.org/archive/html/help-gnu-emacs/2005-01/msg00636.html
(defvar messaging-on t
"Control whether or not messages will be printed; by default, they are.")
;; Note that by itself this renders edebug pretty useless.
(defadvice message (around nomessage activate)
"Turn off messaging most of the time.
Whether or not messages are displayed is determined by the value
of the variable `messaging-on'."
(when messaging-on