Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| <artifacts_info> | |
| The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
| # Good artifacts are... | |
| - Substantial content (>15 lines) | |
| - Content that the user is likely to modify, iterate on, or take ownership of | |
| - Self-contained, complex content that can be understood on its own, without context from the conversation | |
| - Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
| - Content likely to be referenced or reused multiple times |
| #!/bin/sh | |
| # Sublime Text 3 Install (last update: Monday 13 March 2017) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # curl -L git.io/sublimetext | sh | |
| # Detect the architecture |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # This is a program trying to implement Verbal Expressions | |
| # See this for more info - http://verbalexpressions.github.io/ | |
| def VerEx | |
| VerExClass.new | |
| end | |
| class VerExClass | |
| attr_accessor :regex | |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| import requests | |
| import bs4 | |
| import io | |
| ADD_URI = 'http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=add_article&arttitle={0}&oldid=0' | |
| BOOK_URI = 'http://en.wikipedia.org/wiki/Special:Book' | |
| def wikify(topic): | |
| return '+'.join(topic.split(' ')) |
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.
Now look up. Further. Above the post title. See that grey text with the gist ID?
Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.
If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.
| --- | |
| layout: nil | |
| --- | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title type="text" xml:lang="en">{{ site.root_desc }}</title> | |
| <link type="application/atom+xml" href="http://paulstamatiou.com/feed/" rel="self"/> | |
| <link type="text" href="http://paulstamatiou.com" rel="alternate"/> | |
| <updated>{{ site.time | date_to_xmlschema }}</updated> |