Text this: Nonsmooth mechanics and applications