Skip to content

Instantly share code, notes, and snippets.

View lavafroth's full-sized avatar

Himadri Bhattacharjee lavafroth

View GitHub Profile
def test(fn):
print(fn(tuple(map(str, range(0)))))
# assert fn(tuple(map(str, range(0)))) == ''
print(fn(tuple(map(str, range(2)))))
# assert fn(tuple(map(str, range(2)))) == '0 and 1'
print(fn(tuple(map(str, range(4)))))
# assert fn(tuple(map(str, range(4)))) == '0, 1, 2, and 3'
print(fn(tuple(map(str, range(10)))))
# assert fn(tuple(map(str, range(10)))) == '0, 1, 2, 3, 4, 5, 6, 7, 8, and 9'
@lavafroth
lavafroth / config.toml
Created March 27, 2024 03:10
Helix config for lazygit integration
[keys.normal]
C-g = [":new", ":insert-output lazygit", ":buffer-close!", ":redraw"]