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
from string import ascii_uppercase | |
def rottext(): | |
alfabeto,rot = ascii_uppercase, 3 | |
alfabeto_rotacionado = alfabeto[rot:] + alfabeto[:rot] | |
return alfabeto, alfabeto_rotacionado | |
def cesar_encrypt(plain_text: str) -> str: | |
alf, alf_rot = rottext() | |
tabela = str.maketrans(alf,alf_rot) |
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
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
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/python3 | |
from os import chdir, getcwd | |
from zipfile import ZipFile | |
from sys import exit | |
from time import time | |
import argparse | |
WHITE, RED, YELLOW, GREEN, END = '\33[1;97m','\33[1;91m', '\33[1;93m', '\33[1;32m', '\33[0m' |
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/python3 | |
from bs4 import BeautifulSoup as bs | |
import requests | |
import sys | |
site = "http://rjempregos.net/page/{}/" | |
try: | |
pag = int(input('Deseja pesquisar em quantas páginas? ')) |
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 python3 | |
# -*- coding: utf-8 -*- | |
import requests, sys, re | |
from bs4 import BeautifulSoup as bs | |
url = "https://www.cinemark.com.br/sao-paulo/filmes/em-cartaz?pagina={}" | |
prefix = "www.cinemark.com.br" | |
i = 1 | |
while True: |
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 python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup as bs | |
import re | |
import sys | |
p = requests.get("https://www.cinemark.com.br/sao-paulo/filmes/em-cartaz") | |
s = bs(p.content, "lxml") |