добавила пакеты matrix, calculator
This commit is contained in:
19
repo/packages/matrix/files/usr/bin/matrix
Executable file
19
repo/packages/matrix/files/usr/bin/matrix
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
import random
|
||||
import time
|
||||
import sys
|
||||
|
||||
colors = [32, 33, 34, 35, 36, 37]
|
||||
chars = "01"
|
||||
|
||||
try:
|
||||
while True:
|
||||
for _ in range(random.randint(5, 20)):
|
||||
for __ in range(random.randint(1, 10)):
|
||||
color = random.choice(colors)
|
||||
sys.stdout.write(f"\033[{color}m{random.choice(chars)}\033[0m")
|
||||
sys.stdout.write(" ")
|
||||
sys.stdout.write("\n")
|
||||
time.sleep(0.05)
|
||||
except KeyboardInterrupt:
|
||||
print("\n\033[0mДождь остановлен🌧️")
|
||||
13
repo/packages/matrix/meta.json
Normal file
13
repo/packages/matrix/meta.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "matrix",
|
||||
"version": "1.0",
|
||||
"description": "Матричный дождь из цифр в терминале",
|
||||
"depends": [],
|
||||
"files": [
|
||||
{
|
||||
"source": "usr/bin/matrix",
|
||||
"destination": "/usr/bin/matrix",
|
||||
"permissions": 493
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user