Skip to content

Instantly share code, notes, and snippets.

View shinyay's full-sized avatar

Shinya Yanagihara shinyay

View GitHub Profile
@shinyay
shinyay / gist_tag.rb
Last active December 17, 2015 08:39 — forked from j5ik2o/gist_tag.rb
I revised to prevent from occurring exception which is caused by nil. If you put gist without language field, exception occurred. Then I put nil check.
# A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
# by: Brandon Tilly
# Source URL: https://gist.github.com/1027674
# Post http://brandontilley.com/2011/01/31/gist-tag-for-jekyll.html
#
# Example usage: {% gist 1027674 gist_tag.rb %} //embeds a gist for this plugin
require 'cgi'
require 'digest/md5'
require 'net/https'