1
2
3
4
make_resourceful do
    actions :all
    before(:create) { current_object.user = current_user }
...

Ruby On make_resourceful plugin wit...

by Brianthecoder, March 14, 2008 00:00
3f91cf60c92b20940674ebdeb46f6582 Talk
1
2
3
4
  before(:each) do
    @critics = { 
      "Lisa Rose" => {"Lady in the Water" => 2.5, "Snakes on a Plane" => 3.5, 
...

Ruby On Pearson coefficient calcula...

by Brianthecoder, March 13, 2008 15:17

Here's a spec

3f91cf60c92b20940674ebdeb46f6582 Talk
1
2
3
4
  def pearson(first,second)
    common = first.select{|title,rating| second.include?(title) }
    return if common.empty?
...

Ruby Pearson coefficient calcula...

by Brianthecoder, March 13, 2008 14:08, 1 refactoring

This was ported from python...

3f91cf60c92b20940674ebdeb46f6582 Talk
1
2
3
4
require 'xmlrpc/client'

module Ping
...

Ruby On Technorati Ping

by Brianthecoder, November 06, 2007 02:23

A little shorter using xmlr...

3f91cf60c92b20940674ebdeb46f6582 Talk

Ruby On Technorati Ping

by Brianthecoder, November 06, 2007 01:01

No one has any optimizations?

3f91cf60c92b20940674ebdeb46f6582 Talk
1
2
3
4
require 'rubygems'
require 'uri'
require 'net/http'
...

Ruby Technorati Ping

by Brianthecoder, November 04, 2007 08:47, 2 refactorings, tagged with xml, technorati

This code is made to be in ...

3f91cf60c92b20940674ebdeb46f6582 Talk