Mikko Kortelainen

SQLAlchemy Declarative Class Reflector

SQLAlchemy has a nice reflection facility which takes for example a database table name as argument and produces a Table object out of it for manipulation. However, those objects do not behave like the objects produced by declarative classes, which are easier to work with. Here's a little class that …

read more

Editing Tabular Data in Vim

Helpful settings for editing tabular data:

setlocal noexpandtab
setlocal nowrap
setlocal tabstop=16 softtabstop=16 shiftwidth=16

Noexpandtab disables expanding of inputted tabs to spaces. Adjust the number of spaces to your liking. Tabstop sets the visual appearance of tab stops (here 16 spaces).

Show tabs visually, disable cursor line …

read more
<< Page 4 of 15 >>