Skip to content

Instantly share code, notes, and snippets.

View nubskr's full-sized avatar
🥤

nubskr

🥤
View GitHub Profile
@nubskr
nubskr / web_crawler_gist.zig
Created June 25, 2026 10:06
Code reference to web crawler video
const std = @import("std");
const Io = std.Io;
const stats_path = "crawl.stats";
const Job = struct { url: []const u8, depth: usize };
const State = struct {
io: Io,
gpa: std.mem.Allocator,
@nubskr
nubskr / file_downloader_gist.zig
Created June 16, 2026 20:54
code reference for parallel downloader video
// Zig 0.16.0 single file parallel downloader demo.
//
// Build:
// zig build-exe file_downloader_gist.zig -O ReleaseFast
//
// Run:
// ./file_downloader_gist <url>
const std = @import("std");
const Io = std.Io;