Skip to content

Instantly share code, notes, and snippets.

View Osseta's full-sized avatar

Anthony Richardson Osseta

  • Techony Pty Ltd
  • Adelaide, Australia
View GitHub Profile
@Osseta
Osseta / gist:1935778
Created February 28, 2012 22:40
Mockup of a non-whitspace html templating language
#
# Mockup of a non whitespaced sensative HTML/ERB replacement
<div.my-class :
<span#my-id.my-other-class.and-another-class :
actual <b :content> to display
>
>
outputs:
@Osseta
Osseta / gist:1624535
Created January 17, 2012 03:52
Monkey Patch Rails PG Adapter to support calculated values
require 'active_record/connection_adapters/abstract_adapter'
require 'active_support/core_ext/kernel/requires'
require 'active_support/core_ext/object/blank'
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter