Skip to content

Instantly share code, notes, and snippets.

View daleharvey's full-sized avatar

Dale Harvey daleharvey

View GitHub Profile
mozilla@mozilla09485 ~/src/gecko-dev
$ ./mach build
0:02.27 Clobber not needed.
0:02.28 Adding make options from c:\Users\mozilla\src\gecko-dev\.mozconfig
MOZ_OBJDIR=/c/Users/mozilla/src/gecko-objdir
OBJDIR=/c/Users/mozilla/src/gecko-objdir
FOUND_MOZCONFIG=c:/Users/mozilla/src/gecko-dev/.mozconfig
export FOUND_MOZCONFIG
0:02.77 c:\mozilla-build\mozmake\mozmake.EXE -f client.mk -s configure
0:03.52 cd /c/Users/mozilla/src/gecko-objdir

PouchDB 2.3.0 index API proposal

Wherein we hack up our dream map/reduce API, slated to be introduced in PouchDB 2.3.0.

Basic

new PouchDB('mydb', {indexes: ['title']});
module(elementcount).
export([elementcount/2]).
elementcount(Key, List) ->
lists:foldl(fun(X, Acc) ->
case X =:= Key of