Add yourself to the docker
group to be able to run containers as non-root (see Post-install steps for Linux).
;; Uses https://github.com/borkdude/jet | |
;; On OSX, install jet with: | |
;; brew install borkdude/brew/jet | |
;; I invoke this with M-x, you might want to bind it to a key | |
(defun json->edn () | |
(interactive) | |
(shell-command-on-region (region-beginning) |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
- The link in the table of content jumps at the copy of the answer on this page.
- The link on the answer itself points back at the original post.
(ns datatable.core | |
(:require [reagent.core :as reagent] | |
[cljsjs.fixed-data-table])) | |
(def Table (reagent/adapt-react-class js/FixedDataTable.Table)) | |
(def Column (reagent/adapt-react-class js/FixedDataTable.Column)) | |
(defn gen-table | |
"Generate `size` rows vector of 4 columns vectors to mock up the table." | |
[size] |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
# | |
# Acts as a nginx HTTPS proxy server | |
# enabling CORS only to domains matched by regex | |
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/ | |
# | |
# Based on: | |
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html | |
# * http://enable-cors.org/server_nginx.html | |
# | |
server { |
export MKLROOT="/opt/intel/composer_xe_2013.3.171/mkl" | |
export MKL_LIB_PATH="/opt/intel/composer_xe_2013.3.171/mkl/lib" | |
export MKL=" -L${MKLROOT}/lib ${MKLROOT}/lib/libmkl_blas95_ilp64.a ${MKLROOT}/lib/libmkl_lapack95_ilp64.a -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -lmkl_gf_ilp64" | |
export ICC_LIBS="/opt/intel/composer_xe_2013.3.171/mkl/lib" | |
export IFC_LIBS="/opt/intel/composer_xe_2013.3.171/compiler/lib/intel64" | |
export CC="icc -std=c99 -arch x86_64" | |
export CFLAGS="-g -O2 -fPIC -DPIC -DMKL_ILP64 -I${MKLROOT}/include -ip -mp -wd188" | |
export F77="ifort -arch x86_64" | |
export FFLAGS="-g -O2 -fPIC -I${MKLROOT}/include/intel64/ilp64 -I${MKLROOT}/include -ip -mp" | |
export CPICFLAGS="-fPIC -DPIC" |
export MKLROOT="/opt/intel/composer_xe_2013.3.171/mkl" | |
export MKL=" -L${MKLROOT}/lib ${MKLROOT}/lib/libmkl_blas95_ilp64.a ${MKLROOT}/lib/libmkl_lapack95_ilp64.a -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -lmkl_gf_ilp64" | |
export arch=x86_64 | |
export r_arch=x86_64 | |
export CC="gcc -arch x86_64 -std=gnu99" | |
export CXX="g++ -arch x86_64" | |
export OBJC="clang" | |
export F77="gfortran -arch x86_64" | |
export FC="gfortran -arch x86_64" | |
export CFLAGS='-g -O2' |
# I am a scientist who has been using R for about 2 years. Today I achieved a measure of enlightenment into | |
# the zen of R, and I want to share it with you. | |
# I was simulating a set of independent random walks, which are formed by a multiplicative process. Here is | |
# the code I had built up over a few months of working on it and modifying it on and off as research | |
# questions changed: | |
TimeSteps <- 1000 | |
Walks <- 100 | |
ErrorMagnitude <- 0.03 |