Skip to content

Instantly share code, notes, and snippets.

@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 maria.arq@email.com, 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)
@celsowm
celsowm / prompt.txt
Created October 27, 2025 21:56
prompt top demais para trocar roupa no nano banana
Place the outfit from the second image onto the model in the first image. Make sure the clothing fits naturally on the model's body, preserving her pose, proportions, and lighting. Adjust folds, shadows, and details so the outfit looks realistic and seamless.
@celsowm
celsowm / PlatformTriplanar.gd
Created October 8, 2025 00:01
PlatformTriplanar.gd
extends Node3D
# Bloco flare + tampa com bordinha picotada (soldada ao topo)
# Com VERTEX COLORS: topo levemente mais claro; ponta do dente mais escura
# ----- Parâmetros do bloco -----
@export var height_y: float = 2.5
@export var base_size: Vector2 = Vector2(4.5, 4.5)
@export var top_size: Vector2 = Vector2(6.0, 6.0)
# ----- Cores -----