Niles Peg, more commonly known as "Sleeping Ugly", is a teacher who supervises students during detention. As his nickname suggests, he is always asleep. His constant sleeping allows Lee to sneak out during detention to continue his investigation about The Prank. It turns out that his name is actually Niles Peg and he tried to open the pyramid but he was zapped causing him to fall asleep.
- Blitzkrieg Bop'd (First appearance)
- Jock and Roll High School (Cameo appearance)
- Skate or Die (Cameo appearance)
- Math Math Revolution (Cameo appearance)
- Dudes of Darkness (Cameo appearance)
- 28 Sneezes Later (Cameo appearance)
- Disco History Times (Cameo appearance)
- The Tag Along (Cameo appearance)
- The Down With Lee Club (Cameo appearance)
- The Hair Incident (Cameo appearance)
- School Hard (Cameo appearance)
- Escape From Fort Nigma (Cameo appearance)
- The Curse of Earl Nigma (Cameo appearance)
- The Hydra (Cameo appearance)
- Fight or Flight (Cameo appearance)
- Pyramid Scheme
- Follow that Finwich
Thoughout the series Niles did not show any notable skills until the season 3 finale where he was shown to have some sort of mystical powers. His eyes turned into triangles, and he spoke "Manifestum" in an otherworldly way.
He may have the ability to teleport and/or simply move at high speed with the stealth to aid, as seen when he moved from one seat to another within seconds. ("Pyramid Scheme")
- His "nickname" was first coined by Lee Ping.
- Although Nilles is only interacted with in a few episodes, he often has cameos during the detention scenes, always sleeping in random positions.
- Various episodes show him sleeping on top of a filing cabinet, clutching onto a globe.
- His nickname is an obvious play on "Sleeping Beauty".
- His name has the letters of "Lee Ping" except the S scrambled.
- His name scrambled will form "SLEEPING".
- It is never shown what he did before "falling asleep".