Codes for cosmological purposes