Skip to content

Instantly share code, notes, and snippets.

View guyboltonking's full-sized avatar

Guy Bolton King guyboltonking

  • Datadog
  • Scotland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am guyboltonking on github.
  • I am guyboltonking (https://keybase.io/guyboltonking) on keybase.
  • I have a public key whose fingerprint is 2AE0 DFF5 6982 AED9 41A7 AD35 6C58 D746 9D68 8811

To claim this, I am signing this object:

@guyboltonking
guyboltonking / GNUmakefile
Last active December 16, 2015 07:38
Fluent C++; in response to a challenge from Russel Winder's lightning talk at ACCU 2013
all: run-boost-range
run-boost-range: boost-range
./boost-range
boost-range: boost-range.cpp
clang++ -std=c++0x -Iboost_1_53_0 -o boost-range boost-range.cpp
@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)