Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
@giljr
giljr / IA_v1.csv
Last active May 8, 2026 19:08
Tabela das IAs atualmente no mercado. V1 (maio/2026)
Categoria Ferramenta Tipo Função Link
Texto ChatGPT LLM Geração de textos e assistência https://chatgpt.com
Texto Jasper AI Copywriting Conteúdo para marketing https://www.jasper.ai
Texto Copy.ai Copywriting Textos criativos e descrições https://www.copy.ai
Texto Sudowrite Escrita criativa Histórias e diálogos https://sudowrite.com
Texto Notion AI Assistente Escrita dentro do Notion https://www.notion.so/product/ai
Texto NotebookLM Pesquisa Conteúdo baseado em documentos https://notebooklm.google
Texto Claude LLM IA conversacional segura https://claude.ai
Texto Copilot Assistente IA integrada ao Windows/Office https://copilot.microsoft.com
Texto Gemini Assistente Texto pesquisa e multimodal https://gemini.google.com
@giljr
giljr / rack_vs_selenium_diover.md
Created November 30, 2025 17:33
Cucumber + RSpec: Testes que Falam e Testes que Garantem Da especificação ao teste automatizado sem fricção
Recurso Suportado? Explicação
Execução ultra rápida ✔️ Sem abrir navegador
HTML e navegação ✔️ visit, fill_in, have_content funcionam
JavaScript / AJAX Não executa nenhum JS
Webpack, importmaps, Stimulus Nada JS roda
Upload de arquivo ✔️ Limitado, mas funciona
Interação DOM real ✔️ Mas estático, sem JS
Capybara call How it finds the radio
choose('smoker_s') by the radio button’s id
choose('Sim') by the label’s visible text
@giljr
giljr / rails_validators.md
Last active November 22, 2025 20:34
Rails Model Validation Best Practices (Full Guide) Your complete, professional, Rails-grade guide to Model Validation Best Practices

The Default Rails Validators:

             validates :attribute, validator_name: options

You can memorize the core validators in 10 seconds:

Validator Purpose Example
presence: must not be blank presence: true
absence: must be blank absence: true
@giljr
giljr / better_reset_db.md
Created November 22, 2025 15:05
Is running rails db:drop db:create db:migrate the correct approach?
Command Action When to Use
rails db:reset Rebuild DB using schema.rb Faster, recommended for development
rails db:setup Create DB, load schema, seed When setting up a new project
rails db:drop db:create db:migrate Rebuild DB running migrations When testing migrations
@giljr
giljr / static_vs_dinamic_analyzers.md
Created November 4, 2025 16:52
Static & Dynamic Analyzers

🔍 Comparison

Type of Analysis When It Happens Examples
Static Before execution RuboCop, Brakeman, RubyCritic, bundler-audit, flake8 (Python)
Dynamic / Runtime During execution RSpec, Minitest, SimpleCov, pytest, valgrind
@giljr
giljr / ast_structure.md
Created November 2, 2025 13:47
Static vs. Dynamic Code Analysis: How RuboCop Reads Ruby's Mind
Node Meaning Example
sbegin sequence of expressions top-level script
lvasgn local variable assignment name = ...
str simple string "Gilberto"
dstr dynamic string (with interpolation) "Hello, #{name}"
send method call puts ...
Type When It Runs Example Tools What It Detects
Static Analysis Before execution RuboCop (Ruby), ESLint (JS), pylint (Python) Style issues, unused variables, bad practices, security smells
Dynamic Analysis While the program runs RSpec, pytest, valgrind Runtime errors, memory leaks, logic bugs
@giljr
giljr / xe_vs_xepdb1.md
Created November 1, 2025 22:50
Oracle OCI8 - Complete Guide(2025)
Connect To Type Use Case Rails-compatible
XE Container (CDB$ROOT) Admin / system-level
XEPDB1 Pluggable Database (PDB) App data, user schemas
@giljr
giljr / three_zips_needed_oci8.md
Created November 1, 2025 21:25
Oracle OCI8 - Complete Guide(2025)
File Description Direct label on page
instantclient-basic-linux.x64-21.13.zip Runtime libraries (required) “Basic Package (ZIP)”
instantclient-sdk-linux.x64-21.13.zip Header files for compiling ruby-oci8 “SDK Package (ZIP)”
instantclient-sqlplus-linux.x64-21.13.zip SQL*Plus CLI for testing “SQL*Plus Package (ZIP)”