This is my recommended path for learning Haskell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function map() { | |
| emit(1, { | |
| sum: this.value, // the field you want stats for | |
| min: this.value, | |
| max: this.value, | |
| count: 1, | |
| diff: 0 | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*-coding: utf-8-*- | |
| """ | |
| Simple script to dump documents out of a CouchDB database and straight into | |
| a Couchbase instance. | |
| """ | |
| import time | |
| import sys | |
| import argparse |