This tutorial is about adding Gist in AMP.
After creating a gist, copy the gist id from URL.
Add the AMP-Gist shortcode wherever you want to show the Gist in AMP.
Hope it helps.
Teach people with Gist not with Fist 😉