Skip to content

Instantly share code, notes, and snippets.


Santiago Espinosa Saigesp

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
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":
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
body {
position: relative;
width: 100%;
Saigesp /
Created Sep 14, 2017
Copy files recursively with python
# -*- coding: utf-8 -*-
import os, shutil
def copyfiles(src, dst_dir, symlinks=False, ignore=None):
for src_dir, dirs, files in os.walk(src):
folder = src_dir.replace(src, '')
folders = folder[1:].split('\\')
# -*- coding: UTF-8 -*-
import csv, urllib2, time
from bs4 import BeautifulSoup
# python -c "from airbnb_guest_procedence import *; crawler()"
def read_external_csv(url, delimiter=','):
data = []
for row in csv.DictReader(urllib2.urlopen(url), delimiter=delimiter):
# -*- coding: UTF-8 -*-
import time, json, urllib, math
from pymongo import MongoClient
# python -c "from crawler2 import *; iterar_sobre_area(44.00766,-1.083201,40.544736,-1.75312)"
def deg_to_rad(deg):
return deg * (math.pi/180)
def get_distance_from_latlon_km(lat1,lon1,lat2,lon2):
Saigesp / data-one.json
Last active Sep 30, 2018
D3 Time&Expenses
View data-one.json
"project": {
"name": "Proyecto 1",
"manager": {
"name": "JM Royo",
"role": "manager",
"ID": "13"
"tasks": [
import sys
with open('svg-font.svg', 'r') as r:
lines ='\n')
glyphs = [x for x in lines if '<glyph' in x]
# for every glyph element in the file
for i in range(0, len(glyphs)):
with open(str(i + 1).rjust(3, '0') + '.svg', 'w') as w:
w.write('<?xml version="1.0" standalone="no"?>\n')
w.write('<svg width="1500px" height="1500px" version="1.1" xmlns="">\n')
Saigesp / .block
Last active Oct 19, 2018
Brushed Histogram
View .block
You can’t perform that action at this time.