Skip to content

Instantly share code, notes, and snippets.

@ivabus
ivabus / truth.py
Last active October 12, 2023 06:11
Print truth table for given expression
def iterate(l, ost):
if ost == 0: return l
newL = []
for i in l:
for k in "01": newL.append(i + k)
return iterate(newL, ost - 1)
func = input("Input function (in eval format): ")
variables = []
for i in func:
if i in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" and not i in variables: variables.append(i)
@tivrfoa
tivrfoa / README.md
Last active March 5, 2025 19:41
rust-analyzer with neovim for the Linux Kernel - Rust for Linux