Skip to content

Instantly share code, notes, and snippets.

View maxwellamaral's full-sized avatar
😀

Maxwell Anderson maxwellamaral

😀
View GitHub Profile
@maxwellamaral
maxwellamaral / google-patents-save.md
Last active November 16, 2025 12:23
Baixar patentes no Google Patents

Código para baixar as patentes do Google Patents

"""
Script para baixar PDFs de patentes do Google Patents.

Este script percorre uma lista de URLs de patentes do Google Patents,
converte cada página HTML em PDF usando wkhtmltopdf via pdfkit,
e salva os arquivos na pasta 'pdfs' com nomes baseados no código da patente.
@maxwellamaral
maxwellamaral / Aula 02 - Representação digital de imagens.md
Created April 5, 2025 18:54
Aula 02 - Representação digital de imagens.md

Tópicos Abordados

  • {{Tópico 1}}
  • {{Tópico 2}}
  • {{Tópico 3}}

Resumo da Aula

Um breve resumo dos pontos principais discutidos durante a aula.

Anotações Detalhadas

@maxwellamaral
maxwellamaral / Aula 02 - Representação digital de imagens.md
Created April 5, 2025 18:54
Aula 02 - Representação digital de imagens.md

Tópicos Abordados

  • {{Tópico 1}}
  • {{Tópico 2}}
  • {{Tópico 3}}

Resumo da Aula

Um breve resumo dos pontos principais discutidos durante a aula.

Anotações Detalhadas

@maxwellamaral
maxwellamaral / código CSS para callouts do Obsidian.md
Created April 5, 2025 18:35
código CSS para callouts do Obsidian.md
@maxwellamaral
maxwellamaral / anunciar-porta-aberta.yaml
Created December 29, 2023 09:58
Blueprint do Home Assistant para anunciar a porta aberta
# 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:
@maxwellamaral
maxwellamaral / obsidian-callouts.css
Created October 29, 2023 14:09
Obsidian CSS callouts imported from Zotero (plugin ZotLit)
/* 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;
@maxwellamaral
maxwellamaral / getJD.py
Created October 6, 2023 17:00
Código parta listar pastas e subpastas de um sistema construiído em Johnny Decimal
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
@maxwellamaral
maxwellamaral / raindrop_obsidian_plugin_header.js
Created October 1, 2023 12:18
Template para o plugin Raindrop do Obsidian
{% if link %}link: {{link}}{% endif %}
{% if tags|lenght %}tags: {%for tag in tags %}
- {{tag}}{% endfor %}{% endif %}
{% if cover %}banner: {{cover}}{% endif %}
@maxwellamaral
maxwellamaral / profile.ps1
Last active July 6, 2024 14:48
Alterar diretório no sistema Johnny Decimal no Powershell | Change directory on Johnny Decimal system on Powershell
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*" }
@maxwellamaral
maxwellamaral / fortune.vim
Created December 15, 2022 21:59
Fortune (ou "biscoito da sorte") em português do Brasil
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)'))