In the midst of an awful earnings environment, a few companies are showing corporate America how it’s done.