If you haven't heard of a gist before, it's an easy way to save, store, and share snippets of code or data with others. These little pieces of information are stored on GitHub and are easily accessible. A gist can be public or private, and they are available via a URL, just like a repository.
Firstly, how do you create a gist in GitHub? You can't really share information unless you know how to create it first right? Since everyone has been recently talking about GitHub Skyline why don't we download my skyline.
We can upload and save the *.stl file as a gist. That way I can easily share my file for 3D printing, or send it to anyone I like. Here's how to download and save your Skyline:
- Go to GitHub Skyline
- Enter your username and select the year you want to showcase
- Once your Skyline has loaded, click "Download STL file"
- Go to GitHub and make sure you're signed in
- Navigate to your profile and click options in the top right hand corner
- Roll down and click "Your gists"
- Click the + symbol in the top right hand corner
- Name your gist and drag and drop your stl file
- Click the drop down to change between public and private (secret) gist
- Click "create [public/private] gist"
Now you should be able to view your new gist. Since the Skyline is a 3D file, GitHub allows you to view the file in 3D.
Bonus: if you accidentally created a secret gist and you want to make it public, you can do so easily. Click "Edit" up in the top right hand bar, then click "Make public".
Now that you've created a gist, you might want to quickly find this gist. All you need to do in order to save or pin your gist is to star it. Click on the gist you want to pin
and then click "Star" button in the top right.
Your gist is now easily found whenever you click "Starred" under gists, or select "Starred gists" from the drop down.
You can star other users' gists and quickly share a gist by copying the URL for that gist.