Skip to content

Instantly share code, notes, and snippets.

@celsowm
celsowm / test.php
Created January 28, 2026 19:25
test.php
<?php
require 'vendor/autoload.php';
use Playwright\Playwright;
// Inicializa o Playwright
$playwright = Playwright::create();
$browser = $playwright->chromium()->launch(['headless' => false]); // false para você ver o processo
$context = $browser->newContext();
@celsowm
celsowm / projeto assinador open a3.md
Last active January 27, 2026 21:31
projeto assinador open a3

Cross-Platform Desktop PDF Signing Application (.NET 8 + Avalonia)

Complete cross-platform solution supporting Windows and macOS for PDF digital signatures.

Project Structure

DigitalSignerApp/
├── DigitalSignerApp.sln
├── DigitalSignerApp/
@celsowm
celsowm / main.cxx
Created January 10, 2026 20:48
simple cube saturn ring lib
#include <srl.hpp>
using namespace SRL::Types;
using namespace SRL::Math::Types;
// Cube vertices (8 corners)
Vector3D cubeVertices[8] = {
Vector3D(-10.0, -10.0, -10.0), // 0: front bottom left
Vector3D( 10.0, -10.0, -10.0), // 1: front bottom right
Vector3D( 10.0, 10.0, -10.0), // 2: front top right
@celsowm
celsowm / raycast sgdk claude opus.md
Created January 8, 2026 12:57
raycast sgdk claude opus

Wolf3D-Style Raycasting Engine for Sega Genesis (SGDK)

Here's a complete MVP raycasting engine. This is structured as multiple files for a proper SGDK project.

Project Structure

project/
├── src/
│   ├── main.c
│   ├── raycaster.c
@celsowm
celsowm / generic_doom_to_saturn.md
Created January 8, 2026 02:55
doom port plan to saturn

DOOM Saturn Port Strategy

My Recommendation: Modern Minimal Port + Yaul SDK

Why This Approach?

Don't use original DOOM code directly with SGL because:

  • SGL is dated, quirky, and poorly documented in some areas
  • Original DOOM renderer needs heavy refactoring anyway for Saturn
  • You'll fight two battles simultaneously
@celsowm
celsowm / ai_server.md
Last active January 5, 2026 02:51
ai_server.md

#step 1: download model

hf download Qwen/Qwen3-14B-FP8 --local-dir /srv/models/qwen3-14b-fp8

big model multi gpus:

docker run -d --name vllm-qwen-235b-thinking \
  --gpus '"device=0,1,2,3"' \
@celsowm
celsowm / pgedigital_mantine.ts
Created December 17, 2025 01:40
pgedigital_mantine.ts
import '@mantine/core/styles.css';
import React, { useEffect, useMemo, useReducer, useState } from 'react';
import {
ActionIcon,
Avatar,
Badge,
Box,
Button,
Divider,
@celsowm
celsowm / glassmorph.tsx
Created December 14, 2025 13:31
glassmorph.tsx
import React, { useState } from "react";
import { ChevronLeft, ChevronRight, Pencil, Trash2 } from "lucide-react";
import { AnimatePresence, motion } from "framer-motion";
type Status = "Online" | "Ausente" | "Ocupado" | "Offline";
type Person = {
name: string;
email: string;
role: string;
@celsowm
celsowm / peticao_ckeditor.htm
Created November 27, 2025 20:09
peticao_ckeditor.htm
<p style="text-align: center; font-weight: bold; font-family: 'Times New Roman', serif; font-size: 12pt; margin-bottom: 0;">EXCELENTÍSSIMO(A) SENHOR(A) DOUTOR(A) JUIZ(A) DE DIREITO DA ____ VARA CÍVEL DA COMARCA DA CAPITAL - SP</p>
<p style="font-family: 'Times New Roman', serif; font-size: 12pt;">&nbsp;</p>
<p style="font-family: 'Times New Roman', serif; font-size: 12pt;">&nbsp;</p>
<p style="font-family: 'Times New Roman', serif; font-size: 12pt;">&nbsp;</p>
<p style="text-align: justify; font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5;">
<strong>MARIA DA SILVA OLIVEIRA</strong>, brasileira, casada, arquiteta, portadora da Cédula de Identidade RG nº 12.345.678-9 SSP/SP, inscrita no CPF/MF sob o nº 123.456.789-00, residente e domiciliada na Rua das Flores, nº 1.000, Apartamento 41, Bairro Jardim Paulista, CEP 01400-000, São Paulo/SP, endereço eletrônico [email protected], vem, mui respeitosamente, à presença de Vossa Excelência, por intermédio de seus advogados e bastantes pr
@celsowm
celsowm / update.ps1
Created November 19, 2025 15:42
update powershell to v7
# Script único para instalar/atualizar PowerShell 7 (pwsh) no Windows 11
Write-Host "==> Atualizando/instalando PowerShell 7..." -ForegroundColor Cyan
# Garante TLS 1.2 pra falar com GitHub
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Função pra verificar se winget existe
function Test-Winget {
return [bool](Get-Command winget -ErrorAction SilentlyContinue)