This is a simple PHP script that displays your last few Foursquare checkins on a Google map. You will need to generate a Foursquare OAuth token and a Google Maps API key. Insert them at the indicated locations in the file, place the file in a directory accessible by your web server, and you're done.
I wrote this as a replacement for the Google Latitude Public Location Badge. There's also a blog post about it.