From ef471a603e754964dde7e6e1074656528f2c2f41 Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 4 Sep 2019 20:30:21 +0200 Subject: Add some cheat --- cheat/.cheat/python | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'cheat/.cheat/python') diff --git a/cheat/.cheat/python b/cheat/.cheat/python index 4428b48..7c8f0b2 100644 --- a/cheat/.cheat/python +++ b/cheat/.cheat/python @@ -42,3 +42,22 @@ tuple # mutable (modifiable) bytearray + +# For bytes and bytearray show hex value of each char +[hex(i) for i in header] + +# For string show hex value of each char +[hex(ord(c)) for c in header] + +# Opencv with gstreamer +# Gstreamer not on pipy but present when building... + +git clone --recursive https://github.com/skvark/opencv-python.git +git checkout -b 25 +ENABLE_CONTRIB=ON python setup.py install + +# package developement + +virtualenv .venv_dev +source .venv_dev/bin/activate +pip install -e . # for install package in dev mode -- cgit v1.2.1