Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

"Conflict-free replicated data type" https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type
"A comprehensive study of CRDTs" http://hal.upmc.fr/inria-00555588/document (original CRDT paper by Shapiro, Pregui, Baquero, Zawirski)
"CRDTs: Distributed Semilattices" http://blog.plasmaconduit.com/crdts-distributed-semilattices/
import React from "react"; | |
import { render } from "react-dom"; | |
const ParentComponent = React.createClass({ | |
getDefaultProps: function() { | |
console.log("ParentComponent - getDefaultProps"); | |
}, | |
getInitialState: function() { | |
console.log("ParentComponent - getInitialState"); | |
return { text: "" }; |
Repost from:
http://yangweilim.com/blog/2015/11/18/clojure-thread-first-vs-thread-last-macros/
In this post, I am going to show you {when|how} to use Clojure marcos, ->>
aka thread-last and ->
aka thread-first. In some case, ->
and ->>
may perform the same operation if you do not pay enough attention. So I will also show you what's the difference between them. Note that doc ->
and docs ->>
din't make sense for me at first, so if same thing happened to you I hope that this post will make it clear.
If I am coding a function in Clojure, I would not think to write in macro firstly(maybe I am still new to it?). Macros like ->
and ->>
only come in my mind when it comes to refactoring. They are not neccessary in our program but they will make it elegant.
To explain how both of these macros work, let's us solve a quiz together.
[Write a function which calculates factorials.](http://www.4clojure.com/prob
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers