Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am javierarce on github.
* I am javier (https://keybase.io/javier) on keybase.
* I have a public key whose fingerprint is D9CB 54E8 CB5E 559A 1CF6 6959 587C 93C6 8AC7 0E4D
To claim this, I am signing this object:
@javierarce
javierarce / index.html
Last active August 29, 2015 13:56 — forked from strk/index.html
<!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" />
@javierarce
javierarce / gist:8802684
Last active August 29, 2015 13:56
timeslider width fix
<!DOCTYPE html>
<html>
<head>
<title>Easy 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 {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<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" />
<!--[if lte IE 8]>
<!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" />
.map .cartodb-legend-stack {
border:none;
background:none;
box-shadow:none;
webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
@javierarce
javierarce / gist:7886957
Created December 10, 2013 07:29
Degrees, minutes and seconds to decimal degrees
CREATE OR REPLACE FUNCTION DMS2DD(strDegMinSec varchar)
RETURNS numeric
AS
$$
DECLARE
i numeric;
intDmsLen numeric; -- Length of original string
strCompassPoint Char(1);
strNorm varchar(16) = ''; -- Will contain normalized string
strDegMinSecB varchar(100);
http://development.localhost.lan:3000/viz/c642e27a-488a-11e3-8e71-003ee1fffe8b/embed_map?title=true&description=true&search=false&shareable=false&cartodb_logo=true&layer_selector=true&legends=true&scrollwheel=true&sublayer_options=1&sql=&zoom=0&center_lat=25.799891182053805&center_lon=79.453125
@javierarce
javierarce / gist:6379588
Last active December 21, 2015 22:59
Dark Roadmap style.
var darkRoadmapStyle = [{
featureType:"landscape.natural",
stylers:[
{
gamma:0.01
},
{
weight:0.1
}
]
<a href="http://development.localhost.lan:3000/viz/ac13632a-fa92-11e2-8ebf-003ee1fffe8b/embed_map?title=true&description=true&search=false&shareable=false&cartodb_logo=true&layer_selector=true&legends=true&scrollwheel=true&sublayer_options=1|1&sql=&zoom=2&center_lat=4.039617826768437&center_lon=37.6171875">test</a>