This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
$.extend({ | |
keys: function(obj) { | |
var a = []; | |
$.each(obj, function(k){ a.push(k) }); | |
return a; | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**** 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Photo < ActiveRecord::Base | |
belongs_to :user | |
has_attached_file :file, | |
:styles => { | |
:bigger => "73x73>", | |
:normal => "48x48>", | |
:mini => "24x24>", | |
:flash_badge => '240x180!' | |
}, | |
:storage => :s3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder