New technique could produce nail polish and generate fuel cells simultaneously.