Quadratures and cubatures with Dirac deltas