SYMMETRIES, ANOMALIES AND THEIR APPLICATIONS TO STRING THEORY AND CONDENSED MATTER