Skip to content

Instantly share code, notes, and snippets.

DESCRIPTION

@dhcole
dhcole / couchdb-ec2-install.sh
Created December 6, 2012 02:19 — forked from msmith/couchdb-ec2-install.sh
Set up CouchDB on EC2
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
@dhcole
dhcole / index.html
Created August 9, 2012 22:02 — forked from mojodna/index.html
D3 + ModestMaps
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#map {
width: 1000px;
height: 600px;
}
path {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>foursquare :: Explore Sample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" id="jquery"></script>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>foursquare :: Explore Sample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" id="jquery"></script>

###2

We’re going to start with some basic code. All I’ve done is set up the HTML structure of the page. For this example, I will use [JQuery][], [JQuery BBQ][], [Leaflet][], and the [MapBox API][].

Gist: https://gist.github.com/2853889

###3 Gist: https://gist.github.com/2853899

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>foursquare :: Explore Sample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" id="jquery"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<div id="map" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%"></div>
<div style="position: absolute; z-index: 100; background: white;">
<a href="#overlay">add overlay</a>
@dhcole
dhcole / reload.js
Created April 16, 2012 14:50 — forked from tmcw/reload.js
minimal live-reload server in node
// A super, super minimal LiveReload implementation in node.
// Relies on polling.
//
// Run as
//
// node reload.js ~/your/project/dir
//
// Add to your HTML like
//
// <script src='http://127.0.0.1:1337/'></script>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href='http://mapbox.com/wax/css/controls.css' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="map"></div>
<!-- scripts-->