What I'd do is just show up late to high school each day, walk into the vice principal's office and plead nolo contendere, and get a detention. Then by the end of the week I'd have enough detentions to roll them into a single saturday detention, so I'd show up to school then and bring my laptop and code which looked like work so they'd let me do it. Then I got a job at Google where they'd let me show up late and I'd talk in the cafeteria about all the coding I did while in saturday detention and people would be like, oh holy crap that was you?!
Ah, yeah this is what I should have done, but every adult I had around me treated detention like it was some kind of black mark.
Then again, I don't think laptops were normalized enough, and would probably have been banned during Saturday detention.
It's wonderful how you were able to use a system stacked against you for your own benefit, this is the kind of world I wish we could provide for everyone...