Some interesting code snippets

C++
Python
FORTRAN
MATLAB
Mathematica
R