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
@Saigesp
Saigesp / geolocorutm.py
Last active Oct 20, 2019
Python script to get longitude and latitude from google maps API or transform from UTM (provided in file)
View geolocorutm.py
# -*- coding: UTF-8 -*-
import csv
import os
import sys
import json
import time
import pyproj
import argparse
from urllib import parse, request
if sys.version_info[0] < 3: raise Exception("Python 3 required")
@Saigesp
Saigesp / activate.bat
Created Oct 4, 2019
Script with useful actions to work with virtualenvwrapper on windows
View activate.bat
set "VIRTUAL_ENV=C:\Users\YOURUSER\Envs\YOURENVNAME"
:: Set variables
set "ENVIRONMENT=develop"
:: Change directory
cd C:\Users\YOURPROJECTPATH
:: Remove __pycache__ folders
for /d /r ".\API" %%a in (__pycache__) do if exist "%%a" rmdir /s /q "%%a"
@Saigesp
Saigesp / image_resize.py
Last active Sep 25, 2019
Python script to resize images, with command line arguments. Adapted from https://gist.github.com/ihercowitz/642650/f01986c0b1ebd04be588b196eb3ffefe9853e113
View image_resize.py
#!/usr/bin/env python
import os
import sys
import argparse
from PIL import Image
"""
Reduce images size
Images are resized keeping the aspect ratio
Usage: python image_resize.py -d /home/images -o /home/output_dir -s 1024 768
@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
@Saigesp
Saigesp / .block
Last active Jun 21, 2019
d3js radarchart
View .block
07a63b6ff6e854c8792cbd1ad7afd6a6
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Mean barchart
View .block
4ab7848d451694667830d91712759cc5
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 Slopegraph
View .block
ae534a5cedfa284086717f1814bafe81
@Saigesp
Saigesp / .block
Last active Oct 22, 2018
D3v4 Multiple Linechart
View .block
13029d084201f5012391e231215961f0
@Saigesp
Saigesp / .block
Last active Oct 19, 2018
D3v4 piechart with js classes
View .block
ab01821e77d2f1c44e9d71c826e54db6
@Saigesp
Saigesp / .block
Last active Oct 26, 2018
D3v4 Stacked barchart
View .block
f2605e92dff3a976d97ae6027d07f6b5
You can’t perform that action at this time.