Skip to content

Instantly share code, notes, and snippets.

👾
Invading

Santiago Espinosa Saigesp

👾
Invading
Block or report user

Report or block Saigesp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bashrc
# Virtualenv
. /usr/share/virtualenvwrapper/virtualenvwrapper.sh
# . /usr/local/bin/virtualenvwrapper.sh # alterntive place
# Add git branch if its present to PS1
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ '
@Saigesp
Saigesp / .conkyrc
Created Aug 15, 2019
Conky configuration file
View .conkyrc
background no
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
View index.html
<html>
<head>
<meta charset="utf-8">
</head>
<style>
</style>
<body>
<div id="chart" style="width: 100%; height: 560px;"></div>
@Saigesp
Saigesp / .block
Last active Jun 21, 2019
d3js radarchart
View .block
07a63b6ff6e854c8792cbd1ad7afd6a6
@Saigesp
Saigesp / sublime_shortcuts.json
Last active Apr 12, 2019
Sublime3 Shortcuts
View sublime_shortcuts.json
[
{ "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":
@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:
@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 / .block
Last active Oct 26, 2018
D3v4 Stacked barchart
View .block
f2605e92dff3a976d97ae6027d07f6b5
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Mean barchart
View .block
4ab7848d451694667830d91712759cc5
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Multiple Linechart
View .block
13029d084201f5012391e231215961f0
You can’t perform that action at this time.