Skip to content

Instantly share code, notes, and snippets.

View drkibitz's full-sized avatar
🎩
deducing

Dr. Kibitz drkibitz

🎩
deducing
View GitHub Profile
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="nodejs"
//I wanted a more elegant linkedlist example than the others, so purely for academic purposes I created one.
var LinkedList = function(e){
var that = {}, first, last;
that.push = function(value){
var node = new Node(value);
if(first == null){
first = last = node;