From quadratic polynomials and continued fractions to modular forms