Skip to content

Instantly share code, notes, and snippets.

allDocuments = function(db) {
console.log("Show All Docs"+ db.getLength());
db.view({
map : function(doc, emit){ console.log(doc) },
finished : function(view){ }
});
}
db2 = BrowserCouch('pages');
db2.sync('http://admin:admin@localhost:5984/pages',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" media="all"
href="css/docs.css" />
<title>me</title>
require 'orderedhash'
#
# This class represents the INI file and can be used to parse, modify,
# and write INI files.
#
class IniFile
# Inifile is enumerable.
include Enumerable