The judge may issue warrants for offenses against the penal laws of the state committed within the corporate limits of said city and shall have authority to issue warrants for offenses against the ordinances of said city.