Helpful coding snippets

I will try to add the code snippets that I regularly use in my working strategy to fasten up my simulations and plotting requirements.