Skip to content

Instantly share code, notes, and snippets.

View sqbi-q's full-sized avatar

sqbi sqbi-q

View GitHub Profile
@sqbi-q
sqbi-q / basic_calculator.py
Created October 2, 2022 20:49
Prosty kalkulator GUI
from tkinter import *
from tkinter import ttk
'''
Zamysł okna:
---------------------- inputy, do których wpisywane
' ' będą wartości (ttk.Entry())
------- / -------- / ------
| ..... v ........ v .... |
| . ________ ________ . <----- frame przechowywujący inputy
@sqbi-q
sqbi-q / injective
Created June 20, 2023 20:48
Maxima CAS injective (one-to-one) test of given function
injective(f) := block([x:x, y:y, q:q],
q: f(x) = f(y),
is(equal(solve(q, x), [x=y]))
);
@sqbi-q
sqbi-q / head_tail_list.cpp
Created May 6, 2024 11:05
Head Tail List implementation in C++17
#include <iostream>
#include <memory>
#include <optional>
class not_found_error : public std::logic_error {
using std::logic_error::logic_error;
};
// Head - Tail List
// Inspired by Prolog lists