Skip to content

Instantly share code, notes, and snippets.

pub fn main() !void {
// const justfile = try std.fs.cwd().openFile("justfile.json", .{});
// var buffer: [3000]u8 = undefined;
// const bytes_read = try justfile.readAll(&buffer);
// const content = buffer[0..bytes_read];
// const stdout = std.io.getStdOut().writer();
// var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
// defer _ = gpa.deinit();
// const allocator = gpa.allocator();
// var parsed = try std.json.parseFromSlice(std.json.Value, allocator, content, .{ .allocate = .alloc_always });
const std = @import("std");
// Import the zf library module we added in build.zig
const zf = @import("zf");
// Helper function to recursively find all file paths relative to the start_dir
// It appends duplicated paths to the provided ArrayList.
fn getAllFilePathsRecursive(
allocator: std.mem.Allocator,
base_dir: std.fs.Dir, // The directory we are currently iterating in
current_rel_path: []const u8, // Path relative to the *initial* start directory (e.g., ".")

Use the right tool for the job.

Astro Paper for weekly Microcontroller Workshop meetings.

Astro starlight for technical documentation guides.

mdbook for curated version of these gists tailored for: cli/tui/gui/android/embedded etc.

// Define CLAY_IMPLEMENTATION in exactly one C file
#define CLAY_IMPLEMENTATION
#include "../../clay.h" // Adjust path as needed
#include "../../renderers/raylib/clay_renderer_raylib.c" // Include renderer implementation
#include <raylib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h> // For strcmp
@raspberrypisig
raspberrypisig / README.md
Last active April 5, 2025 03:15
hello world wokwi
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Grid Cards (Tailwind CSS) - Large Screen Margins</title>
<script src="https://cdn.tailwindcss.com"></script>
<style type="text/tailwindcss"></style>
</head>
<body class="bg-gray-100 font-sans"> <!-- Removed p-5 from body if you only want edge padding via the container -->
put the following in index.js
//Ignore this. Needed for index.css
//to be applied inside stackblitz platform.
import './index.css'