Skip to content

Instantly share code, notes, and snippets.

View cglukas's full-sized avatar
🦕
Having fun with autoencoders

Lukas Wieg cglukas

🦕
Having fun with autoencoders
View GitHub Profile
@cglukas
cglukas / lint.py
Last active March 4, 2024 08:55 — forked from bh11111/lint.py
Python Pylint Runner to Pass (Exit 0) or Fail (Exit 1) Based on Pylint Score Threshold
import argparse
import logging
from pylint.lint import Run
logging.getLogger().setLevel(logging.INFO)
parser = argparse.ArgumentParser(prog="LINT")
parser.add_argument('-p',
@cglukas
cglukas / transform_matrix_change_base.cpp
Last active September 29, 2022 09:02 — forked from martin-etchart/transform_matrix_change_base.cpp
Change coord system of 2x3 transformation matrix estimated in opencv coord system to a coord system equivalent of doing y'=height-y
/**
* Changes the coordinate system of the transformation matrix from regular image
* coords (opencv-like) to a different coords system like this:
*
* .-------> x ^ y
* | V |
* | ---> |
* | |
* v y .-------> x
*
@cglukas
cglukas / RangeSlider.py
Last active April 5, 2022 09:14 — forked from dridk/RangeSlider.py
The following code creates a range slider as a Qt widget with a native looks and feel
from PySide2.QtWidgets import *
from PySide2.QtCore import *
from PySide2.QtGui import *
import sys
class RangeSlider(QWidget):
def __init__(self, parent=None):
super().__init__(parent)