This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async'), | |
MongoClient = require('mongodb').MongoClient, | |
express = require('express'); | |
var MONGODB_URL = 'mongodb://<username>:<password>@<host>:<port>/<database>', | |
PORT = -1; | |
async.waterfall([ | |
function(cb) { | |
MongoClient.connect(MONGODB_URL, function(err, db) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http') | |
, util = require('util') | |
, url = "http://www.thehubway.com/data/stations/bikeStations.xml" | |
, events = require('events'); | |
function handleError(e) { | |
console.error(e.message); | |
} | |
function ResponseDataListener(res) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Raoul Allwani's JavaScript problem</title> | |
</head> | |
<body> | |
<a class="login-popup">Login Popup Anchor</h1> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script> | |
$('a.login-popup').click(function(e) { |