View jekyll_picture_tag_hook.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jekyll plugin to replace Markdown image syntax with {% picture %} tag for crafting responsive images | |
# Adapted from https://gist.github.com/mmistakes/77c68fbb07731a456805a7b473f47841 | |
# Use as a gem: https://github.com/tadamcz/jekyll-markdown-responsive-image | |
Jekyll::Hooks.register [:pages, :documents], :pre_render do |post, payload| | |
file_ext = post.extname.tr('.', '') | |
# This regex will match all of the following correctly: | |
# |
View diffocop.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff origin/master --name-only --diff-filter=ACMRTUXB | grep "\.rb$" | tr "\n" " " | xargs bundle exec rubocop -A --force-exclusion |