Skip to content

Instantly share code, notes, and snippets.

import requests
import time
import json
import zmq
from multiprocessing import Process
import couchdbkit
s = couchdbkit.Server("https://usr:[email protected]")
db = couchdbkit.Database("https://usr:[email protected]/db")
@akotlov
akotlov / README.md
Created October 18, 2013 20:44 — forked from mhkeller/README.md

This is a work in progress. Based off of the polygon svg example here: http://bost.ocks.org/mike/leaflet/

Built to find a way around the difficulty in manipulating markers in leaflet / adding arbitrary html / classes / ids etc. to better time them to some time of user-driven narrative (buttons, scrolling etc.)

// If URL is available URL link the image
// Otherwise just display the image
<% if ( instagram_link_url ) { %> <a href="<%= instagram_link_url %>" target="_blank"> <% } %>
<img src="<%= url %>" alt="<%= username %>" />
<% if ( instagram_link_url ) { %> </a> <% } %>
// Example 2 - Check if formated date
<% if (typeof(date) != "undefined") { %>
<span class="date"><%= date %></span>
<% } %>