Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<html>
<head>
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<html>
<head>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.css" />
<link rel="stylesheet" href="http://geosprocket.com/assets/bootstrap/css/bootstrap-cosmo.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
<![endif]-->
<style>
html, body {width:100%; height:100%; padding: 0; margin: 0;}
13:00 ##
13:05 ######
13:10 #############
13:15 ####
13:20 ####
13:25 ###
13:30 ###
13:35 ####
13:40 #
13:45 #############
<html>
<head>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.css" />
<script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
<style>
html, body {padding: 0; margin: 0;}
#map { width: 100%; height:100%; background: black;}
#menu { position: absolute; top: 5; right: 5; width: 400px; height:60px; background: transparent;}
#menu a {
margin: 0 5px 0 0;
@javisantana
javisantana / index.html
Last active December 10, 2015 00:58 — forked from wboykinm/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
template<class _T2>
operator _vec2<_T2>() {
return _vec2<_T2>(x, y);
}
@javisantana
javisantana / backbone_events_debug.js
Created October 29, 2012 18:41
see the objects linked to each event for an object which "inherits" Backbone.Events
/*
* see the objects linked to each event for an object which "inherits" Backbone.Events
* prints the DOM elements so you can inspect using chrome developer tools
*/
cdb._debugCallbacks = function(o) {
var callbacks = o._callbacks;
for(var i in callbacks) {
var node = callbacks[i];
console.log(" * ", i);
var end = node.tail;
var a = 0;
$.get(url1, function() {
a = 1;
});
$.get(url2, function() {
a = 2;
});