Skip to content

Instantly share code, notes, and snippets.

View cmdelaserna's full-sized avatar

Carlos Martínez de la Serna cmdelaserna

View GitHub Profile

I hereby claim:

  • I am cmdelaserna on github.
  • I am cmdelaserna (https://keybase.io/cmdelaserna) on keybase.
  • I have a public key ASARP0DYq-F_LIyF_fh7yZfHzWmhMe_YUweoaDcb1WdWoAo

To claim this, I am signing this object:

{
@cmdelaserna
cmdelaserna / gist:6611186
Last active December 23, 2015 08:59
Web development: links & notes

Notes and links for a workshop on basic web development skills

Suggestions for next workshop

    Mobile-first personal site
    Testing graphic/img responsiveness

Development environment

Text editor
@cmdelaserna
cmdelaserna / map.geojson
Created August 17, 2013 01:33
Mercados importado directamente
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cmdelaserna
cmdelaserna / map.geojson
Created August 16, 2013 22:45
Mercados en Madrid
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cmdelaserna
cmdelaserna / Processing 2.0 + CartoDB
Last active December 18, 2015 09:49
Updated simple function to get data from a CartoDB table into Processing 2.0, using the new JSON methods
/*
Processing 2.0’s new JSON methods
Data parsing from a CartoDB table
*/
String api = "{account}.cartodb.com/api/v2/sql?q"; //CartoDB table
String query = "SELECT%20*%20FROM%20{table_name}"; //define sql query
String name;
int cartodb_id;
@cmdelaserna
cmdelaserna / gist:4726629
Created February 6, 2013 22:51
Intensity maps from point data. CartoCSS
/*map: cdb.io/VGx3Ko */
#madrid_mercados {
first/marker-fill: #f2ff00;
first/marker-opacity: 0.01;
first/marker-width: 80;
first/marker-line-width: 0;
first/marker-placement: point;
first/marker-allow-overlap: true;
first/marker-comp-op: lighten;
@cmdelaserna
cmdelaserna / gist:4706818
Last active December 12, 2015 03:28
Simple sketch to get data from a CartoDB table into Processing
import org.json.*;
/*
CartoDB API
Simple skecth to get data from a table
Processing 1.5
*/
//define API call
String api = "https://viz2.cartodb.com/api/v2/sql?q="; //CartoDB table