This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 4ab7848d451694667830d91712759cc5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ae534a5cedfa284086717f1814bafe81 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 13029d084201f5012391e231215961f0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ab01821e77d2f1c44e9d71c826e54db6 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f2605e92dff3a976d97ae6027d07f6b5 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0b0995536ec3e691cec6725783870a70 |