This file contains 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
"""Cause the fstrings notation into the example 'congrats' functions, | |
the examples only works in python 3.8. | |
""" | |
from functools import partial | |
class Pipe: | |
def __init__(self, function): | |
self.function = function | |
This file contains 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
import requests | |
import csv | |
import json | |
from datetime import datetime | |
import locale | |
locale.setlocale(locale.LC_ALL, 'pt_BR.UTF-8') | |
def extract_cpf_mesano(row): | |
cpf = row['CPF'].strip() |
This file contains 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
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
import sys | |
import os | |
import time | |
import subprocess as subp | |
FILENAME = sys.argv[1] | |
PROC = None |
This file contains 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
# sudo pacman -S inotify-tools | |
# chmod +x reload.sh | |
FILE=diagram.py | |
while inotifywait -e close_write $FILE; do python $FILE; done |
OlderNewer