Skip to content

Instantly share code, notes, and snippets.

Jay Sanders mindtonic

Block or report user

Report or block mindtonic

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 keybase.md

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:

View Working-out-Facebook-Galleries-installation.patch
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 +
View Working-out-Facebook-Galleries-installation.patch
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 Aug 24, 2011
Seeder Class Example Files
View seed.rake
require 'active_record'
require 'lib/seeder'
namespace :seed do
#
# All
#
task(:all => :environment) do
@mindtonic
mindtonic / Convert File Storage to Cloud Storage.rb
Created Oct 12, 2010
Methods to build a Rake task to convert attachment_fu file store images to the Rackspace cloud
View Convert File Storage to Cloud Storage.rb
# 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
You can’t perform that action at this time.