Skip to content

Instantly share code, notes, and snippets.

@michellechandra
michellechandra / README.md
Last active January 30, 2024 20:46
Basic US State Map - D3
@michellechandra
michellechandra / index.html
Last active May 29, 2019 19:39
CartoDB.js Hover Infowindow Using CreateLayer
<!DOCTYPE html>
<html>
<head>
<title>#DrawDisability</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" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
@michellechandra
michellechandra / index.html
Last active July 29, 2016 19:08
CartoDB.js Click Infowindow Using CreateLayer
<!DOCTYPE html>
<html>
<head>
<title>#DrawDisability</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" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
@michellechandra
michellechandra / readme.md
Last active February 2, 2016 17:12
PostgreSQL Queries Cheatsheet - CartoDB

Common PostgreSQL queries to run in CartoDB Editor or elsewhere. Includes simple table operations to more complex geospatial queries.

@michellechandra
michellechandra / index.html
Last active October 16, 2015 21:53
CartoDB Unsanitized Infowindow using CreateVis
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<style>
html, body, #map {
height: 100%;
padding: 0;
@michellechandra
michellechandra / index.html
Last active October 16, 2015 21:51
CartoDB CreateVis Zoom Options
<!DOCTYPE html>
<html>
<head>
<title>CreateVis Zoom 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%;
@michellechandra
michellechandra / index.html
Last active October 16, 2015 21:50
CartoDB CreateVis Disable Double Click Zoom
<!DOCTYPE html>
<html>
<head>
<title>CreateVis Zoom 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%;
@michellechandra
michellechandra / index.html
Last active December 17, 2015 16:35
CreateVis Map with YouTube Infowindow Embed
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
html, body, #map {
height: 100%;
padding: 0;
@michellechandra
michellechandra / index.html
Last active October 29, 2015 16:06
CartoDB.js and Leaflet Image Overlay
<!DOCTYPE html>
<html>
<head>
<title>Image Overlay with Leaflet</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" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
@michellechandra
michellechandra / index.html
Created December 11, 2015 22:17
No Torque Time Slider - Example Code
<!DOCTYPE html>
<html>
<head>
<title>No Torque Time Slider</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%;