Skip to content

Instantly share code, notes, and snippets.

View anotheremily's full-sized avatar

emily anotheremily

  • Las Vegas, Nevada USA
View GitHub Profile
function Queue() {
this.reset();
}
Queue.prototype.dequeue = function () {
if (this.empty() !== true) {
this.length -= 1;
return this.items.shift();
}
return undefined;
function Deque() {
this.reset();
}
Deque.prototype.pop = Stack.prototype.pop;
Deque.prototype.push = Stack.prototype.push;
Deque.prototype.dequeue = Queue.prototype.dequeue;
Deque.prototype.enqueue = Queue.prototype.enqueue;
Deque.prototype.empty = Stack.prototype.empty;
Deque.prototype.reset = Stack.prototype.reset;
#!/bin/bash
# CouchDB install script
# For installing from SVN source
# Before running make sure CouchDB is not running
# Clean up old CouchDB files
find /usr/local -name \*couch* | xargs rm -rf
# Build