###############################################################################
`Enter ⏎ ` + `Ctrl ⌃` + `Esc ⎋` + `Cmd ⌘` + `Alt ⎇` + `Option ⌥` + `Shift ⇧`
`Tab ↹` `⌫ Backspace`
################################################################################
© ® ™ ¶ § ℀ ℁ ℂ ℃ ℄ ℅ ℆ ℇ ℈ ℉ ℊ ℋ ℌ ℍ ℎ ℏ ℐ ℑ ℒ ℓ ℔
ℕ № ℗ ℘ ℙ ℚ ℛ ℜ ℝ ℞ ℟ ℠ ℡ ℣ ℤ ℥ Ω ℧ ℨ ℩ K Å ℬ ℭ ℮ ℯ
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 asyncio | |
| import os | |
| import pathlib | |
| import random | |
| import re | |
| import sys | |
| from collections.abc import AsyncIterator | |
| from contextlib import asynccontextmanager | |
| from datetime import UTC, datetime, timedelta | |
| from enum import Enum |
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
| class Pessoa: | |
| def __init__(self, nome, idade, comendo=False, falando=False): | |
| self.nome = nome | |
| self.idade = idade | |
| self.comendo = comendo | |
| self.falando = falando | |
| def comer(self, alimento): | |
| if self.comendo: | |
| print(f"{self.nome} já está comendo.") |
Fala Dev,
Como mencionei algumas vezes, tenho trabalhado bastante em conteúdo gratuito para complementar meus cursos.
E se você quiser aproveitar o fim de semana para aprender algo novo, aqui estão vários estudos completos e gratuitos:
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
| def generate_password( | |
| *, | |
| unwanted_chars: str = "\"'\\@/", | |
| lower_qtd: int = 3, | |
| upper_qtd: int = 3, | |
| digits_qtd: int = 3, | |
| punctuation_qtd: int = 3, | |
| ) -> str: | |
| """ | |
| Simple password generator |
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
| # | |
| # Closures em Python | |
| # | |
| # O que são closures? | |
| # Closures ocorrem quando funções internas, definidas dentro de outras funções, | |
| # referenciam variáveis livres do seu escopo. Variáveis livres são as | |
| # variáveis que não foram definidas no escopo da função interna (são da função | |
| # externa). | |
| # Se a função externa retornar apenas a referência da função interna, então | |
| # o interpretador precisará atrelar quaisquer referências a variáveis livres |
Este Gist contém um snapshot completo da minha configuração atual do Zed Editor, incluindo:
settings.json: fontes, temas, Vim Mode, Tailwind LSP e ajustes de UXkeymap.json: atalhos personalizados, principalmente para o Vim Modecatppuccin-blur-edited-by-luizomf.json: tema visual escuro com blur + sintaxe baseada no Dracula
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 | |
| # Executar comandos a seguir para atualizar os pacotes | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| # Só o Python | |
| sudo apt install python3.10-full python3.10-dev -y | |
| # Instalar pacotes a seguir |
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
| { | |
| "window.zoomLevel": 2, | |
| "workbench.startupEditor": "none", | |
| "explorer.compactFolders": false, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "editor.fontSize": 18, | |
| "workbench.colorTheme": "OM Theme (Default Dracula Italic)", | |
| "code-runner.executorMap": { | |
| "python": "clear ; python -u", | |
| }, |
NewerOlder