Sunday, September 8, 2013

Embedding a gist in blogger - an experiment that finally worked

Hi

test


I copied the gems to my box and installed them with the below command.. (it did take a while to install). Thus, please give it sometime before you think it might hang for ever.
mohnish@mohnish-laptop:~/xxxx/latest/prj_name/vendor/cache$ gem install ruby-debug19-0.11.6.gem -l
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed linecache19-0.5.12
Successfully installed ruby-debug-base19-0.11.25
Successfully installed ruby-debug19-0.11.6
3 gems installed
Installing ri documentation for linecache19-0.5.12...
Installing ri documentation for ruby-debug-base19-0.11.25...
Installing ri documentation for ruby-debug19-0.11.6...
Installing RDoc documentation for linecache19-0.5.12...
Installing RDoc documentation for ruby-debug-base19-0.11.25...
Installing RDoc documentation for ruby-debug19-0.11.6...
In case you want to see how I was able to embed the gist in my blog, you can have a look at the stackoverflow question that I posted here on the same when I had initially faced issues to get this to work for me. Credits to the original blogger's post.





2 comments:

  1. Replies
    1. Hi Siva, I'm not quite sure why this isn't working for you but I can tell you about another of way of doing this that I got to know about some time back. Basically, every gist nowadays in github has an embed link. Let's say I'm referring to this gist - https://gist.github.com/boddhisattva/4132084. What you can do is copy the embed link wrt the gist and paste it in your 'HTML' section of your Blogger blog(in between the starting and ending div tag) whenever you are editing your blog.

      This way I think you should be good to go.

      Delete