Skip to content

Instantly share code, notes, and snippets.

View jsanz's full-sized avatar
🗺️
Mapping

Jorge Sanz jsanz

🗺️
Mapping
View GitHub Profile
@jsanz
jsanz / cartodb.css
Last active September 14, 2016 09:01
Talk: Overviews Overview
@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
/**
* Black theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
/*********************************************
* GLOBAL STYLES
*********************************************/
@jsanz
jsanz / README.md
Last active September 14, 2016 09:02
Enterprise API: managing organization users from the command line. bash

The manage-users.sh script helps on performing basic tasks to manage users using CartoDB Enterprise API. Actions available are:

  • List users of an organization
  • Create new users
  • Delete users
  • Update existing users (password and data quota)
  • Retrieve users info (in JSON format)

You need to adapt the script for your environment, the variables are at the beginning of the script as follow:

@jsanz
jsanz / index.html
Created April 3, 2016 12:09
Training: change SQL with slider
<!DOCTYPE html>
<html>
<head>
<title>Training | Change SQL with slider | 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" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
@jsanz
jsanz / index.html
Last active April 3, 2016 12:09 — forked from ernesmb/index.html
Training: changing SQL query and CartoCSS
<!DOCTYPE html>
<html>
<head>
<title>Training | change SQL and CartoCSS | 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" />
<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>
@jsanz
jsanz / index.html
Last active April 3, 2016 12:09
Training: custom tooltip
<!DOCTYPE html>
<html>
<head>
<title>Training | custom tooltip | 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" />
<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>
<style>
@jsanz
jsanz / index.html
Last active April 3, 2016 12:10
Training: custom infowindow
<!DOCTYPE html>
<html>
<head>
<title>Training | custom infowindow | 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" />
<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>
<style>
@jsanz
jsanz / index.html
Last active April 3, 2016 10:26 — forked from ernesmb/index.html
Training: Actions on feature click
<!DOCTYPE html>
<html>
<head>
<title>Training | feature Click | 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" />
<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>
<style>
@jsanz
jsanz / index.html
Last active June 22, 2017 13:48 — forked from ernesmb/index.html
Training: createLayer single LayerSourceObject
<!DOCTYPE html>
<html>
<head>
<title>Training | createLayer | 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" />
<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>
<style>
@jsanz
jsanz / index.html
Last active April 3, 2016 12:10 — forked from ernesmb/index.html
Training: createVis()
<!DOCTYPE html>
<html>
<head>
<title>Training | createVis | CartoDB</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 {
@jsanz
jsanz / README.md
Last active September 14, 2016 09:14
SQL: JOIN by proximity

Joining two point datasets using distance as the relation between them.