Public Gists by inem

Gravatar
Wed Nov 25 01:48:22 -0800 2009
1
2
3
# Debugging ActiveResource Connections
# http://www.jroller.com/bokmann/entry/debugging_activerecord_web_services
 
Gravatar
Wed Oct 28 23:18:18 -0700 2009

      
Gravatar
Wed Oct 28 23:17:41 -0700 2009

      
Gravatar
Wed Oct 28 22:48:32 -0700 2009
1
2
3
A Note
======
 
Gravatar
Sun Oct 18 21:57:53 -0700 2009
1
2
3
# Oleg Andreev <oleganza@gmail.com> Oct 16, 2009
#
# This demonstrates how to perform a request to the same Rails instance without hitting HTTP server.
Gravatar
Tue Oct 06 01:09:32 -0700 2009
1
2
3
-@runs~
  :only
    .id
Gravatar
Fri Aug 28 19:34:57 -0700 2009
1
2
3
reinstall mysql - 64bit 10.5 build
  - then reload the db
remove old macports dir - http://trac.macports.org/wiki/FAQ#uninstall
Gravatar
Fri Aug 28 08:57:59 -0700 2009
1
2
3
RELEASE_OUTPUT_PATH = File.expand_path("~/Projects/releases/Squeemote")
TARGET_NAME = "Squeemote"
CONFIGURATION = ENV['CONFIGURATION'] || "Distribution"
Gravatar
Wed Aug 26 04:08:55 -0700 2009
1
2
3
          <%= link_to(truncate(run.filename, 10),
"/dashboard?graph=true&run_id=#{run.id}\
&filter[start_date(1i)]=#{params["filter"]["start_date(1i)"]}\
Gravatar
Sun Aug 23 19:59:10 -0700 2009
1
2
3
Poor Man's Deploy
=================
 
Gravatar
Sun Aug 23 16:33:53 -0700 2009
1
2
3
def index
  @people = People.all.age_less_than_20
  console.log(@people)
Gravatar
Sun Aug 23 16:14:01 -0700 2009
1
2
3
-@humans => humanoids
  :only
    .name => login
Gravatar
Sun Aug 23 16:13:11 -0700 2009
1
2
3
-@humans => aa
  :except
    .name
Gravatar
Sun Aug 23 16:11:20 -0700 2009
1
2
3
-@humans => people
  :only
    .name => login
Gravatar
Sun Aug 23 14:33:16 -0700 2009
1
2
3
                        user system total real
to_json 7.280000 0.440000 7.720000 ( 7.811976)
jazz 25.920000 1.840000 27.760000 ( 28.229717)
Gravatar
Sun Aug 23 14:20:34 -0700 2009
1
2
3
Started
..........
Finished in 0.12678 seconds.
Gravatar
Sun Aug 23 13:28:00 -0700 2009
1
2
3
def index
  honk('Handcar is ruby on rails console for your firebug')
  honk(['this is stirng',2,{:hash_in => 'Array'},5,6])
Gravatar
Sun Aug 23 08:57:45 -0700 2009
1
2
3
# Controller
  def jazz_party
    @humans = Human.all[0..1]
Gravatar
Sun Aug 23 07:49:44 -0700 2009
1
2
3
@humans.to_json(
  :methods => [:login, :enhanced_name, :hello_world], :except => [:created_at, :updated_at],
  :include => {:pets => { :except => [:human_id, :pet_type_id, :created_at, :updated_at],
Gravatar
Sun Aug 23 07:41:32 -0700 2009
1
2
3
# Controller
  def dull_party