I hereby claim:
- I am bouchard on github.
- I am brady (https://keybase.io/brady) on keybase.
- I have a public key whose fingerprint is 9F51 0077 BCBA AC87 3017 DD84 9FF6 1476 A7C4 DFF6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Rails 4.1.0.rc1 through 4.2.0 and StateMachine don't play nice | |
# https://github.com/pluginaweek/state_machine/issues/295 | |
# https://github.com/pluginaweek/state_machine/issues/314 | |
require 'state_machine/version' | |
unless StateMachine::VERSION == '1.2.0' | |
# If you see this message, please test removing this file | |
# If it's still required, please bump up the version above | |
Rails.logger.warn "Please remove me, StateMachine version has changed." |
From b203bad71d53c4278dc97c30c0827b0430bae3ad Mon Sep 17 00:00:00 2001 | |
From: Brady Bouchard <brady@lunardawn.ca> | |
Date: Fri, 14 Nov 2008 13:20:04 -0700 | |
Subject: [PATCH] Added basic support for Rails 2.2 using compiled templates. | |
Options that affect the response header (pragma, cache-control, content-disposition) are not enabled. | |
Options passed to Prawn work as usual. | |
--- | |
lib/prawnto/template_handler/base.rb | 8 ++++++++ | |
1 files changed, 8 insertions(+), 0 deletions(-) |
RewriteEngine on | |
RewriteBase / | |
RewriteCond SUBDIR/%{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*) SUBDIR/$1 [L] |
From 67375bb902354b41bf99cb3ffbb9b4864c86e139 Mon Sep 17 00:00:00 2001 | |
From: Brady Bouchard <brady@lunardawn.ca> | |
Date: Mon, 1 Feb 2010 14:24:13 +1000 | |
Subject: [PATCH] Added an option to force all tags to lowercase. | |
Use: | |
Put | |
TagList.force_lowercase = true | |
in environment.rb | |
--- |
<?php | |
header('Content-type: text/csv; charset=utf-8'); | |
$xml = simplexml_load_file('mnemosyne.xml'); | |
$lines = array(); | |
foreach($xml->item as $item) { | |
$q = $item->Q; | |
$q = strip_tags((string) $q, '<u><ul><li>'); | |
$q = str_replace('<dt>','',$q); |
#!/usr/bin/env ruby | |
## Modified from Gem Session's Dumple, available at: | |
## http://gem-session.com/2010/07/dumping-database-from-within-rails-project | |
fail_gently = ARGV.include?("--fail-gently") | |
gzip = ARGV.include?("--compress") | |
if ARGV.include?("-i") | |
puts "*******************************************************" |
compile '/' do | |
filter :erb | |
layout 'default' | |
end | |
compile '*' do | |
# item[:extension] returns 'html.erb' for multi-dotted filename | |
ext = item[:extension].nil? ? nil : item[:extension].split('.').last | |
if ext == 'erb' |