class Company
  has_many :stores
end
...

Ruby Active Record getting uniqu...

by kibyegn.myopenid.com, February 03, 2012 01:40, 1 refactoring, tagged with rails, short clean ruby, active record

I still think I could make ...

6d071ab3b1a56ebe43df404356331163 Talk
select distinct(user_id) from facebook_post_comments where page_id =some_page_id and user_id in (select distinct(user_id) from facebook_post_comments where page_id = some_other_page_id)

Python MySQL O(n^2)

by https://www.google.com/accounts/o8/id?id=AItOawlXyCfS3cPSoWLo635rrzVPpmDr0-DUdus, October 20, 2011 12:54, 2 refactorings, tagged with sql, mysql, short clean ruby

Hello! Trying to run this q...

55502f40dc8b7c769880b10874abc9d0 Talk
def interesting?
    !(
      message =~ /\[maven-release-plugin\]/ || 
...

Ruby Bunch of Ruby Regexes

by Drew, July 20, 2011 09:19, 3 refactorings, tagged with short clean ruby

I will likely need to add a...

F95c0f59cb9cef293c54bffd193a2652 Talk