Sparse Bounds in Harmonic Analysis and Semiperiodic Estimates