I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.
Here is a list of requirements, taken directly from the MOC README:
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over eachother's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
var m = new MersenneTwister(); |
(defmacro -> (x &rest args) | |
"A Common-Lisp implementation of the Clojure `thrush` operator." | |
(destructuring-bind (form &rest more) | |
args | |
(cond | |
(more `(-> (-> ,x ,form) ,@more)) | |
((and (consp form) | |
(or (eq (car form) 'lambda) | |
(eq (car form) 'function))) | |
`(funcall ,form ,x)) |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic xterm-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=xterm-256color-italic | |
# |
This work-in-progress summarizes the way-too-many BigData(tm) technologies. | |
This is by no means an in-depth description, but a very short summary so that | |
I know where to look. | |
1. Databases: | |
* DynamoDB - aws.amazon.com/dynamodb/ - Amazon AWS integration, MapReduce | |
* MongoDB - mongodb.org/ - JSON-style document database, SQL-like queries + MapReduce | |
* Riak - basho.com/riak/ - Key-Value storage, MapReduce | |
* CouchDB - couchdb.apache.org/ - JSON document storage, JavaScript Queries + MapReduce |
(defn debounce [in ms] | |
(let [out (chan)] | |
(go-loop [last-val nil] | |
(let [val (if (nil? last-val) (<! in) last-val) | |
timer (timeout ms) | |
[new-val ch] (alts! [in timer])] | |
(condp = ch | |
timer (do (>! out val) (recur nil)) | |
in (recur new-val)))) | |
out)) |
log4j.rootLogger=INFO, syslog | |
log4j.appender.syslog=org.apache.log4j.net.SyslogAppender | |
log4j.appender.syslog.Facility=LOCAL7 | |
log4j.appender.syslog.FacilityPrinting=false | |
log4j.appender.syslog.Header=true | |
log4j.appender.syslog.SyslogHost=<PAPERTRAIL_HOST>.papertrailapp.com:<PAPERTRAIL_PORT> | |
log4j.appender.syslog.layout=org.apache.log4j.PatternLayout | |
log4j.appender.syslog.layout.ConversionPattern==%p: (%F:%L) %x %m %n |
# | |
# This script installs and configures WSL to work with Docker Toolbox for Windows. | |
# 1. Install WSL (check out [bowinstaller](https://github.com/xezpeleta/bowinstaller) for programmatic installation. | |
# 2. Run the contents of this script in Bash. (copy and paste works fine, no need to save) | |
# | |
sudo -sEH << 'EOM' | |
# Install the docker client and docker-compose | |
apt-get update && apt-get install -y curl ca-certificates | |
curl -sSL https://get.docker.com/ | sh | |
curl -L "https://github.com/docker/compose/releases/download/1.11.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |