Skip to content

Instantly share code, notes, and snippets.

@guyboltonking
guyboltonking / compressed_static_assets.rb
Created March 21, 2012 20:37
Slightly hacky rails middleware for serving up precompiled gzipped assets
require 'action_dispatch/middleware/static'
module Middleware
class FileHandler < ActionDispatch::FileHandler
def initialize(root, assets_path, cache_control)
@assets_path = assets_path.chomp('/') + '/'
super(root, cache_control)
end
def match?(path)
@itod
itod / split_keyboards.md
Last active March 23, 2024 21:00
Every "split" mechanical keyboard currently being sold that I know of