You can find many of the codes I use in my teaching and some paper replication codes on my GitHub account: https://github.com/krabitsch
Here’s an overview of the repositories currently available:
MacroTeaching_StochasticGrowthModel_RBCmodel
Matlab/Dynare codes for the stochastic growth model and RBC (Real Business Cycle) model.
MacroTeaching_NewKeynesianModel_GaliCh3
Matlab/Dynare codes for the Gali (2008) Chapter 3 baseline New Keynesian model and its variations.
ReplicationCodes_HerbstSchorfheide2015
Matlab/Dynare replication codes for the Bayesian estimation of the Herbst and Schorfheide (2015) New Keynesian example model.
ReplicationCodes_StockmanTesar1995
Matlab replication codes for the workhorse two-country tradable/non-tradable goods model by Stockman and Tesar (1995).
ReplicationCodes_BackusKehoeKydland1995
Matlab replication codes for the classic two-country, two-goods model by Backus, Kehoe, and Kydland (1995).