Skip to content

Instantly share code, notes, and snippets.

Avatar
☠️

Santiago Espinosa Saigesp

☠️
View GitHub Profile
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 Slopegraph
View .block
ae534a5cedfa284086717f1814bafe81
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 Warming stripes
View .block
eda813560c801474904004d6b6b1cc4c
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 linear calendar
View .block
a0b505c3d0e42cfbdf39b0d2c19ada0c
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 calendar heatmap
View .block
0b0995536ec3e691cec6725783870a70
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 barchart with js classes
View .block
f906ae2bab36f03a59c78e8d669aa68c
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Multiple Linechart
View .block
13029d084201f5012391e231215961f0
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Mean barchart
View .block
4ab7848d451694667830d91712759cc5
@Saigesp
Saigesp / .block
Last active Oct 26, 2018
D3v4 Stacked barchart
View .block
f2605e92dff3a976d97ae6027d07f6b5
@Saigesp
Saigesp / sublime-keymap.js
Last active Dec 12, 2018
Default (Linux).sublime-keymap
View sublime-keymap.js
[
{ "keys": ["ctrl+alt+b"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+alt+p"], "command": "autoprefixer" },
// console.log()
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log($0);"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
@Saigesp
Saigesp / translate_ine_projection.py
Created Sep 19, 2018
Convert between projections epsg:25830 and epsg:4326 used in INE (Instituto Nacional de Estadística, Spain)
View translate_ine_projection.py
# returns latlng
def get_maxmin_latlon_region(region):
lon_max = -180
lon_min = 180
lat_max = -90
lat_min = 90
if region['type'] == 'Polygon':
for polygon in region['coordinates']:
for point in polygon:
You can’t perform that action at this time.