python -c "import secrets; print(secrets.token_hex(32))"
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
| ##### form request | |
| <?php | |
| namespace App\Http\Requests; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class PessoaFormRequest extends FormRequest | |
| { | |
| /** |
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
| import string | |
| from random import randint | |
| texto_cifrado = '' | |
| texto_original = '' | |
| deslocamento = randint(1, 26) | |
| alfabeto = list(string.ascii_lowercase) | |
| print('Deslocamento igual a: {}'.format(deslocamento)) | |
| texto = input('Insira texto a ser cifrado, ou aperte enter para texto padrão: ') |
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
| #file.txt | |
| #1 2 3 | |
| #4 5 6 | |
| #7 8 9 | |
| with open('file.txt') as file: | |
| content = file.readlines() | |
| numbers = [line.strip().split(' ') for line in content] | |
| print(numbers) | |
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
| # https://www.youtube.com/watch?v=QXorM9jsBNo | |
| import time | |
| class Main: | |
| def __init__(self) -> None: | |
| self.state = False | |
| class Tv: |
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
| import sys | |
| month = sys.argv[1] | |
| add = sys.argv[1] | |
| def add_month(month, add): | |
| next = month + add | |
| if next >= 13: | |
| return 1 if next-12 == 0 else next-12 | |
| return next |
How to use Pelican on GitHub Pages 
Author: Josef Jezek
sudo apt-get install python-setuptools
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
| msg = "0 0 1 0 1 1 0 1 0 1 1 1" | |
| pad = "1 0 0 1 1 1 0 0 1 0 1 1" | |
| def str_to_list(itens: str) -> list: | |
| """Converte string para lista""" | |
| return [int(i) for i in itens.split(" ")] | |
| def list_to_str(itens: list) -> str: |
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
| import random | |
| text = input('Entre com o texto a ser cifrado (ou aperte enter para texto padrão):') | |
| if text == '': | |
| text = "O rato roeu a roupa do rei de roma" | |
| def xor(x: str, y: str) -> str: |
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
| // ==UserScript== | |
| // @name dark_mode_whatsappweb | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Activate dark mode in https://web.whatsapp.com/ | |
| // @author https://github.com/bergpb | |
| // @match https://web.whatsapp.com | |
| // @grant none | |
| // ==/UserScript== |
