fix Gist layout; migrate all the code to Gists