Skip to content

Instantly share code, notes, and snippets.

@panozzaj
Created June 28, 2011 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panozzaj/1052017 to your computer and use it in GitHub Desktop.
Save panozzaj/1052017 to your computer and use it in GitHub Desktop.
@baird_rt asked me what else I could be except for 'Definitely Alive!'
- if @last_tweet_time.nil? || @last_checkin_time.nil?
.header.hmm
Had problems querying services. Try again later.
- else
- last_action = @last_tweet_time > @last_checkin_time ? @last_tweet_time : @last_checkin_time
- if last_action > 2.hours.ago
.header.alive
Anthony is definitely alive!
- elsif last_action > 6.hours.ago
.header.alive
Anthony is almost certainly alive.
- elsif last_action > 1.day.ago
.header.alive
Anthony is more than likely alive.
- elsif last_action > 2.days.ago
.header.probably_alive
Anthony is probably alive.
- elsif last_action > 7.days.ago
.header.questionable
Anthony is of questionable nature. Check his latest statuses to see if he went hiking or something...
- else
.header.problematic
Well, I hoped it would never get like this...
@shipstar
Copy link

L5: Would [@last_tweet_time, @last_checkin_time].max work?

@panozzaj
Copy link
Author

panozzaj commented Jun 29, 2011 via email

@shipstar
Copy link

shipstar commented Jun 29, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment