There is a wiki site to go with this book:
http://lolcode.comHere is a sample of user contributed code, for a
basic calculator:
HAI
CAN HAS STDIO?
VISIBLE "Welcome to the basic calculator."
I HAS A NUMBER1 IZ 0
I HAS A NUMBER2 IZ 0
I HAS A OPERATION IZ NOTHING
I HAS A LINE IZ NOTHING
I HAS A COMPLETE IZ NOTWORKZ0RZ
I HAS A RESULT IZ 0
VISIBLE SAME LINEZ "Try what: "
TXT ME A LINE
IZ MAGICZ ON LINE WITH /(\n) (.?) (\n)/ ACTUALLY WORKZ0RZ?
NUMBER1 IZ MAGICZ1
OPERATION IZ MAGICZ2
NUMBER2 IZ MAGICZ3
COMPLETE IZ WORKZ0RZ
KTHXBYE
:(
VISIBLE "Can not parse line."
COMPLETE IZ NOT WORKZ0RZ
KTHXBYE
IZ COMPLETE WORKZ0RZ?
WTF IZ OPERATION?
OMG +
RESULT IZ UP NUMBER1!!NUMBER2
OMG -
RESULT IZ DOWN NUMBER1!!NUMBER2
OMG *
RESULT IZ TIMEZ NUMBER1!!NUMBER2
OMG /
RESULT IZ DIVIDEZ NUMBER1!!NUMBER2
KTHXBYE
:(
VISIBLE "Didn't work :("
DIAF! 2 "This is dieing"
VISIBLE "Result is: " ANDZ RESULT ANDZ "."
KTHXBYE
And for a donation of a 12 pack of beer, you can attend a LOLCODE workshop:
I CAN HAS VAR?