Skip to content

Instantly share code, notes, and snippets.

View raid5's full-sized avatar

Adam McDonald raid5

View GitHub Profile
def index
#@activity = Activity.find(params[:activity_id])
#@accomplishments = @activity.accomplishments.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
@accomplishments = Accomplishment.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
end
@raid5
raid5 / droid_send_gps.sh
Created April 2, 2010 18:35
Script for sending GPS coordinates to the Android emulator
#!/usr/bin/expect --
# Test expect script to telnet.
spawn telnet localhost 5554
expect "OK"
send "geo fix -122.03180 37.33081\r"
expect "OK"
send "exit\r"
# end of expect script.