Skip to content

Instantly share code, notes, and snippets.

View phoenisx's full-sized avatar
🏔️
busy working, will continue OSS contributions later.

Subroto phoenisx

🏔️
busy working, will continue OSS contributions later.
View GitHub Profile
@phoenisx
phoenisx / strict-interface.gotmpl
Created November 16, 2025 07:47
Custom oapi-codegen strict handler template to manage error handling. Helps with issue: https://github.com/oapi-codegen/oapi-codegen/issues/2085
{{range .}}
{{/**
* Each operation's RequestObject
*/}}
{{$opid := .OperationId -}}
type {{$opid | ucFirst}}RequestObject struct {
{{range .PathParams -}}
{{.GoName | ucFirst}} {{.TypeDef}} {{.JsonTag}}
{{end -}}
{{if .RequiresParamObject -}}
@phoenisx
phoenisx / frag.glsl
Last active January 2, 2026 14:34
Point Sphere
// frag shader
// Sphere without geometry
#define PI 3.1415926535897932384626433832795
varying mat4 vNormalMatrix;
#include includes/utils.glsl;
#include includes/lights.glsl;
void drawSphere(vec2 uv, float radius) {