Skip to content

Instantly share code, notes, and snippets.

@dhcole
dhcole / form.js
Created November 3, 2012 19:31
Submit data from html form to Google Doc Spreadsheet. Uses Bootstrap components for auto-complete region list and date selection.
$(function(){
var formUrl = '/* ex: https://docs.google.com/a/developmentseed.org/spreadsheet/formResponse?formkey=... */';
// Set up map
var m = mapbox.map('map').addLayer(mapbox.layer().id(' /* mapbox-account.id */ '));
// Set up map ui features with point selector
var ui = mapbox.ui().map(m).auto().pointselector(function(d) {
// Remove all points except the most recent
@ardianzzz
ardianzzz / gist:1022330
Created June 13, 2011 05:00
Profile Microdata & Microformats
<div itemscope="" itemtype="http://data-vocabulary.org/Person" class="vcard">
<img itemprop="photo" class="photo" src="IMAGE SOURCE" alt="" />
<span itemprop="name" class="fn">YOUR NAME</span>
<span itemprop="nickname" class="nickname">NICKNAME</span>
<span itemprop="title" class="title">TITLE WORK</span>
<a href="#" itemprop="affiliation" class="org">WORKPLACE</a>
<a href="#" itemprop="url" class="url">URL</a>
<a href="mailto:EMAIL" itemprop="work" class="email">EMAIL</a>.
<span itemprop="address" itemscope="" itemtype="http://data-vocabulary.org/Address" class="adr">
<span itemprop="locality" class="locality">LOCAL</span>