Text this: Hamiltonian and Gradient Flows, Algorithms and Control