Skip to content

Instantly share code, notes, and snippets.

@lomnom
Last active February 12, 2024 22:54
Show Gist options
  • Save lomnom/4f80bcaf55d05be6b294cd3eebcab2dd to your computer and use it in GitHub Desktop.
Save lomnom/4f80bcaf55d05be6b294cd3eebcab2dd to your computer and use it in GitHub Desktop.
Hello world landscape
'The peaks of Mt. CodeMore are carpeted with an impenetrable armour of snow.'
"""Below that snow lies sparkly logic."""
#
#-##
##-#.
@print ###
@ ( ##-###.
lambda ###=# ##
a ## #=
: b #=#.
if #### -
setattr( #=### #-.
a #### # ## #
, "__call__",# ## # #
lambda a:a ###-###=#-## ##
. __doc__ #### ### ## ##
. __getitem__(slice( #### ###### ####
###-##### ##### ####
- True* ###### #####-#.
##-## #####
2 ###
# ###- ## ####-###.
, # #-## ###-###
## # ###-##.
#-##
##-##
##-#-#####
##-##-## ##-##.
###=-## ###.
None,- ## #-# ####- # ###
3) ##-## ### ##
) #### # -###
) else a##-## ####
()( ##- #-##### ## ###-###.
) ##### # ##-###
) ###=# #-#.
class a ( ##=# ## #
#### =#
## - # == # .
### #=###.
## = .
###.
#
#
#-
#
## #----(
#. ( ) (=--D
# ( ) (
#- ( )====>
# ( ) (=-----R
### ( ) (
# #----(
#
#=
##
##. # - # #---(
# ## #. # ## . # - ( ) (=----D
# + = # ## # ( ) (
## ( and )===>
# ( ) (
# ) (--A
#---(
#--------------------------------------------------------------(
( # (=---A
( # (
( # The Pillars Of Judgement. (==-------C
( # (
( # (
( #==============================================================(
( # (
( # (---d
( # omnipresent & OMNIVOROUS. (
( # (===-------G
( # (
#--------------------------------------------------------------(
#----------\
( # \===----A
( # \
( str )#=========>
) # /--D
) # /==----------M
#----------/
#--------------------------------------------------------------(
) # (
) # (=-------B
) # Judgement pillars. (
) # (==================--K
) # (
) #==============================================================(
) # (
) # (===-----A
) # OMNIVOROUS & omnipresent. (
) # (==-------S
) # (
#--------------------------------------------------------------(
#---\
# ( \
# (===]
##. # ( /==----H
##= -##. #---/
): #####
## ### .
##.##=
#
#.
#
#
##-
# #.
##=#-#
##=###.
####.
#--## .####.
# ## #
#= #
#--##=##
#=#
##-------###
#.=# |
##- /|\
# VvV
#----#. V
#.
"""do leers on wet pho-flail leech?"""
@lomnom
Copy link
Author

lomnom commented Feb 9, 2024

Tested on python 3.9.6.
Prints "hello world".

Less cursed code:

@print
@(lambda a: b if setattr(a,"__call__",(lambda a: a.__doc__.__getitem__(slice(-True*2,None,-3)))) else a()())
class a(str):  """do leers on wet pho-flail leech?"""

Code that is not cursed enough:

@print
@(lambda a: b if setattr(a,"__call__",(lambda a: a.__doc__)) else a()())
class a(str):  """Hello World"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment