Setting up Codepen code locally

Hello all !

I’m starting a new app, and I wanted to try Ionic, and it seems to be really good !

In my app, I have to build something like this codepen:
Now I can’t understand where to copy this code. Please help. Following is the github gist I am using.