Skip to content

Instantly share code, notes, and snippets.

@LukeGary462
LukeGary462 / foreach_test.c
Created March 7, 2023 21:23
C foreach macro implementation
// test
// https://paiza.io/projects/gckklFp-m9gy5nT3pGsFKw
// stack overflow source
// https://stackoverflow.com/questions/400951/does-c-have-a-foreach-loop-construct
#include <stdio.h>
#include <stdint.h>
#define COUNTOF(x) (sizeof(x) / sizeof(x[0]))
@pksunkara
pksunkara / config
Last active March 9, 2026 15:00
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]