Gym Pass is a stand-alone companion app for FitBuddy that lets you create a barcode pass for your gym membership.
If your gym uses a barcode scanner, the GymPass can save your membership number and display a barcode to scan. Gym locations can be found via Foursquare.