Skip to content

Instantly share code, notes, and snippets.

View jrihan's full-sized avatar
:electron:
React; React-Native and NodeJS

Jonatha Rihan jrihan

:electron:
React; React-Native and NodeJS
View GitHub Profile
[GET] /plataforma-resseguro/v1/contratos
content: {
nome_contrato: string;
status: string;
vigencia: string;
tipo_contrato: string;
modalidade_contrato: number;
base_cobertura: string;
submodalidade: string;
import io
import sys
import zipfile
from pathlib import Path
arquivo_origem = "gato_foto.jpg"
pasta_destino = "extraido_python"
# 1. Carrega os bytes do arquivo
conteudo = Path(arquivo_origem).read_bytes()
@jrihan
jrihan / decodificarWAV
Last active September 5, 2026 13:41
minimodem python
import sys
import wave
import numpy as np
FREQ_MARK = 1200 # Bit 1
FREQ_SPACE = 2200 # Bit 0
BAUD = 1200
def goertzel(samples, sample_rate, target_freq):
"""Calcula a magnitude de uma frequência específica de forma rápida."""
@jrihan
jrihan / artifacts...Capitulo_8.json
Created August 9, 2022 23:19
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
My fist Gist