The city council is authorized to provide that as to violations of any provisions of ordinances duly ordained by the city council for which a penalty is not specifically provided by general state law are a misdemeanor and shall be punishable by a fine not exceeding $1,000.00 or by imprisonment not to exceed 180 days, or both.