Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View rendered output of a gist?

Tags:

git

github

gist

I'm sure I'm being dim, but is it possible to view the rendered output of a gist?

This is the gist I'm interested in: https://gist.github.com/844752/420cc52eb4910fe8fa2bec9e13daab18b6230503

Where can I see how it actually renders?

like image 703
flossfan Avatar asked May 23 '12 09:05

flossfan


People also ask

How can I see a gist?

@SeanKPS You can get the contents of a gist by visiting the raw url (developer.github.com/v3/gists/#get-a-single-gist) ( files. [file_name]. raw ). rawgit probably proxies the request to github, rewriting the response headers to add a Content-Type: text/html .

Can you comment on gists?

And of course you can edit… Ever wish you could comment on a gist? Well now you can! We've also updated the blog comments to the new style as well.


2 Answers

rawgit.com provides this service. To use rawgit.com, simply replace the domain of the raw view of the gist or github file you want to view with rawgit.com. For example:

https://gist.githubusercontent.com/mbostock/844752/raw/index.html 

to

https://rawgit.com/mbostock/844752/raw/index.html 

or

https://raw.githubusercontent.com/caffinatedmonkey/Hello-World-PSP/master/main.cpp 

to

https://rawgit.com/caffinatedmonkey/Hello-World-PSP/master/main.cpp 
like image 183
0xcaff Avatar answered Oct 06 '22 19:10

0xcaff


RawGithub.com will let you render anything on Github, including gists. Two examples:

  • https://gist.github.com/mbostock/4341574, and the rendered version
  • https://gist.github.com/hemulin/4148842, and the rendered version
like image 20
Dee Newcum Avatar answered Oct 06 '22 18:10

Dee Newcum