Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Friesen jeremyf

View GitHub Profile
View rack-pdf_preflight.rb
require 'base64'
require 'nokogiri'
module Rack
# Rack middleware to inline css and images from underlying application so it
# can be proccessed by PDFKit without additional network requests.
#
# For example, this middleware will transform this response:
#
# <html>
@jpstroop
jpstroop / c4l_loris_lightning_talk.md
Last active Dec 12, 2015
Lightning talk re: Loris <https://github.com/pulibrary/loris> for code4lib 2013.
View c4l_loris_lightning_talk.md
You can’t perform that action at this time.