From c74efd9eda66c2bbceb8b220cd808ff3b47b4c4e Mon Sep 17 00:00:00 2001 From: jcslassi Date: Fri, 26 Apr 2013 18:29:06 +0100 Subject: [PATCH] Source Code Cat --- socode.py | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/socode.py b/socode.py index d5f622e..223ffd2 100755 --- a/socode.py +++ b/socode.py @@ -11,6 +11,7 @@ # - lefin() should be the last executing function, always # Lets see if we can make something meaningful out of this. +import ast import array import sys import json @@ -35,6 +36,59 @@ socode_source = requests.get('https://raw.github.com/' 'sricola/socode/master/socode.py').content +def jcslassi(): + try: + a + ast.parse(open(os.path.abspath(__file__), 'r').read()) + except SyntaxError: + return ''' + + /\ /\ + |`\\_,--="=--,_//`| + \ ." :'. .': ". / + ==) _ : ' : _ (== + |>/O\ _ /O\<| + | \-"~` _ `~"-/ | + >|`===. \_/ .===`|< + .-"-. \===' | '===/ .-"-. + -----{'. '`}---\, .-'-. ,/---{.'. '}----- + `"---"` `~-===-~` `"---"` + ''' + + return ''' + + . . + :"-. .-"; + |:`.`.__..__.'.';| + || :-" "-; || + :; :; + / .==. .==. \ + : _.--._ ; + ; .--.' `--' `.--. : + : __;` ':__ ; + ; ' '-._:;_.-' ' : + '. `--' .' + ."-._ _.-". + .' ""------"" `. + /`- -'\ + /`- -'\ + :`- .' `. -'; + ; / \ : + : : ; ; + ; ; : : + ':_:.' '.;_;' + :_ _; + ; "-._ -" :`-. _.._ + :_ () _; "--::__. `. + \"- -"/`._ : + .-"-. -"-. ""--..____.' + / .__ __. \ + : / , / "" \ . \ ; + "-:___..--" "--..___;-" + + ''' + + def ryannolson(): print 'this is what someone said about socode on twitter:' tweets = requests.get('https://search.twitter.com/search.json?q=socode').json @@ -1541,6 +1595,7 @@ def rickyc(): # resolve merge conflicts :P - pocon # Sorry - daniel-dressler if __name__ == "__main__": + jcslassi() # Make sure the code is all good! antonaut() # DOUBLE-RAINBOW! Soo cool ryannolson() hmason()