Simulations and code on physics of complex systems and networks