A slowly growing repository of code snippets

Here I share some examples of potentially useful code snippets for topics in chemistry/physics, molecular modeling, data fitting, and data visualization. Some (but not all) have associated blog posts with more detailed explanations here. Note that these examples are for tutorial purposes only.

Cartesian to fractional coordinate conversion
Rotation of a molecular structure
XYZ file of optimized coordinates from MOPAC output
Matplotlib examples
Boltzmann statistics
Polynomial fitting
PIB (1D) eigenstates 
Previous
Previous

Reading files with Python