Parametric ring with holes

Script in OpenSCAD