OSDN Git Service

Added EasterEggs
authorYukidaruma-dev <yukir0dev@gmail.com>
Tue, 16 Apr 2019 22:28:17 +0000 (07:28 +0900)
committerYukidaruma-dev <yukir0dev@gmail.com>
Tue, 16 Apr 2019 22:28:17 +0000 (07:28 +0900)
eg-arrest/usr/bin/arrest [new file with mode: 0644]
eg-arrest/usr/share/arrest/color.py [new file with mode: 0644]
eg-arrest/usr/share/arrest/main.py [new file with mode: 0755]
eg-ottosei/usr/bin/ottosei [new file with mode: 0755]
eg-ottosei/usr/share/ottosei/ottosei.jpeg [new file with mode: 0644]
eg-ottosei/usr/share/ottosei/ottosei1.mp3 [new file with mode: 0644]
eg-ottosei/usr/share/ottosei/ottosei2.mp3 [new file with mode: 0644]

diff --git a/eg-arrest/usr/bin/arrest b/eg-arrest/usr/bin/arrest
new file mode 100644 (file)
index 0000000..c9c4329
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+python3 /usr/share/arrest/main.py
\ No newline at end of file
diff --git a/eg-arrest/usr/share/arrest/color.py b/eg-arrest/usr/share/arrest/color.py
new file mode 100644 (file)
index 0000000..ce56556
--- /dev/null
@@ -0,0 +1,33 @@
+class colors:
+#Style
+    bold = '\033[1m'
+    underlined = '\033[4m'
+#Color
+    black = '\033[30m'
+    red = '\033[31m'
+    green = '\033[32m'
+    yellow = '\033[33m'
+    blue = '\033[34m'
+    magenta = '\033[35m'
+    cyan = '\033[36m'
+    lgray = '\033[37m'
+    darkgray = '\033[90m'
+    lred = '\033[91m'
+    lgreen = '\033[92m'
+    lyellow = '\033[93m'
+    lblue = '\033[94m'
+    lmagenta = '\033[95m'
+    lcyan = '\033[96m'
+#Backgroundcolors
+    bground_black = '\033[40m'
+    bground_red = '\033[41m'
+    bground_green = '\033[42m'
+    bground_yellow = '\033[43m'
+    bground_blue = '\033[44m'
+    bground_magenta = '\033[45m'
+    bground_cyan = '\033[46m'
+#Reset All
+    reset = '\033[0m'
+#How to use?
+#from clicolors import colors
+#print(colors.red + "red text" + colors.reset)
\ No newline at end of file
diff --git a/eg-arrest/usr/share/arrest/main.py b/eg-arrest/usr/share/arrest/main.py
new file mode 100755 (executable)
index 0000000..feb2d21
--- /dev/null
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#Modules import
+from color import colors
+from time import sleep
+
+#setting
+auth = True
+message_loop = "Change Here!"
+def do_loop_run():
+    while True:
+        sleep(1)
+        print(message_loop)
+        print(message_loop)
+        print(message_loop)
+
+#Basic Program
+while auth:
+    check_run = input(colors.yellow + "This is loop program. Run this program?(y/N):" + colors.reset)
+    if check_run == "n" or check_run == "N" or check_run == "":
+        print("Cancel")
+        auth = False
+    elif check_run == "y" or check_run == "Y":
+        print("Enter 'Ctrl + C' to exit.")
+        do_loop_run()
+    else:
+        print("Retry please.")
diff --git a/eg-ottosei/usr/bin/ottosei b/eg-ottosei/usr/bin/ottosei
new file mode 100755 (executable)
index 0000000..9dade59
Binary files /dev/null and b/eg-ottosei/usr/bin/ottosei differ
diff --git a/eg-ottosei/usr/share/ottosei/ottosei.jpeg b/eg-ottosei/usr/share/ottosei/ottosei.jpeg
new file mode 100644 (file)
index 0000000..deb853a
Binary files /dev/null and b/eg-ottosei/usr/share/ottosei/ottosei.jpeg differ
diff --git a/eg-ottosei/usr/share/ottosei/ottosei1.mp3 b/eg-ottosei/usr/share/ottosei/ottosei1.mp3
new file mode 100644 (file)
index 0000000..af4d0ed
Binary files /dev/null and b/eg-ottosei/usr/share/ottosei/ottosei1.mp3 differ
diff --git a/eg-ottosei/usr/share/ottosei/ottosei2.mp3 b/eg-ottosei/usr/share/ottosei/ottosei2.mp3
new file mode 100644 (file)
index 0000000..65a0033
Binary files /dev/null and b/eg-ottosei/usr/share/ottosei/ottosei2.mp3 differ