Mapa reutilizable que usa como fuente de datos Google Spreadsheet
- gkey: El id del Google Spreadsheet, ej: "1kr4QxM_VgIsKhGL9b_ystBzQR1bSFSLwhLVw2yY9-E0"
| import os | |
| import logging | |
| from logging.handlers import RotatingFileHandler | |
| LOG_FORMAT = '%(levelname)s:%(name)s:%(funcName)s(L%(lineno)d):%(asctime)s: %(message)s' | |
| folder_logs = 'logs' | |
| def get_logger(name=__name__, log_file_name='logger.log', log_level=logging.WARNING): | |
| file_path = os.path.join(folder_logs, log_file_name) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import requests | |
| import csv | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') |
| # get current branch in git repo | |
| function parse_git_branch() { | |
| BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
| if [ ! "${BRANCH}" == "" ] | |
| then | |
| STAT=`parse_git_dirty` | |
| echo "[${BRANCH}${STAT}]" | |
| else | |
| echo "" |
Mapa reutilizable que usa como fuente de datos Google Spreadsheet
| license: mit | |
| scrolling: yes |
| license: mit | |
| height: 2000 | |
| scrolling: yes | |
| border: yes |