An implementation of Kohn鈥揝ham density functional theory within the TURBOMOLE program package with Gaussian-type orbitals (GTO) as basis functions is reported that treats molecular and periodic systems of any dimensionality on an equal footing. Its key component is a combination of density fitting/resolution of identity (DF) approximation and continuous fast multipole method (CFMM) applied for the electronic Coulomb term. This DF-CFMM scheme operates entirely in the direct space and partitions Coulomb interactions into far-field part evaluated using multipole expansions and near-field contribution calculated employing density fitting. Computational efficiency and favorable scaling behavior of our implementation approaching O(N) for the formation of Kohn鈥揝ham matrix is demonstrated for various molecular and periodic systems including three-dimensional models with unit cells containing up to 640 atoms and 19072 GTO basis functions.