Random Color for iTerm Tabs

Add following in $HOME/.zshrc function color { case $1 in random) t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;red;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;green;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;blue;brightness;${t}\a" ;; esac } color random

जुलै 13, 2021 · 1 min · 43 words · शंतनू

Python packaging with cython

cython converts python code to C/C++ and creates compiled extensions. Generally this is used to speed up the execution, but one can also use it for protecting their python source code. Code structure package_tutorial +- setup.py +- README.md +- my_pkg +- __init__.py +- module_one.pyx +- module_two.pyx +- utils.pyx # __init__.py from . import utils from . import module_one from . import module_two # utils.py def add(a, b): return a+b # module_one....

एप्रिल 17, 2021 · 1 min · 170 words · शंतनू

Documentation

Importance of Documentation

ऑक्टोबर 9, 2016 · 1 min · 171 words · शंतनू

Front Door

जुलै 26, 2016 · 0 min · 0 words · शंतनू

Read Receipt and Delivery Receipt

Use following email headers for requesting e-mail acknowledgement. Return-Receipt-To: email@example.com Disposition-Notification-To: email@example.com

ऑगस्ट 27, 2015 · 1 min · 12 words · शंतनू