When the whirlwind passes by, the wicked is no more, but the righteous has an everlasting foundation. In Russellville, Arkansas a man received ten months in jail for contempt of court after mooning a judge. Robert White was serving as his own attorney in a municipal court on a disorderly conduct charge. White stated the hearing was a kangaroo court and began using foul language. Then He mooned the judge.
Judges do tend to view such things as contempt of court.
While I was a probation and parole officer a man I was supervising attacked his girlfriend injuring her and he also attacked his own parents. He received only minor punishment for the attacks but he had violated his probation. In a hearing to revoke his probation the judge was very kind and allowed him three days to take care of things prior to going to prison. Just after the judge left the courtroom the man began using foul language cursing the judge. The judge was told and he reentered the courtroom calling the court back into session.