Showing posts with label unholidaycards. Show all posts
Showing posts with label unholidaycards. Show all posts

Monday, January 28, 2008

python valentine - a program for your day

I couldn't help but follow up with another unValentine card. The novel part about this card is that it can apply to anyone on Valentine's Day -- single, dating, married, whatever. It's written in Python, thanks to some help from Chris Slowe who made it not look like some crappy Pascal that never would have compiled.

The Python Valentine is perfect for any and all geeks in your life, except for Java programmers. Oh, and half the profits of all unHoliday Cards still go to fight pediatric cancer -- bonus feel-good feeling!


#!/usr/bin/env python

from relationships import *
from alcohol import shot, beer

def valentines_day(self):
if self.dating:
if self.money == 0:
self.dating = False
elif self.num_prev_dates == 0:
self.money -= dinner()
self.money -= pointless_gift()
else:
self.money -= dinner()/sqrt(self.num_prev_dates)
if randInt(self.num_prev_dates):
self.money -= pointless_gift()/self.num_prev_dates
elif self.married:
if self.years_married < 5:
self.money -= dinner()/(self.years_married ** 2)
else:
pass
else:
while self.blood_alcohol < .08:
self.blood_alcohol += beer()
while self.blood_alcohol < .22:
self.blood_alcohol += shot()
sleep(86400)
Paul Graham is still giving us hell for not writing it in Lisp.

Friday, January 18, 2008

choo-choo-choose you

Speaking of Simpsons references, I recently designed my own version of the infamous "I Choo-Choo-Choose You" card from that classic Simpsons episode.

It doesn't have any of the Simpsons-style charm, but I thought it'd be good enough to give to my friends this year. I typically hate Valentine's Day, but now that I have a card, I'm going to make an exception. Plus, if any of my 'friends' don't get the reference, I have the perfect reason to unfriend them.

Who said this holiday was just about materialism and superficial displays of affection?

Oh, and if you want some of your own, I've printed extra to save on cost; they're on sale at unholidaycards.com. After all the great feedback I got from Darwin Claus, I figured it was worth doing again.

Wednesday, December 12, 2007

unholiday cards

This started out as a joke, but I went ahead and created a bunch of unholiday greeting cards. Well, it's really only one design, but there's a big stack of them waiting to be sent to your friends and family. If you're curious, these Darwin Claus greeting cards are for sale at unholidaycards.com.

You'll have to visit the link to see inside.

And since I'm so full of the (un?)holiday spirit, half the profits are going to a charity I've become quite fond of.

It's never too late to send an unholiday card ;-)