Skip to content

Instantly share code, notes, and snippets.

View mirosval's full-sized avatar

Miroslav Zoričák mirosval

View GitHub Profile
@mirosval
mirosval / videomotion.ipynb
Last active December 27, 2015 00:59
Video Motion Magnification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mirosval
mirosval / 001-pupil-detection.ipynb
Created February 1, 2014 13:32
001 Pupil Detection using OpenCV
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mirosval
mirosval / 003-iris-unwrap.ipynb
Created February 1, 2014 16:14
003 - Iris Unwrap
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mirosval
mirosval / gist:9169921
Created February 23, 2014 10:57
Calibration for Hue-based blob detector OpenCV
import numpy as np
import cv2
import freenect
cv2.namedWindow("Image")
cv2.moveWindow("Image", 0, 30)
cv2.namedWindow("Tresh")
cv2.moveWindow("Tresh", 800, 30)
@mirosval
mirosval / gist:dda218a0ae7cb1ab9449
Created July 10, 2014 10:53
Roulette "hack" simulation
{
"metadata": {
"name": "roulette"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@mirosval
mirosval / Dockerfile
Created September 27, 2016 14:38
Tensorflow Javacpp-presets Linux Build
FROM centos:7
RUN yum install epel-release -y && \
yum install -y \
clang \
gcc-c++ \
gcc-gfortran \
java-devel \
maven \
python \
@mirosval
mirosval / redshift.log
Created January 8, 2018 12:03
Doobie Redshift Performance Logs
==> RedshiftJDBC_connection_0.log <==
Jan 08 08:45:07.790 DEBUG 30 com.amazon.jdbc.communications.InboundMessagesThread.run: Select triggered, no keys given.
Jan 08 08:45:08.205 TRACE 29 com.amazon.redshift.client.PGClient.isValid(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.redshift.client.PGClient.isConnected(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.support.channels.AbstractSocketChannel.isClosed(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.support.channels.AbstractSocketChannel.isClosed(): +++++ enter +++++
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: WriteMessages:WRAP:BEFORE:0:writeBuffer.remaining:50:writeBuffer.pos:0:writeBuffer.limit:50
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: WriteMessages:WRAP:AFTER:0:writeBuffer.remaining:0:writeBuffer.pos:50:writeBuffer.limit:50:produced:133:consumed:50
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: Write
@mirosval
mirosval / Makefile
Created November 28, 2023 14:53
OpenAPI Codegen Bug
generate-540:
docker run --rm \
-v $(PWD):/local openapitools/openapi-generator-cli:v5.4.0 generate \
-i /local/test.yaml \
--generator-name rust-server \
--output /local/openapi \
--global-property models,modelDocs=false,supportingFiles
mv openapi/src/models.rs test-540.rs
rm -rf openapi