Gist
Updated Published 1 min read
Github's gist service let's you store text files that can be embedded in websites. I often store code snippets or small scripts I created here, so they can be found and used by other people.
api
By hosting json files such as response.json, I can serve static "API" responses to some of my own projects and services, such as my redirect api
Embedding
To hide the Github footer, add this:
<style>
.gist .gist-meta { display:none; }
</style>
<script>-Tag
gist.github.com/dnnsmnstrr/76c3b6765089bff0e35e239418e0ee2b
To embed a specific file out of multiple attached to single a gist, append this: ?file=filename.md
gist.github.com/dnnsmnstrr/7279503e6c3fc923447cbce6a1e4d9f9.js?file=example2.txt
<iframe>
gist.github.com/dnnsmnstrr/7279503e6c3fc923447cbce6a1e4d9f9.pibb
Links
Links from this note 2
- APIMy personal api is available at https://dnnsmnstrr.vercel.app/api/ Available routes: Route Description /dennis Returns information about me /events A list of events in my life…
- RedirectingWhile working on my api, I figured out a way to set up a system of dynamic redirects with alias matching. This means I can define multiple links that all redirect to a specific…