I wrote so much code during my PhD! Some of them were protected or cannot be shared, but some are freeeeee.
If you like astrophysics, check out some of my IDL and Python work:

MFits, The Astrophysical Analyzer: Package to calculate five distinct fits on the data generated from the Xray atmosphere simulations. This became a published paper at The Astrophysical Journal.

Researching the Interstellar Dust: IDL Data reduction and analysis of many astrophysical pictures obtained from the Stony Brook Mt. Telescope. The object is to study the effects of the Interstellar Dust.

Numerical Methods for Physics: Numerical methods and exercises for Physics and Astrophysics: Integration and Differentiation,Ordinary Differential Equations, Linear Algebra and FFTs, Advection and Hyperbolic Partial Differential Equations, Elliptic Partial Differential Equations, Computational Fluid Dynamics

Spectra of Earthshine: The detection of exolife is one of the most important goals for future space missions. Here we analyze images taken from the moon at the Mt. Stony Brook, to be able to extract the spectra of the Earthshine and detect elements such as water and chlorophyll from Earth. Source code in IDL for data reduction and analysis.

Calculating the Diameter of the Sun: IDL Source code for data reduction and analysis. Here we analyze interferometric radio data from the Sun to be able to obtain its angular diameter.