Skip to content

Instantly share code, notes, and snippets.

@carloshanson
carloshanson / gist:c8eee84eb6510cfbd49db1d1da9f8dc6
Created March 14, 2018 18:37
emit document matching properties of an object
// CouchDB document
{
"_id": "e44f991ff6d04174bb932fcfcb0008aa",
"_rev": "2-f4f2de9cb942435a9213f0f2cd09d902",
"user": "user1",
"key_level1": {
"abc": {
"type": "text"
},
"bcc": {
@carloshanson
carloshanson / funky_underscore.js
Created October 28, 2015 09:06
Test to understand basics of underscore.js
// test to understand basics of underscore.js
(function(){
// reference global object as root
var root = this;
// create function object named funky instead of _
var funky = function() { };
// attach function object to global object