Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mikejarema on github.
* I am mikejarema (https://keybase.io/mikejarema) on keybase.
* I have a public key ASAO3DcoN8KsxmljV0k2dzp7iKqKj7Msels8eLnwx9fgsAo
To claim this, I am signing this object:
@mikejarema
mikejarema / hashie_deep_find_failure.rb
Created September 7, 2016 18:35
Isolated test case to demonstrate Hashie failure due to the nature of "active_support/..." require statement
require 'hashie'
# Include an ActiveSupport extension *other than* ActiveSupport::HashWithIndifferentAccess
require 'active_support/core_ext/string/inflections'
hash = {}.extend(Hashie::Extensions::DeepFind).deep_find("something")
# => NameError: uninitialized constant ActiveSupport::HashWithIndifferentAccess
@mikejarema
mikejarema / reserved-usernames.js
Last active August 29, 2015 14:26 — forked from antonlvovych/reserved-usernames.js
Merging reserved words from other forks
// A list of possible usernames to reserve to avoid
// vanity URL collision with resource paths
// It is a merged list of the recommendations from this Quora discussion:
// http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features
// Country TLDs found here:
// http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains//Country_code_top-level_domains
// Languages found here:
# An example Jekyll Liquid tag. Utilizes the new plugin system.
#
# 1. Make a _plugins directory in your jekyll site, and put this class in a file there.
# 2. In anyone of your pages, you can use the 'render_time' liquid tag like so:
# {% render_time %} => November 27, 2014
#
# Or with a custom date format (format here: http://apidock.com/ruby/DateTime/strftime):
# {% render_time %b %d, %Y at %l:%M%P %} => Nov 27, 2014 at 4:38pm
module Jekyll