Whenever in any provision of this Code or in any city ordinance, an
act is declared unlawful or a nuisance or is prohibited, or the performance
of any act is required or the failure to do any act is declared unlawful,
each violation or noncompliance thereof shall, where another penalty is not
otherwise provided for, subject the violator to a penalty for the violation
thereof, not exceeding three hundred dollars ($300.) for one offense, recoverable
with costs, together with judgment of imprisonment not exceeding ninety (90)
days if the amount of such judgment and costs shall not be paid; except where
otherwise provided by state law.