Skip to content

Instantly share code, notes, and snippets.

View johnreilly's full-sized avatar

John Reilly johnreilly

View GitHub Profile
# gem install sinatra sinatra-contrib icalendar
require 'sinatra'
require "sinatra/reloader" if development?
require 'icalendar'
require 'date'
get '/schedule.ics' do
cal = Icalendar::Calendar.new
@johnreilly
johnreilly / postgis-1.5.7.patch
Created November 1, 2012 20:14
Patching homebrew/versions postgis15 to use postgis 1.5.7
From 51bd994764fdd881d6a9a8bc238ed24777454595 Mon Sep 17 00:00:00 2001
From: John Reilly <[email protected]>
Date: Thu, 1 Nov 2012 15:20:14 -0500
Subject: [PATCH] updating to postgis-1.5.7
---
postgis15.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/postgis15.rb b/postgis15.rb
@johnreilly
johnreilly / keybase.md
Created September 18, 2014 15:55
keybase.md

Keybase proof

I hereby claim:

  • I am johnreilly on github.
  • I am johnreilly (https://keybase.io/johnreilly) on keybase.
  • I have a public key whose fingerprint is 3AC1 A09A E319 2FDA 8156 1226 DB72 7DDF E1B7 D06A

To claim this, I am signing this object:

@johnreilly
johnreilly / association_scope_enum_test.rb
Last active May 2, 2017 15:09
Rails 5.1 association scope test
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
# gem "rails", '= 5.0.2'