Here are some coding samples from my college courses.
CMSC131 - Introduction to Object-Oriented Programming I
CMSC132 - Introduction to Object-Oriented Programming II
CMSC216 - Introduction to Computer Systems
CMSC330 - Organization of Programming Languages
ENEE245 - Fundamental Digital Circuits and Systems Lab
ENEE222 - Elements of Discrete Signal Analysis
MATH246 - Differential Equations