Wouldn't it be easier to just make it a point to carry a small amount of cash, specifically for the homeless? Unless, of course, you don't trust them to use cash wisely. But then one must wonder why you would give them anything in the first place.