Ramsey methods in analysis