Move scripts dir inside hm
And remove weird path contraptions
This commit is contained in:
parent
050901da2f
commit
edeef96133
49 changed files with 2 additions and 11 deletions
20
hm/scripts/spongebob
Executable file
20
hm/scripts/spongebob
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i python3 --pure
|
||||
#! nix-shell -p python3
|
||||
|
||||
import random
|
||||
import sys
|
||||
|
||||
# maj = True
|
||||
|
||||
for line in sys.stdin:
|
||||
new_line = ""
|
||||
for c in line:
|
||||
maj = random.random() > 0.5
|
||||
if maj:
|
||||
nc = c.upper()
|
||||
else:
|
||||
nc = c.lower()
|
||||
new_line += nc
|
||||
# maj = not maj
|
||||
print(new_line, end="")
|
Loading…
Add table
Add a link
Reference in a new issue