This is the output from a cool command I found on ones zeros majors and minors
history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' \
| sort -rn | head
124 rake
106 svn
84 ss
36 cd
30 git
26 rm
26 ls
16 sc
10 mate
5 psql
How about you?
And, again from ozmm is the try command. I think I’m going to start adding this to my projects, seems really simple and helpful.
class Object
##
# @person ? @person.name : nil
# vs
# @person.try(:name)
def try(method)
send method if respond_to? method
end
end
This entry was posted
on Thursday, May 8th, 2008 at 12:00 pm and is filed under Code, Tech, Thoughts.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

Leave a Comment