- {{Tópico 1}}
- {{Tópico 2}}
- {{Tópico 3}}
Um breve resumo dos pontos principais discutidos durante a aula.
Também no GIST em https://gist.github.com/maxwellamaral/bc474d9b5dd38a79f485cfd544af001d
bc474d9b5dd38a79f485cfd544af001d
| # Anuncia a porta aberta | |
| # Referência https://community.home-assistant.io/t/door-open-tts-announcer/266252 | |
| blueprint: | |
| name: Door open TTS announcer | |
| domain: automation | |
| input: | |
| door_entity: | |
| name: Door Sensor | |
| description: Entity that causes announcement | |
| selector: |
| /* Settings for all callouts / admonitions: */ | |
| /* Attention --> Nota (amarelo) */ | |
| .callout[data-callout="attention"] { | |
| /* same name as in callout to be changed */ | |
| --callout-color: 0, 0, 0; | |
| /* rgb only */ | |
| --callout-icon: "lucide-sticky-note"; | |
| /* Use lucide- plus icon name from https://lucide.dev */ | |
| background-color: #fdff85; |
| import os | |
| import sys | |
| from datetime import datetime | |
| import shutil | |
| PASTA_PADRAO = "./00-09 Meta/00 Indice/00.02 Estrutura" | |
| def listar_pastas(diretorio, profundidade=0, nivel_max=3): | |
| # Função para listar pastas e subpastas até um nível máximo |
| {% if link %}link: {{link}}{% endif %} | |
| {% if tags|lenght %}tags: {%for tag in tags %} | |
| - {{tag}}{% endfor %}{% endif %} | |
| {% if cover %}banner: {{cover}}{% endif %} |
| function cdj { | |
| param ( | |
| [string]$folderName | |
| ) | |
| # Atualize com a pasta raiz dos seus documentos | |
| $rootPath = "D:\Cloud\OneDrive" | |
| # Lista de diretórios correspondentes ao padrão | |
| $matchingDirs = Get-ChildItem -Path $rootPath -Directory -Recurse | Where-Object { $_.Name -like "*$folderName*" } |
| scriptencoding utf-8 | |
| " Function: s:get_random_offset {{{1 | |
| function! s:get_random_offset(max) abort | |
| return str2nr(matchstr(reltimestr(reltime()), '\.\zs\d\+')[1:]) % a:max | |
| endfunction | |
| " Function: s:draw_box {{{1 | |
| function! s:draw_box(lines) abort | |
| let longest_line = max(map(copy(a:lines), 'strwidth(v:val)')) |
| import multiprocessing | |
| import time | |
| from multiprocessing import Pool, freeze_support | |
| MAX_ITER = 9999999 | |
| def f1(a): | |
| c = 0 | |
| for i in range(0, MAX_ITER): | |
| c += 1 |