//
comes from programming and is generally used to denote a comment or explanation that should be ignored by the compiler or computer. Its purpose is to leave notes and instructions for future programmers or anyone else that needs to understand what is happening in code. The literary equivalent is a footnote.
In the examples you provide, the words following the //
are comments of emotions or actions to let the reader know what the author was feeling or doing.
I think I owe myself a THWACK. //ashamed
This means that whoever said this was ashamed of their actions. Similar constructions include using :emotion:
or an emoticon:
Yeah, that is great idea. :eyeroll:
This is great news! :)
Other programming style behaviors include ^H
and nested or malformed ( ) [ ] { }
pairs:
I will stalk^H^H^H^H^Hfollow you everywhere!
I like pizza (with olives (except green olives (but you can put them on your half of the pizza))).