A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dropdown with HTML5 Datalist</title> | |
<style type="text/css"> | |
datalist{ | |
display: none; | |
} | |
select{ | |
width: 100%; |
root@dlkit-i2c:/home/docker/code/gstudio/gnowsys-ndf/qbank-lite# pip install cffi==1.7.0 | |
Downloading/unpacking cffi==1.7.0 | |
Downloading cffi-1.7.0.tar.gz (400kB): 400kB downloaded | |
Running setup.py (path:/tmp/pip_build_root/cffi/setup.py) egg_info for package cffi | |
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi==1.7.0) | |
Installing collected packages: cffi | |
Running setup.py install for cffi | |
building '_cffi_backend' extension | |
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o |
**1. GIT LOG WITH COMMIT-NO, DATE, AUTHOR, COMMIT-NAME** | |
git log --oneline --name-only --pretty="%h %cd, %an : %s" 7b32cc4...27537cc | |
OUTPUT: | |
27537cc Fri Aug 4 12:37:34 2017 +0530, Kedar Aitawdekar : Merge pull request #1794 from Prachirb/dlkit | |
f4ef8e1 Fri Aug 4 12:35:21 2017 +0530, saurabh : Merge pull request #1780 from kedar2a/dlkit-dev | |
847ee1e Thu Aug 3 19:12:48 2017 +0530, Prachirb : Interaction settings UI modifications | |
gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/css/themes/clix/clix2017.css |
apt-get remove nodejs npm node
sudo apt-get purge nodejs npm node
sudo rm -rvf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
sudo rm -rfv /usr/local/lib/node*
sudo rm -rfv /usr/local/include/node*
sudo rm -rfv /usr/local/bin/node*
def rec_split(arr=[], start=0, end=0): | |
''' | |
Recursively split list by 2 till end of all sublists to | |
have leaf list of length 1. | |
Example: | |
>>> sl = [2,3,4, 99, 76,12, 5] | |
>>> rec_split(sl) | |
[2, 3, 4] | |
[99, 76, 12, 5] | |
[2] |