Skip to content

Instantly share code, notes, and snippets.

View lantos1618's full-sized avatar
๐Ÿ™
yeet

Lantos lantos1618

๐Ÿ™
yeet
View GitHub Profile
@andrewrk
andrewrk / build.zig
Created February 20, 2023 16:20
sprinkling a little zig into a C project to help with debugging
const std = @import("std");
pub fn build(b: *std.Build) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
// means any target is allowed, and the default is native. Other options
// for restricting supported target set are available.
const target = b.standardTargetOptions(.{});
// Standard optimization options allow the person running `zig build` to select
@mratsim
mratsim / chaining.nim
Created May 24, 2017 23:26
Nim inline iterator chaining macro
## From https://forum.nim-lang.org/t/2856
import macros
macro chaining(code: untyped): untyped =
const chainIdent = "chain"
const combineIdent = "combine"
proc inspect(depth: int, n: NimNode): NimNode =
case(n.kind)
of nnkIdent, nnkStrLit:
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2026 07:53
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k