Skip to content

Instantly share code, notes, and snippets.

@menduz
menduz / build.zig
Last active September 20, 2023 20:16
zig dependency checker
const DependencyChecker = struct {
/// map(module_name -> set(module_hash))
package_name_to_hashes: std.StringHashMap(std.StringHashMap(bool)),
const Self = @This();
const dependencies = @import("root").dependencies;
fn check_transitive_dependency(self: *Self, comptime module_name: []const u8, comptime module_hash: []const u8, comptime level: comptime_int) void {
const package = @field(dependencies.packages, module_hash);
@menduz
menduz / gi.c
Created December 6, 2023 20:33 — forked from futureengine2/gi.c
Radiance Cascades 2d GI implementation
static void gi_on_gpu(u8* in_bitmap, int w, int h) {
#define num_cascades 7
static bool initialized;
static gpu_bindgroup_t texture_bindgroup[2];
static gpu_bindgroup_t cascade_uniform_bindgroup[num_cascades];
static gpu_bindgroup_t render_uniform_bindgroup;
static gpu_buffer_t vertex_buffer;
static gpu_buffer_t uniform_buffer;
static gpu_pipeline_t pipeline;
@menduz
menduz / actionlist.vim
Created April 19, 2024 13:22 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>