Skip to content

Instantly share code, notes, and snippets.

View mindtonic's full-sized avatar

Jay Sanders mindtonic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mindtonic on github.
  • I am mindtonic (https://keybase.io/mindtonic) on keybase.
  • I have a public key whose fingerprint is C68E EAB8 AEEE A561 993D 0D72 2CCE 64B4 E004 8481

To claim this, I am signing this object:

From 8142eb61d276cda63f11daf8da015455cd0aa93e Mon Sep 17 00:00:00 2001
From: Jay Sanders <mindtonic@gmail.com>
Date: Mon, 23 Jan 2012 10:32:41 -0500
Subject: [PATCH] Working out Facebook Galleries installation
---
Gemfile.lock | 8 +-
app/controllers/facebook_controller.rb | 2 +-
app/controllers/workspace/galleries_controller.rb | 53 +-
app/models/facebook/page.rb | 29 +
From 8142eb61d276cda63f11daf8da015455cd0aa93e Mon Sep 17 00:00:00 2001
From: Jay Sanders <mindtonic@gmail.com>
Date: Mon, 23 Jan 2012 10:32:41 -0500
Subject: [PATCH] Working out Facebook Galleries installation
---
Gemfile.lock | 8 +-
app/controllers/facebook_controller.rb | 2 +-
app/controllers/workspace/galleries_controller.rb | 53 +-
app/models/facebook/page.rb | 29 +
@mindtonic
mindtonic / seed.rake
Created August 24, 2011 00:36
Seeder Class Example Files
require 'active_record'
require 'lib/seeder'
namespace :seed do
#
# All
#
task(:all => :environment) do
@mindtonic
mindtonic / Convert File Storage to Cloud Storage.rb
Created October 12, 2010 18:18
Methods to build a Rake task to convert attachment_fu file store images to the Rackspace cloud
# New Model with Cloudfiles Storage
class Photo < ActiveRecord::Base
has_attachment :content_type => :image,
:max_size => 1.megabyte,
:storage => :cloud_files,
:resize_to => "fill 128x128"
end
# Old Model with overwritten attachment methods
class OldPhoto < Photo