{"id":6499,"date":"2014-01-11T08:20:57","date_gmt":"2014-01-11T13:20:57","guid":{"rendered":"http:\/\/www.ericfeminella.com\/blog\/?p=6499"},"modified":"2014-03-10T15:56:38","modified_gmt":"2014-03-10T19:56:38","slug":"github-quick-tip","status":"publish","type":"post","link":"https:\/\/www.ericfeminella.com\/blog\/2014\/01\/11\/github-quick-tip\/","title":{"rendered":"GitHub Quick Tip"},"content":{"rendered":"<p>Recently, I was looking for a simple way to view an html page which is part of a <a href=\"https:\/\/github.com\/\" title=\"GitHub\" target=\"_blank\">GitHub<\/a> project&#8217;s source. In particular, I wanted to provide links on the <a href=\"https:\/\/github.com\/efeminella\/backbone-eventbroker\" title=\"Backbone.EventBroker\" target=\"_blank\">Backbone.EventBroker<\/a> project&#8217;s main page so users could run the <a href=\"http:\/\/htmlpreview.github.com\/?https:\/\/github.com\/efeminella\/backbone-eventbroker\/blob\/master\/spec\/spec-runner.html\" target=\"_blank\">specs<\/a> and view the <a href=\"http:\/\/htmlpreview.github.com\/?https:\/\/github.com\/efeminella\/backbone-eventbroker\/blob\/master\/examples\/basic\/index.html\" target=\"_blank\">example<\/a>.<\/p>\n<p>Fortunately, as is the case with most things on GitHub, this is quite easy to accomplish; requiring nothing more than appending the URL of the page in the projects source to the <a href=\"http:\/\/htmlpreview.github.com\/\" target=\"_blank\">http:\/\/htmlpreview.github.com\/?<\/a> query string: <\/p>\n<pre lang=\"html\">\r\nhttp:\/\/htmlpreview.github.com\/?https:\/\/github.com\/<username>\/<project-name>\/blob\/<path\/to\/page>.html\r\n<\/pre>\n<p>Simple and useful indeed!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I was looking for a simple way to view an html page which is part of a GitHub project&#8217;s source. In particular, I wanted to provide links on the Backbone.EventBroker project&#8217;s main page so users could run the specs and view the example. Fortunately, as is the case with most things on GitHub, this is quite easy to accomplish;&#8230; <a class=\"read-more\" href=\"https:\/\/www.ericfeminella.com\/blog\/2014\/01\/11\/github-quick-tip\/\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[201],"tags":[241,227],"class_list":["post-6499","post","type-post","status-publish","format-standard","hentry","category-quick-tips","tag-git","tag-github"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/6499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/comments?post=6499"}],"version-history":[{"count":0,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/6499\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/media?parent=6499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/categories?post=6499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/tags?post=6499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}