aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/python
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cheat/.cheat/python19
1 files changed, 19 insertions, 0 deletions
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