Whenever in this Code or in any ordinance of the county any act is prohibited or is made or declared to be unlawful or an offense, or whenever in such Code or ordinance the doing of an act is required or the failure to do an act is declared to be unlawful, where no specific penalty is provided therefor, the violation of any such provision of this Code or any ordinance shall be punished by a fine not exceeding $1,000.00 or 60 days imprisonment, or both, except as otherwise provided by general law. The fines imposed therefor may be collected by execution. Each day any violation continues shall be a separate offense.