Skip to content

Instantly share code, notes, and snippets.

Problem Traditional Approach Ferrous Approach
Memory Safety Manual C/C++ memory management Rust's ownership system
Driver Crashes System panic/BSOD Isolated, restartable services
Containers Retrofitted namespaces/cgroups First-class kernel primitives
Debugging printf and prayer Built-in observability
Attack Surface Millions of lines in Ring 0 <50k lines privileged core
Comprehensive Technical Analysis of Digitally Addressable LED Systems for Residential Architectural Integration
The evolution of solid-state lighting has transitioned from simple on-off circuitry to sophisticated, software-defined environments where every individual photon-emitting element can be discretely addressed. This transition, largely catalyzed by the development of the integrated circuit (IC) controlled light-emitting diode (LED), has revolutionized residential lighting design by allowing for dynamic, temporal, and spectral control that was previously the sole domain of theatrical and commercial installations. For the modern residential user, navigating the landscape of "individually addressable" LEDs—frequently referred to by the Adafruit brand name "NeoPixels"—requires a technical understanding of the relationship between data protocols, spectral diode configurations, electrical distribution, and mechanical protection.
The Architecture of Digital Addressability and Chipset Protocols
At the core of
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created January 27, 2026 05:23
Rimworld output log published using HugsLib
Log uploaded on Tuesday, January 27, 2026, 8:23:05 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.4.0]: 0Harmony(2.3.6), HarmonyMod(2.3.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
Odyssey(Ludeon.RimWorld.Odyssey): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.3.6,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)
StatLineribbonFast <- ggproto("StatLineribbonFast", ggdist:::StatLineribbon,
compute_panel = function(self, data, scales, .width = c(0.5, 0.8, 0.95), na.rm = FALSE, ...) {
if (nrow(data) == 0) return(data.frame())
lower_probs <- (1 - .width) / 2
upper_probs <- 1 - lower_probs
probs <- sort(unique(c(0.5, lower_probs, upper_probs)))
xs <- unique(data$x)
@mypy-play
mypy-play / main.py
Created January 27, 2026 05:21
Shared via mypy Playground
import sys
def exits_before_return() -> str:
my_str = ":)"
if True:
sys.exit()
return my_str
@forkyau
forkyau / hourly_rainfall_data-2026-01-27|13-00.csv
Created January 27, 2026 05:21
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
1 湿地公园 RF002 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
2 水边围 N12 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
3 石岗 RF003 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
4 大美督 RF004 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
5 大埔墟 RF005 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
6 北潭涌 RF006 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
7 滘西洲 RF007 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
8 西贡 N15 0 mm 2026-01-27T13:00:00+08:00 2026-01-27
{"schemaVersion":1,"label":"coverage","message":"80%","color":"brightgreen"}
@Kondasamy
Kondasamy / convert_intercom_to_csv.py
Created January 27, 2026 05:20
Convert Intercom S3 backup JSONL files to cleaned CSV
#!/usr/bin/env python3
"""
Convert Intercom S3 backup JSONL files to cleaned CSV.
Intercom exports hourly conversation backups as JSONL files to S3. This script:
1. CLEANUP: Removes zero-byte files from S3 (empty hourly exports)
Usage: python convert_intercom_to_csv.py --delete-empty
2. EXPORT: Converts all JSONL files to a single CSV with one row per conversation
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created January 27, 2026 05:19
Rimworld output log published using HugsLib
Log uploaded on Monday, January 26, 2026, 10:19:48 PM
Loaded mods:
Prepatcher(jikulopo.prepatcher): 0Harmony(2.4.2), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.3.3), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(av:2.4.2,fv:2.4.1), HarmonyMod(2.4.2)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
Cheaters Resource Replicator(Masternetra.CheatersResourceReplicator): (no assemblies)
@vladleesi
vladleesi / VerticalText.kt
Last active January 27, 2026 05:22
Vertical text composable for Jetpack Compose with correct width handling.
/**
* Displays text vertically by rotating and laying out each character individually.
*
* Fixes the layout issue of simple rotation, which preserves the original width.
* Useful when native vertical text layout is not available.
*/
@Composable
fun VerticalText(
text: String,
modifier: Modifier = Modifier,