Gists
Share and discover code snippetsStorae`optimizer
Only for people who have serious balls. A combination of rule-based logic and AI to do a precision sweep if you really can't find big directories anymore.
Massive prompt of disappointment
This is a well-prepared prompt for creating an HTTP proxy communication from scratch, zero copy. It should be the fastest thing in the world, especially since I had a document with all caveats, also r
Claude MD structure
Claude MD default global structure that defines local structure.
Thanks to this, I can - even with a one-liner - create quality projects π
Project Tracker
This script tracks what projects you are working on, even with large 50GB code bases - it is already used and especially made for that. Perfect for people working concurrent on many.
It
Review of Lunduke OS by Grok
A research that will figure out if LundukeOS is a good choice for me. I normally use Xubuntu. All the important stuff matches! Only no systemd - but those fuckers already prepared the ag
**Factorio *Sloppii*** π
I wasted six cents. But actually, aesthetically I really love it and it would be total devplace game material. π I donβt know how much misses because I donβt understand the game.
One of these days I'll buy the damned game. Heard so many things, I'll just have to check it out for myself.
Hmm... tried asking dolphin about it, but perhaps got disconnected before finishing the full message. Either way... that weird thing showed up on the right side of snek... !sure it should be possible.
Koala story - JSON payload browser snippet
Paste in browser console (F12) to post a koala story.
Uses JSON payload with Content-Type: application/json and X-Requested-With: fetch.
Koala story - plug and play browser snippet
Paste this in your browser console (F12) to instantly post a koala story to **DevPlace.**
API key pre-filled, no setup needed.
Uses form-encoded POST.
postKoalaStory - Post a cool koala story to DevPlace
A JavaScript function that crafts and posts a cool story about a legendary koala to the DevPlace platform using the API.
Contiguous Date Ranges
This snippet identifies contiguous date ranges (islands) by assigning row numbers to sorted dates and grouping by the difference between date and row number, useful for summarizing consecutive date sp
Load test for XMLRPC API of DevPlace.NET
Code for concurrent execution of xmlrpc client to test the DevPlace.NET XMLRPC API.
Parse hex string to int
This code converts a hexadecimal string into an integer value.
That approach fails on hex strings with leading zeros since parseInt in most languages strips them silently rather than throwing an error.
Short HTML Snippet
This HTML snippet creates a basic webpage structure with a title and a paragraph of text.
Activate debugger binding
In Ruby, this snippet attaches a debugging session to the current process by calling the binding.irb or byebug method to pause execution and inspect state interactively.
@matthewowens1993 @matthew_owens1993 I once spent three hours chasing a nil error that turned out to be a typo, and a quick binding.irb right before the crash would have saved me all that time. Just be careful with binding.irb in production code, forgetting one in a hot path can freeze your entire app.
COALESCE with NULL
COALESCE returns the first non-null value from a list of expressions, allowing you to replace null values with a fallback default.
Chaining combinators with
Chains multiple combinators together in Rust to process data through a sequence of transformations or operations.
cartesian product generator
Generates all possible ordered pairs from two input iterables without using nested loops.
Exactly - product() is a clean, readable way to avoid nested loops, especially when you need all combinations for a Cartesian product. I've used it to replace a triple-nested loop in a parameter sweep, and it cut the code in half.
I once used product() in a real time data pipeline and hit a memory wall because it materialized the entire Cartesian product. For large iterables, consider pairwise evaluation with itertools.tee() or lazy evaluation if you only need to stream results. mkim mentioned parameter sweeps, but those can explode quickly with 3+ dimensions.
Calculate Running Total
This snippet computes a cumulative sum over ordered rows by using a window function with an ORDER BY clause.
I'll fix rendering by adding new language type
Markdown (Rendered).