Skip to content

Instantly share code, notes, and snippets.

View johnidm's full-sized avatar

Johni Douglas Marangon johnidm

View GitHub Profile
@johnidm
johnidm / readme.md
Created June 7, 2025 16:01
Using LLM to processo PDF file
@johnidm
johnidm / readme.md
Created May 27, 2025 21:56
Prompt análise Linkedin

Prompt que executa uma analise no seu perfil do Linkedin com o objetivo de melhorar ele.

Passo 01

Salve o seu perfil em PDF.

Passo 02

Fazer o upload do PDF em alguma LLM e executar o prompt abaixo.

@johnidm
johnidm / readme.md
Created April 1, 2025 00:46
Unlock the Power of LLMs with Structured Output

Precise Prompting

from openai import OpenAI


api_key = "sk-proj-..."
client = OpenAI(api_key=api_key)
@johnidm
johnidm / readme.md
Created March 31, 2025 15:54
Making multiple HTTP requests using Python

Synchronous

import requests
import time

@johnidm
johnidm / readme.md
Created March 22, 2025 20:53
Example Spring Web - LLM raw request
package dev.danvega.flash;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
@johnidm
johnidm / readme.md
Created March 22, 2025 13:28
Batch Task Classification using OpenAI API
@johnidm
johnidm / readme.md
Last active February 25, 2025 21:03
Example of reading a PDF and extracting data using Semantic Kernel and Gemini

Dependencies

dotnet add package Microsoft.SemanticKernel
dotnet add package Microsoft.SemanticKernel.Connectors.Google

Code

@johnidm
johnidm / readme.md
Last active March 2, 2025 12:26
NeoVim - Steroids
@johnidm
johnidm / readme.md
Last active May 11, 2025 00:33
RH Interview Questions

Interview question

Where are you based?

I'm currently based in São Miguel do Oeste, my hometown, which is located in the south of Brazil. I have been working remotely since the pandemic.

Are you currently employed?

Yes, I am currently employed at Softplan as a Senior Backend Engineer focusing on developing solutions using AI.

@johnidm
johnidm / readme.md
Last active February 5, 2025 13:18
PHP - Using Google Cloud Vision AI

Using Google Cloud Vision AI to perform OCR tasks in PHP

Install the dependence: composer require google/cloud-vision.

You may need to install the OS dependency: sudo apt install php-bcmath.

Using offical PHP Google Cloud Vision library
<?php