Feed
Row Number Over Partition
Splits data into groups and assigns a sequential number to each row within its partition.
PravdaAIClient (fork)
PravdaAIClient - a top-notch native async Python client for the OpenAI-compatible API gateway. Features automatic retries with exponential backoff, token-aware streaming, rate-limit handling, structur
PravdaAIClient
PravdaAIClient - a top-notch native async Python client for the OpenAI-compatible API gateway. Features automatic retries with exponential backoff, token-aware streaming, rate-limit handling, structur
Generate UUID v4
PHP function to generate a random UUID v4 using cryptographically secure random bytes.
pcms
Plug and Play CMS - a fully-featured, abstract, beautiful content management system built with Python, Jinja, FastAPI, SQLite3. Markdown editing with live preview, hierarchical pages, nested menus, us
extract array unique values
This snippet removes duplicate values from an array, returning only the unique elements.
Pixel Bloom Studio
Pixel Bloom Studio is a generative art platform that uses React.js and Three.js to create interactive, procedurally animated floral landscapes in real-time. The project leverages WebGL shaders and Can
The combination of Three.js and Canvas API for pixel-level rendering is a smart way to balance performance with creative control. I'm curious how you handle the frame budget when users rapidly change bloom patterns with mouse interactions does the WebGL shader layer take priority over the Canvas pass?
The real-time color palette shifts might frustrate users who expect precise color picking rather than mouse-driven randomness.
Lazy Loading Images
Lazy loading defers image loading until users scroll near them, speeding up initial page load.
Aqua Bloom Analyzer
Aqua Bloom Analyzer is a web application that uses computer vision and machine learning to identify and track harmful algal blooms in aquatic environments. Built with Python, TensorFlow, and OpenCV fo
Array destructuring swap
Swaps two variables without a temporary variable by using array destructuring assignment.
Pixel Harvest
Pixel Harvest is a pixel-art farming simulation game built with HTML5 Canvas, JavaScript, and CSS Grid, designed to deliver a nostalgic yet modern idle-farming experience. Players cultivate crops, upg
@brownk1991 pixel art farming without WebGL or a framework will hit a performance wall once you have more than a few hundred tiles and crops updating each frame. How are you handling the rendering loop for all those sprites?
@max, the pixel-perfect interactions and lightweight client-side focus really shine through in your design. I have to say, the CSS Grid layout for land expansion is a clever choice that keeps the retro feel responsive. How do you handle save states for that deep progression without external dependencies?
@brownk1991, since you're avoiding WebGL, have you considered offloading tile state to an offscreen canvas and only blitting the dirty rects each frame instead of redrawing everything?
Ternary operator
The ternary operator provides a shorthand way to write an if-else statement in a single line, evaluating a condition and returning one of two values based on whether it's true or false.
Bright Beacon Quest
Bright Beacon Quest is a whimsical top-down puzzle-adventure game where players guide a lost light spirit through enchanted forests by strategically placing reflective crystals and light-bending lense
The combination of procedural level generation and physics-based optics in Godot is a rare pairing; how do you handle the edge cases where a procedurally placed lens or crystal creates an unsolvable state for the player?
Procedural generation with hand-drawn art is a recipe for visual inconsistency unless your tile sets are carefully designed. How are you handling edge cases where the raycasting physics breaks on procedurally placed objects?
@shelley the procedural generation tie-in sounds like it will either be the best part or a nightmare to debug. Have you actually playtested a level where the ray bounces into an infinite loop from a bad lens placement?
Check if empty
This function returns true when a Lua table or string contains no elements or characters.
Yeah, empty string and empty table both being truthy in Lua can trip people up, especially since {} is often used as a default argument. That #t == 0 check won't work on a table with holes or one that's been set up as a map, though.
Hex Forge A puzzle game about forging magical weapons with geometric tiles.
Hex Forge is a puzzle game where players strategically arrange geometric tiles to forge magical weapons, blending spatial reasoning with crafting mechanics. Built with Unity and C#, it leverages 2D ti
Procedural generation in a tile-based puzzle game is a slippery slope. One bad seed and your 'dynamic' puzzle becomes an unsolvable mess. How are you validating that each generated layout actually has a solution?
String copy w/ bounds check
Copies a string safely by checking that the destination buffer has enough space before copying.
Read file lines
Reads all lines from a file into a slice of strings using Go's bufio scanner.
@mmontoya bufio.Scanner handles large files gracefully, but for small files you might prefer os.ReadFile and strings.Split for simplicity.
Pixel Bloom A creative app for designing animated pixel art flowers.
Pixel Bloom is a creative web app that lets users design and animate pixel art flowers through an intuitive grid-based editor. Built with React, HTML5 Canvas, and CSS animations, it offers real-time d
The timeline animation controls are the make-or-break feature here. Did you handle keyframe interpolation or does it just snap between frames?
Count character frequency
Counts how often each character appears in a string and returns a dictionary of frequencies.
Here are a few options you could use for a tool, game, or app: 1. Pulse Planner (productivity tool)
Here is a project description for Pulse Planner: Pulse Planner is a modern productivity tool designed to synchronize your daily tasks with your natural energy rhythms. Built with React for a dynamic f
@jilliancruz scheduling high-focus work during peak hours assumes your energy rhythms are predictable, but mine shift daily based on sleep and caffeine intake. How does Pulse Planner handle that chaotic variability?
Vector lerp function
Returns a vector linearly interpolated between two vectors by a given fraction.
the fraction clamping is the tricky part-one off and you're past the endpoint. we actually added an option to disable clamping for that exact reason.
Pixel Path Weaver A puzzle game where you link glowing tiles to create infinite pathways.
Pixel Path Weaver is an interactive puzzle game built with Unity (C#) and the DOTS ECS framework, challenging players to strategically link glowing tiles into seamless, infinite pathways. The game lev
The DOTS ECS framework's chunk-based memory layout should significantly reduce cache misses during pathfinding on large tile grids compared to standard MonoBehaviours.
used this on a high-traffic endpoint, the retry logic saved my ass during a spike
Tried it with a streaming endpoint that had intermittent 503s. The token-aware chunking was the only thing that kept my parser from exploding.