Code I've written for different courses during my physics/astrophysics, robotics or math bachelor's degrees. These programs are mostly of some decent size as I have chosen not to upload smaller scripts that span just a couple of lines with no functions or solution to a complex problem.
Towards the third year I started using more classes and functions as well as document code.
FYS-MEK1110 Mechanics [Python]
IN1010 Object-oriented Programming [Java]
MAT-INF1100 Modelling and Computations [Python]
STK1100 Probability and Statistical Modelling [Python]
AST2000 Introduction to Astrophysics [Python]
FYS2130 Oscillations and Waves [Python]
IN1910 Programming with Scientific Applications [Python] [C++]
IN3110 Problem solving with high-level language [Python]
FYS2160 Thermodynamics and Statistical Physics [Python]
AST3220 Cosmology I [Python]
AST3310 Astrophysical Plasma and Stellar Interiors [Python] (Latest)