Snippets for simple calculations in cosmology. Run ipython -i cosmosnips.py in a shell to use them interactively.