1
0
mirror of https://github.com/osmarks/random-stuff synced 2025-09-17 17:44:04 +00:00

reorganize, upload some things

This commit is contained in:
2021-03-21 19:36:03 +00:00
parent 46068fabcb
commit 0ecadee189
18 changed files with 553 additions and 0 deletions

16
code-guessing/anagram.py Normal file
View File

@@ -0,0 +1,16 @@
(
( __import__ ( "forbiddenfruit" ) . curse ( tuple, "then", lambda a, f: f ( *a ) ), )
. then ( lambda _: (
__import__ ( "collections" ) . Counter,
__import__ ( "operator" ) . eq,
__import__ ( "sys" ) . modules,
) )
. then ( lambda count, eq, mods: (
lambda a, b: ( eq (
count ( str.replace ( ( str.lower ( a ) ), " ", "" ) ),
count ( str.replace ( ( str.lower ( b ) ), " ", "" ) ),
) ), )
. then ( lambda entry: ( ( mods [ __name__ ] ), )
. then ( lambda mod: ( ( setattr ( mod, "entry", entry ) ), ) ) )
)
)