Skip to content

Instantly share code, notes, and snippets.

@javisantana
javisantana / python_code_test_carto.md
Last active November 17, 2021 07:27 — forked from jorgesancha/python_code_test_carto.md
Python code test - CARTO

Build the following and make it run as fast as you possibly can using Python 3 (vanilla). The faster it runs, the more you will impress us!

Your code should:

All of that in the most efficient way you can come up with.

@javisantana
javisantana / index.html
Created July 27, 2016 15:38 — forked from naguher/index.html
Web Máster Economia
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>HOJA DE ESTILO DISEÑO ECONOMIA</title>
<meta name="description" content="Hoja de estilo para diseño del Master Economia">
<!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 {
height: 100%;
@javisantana
javisantana / index.html
Last active December 15, 2015 02:19 — forked from mhkeller/index.html
<!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;
<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;}
<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 {
@javisantana
javisantana / README.md
Created July 4, 2012 21:11 — forked from mbostock/.block
Canvas Swarm
@javisantana
javisantana / gist:1024626
Created June 14, 2011 10:13 — forked from jorgebastida/gist:1023399
Tuenti ejercicio 1
import re
from operator import add, mul, sub
import sys
ops = {'=': add, '@': sub, '#': mul }
r = '\^(.)\s*(\-?\d+)\s*(\-?\d+)\$'
def e(g):
g = g.groups()