Skip to content

Instantly share code, notes, and snippets.

@szobov
szobov / config.el
Created January 18, 2021 07:48
emacs: Google-style docstring in python
(defun python-google-docstring ()
"Generate google-style docstring for python."
(interactive)
(if (region-active-p)
(progn
(call-process-region (region-beginning) (region-end) "python3" nil t t "/home/szobov/bin/scripts/format-g-docs.py")
(message "Docs are generated")
(deactivate-mark))
(message "No region active; can't generate docs!"))
)
@rodnaxel
rodnaxel / install_kivy.sh
Last active August 18, 2020 20:38
Install Kivy on Ubuntu 18.04 (python 3.6)
apt-get install python3-pip
apt-get install cython3 python3-dev
apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
python3.6 -m pip3 install git+https://github.com/kivy/kivy.git@master
apt-get install python3-kivy-examples