Skip to content

Instantly share code, notes, and snippets.

View Saigesp's full-sized avatar
🙄

Santiago Espinosa Saigesp

🙄
View GitHub Profile
@Saigesp
Saigesp / .block
Last active October 19, 2018 18:11
D3v4 Slopegraph
ae534a5cedfa284086717f1814bafe81
@Saigesp
Saigesp / .block
Last active October 19, 2018 18:11
D3v4 linear calendar
a0b505c3d0e42cfbdf39b0d2c19ada0c
@Saigesp
Saigesp / .block
Last active October 19, 2018 18:11
D3v4 calendar heatmap
0b0995536ec3e691cec6725783870a70
@Saigesp
Saigesp / .block
Last active October 22, 2018 04:06
D3v4 barchart with js classes
f906ae2bab36f03a59c78e8d669aa68c
@Saigesp
Saigesp / .block
Last active October 22, 2018 04:07
D3v4 Multiple Linechart
13029d084201f5012391e231215961f0
@Saigesp
Saigesp / .block
Last active October 22, 2018 04:17
D3v4 Mean barchart
4ab7848d451694667830d91712759cc5
@Saigesp
Saigesp / .block
Last active October 26, 2018 17:59
D3v4 Stacked barchart
f2605e92dff3a976d97ae6027d07f6b5
@Saigesp
Saigesp / sublime-keymap.js
Last active December 12, 2018 12:03
Default (Linux).sublime-keymap
[
{ "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 September 19, 2018 18:29
Convert between projections epsg:25830 and epsg:4326 used in INE (Instituto Nacional de Estadística, Spain)
# 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:
@Saigesp
Saigesp / sublime_shortcuts.json
Last active April 12, 2019 18:48
Sublime3 Shortcuts
[
{ "keys": ["ctrl+alt+b"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+alt+p"], "command": "autoprefixer" },
{ "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 }
]
},
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log(${0:$SELECTION});"}, "context":