Pedagogical introduction to equilibrium Green's functions: condensed-matter examples with numerical implementations