平時不燒香,臨時抱佛腳 [ㄆㄧㄥˊ ㄕˊ ㄅㄨˋ ㄕㄠ ㄒㄧㄤ , ㄌㄧㄣˊ ㄕˊ ㄅㄠˋ ㄈㄛˊ ㄐㄧㄠˇ; ping2 shi2 bu4 shao1 xiang1 , lin2 shi2 bao4 fo2 jiao3]
  lit. to clasp the Buddha's feet when danger arises (idiom); fig. to profess devotion only when in trouble
  doing things at the last minute
  to make a hasty last-minute effort (often refers to cramming for exams)
  ◄ ►