Skip to content

Instantly share code, notes, and snippets.

View TeoTwawki's full-sized avatar
🤒
sick of social features on github

TeoTwawki

🤒
sick of social features on github
View GitHub Profile
@shakna-israel
shakna-israel / Prose.md
Created October 23, 2019 23:32
Obfuscating Lua

Obfuscating Lua

I've had some fun ruining Python recently, but Python is what I use at work. I prefer to use other languages when I'm doing stuff for fun.

And obfuscation only really makes sense in fun and competition - given a suffeciently determined actor, your code will be reverse engineered. Unless you write it in Malboge.

For this particular experiment, I'll be using Lua 5.3. As I'll probably need to dive into some of the less portable functions to commit our atrocities, I can't guarantee it will run on other popular versions like Luajit or 5.1.


@Potherca
Potherca / Everything Wrong with the Code on That Mug.md
Last active October 17, 2022 04:27
Everything Wrong with the Code on That Mug

There is a post going round on facebook of a mug with some code on it. There's even a reddit post on it. The mug looks quite nice but sadly the code on it is crap.

  • The code is not placed in a separate namespace
  • A var keyword is not used when assigning the Coffee object
  • The object oriented style abstraction is broken
  • There is no container for the coffee