to hang from a ceiling beam; most commonly used to describe hanging oneself as a form of suicide
to study hard
(literary) to study with great diligence; refers to the idiom 头悬梁,锥刺股tóuxuánliángzhuīcìgǔ where one ties their hair to a beam to prevent falling asleep