Skip to content

Instantly share code, notes, and snippets.

View johanjohan's full-sized avatar
🏠
Working from home

Michael Saup johanjohan

🏠
Working from home
View GitHub Profile
@johanjohan
johanjohan / cv2_key.py
Created October 9, 2021 17:14
cv2 extra key binding: arrows etc
import numpy as np
from py3j.system import system as m_system
"""
https://stackoverflow.com/questions/45580975/opencv-handling-arrow-keys-with-waitkey-function/45584477
https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
in main:
cv2_key = cv2.waitKeyEx( 1 ) & m_cv2.Key.mask
@johanjohan
johanjohan / sql
Created March 13, 2020 18:07 — forked from Ferdi/sql
google countries csv
('AD', 42.546245, 1.601554, 'Andorra'),
('AE', 23.424076, 53.847818, 'United Arab Emirates'),
('AF', 33.93911, 67.709953, 'Afghanistan'),
('AG', 17.060816, -61.796428, 'Antigua and Barbuda'),
('AI', 18.220554, -63.068615, 'Anguilla'),
('AL', 41.153332, 20.168331, 'Albania'),
('AM', 40.069099, 45.038189, 'Armenia'),
('AN', 12.226079, -69.060087, 'Netherlands Antilles'),
('AO', -11.202692, 17.873887, 'Angola'),
('AQ', -75.250973, -0.071389, 'Antarctica'),
@johanjohan
johanjohan / script-erect2cubic-001.sh
Created March 3, 2020 11:14
convert equirectangular panoramas into cubemap tiles
#!/bin/bash
#-----------------------------------------------------------------------------
#
# ██████╗ ██╗
# ╚════██╗ ██║
# █████╔╝ ██║
# ╚═══██╗██ ██║
# ██████╔╝╚█████╔╝
# ╚═════╝ ╚════╝
@johanjohan
johanjohan / README.md
Created February 22, 2019 15:28 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@johanjohan
johanjohan / 00convert2pdf.bat
Created February 22, 2019 15:16
windows batch file to convert openoffice odt files into pdf
@ECHO OFF
REM convert a series of .odt first into .docx and then into .pdf
REM needs conversion to doc first, otherwise there are faulty expression errors
REM https://askubuntu.com/questions/60778/how-can-i-convert-an-odt-file-to-a-pdf
:: https://stackoverflow.com/questions/22211104/batch-file-will-not-run-as-administrator
echo(%cd%
pushd %~dp0
echo(%cd%