PyCharm type hints
01 Apr 2016For class variables that get assigned:
For input variables (in a docstring):
For return types (also note, tuples and lists):
For class variables that get assigned:
For input variables (in a docstring):
For return types (also note, tuples and lists):
To prepend some text at the start of each file, use sed:
sed -i '1i <pattern>' <files>
Add emacs headers for LaTeX mode:
sed -i '1i % -*- mode:LaTeX; mode:visual-line; mode:flyspell -*-' *.tex
On OSX, if ipython crashes at startup it just needs to be re-installed:
sudo easy_install -U ipython