This file contains 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
/*! | |
* Bootstrap v1.3.0 | |
* Modified for Sinatra Tutorial | |
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ | |
html, body { | |
margin: 0; | |
padding: 0; | |
} | |
h1, | |
h2, |
This file contains 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
[#<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", |
This file contains 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
<!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> |
This file contains 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
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' |
This file contains 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
'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'); |
This file contains 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 application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
This file contains 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
import React from "react" | |
import "./App.css" | |
const Color = props => { | |
return ( | |
<div style={{ backgroundColor: props.color }}> | |
<h1>{props.color}</h1> | |
</div> | |
) | |
} |
This file contains 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
import React, { useState } from "react" | |
import "./App.css" | |
const Color = props => { | |
return ( | |
<div style={{ backgroundColor: props.color }}> | |
<h1>{props.color}</h1> | |
</div> | |
) | |
} |
This file contains 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
import React, { useState } from "react" | |
import "./App.css" | |
const Color = props => { | |
return ( | |
<div style={{ backgroundColor: props.color.value }}> | |
<h1>{props.color.value}</h1> | |
<h3>Locked: {props.color.locked.toString()}</h3> | |
<input | |
name="isLocked" |
This file contains 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
import React, { useState } from "react" | |
import "./App.css" | |
const Color = props => { | |
return ( | |
<div style={{ backgroundColor: props.color.value }}> | |
<h1>{props.color.value}</h1> | |
<h3>Locked: {props.color.locked.toString()}</h3> | |
<input | |
name="isLocked" |