Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Created November 25, 2011 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AstraLuma/1392823 to your computer and use it in GitHub Desktop.
Save AstraLuma/1392823 to your computer and use it in GitHub Desktop.
Design Doc
{
"_id": "_design/thegeekgroup",
"_rev": "3-0f189bed802f6d23a289c6e4f8064cb3",
"language": "javascript",
"views": {
"active-hours": {
"map": "function(doc){ emit(doc.when[3], 1); }",
"reduce": "function(keys, values){ var s = 0; for (l in values) s += 1; return s; }"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment