It is said that Burlington, Wi. had a law as late as the 1970's (some say it may still be on the books) that Negros could not stay in the city overnight. Up to the 1960's, nearby Lake Geneva, Wi. banned Jews from even entering the town.

Here's one of my favorites: It is a violation of local law for any pilot or passenger to carry an ice cream cone in their pocket while
either flying or waiting to board a plane. - Lowes Crossroads, Delaware

It's perfectly legal here in Chester to do to death a Welshman inside the City Walls, so long as you do it with a crossbow after eight PM (Curfew. Or it was, long ago).

Up in Scotland, in Jedburgh, they used to practise something called 'Jedhart Justice'. In simple language, this penal code meant that you hanged a man, then put him on trial. Not surprisingly, very few people were aquitted.