Skip to content

Instantly share code, notes, and snippets.

Chris Beer cbeer

Block or report user

Report or block cbeer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View iiif-example.json
"@context": "",
"@id": "",
"height": 3393,
"profile": [
"protocol": "",
"service": {
"@context": "",
cbeer / main.rb
Created May 30, 2017 — forked from coorasse/main.rb
CanCanCan Issue
View main.rb
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
gemfile(true) do
source ''
gem 'rails', '5.1.0' # use correct rails version

Keybase proof

I hereby claim:

  • I am cbeer on github.
  • I am cbeer ( on keybase.
  • I have a public key ASBTnRdXnwr4Tl54H5ESYNubL0mw7TpbARvBfut3vkwBmQo

To claim this, I am signing this object:

cbeer / LICENSE.txt
Last active Feb 9, 2017 — forked from mejackreed/LICENSE.txt
Leaflet-IIIF Cropping
View LICENSE.txt
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View 1_nw1
# curl -X PUT "http://localhost:4567/netWorth/nw1/" -d @nw1 -H "Content-Type: text/turtle"
<> a <> .
cbeer /
Created Aug 14, 2014
Apply license file to all repositories
# Dependencies:
# jq:
# hub:
cat > /tmp/LICENSE <<EOF
©yyyy The Board of Trustees of the Leland Stanford Junior University.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
View gist:c62d364c10e3150bbdf1
input { stdin { } }
filter {
grok {
match => { "message" => "%{COMMONAPACHELOG} %{QS:agent} %{QS:referrer}" }
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
View blacklight_configuration_helper.rb
module BlacklightConfigurationHelper
include Blacklight::ConfigurationHelperBehavior
def default_sort_field
if params.has_key? :q { |k,config| config.default_for_user_query }.first || super
You can’t perform that action at this time.