March 2008
13 posts
I realize Twitter is just below Britney Spears on the list of things we expect...
– Mike Lee in History (beta)
Permutations
class Array
def permutations
return [self] if size < 2
inject([]) do |perms, el|
(self - [el]).permutations.each {|p| perms << [el] + p }
perms
end
end
end
>> (1..4).to_a.permutations
=> [[1, 2, 3, 4], [1, 2, 4, 3], [1, 3, 2, 4], [1, 3, 4, 2], [1, 4, 2, 3], [1, 4, 3, 2], [2, 1, 3, 4], [2, 1, 4, 3], [2, 3, 1, 4], [2, 3, 4, 1], [2, 4, 1, 3], [2, 4,...
One Senior VP in a Fortune 500 company recently told me that he’s...
– Tim Ferris on How to Stop Checking Email on the Evenings and Weekends
This is brilliant. Email is great, but sometimes it just doesn’t cut it. I think IM could resolve this on some occasions too.
[…] what if you were displaying a real-time slideshow of your party...
– Effortlessly Document Your Party with Simple Photo Projects
Then, setup an iPhoto smart album to get your most recent pics and link them into your screen saver. Instant pictures. Very cool.
In this age where communication has been dumbed down to chatting we depend so...
– Miss Tiffany of Typophile in a discussion of an irony mark
Screw you,” I can hear my douchebag former competitors comment-spamming, “we...
– Mike Lee’s Delicious Publishing
class Object
##
# @person.name unless @person.nil?
# vs
# ...
– A better try — chaining methods and nil
If you do not read the newspaper you are uninformed; if you do read the...
– Mark Twain (via zetahydrae)
Wheel Of Fortune Fail →
jayprickett:
A collection of videos guaranteed to make you feel smart, if only in comparison to these people.
Wow, these are spectacularly bad!
When considering in what language to write your next project, remember that your...
– You Used Ruby to Write WHAT?! by Zed Shaw