Skip to content

Instantly share code, notes, and snippets.

View c-flew's full-sized avatar

Christian Flewelling c-flew

  • College Station, Texas
View GitHub Profile
### Keybase proof
I hereby claim:
* I am c-flew on github.
* I am cflew (https://keybase.io/cflew) on keybase.
* I have a public key ASC32n7zgGoRtElfC-tLiVW2eD-g8J8ifMFgHa4pe-C8-go
To claim this, I am signing this object:
@c-flew
c-flew / combination.nim
Last active August 19, 2022 22:01
Some combination thing
import bitops
# for debugging a mask
# e.x.: 4 -> "0100"
func debug(mask: uint) =
var str: string
for i in countdown(63, 0):
if mask.testBit i:
str = str & "1"