Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

+ source /Users/mbs/.rvm/scripts/rvm
++ [[ -f /etc/rvmrc ]]
+++ whoami
++ [[ root = \m\b\s ]]
++ [[ -f /Users/mbs/.rvmrc ]]
++ [[ -f /Users/mbs/.rvm/scripts/rvm ]]
++ rvm_prefix_path=/Users/mbs/.
++ [[ . = \. ]]
++ rvm_path=/Users/mbs/.rvm
++ rvm_scripts_path=/Users/mbs/.rvm
source $HOME/.bash/twitterrc
# rvm-install added line:
if [[ -s /Users/mbs/.rvm/scripts/rvm ]] ; then source /Users/mbs/.rvm/scripts/rvm ; fi
function c {
shopt -q nocasematch || resetcase=1
shopt -s nocasematch
for i in *; do [ -d "$i" ] && [[ "$i" == *"$1"* ]] && cd "$i" && break; done
[ $resetcase ] && shopt -u nocasematch
}
Loading development environment (Rails 2.0.2)
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Users/mbs/.rvm/gems/ruby/1.8.7/gems/mysql-2.8.1/lib/mysql_api.bundle
Expected in: flat namespace
dyld: Symbol not found: _mysql_init
Referenced from: /Users/mbs/.rvm/gems/ruby/1.8.7/gems/mysql-2.8.1/lib/mysql_api.bundle
Expected in: flat namespace
Trace/BPT trap
@bs
bs / gist:198210
Created September 30, 2009 16:14
inline media
jQuery(function($) {
$.extend({
keys: function(obj) {
var a = [];
$.each(obj, function(k){ a.push(k) });
return a;
}
});
**** Britt: Post Tweet Success: Firefox 3.5.2 ****
POST /status/update HTTP/1.1
Host: twitter.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
class Photo < ActiveRecord::Base
belongs_to :user
has_attached_file :file,
:styles => {
:bigger => "73x73>",
:normal => "48x48>",
:mini => "24x24>",
:flash_badge => '240x180!'
},
:storage => :s3,
def refresh
if params[:last_check] && params[:last_check].respond_to?(:to_i)
@last_check = params[:last_check].to_i
if current_user.current_status.id > @last_check
@last_check = current_user.current_status.id
end
else
@last_check = nil
end