原文: Cassandra - A Decentralized Structured Storage System
This article is translated by @ono_matope. Please contact me if any problem.
/** | |
* The Matrix Example | |
* http://wiki.neo4j.org/content/The_Matrix | |
*/ | |
case class Matrix(name: String, profession: String) | |
object TheMatrix extends App with Neo4jWrapper with EmbeddedGraphDatabaseServiceProvider { | |
ShutdownHookThread { | |
shutdown(ds) |
""" | |
Fabric tunneling utilities | |
by shn@glucose.jp | |
class ForwardServer and relates things are refere Robey Pointer's paramiko example. | |
(http://bazaar.launchpad.net/~robey/paramiko/trunk/annotate/head%3A/demos/forward.py) | |
usage:: | |
with make_tunnel('user@192.168.0.2:10022') as t: |
;; Assume you have already installed Font Awesome on the system | |
;; http://fortawesome.github.io/Font-Awesome/ | |
(require 'ov) | |
;; Overlay Library | |
;; https://github.com/ShingoFukuyama/ov.el | |
;; Example 1: Insert all fonts at the cursor position | |
(defun font-awesome-insert-all () |
module Main where | |
import Control.Monad | |
import Control.Monad.Free | |
import Prelude hiding (putChar, getChar) | |
import qualified System.IO as IO | |
import Test.QuickCheck | |
---------------------------------------------------------------- | |
-- Our DSL |
Usage | |
====== | |
.. wiki-table:: | |
:header-rows: 1 | |
:widths: 2 3 5 | |
|id|header1|header2| | |
|1|hello|world| | |
|2|foo|:strong:`bar`| |
原文: Cassandra - A Decentralized Structured Storage System
This article is translated by @ono_matope. Please contact me if any problem.
http://hadoop-scr13th.eventbrite.com/
F[A] // A is a Functor | |
M[A] // A is a Monad | |
fa: F[A], a: A // variables used below | |
fa1 |+| fa2 // binary append (SemiGroup) | |
fa1 >| fa2 // map (Functor) | |
fa1 >>= fa2 // flatmap (Bind) | |
fa1 |>| fa2 // foreach (Each) | |
fa <**> fb { (a, b) => c } // apply, produces F[C] |
Automata in Scala is moved to https://github.com/everpeace/scalamata