Skip to content

Instantly share code, notes, and snippets.

View Bruno02468's full-sized avatar
☢️

Bruno Borges Paschoalinoto Bruno02468

☢️
View GitHub Profile
@Bruno02468
Bruno02468 / ep2_sem_tempo_irmao.py
Last active June 2, 2022 02:41
EP2 da turma Python 2019 de MAC2166 -- só que em duas linhas (foi um desafio kkkkj)
z,k,m=(int(input("0 ou 1?\n")),int(input("chave?\n")),list(map(lambda c:"_ABCDEFGHIJKLMNOPQRSTUVWXYZ.".index(c),list(input("mensagem?\n").upper()))))
print("".join(map(lambda u:"_ABCDEFGHIJKLMNOPQRSTUVWXYZ."[u[1]], sorted([([i,k*i%len(m)][z]%28,[m[k*i%len(m)]-i,m[i]+i][z]%28) for i in range(len(m))], key=lambda u:u[0]))))
{
"UF": [
{"nome": "Acre", "sigla": "AC"},
{"nome": "Alagoas", "sigla": "AL"},
{"nome": "Amapá", "sigla": "AP"},
{"nome": "Amazonas", "sigla": "AM"},
{"nome": "Bahia", "sigla": "BA"},
{"nome": "Ceará", "sigla": "CE"},
{"nome": "Distrito Federal", "sigla": "DF"},
{"nome": "Espírito Santo", "sigla": "ES"},
@Skylark95
Skylark95 / ImgurAlbum.sh
Created July 10, 2013 22:52
Bash script to download images for an Imgur album
#!/bin/bash
#
# ImgurAlbum.sh
#
# Bash script to download images for an Imgur album
#
if [ -z "$1" ]; then
echo "ImgurAlbum: missing Album ID"
echo "Usage: ImgurAlbum [Album ID]"
exit