Skip to content

Instantly share code, notes, and snippets.

View alibby's full-sized avatar

Andy Libby alibby

View GitHub Profile
### Keybase proof
I hereby claim:
* I am alibby on github.
* I am alibby (https://keybase.io/alibby) on keybase.
* I have a public key ASA6IVoLmSRubCJRaA8nMyDmFgK4GXc7da11UpqzUq_-6go
To claim this, I am signing this object:
@alibby
alibby / gist:5302227
Created April 3, 2013 15:26
libspatialite failed to build on 10.8.3
alibby:local alibby$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install libspatialite
==> Downloading http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-3.0.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/libspatialite-3.0.1.tar.gz
tar xf /Library/Caches/Homebrew/libspatialite-3.0.1.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libspatialite/3.0.1 --with-sysroot=/usr/local
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libspatialite/3.0.1 --with-sysroot=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
return unless session['devise.facebook_data']
return unless session['devise.facebook_data']['extra']
if data = session["devise.facebook_data"]["extra"]["raw_info"]
user.facebook_id = data["id"]
end
diff --git a/Gemfile b/Gemfile
index b02fe9e..e24581d 100644
--- a/Gemfile
+++ b/Gemfile
@@ -43,3 +43,4 @@ group :test do
end
gem 'ruby-debug', :group => [:development, :test]
+gem 'exifr', '1.0.4'
\ No newline at end of file
@alibby
alibby / gist:871893
Created March 16, 2011 02:13
Photo update
attributes = params[:photo]
photo = Array(current_user.photos(:per_page => 1, :page => 1, :id => params[:id])).first
photo.update :photo => attributes