Difference between revisions of "User:TheyCallMeTim13"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | <!-- | ||
+ | Syntax Highlighter: | ||
+ | url: http://pinetools.com/syntax-highlighter | ||
+ | Lang: Lua | ||
+ | Theme: Monokai Sublime | ||
+ | --> | ||
Code Happy, Code Freely, Be Awesome. | Code Happy, Code Freely, Be Awesome. | ||
+ | <!-- <pre> | ||
+ | class Person(Parents): | ||
+ | ## "Life is really simple, | ||
+ | ## but we insist on making it complicated." | ||
+ | ## - Confucius | ||
+ | def life(self): | ||
+ | while self.alive(): | ||
+ | |||
+ | find(self) | ||
+ | |||
+ | self.learn(World, People, Books) | ||
+ | self.teach(All) | ||
+ | |||
+ | if self.sad(): | ||
+ | sad.stop(self) | ||
+ | print(self.smile()) | ||
+ | self.dontWorry() | ||
+ | self.beHappy() | ||
+ | |||
+ | self.beAwesome() | ||
+ | |||
+ | self.code() | ||
+ | |||
+ | </pre> --> | ||
+ | <p style="white-space:pre;font-family:'Lucida Console';display:block;overflow-x:auto;padding:0.5em;background:rgb(35, 36, 31);color:rgb(248, 248, 242);"><span style="color:rgb(249, 38, 114);">class</span> <span style="color:rgb(248, 248, 242);">Person</span>(<span style="color:rgb(248, 248, 242);">Parents</span>): | ||
+ | <span style="color:rgb(117, 113, 94);">## "Life is really simple, </span> | ||
+ | <span style="color:rgb(117, 113, 94);">## but we insist on making it complicated."</span> | ||
+ | <span style="color:rgb(117, 113, 94);">## - Confucius</span> | ||
+ | <span style="color:rgb(249, 38, 114);">def</span> <span style="color:rgb(166, 226, 46);">life</span><span style="color:rgb(248, 248, 242);">(<span style="color:rgb(249, 38, 114);">self</span>)</span>: | ||
+ | <span style="color:rgb(249, 38, 114);">while</span> <span style="color:rgb(249, 38, 114);">self</span>.alive(): | ||
+ | |||
+ | find(<span style="color:rgb(249, 38, 114);">self</span>) | ||
+ | |||
+ | <span style="color:rgb(249, 38, 114);">self</span>.learn(World, People, Books) | ||
+ | <span style="color:rgb(249, 38, 114);">self</span>.teach(All) | ||
+ | |||
+ | <span style="color:rgb(249, 38, 114);">if</span> <span style="color:rgb(249, 38, 114);">self</span>.sad(): | ||
+ | sad.stop(<span style="color:rgb(249, 38, 114);">self</span>) | ||
+ | print(<span style="color:rgb(249, 38, 114);">self</span>.smile()) | ||
+ | <span style="color:rgb(249, 38, 114);">self</span>.dontWorry() | ||
+ | <span style="color:rgb(249, 38, 114);">self</span>.beHappy() | ||
+ | |||
+ | <span style="color:rgb(249, 38, 114);">self</span>.beAwesome() | ||
+ | |||
+ | <span style="color:rgb(249, 38, 114);">self</span>.code() | ||
+ | </p> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== External Links == | == External Links == | ||
+ | * [http://matti2.com MattI2.com] | ||
− | * [http:// | + | ==== Syntax Highlighter ==== |
+ | * [http://pinetools.com/syntax-highlighter pinetools.com/syntax-highlighter] |
Revision as of 09:00, 17 March 2017
Code Happy, Code Freely, Be Awesome.
class Person(Parents): ## "Life is really simple, ## but we insist on making it complicated." ## - Confucius def life(self): while self.alive(): find(self) self.learn(World, People, Books) self.teach(All) if self.sad(): sad.stop(self) print(self.smile()) self.dontWorry() self.beHappy() self.beAwesome() self.code()