Skip to content

Instantly share code, notes, and snippets.

View exler's full-sized avatar
⚔️
Compiling!

Kamil Marut exler

⚔️
Compiling!
View GitHub Profile
@exler
exler / zbar_process.py
Last active July 10, 2025 10:56
ZBar memory benchmarking script.
import argparse
import os
import subprocess
import tempfile
import time
import tracemalloc
from typing import Any, List, Optional
from PIL import Image
from pyzbar.pyzbar import decode
@exler
exler / complex.cpp
Created April 6, 2020 19:13
Solving quadratic equations with complex numbers.
#include <iostream>
#include <cmath>
class Complex {
private:
double real;
double imag;
public:
Complex() { real = 0; imag = 0; };
@exler
exler / fibonacci_search.py
Last active January 11, 2020 19:55
Fibonacci Search - a method of finding the minimum value in a given interval.
import math
import matplotlib.pyplot as plt
import numpy as np
def func(x):
return (x / (1.2 - math.sin(2*x)))
def inv_func(x):
return -(x / (1.2 - math.sin(2*x)))