Skip to content

Instantly share code, notes, and snippets.

View andrewxhill's full-sized avatar

Andrew W. Hill andrewxhill

View GitHub Profile
@andrewxhill
andrewxhill / index.html
Last active August 29, 2015 13:55
Clustering using snaptogrid
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--Edit the title of the page-->
<title>CartoDB Point Clustering</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
@andrewxhill
andrewxhill / dark-theme.css
Last active August 29, 2015 13:55
Spreading points found at the same location
/* Change the styles below in order to customize your template */
body{font-family: Helvetica, Arial; font-weight: regular; font-size: 15px; color: #CBCBCB; background-color: #333}
h1{font-weight: bold; font-size: 31px; letter-spacing: -1px; color: #FFF; line-height: 33px; *margin-top:20px;}
h3{font-weight: bold; font-size: 12px; color: #777; text-transform: uppercase; margin: 10px 0 0 0;}
p{margin: 8px 0 20px 0; line-height: 18px;}
a, a:visited{color: #72B6E5; text-decoration: none;}
a:hover{text-decoration: underline;}
.context{font-family: Helvetica, Arial; font-size: 13px; color: #999; padding: 10px 0 0 0;}
@andrewxhill
andrewxhill / README.md
Last active August 29, 2015 13:55
Tribeca New Media - Breakout 1: Drivers for participation

Question regarding drivers for participation and communities

  1. Defining your project's audience
    1. How do you know if your audience will use what you build?
    2. How do you determine the actions you want your users to take?
    3. How do you reach the audience you think exists?
  2. When your audience arrives...
    1. How do you get viewers to take an action?
    2. How do you respond or change to reflect an audience you didn't expect?
    3. How do you anticipate a change in audience?
@andrewxhill
andrewxhill / BreakoutThree.md
Last active August 29, 2015 13:55
Tribeca New Media - Breakout 2: Building community

Failure

  1. How do you fail early?
  2. What if you fail?
  3. What spaces are available to archive failed projects?
  4. Where do you discuss/communicate failed projects productively?
  5. What is the role of granting institutions in failed projects?

How do you fail early?

@andrewxhill
andrewxhill / CartoCSS.md
Last active August 29, 2015 13:56
Madison workshop documents

Simple style

#cables{
  line-color: #41006D;
  line-width: 2;
  line-opacity: 0.7;
  line-comp-op: screen;
}
@andrewxhill
andrewxhill / index.html
Last active August 29, 2015 13:56
Country name, iso, synonyms
<!DOCTYPE html>
<html>
<head>
<title>Country synonyms</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
<style>
html, body {
@andrewxhill
andrewxhill / index.html
Last active August 29, 2015 13:56
Torque using createLayer in CartoDB.js
<!DOCTYPE html>
<html>
<head>
<title>Torque runtime example | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;

Prior to georeferences

  • "You have latitude and longitude columns in your table"

    • let's do it!
  • "You have city names, administrative areas, postal codes, or IP addresses"

    • "My column contains, " [1, 2, 3, 4, 5]
@andrewxhill
andrewxhill / atx.png
Last active August 29, 2015 13:57
Quick list of CartoDB weather and climate related maps
atx.png
@andrewxhill
andrewxhill / index.html
Last active August 29, 2015 13:59
Random tiles: CartoDB hates me
<!DOCTYPE html>
<html>
<head>
<title>Broken pieces | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;