Skip to content

Instantly share code, notes, and snippets.

View ivabus's full-sized avatar
🍺
Converting kvass into code

Ivan Bushchik ivabus

🍺
Converting kvass into code
View GitHub Profile
@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)
@ivabus
ivabus / cargo.toml
Last active July 17, 2022 07:38
Ford circles done bad
[package]
name = "untitled"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bracket-color = "0.8.2"
[dependencies.sdl2]
@ivabus
ivabus / nmap.py
Last active July 3, 2023 09:14
nmap launcher on python
#!/usr/bin/env python3
# ---
# dependencies:
# python.org: '>=3.11.3'
# nmap.org: '*'
# ---
import os
import sys
myArgs = list(sys.argv)[0:]