Skip to content

Instantly share code, notes, and snippets.

@jonsuh
jonsuh / url_encode.rb
Created February 1, 2015 17:28
Jekyll URL Encode
# _plugins/url_encode.rb
require 'liquid'
require 'uri'
# Percent encoding for URI conforming to RFC 3986.
# Ref: http://tools.ietf.org/html/rfc3986#page-12
module URLEncode
def url_encode(url)
return URI.escape(url, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
end
@awesome
awesome / favicons-touch-icons-tiles-2014.html
Last active August 29, 2015 13:58
This is the answer to my stackoverflow question posted here : http://stackoverflow.com/questions/22824947/what-are-all-the-favicon-html-implementations-as-of-2014-cross-browser-inclusi (I could not get this posted before it got down-voted and closed)
<!--
# This is the answer to my stackoverflow question posted here:
# http://stackoverflow.com/questions/22824947/what-are-all-the-favicon-html-implementations-as-of-2014-cross-browser-inclusi
# (I could not get this posted before it got down-voted and closed)
-->
<!-- Favicon (standard)-->
<!--
# https://github.com/audreyr/favicon-cheat-sheet#ico-file