Difference between revisions of "User:TheyCallMeTim13"
Jump to navigation
Jump to search
(Created page with 'Code Happy, Code Freely, Be Awesome. class Person(Parents): ## "Life is really simple, ## but we insist on making it complicated." ##…') |
(→External Links) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[File:Ufo-girl-square-100x100.jpg]] | ||
+ | <!-- | ||
+ | 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="line-height:1.15em;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() | ||
− | * [http:// | + | <span style="color:rgb(249, 38, 114);">self</span>.code() |
+ | </p> | ||
+ | |||
+ | |||
+ | ==== Syntax Highlighter ==== | ||
+ | * [http://pinetools.com/syntax-highlighter pinetools.com/syntax-highlighter] |
Latest revision as of 21:30, 30 April 2018
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()