Skip to content

Instantly share code, notes, and snippets.

View danse's full-sized avatar

frances danse

  • Internet
View GitHub Profile
@danse
danse / movies.md
Created May 22, 2015 13:38
Italian movies for Patricia
@danse
danse / docker-doc-pointers.md
Created April 30, 2015 12:50
Docker Documentation Pointers
var cradle = require('cradle');
var connection = new cradle.Connection(
'https://user:password@host',
443
);
var db = connection.database('database')
db.all({include_docs: true}, function(err, allDocs) {
if (err) {
@danse
danse / lucene-fields.md
Last active August 29, 2015 14:10
Naming convention for Lucene fields

Naming convention for Lucene fields

This page describes how to convert from a JSON path in a document to a flat field name for Lucene indexing

Convention

Just replace the dot . with an underscore _. Convert cases to lowercase. Convert underscore separated to no separation.

Examples
@danse
danse / couchapps.md
Created November 19, 2014 14:01
Manage Couch Apps

We could manage them with Grunt in Angular apps, but i think that it would be nicer to use a script that is suitable also for the backend. I found the following possibilities:

I am not fully convinced about any of them. erica and node.couchapp have many issues. Specifically, erica seems to not be very active. couchapp seems fine, but the documentation server seems to be down now.

@danse
danse / views_convention.md
Last active August 29, 2015 14:09
Naming convention for Couch views
@danse
danse / map-reduce.js
Last active August 29, 2015 14:09
map reduce for Couch statistics
var a = {
place: 'europe',
animal: 'dog'
},
b = {
animal: 'dog'
},
c = {
place: 'africa'
},
@danse
danse / gist:f431a68f44c0e0c89906
Created November 8, 2014 02:18
deal with flags on Mac
chflags
ls -lO
a script that prettifies JSON files in place