Dru Riley DruRly

View app.js
1 2 3 4 5 6 7 8 9 10
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
 
var app = express.createServer();
 
// database
 
mongoose.connect('mongodb://localhost/ecomm_database');
View Gruntfile.js
1 2 3 4 5 6 7 8 9 10
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
 
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-haml');
View stack_trace
1 2 3 4 5 6 7 8 9 10
Timeout::Error - Timeout::Error:
/usr/share/ruby/1.9/net/protocol.rb:146:in `rescue in rbuf_fill'
/usr/share/ruby/1.9/net/protocol.rb:140:in `rbuf_fill'
/usr/share/ruby/1.9/net/protocol.rb:122:in `readuntil'
/usr/share/ruby/1.9/net/protocol.rb:132:in `readline'
/usr/share/ruby/1.9/net/http.rb:2562:in `read_status_line'
/usr/share/ruby/1.9/net/http.rb:2551:in `read_new'
/usr/share/ruby/1.9/net/http.rb:1319:in `block in transport_request'
/usr/share/ruby/1.9/net/http.rb:1316:in `catch'
/usr/share/ruby/1.9/net/http.rb:1316:in `transport_request'
View gist:4743407
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html>
<head>
<title>WhenNWhere</title>
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/events.css?body=1" media="all" rel="stylesheet" type="text/css" />
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/events.js?body=1" type="text/javascript"></script>
<script src="/assets/application.js?body=1" type="text/javascript"></script>
View reverse_geocode.rb
1 2 3 4 5 6 7 8 9 10
[#<Geocoder::Result::Google:0x007fb18d5c0ff8
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"A344", "short_name"=>"A344", "types"=>["route"]},
{"long_name"=>"Wiltshire",
"short_name"=>"Wiltshire",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"England",
"short_name"=>"England",
View Custom Bootsrap File
1 2 3 4 5 6 7 8 9 10
/*!
* Bootstrap v1.3.0
* Modified for Sinatra Tutorial
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
html, body {
margin: 0;
padding: 0;
}
h1,
h2,
Something went wrong with that request. Please try again.