Skip to content

Instantly share code, notes, and snippets.

@celsowm
celsowm / vllm_error.txt
Created August 9, 2025 00:07
vllm_error.txt
INFO 08-08 17:04:52 [__init__.py:241] Automatically detected platform cuda.
(APIServer pid=1) INFO 08-08 17:04:54 [api_server.py:1787] vLLM API server version 0.10.2.dev2+gf5635d62e.d20250807
(APIServer pid=1) INFO 08-08 17:04:54 [utils.py:326] non-default args: {'model': '/model', 'max_model_len': 32768, 'served_model_name': ['gpt-oss-20b']}
(APIServer pid=1) INFO 08-08 17:04:58 [config.py:726] Resolved architecture: GptOssForCausalLM
(APIServer pid=1) ERROR 08-08 17:04:58 [config.py:123] Error retrieving safetensors: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: '/model'., retrying 1 of 2
(APIServer pid=1) ERROR 08-08 17:05:00 [config.py:121] Error retrieving safetensors: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: '/model'.
(APIServer pid=1) INFO 08-08 17:05:00 [config.py:3628] Downcasting torch.float32 to torch.b
@celsowm
celsowm / index.htm
Last active July 30, 2025 02:30
AutocompleteTextarea
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Autocomplete Aprimorado com Lazy Loading</title>
<style>
/* Estilos Gerais */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
@celsowm
celsowm / main.c
Created July 26, 2025 03:47
red cube and jump jo engine
/*
* Cubo 3‑D com pulo correto – JoEngine
* Controles: D‑Pad move | Botão A pula
*/
#include <jo/jo.h>
#include <stdbool.h>
/* ---------- parâmetros ---------- */
#define CUBE_SIZE 32
@celsowm
celsowm / HtmlToDocxConverter.js
Created July 24, 2025 02:59
HtmlToDocxConverter.js
class HTMLtoDOCX {
constructor(htmlString) {
// 1. GARANTIR SEGURANÇA CONTRA CONFLITO DE 'NODE'
// Em alguns bundlers, `Node` pode ser sobrescrito. Usar `window.Node` garante que estamos usando as constantes do DOM.
this.nodeTypes = {
ELEMENT_NODE: window.Node.ELEMENT_NODE,
TEXT_NODE: window.Node.TEXT_NODE,
};
const parser = new DOMParser();
@celsowm
celsowm / pdf-parser.js
Created July 24, 2025 01:35
Js PDF Parser
// PDFParser.js - Parser de PDF com exportação para HTML
class PDFParser {
constructor() {
this.buffer = null;
this.position = 0;
this.objects = new Map();
this.trailer = {};
this.xref = {};
this.pages = [];
@celsowm
celsowm / augmentation_legal.py
Created July 21, 2025 21:24
augmentation_legal.py
@celsowm
celsowm / index.htm
Last active July 19, 2025 22:40
Jo Engine 3D editor and generator code tool
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Editor de Cenário 3D Avançado para Jo Engine</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
<style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; background-color: #333; color: #eee; overflow: hidden; }
#main-container { display: flex; width: 100vw; height: 100vh; }
@celsowm
celsowm / DocxToHtmlConverter.js
Last active July 23, 2025 16:11
DocxToHtmlConverter
class DocxToHtmlConverter {
constructor(zip) {
let ParserClass;
if (typeof fxparser !== 'undefined' && fxparser.XMLParser) {
ParserClass = fxparser.XMLParser;
} else if (typeof window !== 'undefined' && window.XMLParser) {
ParserClass = window.XMLParser.default || window.XMLParser;
} else {
throw new Error("Could not find fast-xml-parser library.");
@celsowm
celsowm / index.htm
Last active July 10, 2025 00:51
nova caixa de entrada do pgedigital
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PGE Digital - Caixa de Entrada</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
@celsowm
celsowm / html2pdf.c
Last active June 30, 2025 02:15
html2pdf.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h> // For isspace
#include <libxml/HTMLparser.h>
#include <libxml/tree.h>
#include <hpdf.h>
// Global PDF settings
#define PAGE_WIDTH 595.28f // A4 paper width in points (210mm)