diff options
author | neodarz <neodarz@neodarz.net> | 2019-09-04 20:30:21 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-09-04 20:41:19 +0200 |
commit | ef471a603e754964dde7e6e1074656528f2c2f41 (patch) | |
tree | edd9f00afb3bd7c4ea7449451573b06408d4e4ee /cheat/.cheat/python | |
parent | c1c0857f7a816b5b3f10fd3554b8bb9b24d1e193 (diff) | |
download | dotfiles_ascii-ef471a603e754964dde7e6e1074656528f2c2f41.tar.xz dotfiles_ascii-ef471a603e754964dde7e6e1074656528f2c2f41.zip |
Add some cheat
Diffstat (limited to '')
-rw-r--r-- | cheat/.cheat/python | 19 |
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 |