Skip to content

Instantly share code, notes, and snippets.

View leobarone's full-sized avatar

Leonardo S. Barone leobarone

View GitHub Profile
@leobarone
leobarone / endpoint-integracao-bnmpv3.md
Last active June 23, 2025 22:02
CNIEP - endpoint para integração com BNMP3

API CNIEP – Documentação do Endpoint GET /cadastro-estabelecimentos

Este endpoint retorna uma lista de registros históricos de estabelecimentos prisionais, com filtros opcionais por cidade e por estabelecimento.


🌐 URL Base

@leobarone
leobarone / regras-perfis-cniep.md
Last active June 9, 2025 20:08
Proposta de regras de perfis para CNIEP

📋 Regras de Perfis e Operações no CNIEP

1. Perfis Disponíveis

Inicialmente, o sistema trabalhará com dois perfis de usuário:

  • Magistrado
  • Servidor

@leobarone
leobarone / construcao.ipynb
Created May 23, 2025 17:16
"Construção" de uma rede neural
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leobarone
leobarone / barata.ipynb
Last active May 23, 2025 17:41
"A Barata" com redes neurais em python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leobarone
leobarone / serie-rais-esfl
Created March 21, 2025 17:49
Construção de série de dados de Entidades Sem Fins Lucrativos a partir da RAIS-Estabelecimento (NDAC/CEM)
rm(list=ls())
library(tidyverse)
library(archive)
anos <- list.files('data-raw')
arquivos <- NULL
for (ano in anos) {
arquivos <- bind_rows(
arquivos,
@leobarone
leobarone / pizza_model_method_of_lines.ipynb
Created April 5, 2022 15:07
pizza_model_method_of_lines.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leobarone
leobarone / linear_programming_ortools.ipynb
Last active March 23, 2022 14:45
linear_programming_ortools.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leobarone
leobarone / integer_programming_ortools.ipynb
Last active March 23, 2022 14:44
integer_programming_ortools.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leobarone
leobarone / probabilidade_nascimento
Created May 17, 2019 20:40
Probabilidade condicional do nascimento
prob_diaria <- function(dias_passados){
dia_quantile <- seq(from = -2,
to = 2,
length.out = 30)
prob <- pnorm(dia_quantile)
prob <- c(prob[1], prob[2:29] - prob[1:28], prob[1])
d <- data.frame(dia = (40 * 7 - 15):(40 * 7 + 14),
prob)
@leobarone
leobarone / cardapio_prato_aberto.R
Last active April 11, 2019 13:25
Raspagem do cardapio no app prato aberto com RSelenium
library(RSelenium)
library(rvest)
library(stringr)
library(dplyr)
remDr <- remoteDriver(port = 4445L)
remDr$open(silent = TRUE)
url_prato_aberto <- "https://pratoaberto.sme.prefeitura.sp.gov.br/"
remDr$navigate(url_prato_aberto)