Commit b65f2bc3379167b870ef0f2b43321178e28222ed
Experimentation with Ini Files
This is the code in a v. transient state, trying to get an ini file to work. It is mostly scraps of experiments.Zach committed on 10/14/2017, 2:59:04 PM
Parent: 78dba966c7a817e9f2bc27770d55dd9d8a7f8d26
Files changed
closing_remark.py | changed |
kriya-helper.py | changed |
breath_of_fire.py | deleted |
asanas/__init__.py | added |
asanas/breath_of_fire.py | added |
asanas/cat_cow.py | added |
asanas/hollow_body.py | added |
asanas/intertwingled.py | added |
asanas/mantra.py | added |
asanas/meditation.py | added |
asanas/sounds/__init__.py | added |
asanas/sounds/kriya_chime.wav | added |
asanas/sounds/starting_bell-old1.wav | added |
asanas/sounds/starting_bell.wav | added |
cat_cow.py | deleted |
hollow_body.py | deleted |
config-fun.py | added |
intertwingled.py | deleted |
mantra.py | deleted |
morning-kriya.ini | added |
meditation.py | deleted |
possible_func.py | added |
sounds/kriya_chime.wav | deleted |
sounds/starting_bell-old1.wav | deleted |
sounds/starting_bell.wav | deleted |
closing_remark.py | ||
---|---|---|
@@ -1,7 +1,7 @@ | ||
1 | 1 … | |
2 | 2 … | def main(): |
3 | - print """ | |
3 … | + yag = """ | |
4 | 4 … | |
5 | 5 … | |
6 | 6 … | |
7 | 7 … | |
@@ -34,8 +34,9 @@ | ||
34 | 34 … | |
35 | 35 … | |
36 | 36 … | |
37 | 37 … | |
38 | -""" | |
38 … | + """ | |
39 … | + print(yag) | |
39 | 40 … | |
40 | 41 … | if __name__ == "__main__": |
41 | 42 … | main() |
kriya-helper.py | ||
---|---|---|
@@ -1,16 +1,11 @@ | ||
1 | 1 … | import time |
2 | 2 … | import pyglet |
3 | -import intertwingled | |
4 | -import breath_of_fire | |
5 | -import hollow_body | |
6 | -import cat_cow | |
7 | -import mantra | |
8 | -import meditation | |
3 … | +from asanas import * | |
9 | 4 … | import closing_remark |
10 | 5 … | |
11 | 6 … | def main(): |
12 | - print """ | |
7 … | + splashpage = """ | |
13 | 8 … | |
14 | 9 … | |
15 | 10 … | |
16 | 11 … | |
@@ -24,9 +19,9 @@ | ||
24 | 19 … | 888 Y88b 888 888 Y88b 888 888 888 |
25 | 20 … | 888 Y88b 888 888 "Y88888 "Y888888 |
26 | 21 … | 888 |
27 | 22 … | Y8b d88P |
28 | - "Y88P" | |
23 … | + 'Y88P" | |
29 | 24 … | 888 888 888 |
30 | 25 … | 888 888 888 |
31 | 26 … | 888 888 888 |
32 | 27 … | 8888888888 .d88b. 888 88888b. .d88b. 888d888 |
@@ -41,16 +36,17 @@ | ||
41 | 36 … | |
42 | 37 … | |
43 | 38 … | |
44 | 39 … | """ |
45 | - begin = raw_input("Press Enter > ") | |
40 … | + print(splashpage) | |
41 … | + begin = input("Press Enter > ") | |
46 | 42 … | if begin == "": |
47 | 43 … | intertwingled.beginning() |
48 | - summary() | |
44 … | + intention() | |
49 | 45 … | closing_remark.main() |
50 | 46 … | |
51 | -def summary(): | |
52 | - print """ | |
47 … | +def intention(): | |
48 … | + summary = """ | |
53 | 49 … | |
54 | 50 … | |
55 | 51 … | |
56 | 52 … | |
@@ -81,10 +77,11 @@ | ||
81 | 77 … | |
82 | 78 … | |
83 | 79 … | |
84 | 80 … | """ |
85 | - print ("Start your Kriya? [y/N]") | |
86 | - run = raw_input("> ") | |
81 … | + print(intention) | |
82 … | + print("Start your Kriya? [y/N]") | |
83 … | + run = input("> ") | |
87 | 84 … | # only run if the user types y |
88 | 85 … | if run == "y": |
89 | 86 … | kriya() |
90 | 87 … |
breath_of_fire.py | ||
---|---|---|
@@ -1,47 +1,0 @@ | ||
1 | -import time | |
2 | -import intertwingled | |
3 | - | |
4 | -def main(duration): | |
5 | - mins = 0 | |
6 | - print """ | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | -888888b. 888 888 | |
14 | -888 "88b 888 888 | |
15 | -888 .88P 888 888 | |
16 | -8888888K. 888d888 .d88b. 8888b. 888888 88888b. | |
17 | -888 "Y88b 888P" d8P Y8b "88b 888 888 "88b | |
18 | -888 888 888 88888888 .d888888 888 888 888 | |
19 | -888 d88P 888 Y8b. 888 888 Y88b. 888 888 | |
20 | -8888888P" 888 "Y8888 "Y888888 "Y888 888 888 | |
21 | - | |
22 | - | |
23 | - | |
24 | - .d888 8888888888 d8b | |
25 | - d88P" 888 Y8P | |
26 | - 888 888 | |
27 | - .d88b. 888888 8888888 888 888d888 .d88b. | |
28 | -d88""88b 888 888 888 888P" d8P Y8b | |
29 | -888 888 888 888 888 888 88888888 | |
30 | -Y88..88P 888 888 888 888 Y8b. | |
31 | - "Y88P" 888 888 888 888 "Y8888 | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - | |
39 | - | |
40 | - """ | |
41 | - while mins != duration: | |
42 | - time.sleep(60) | |
43 | - mins += 1 | |
44 | - intertwingled.transition() | |
45 | - | |
46 | -if __name__ == "__main__": | |
47 | - main() |
asanas/__init__.py | ||
---|---|---|
@@ -1,0 +1,1 @@ | ||
1 … | +__all__ = ["breath_of_fire", "cat_cow", "intertwingled", "hollow_body", "mantra", "meditation"] |
asanas/breath_of_fire.py | ||
---|---|---|
@@ -1,0 +1,36 @@ | ||
1 … | +import time | |
2 … | +import intertwingled | |
3 … | + | |
4 … | +def main(): | |
5 … | + mins = 0 | |
6 … | + bof = """ | |
7 … | +888888b. 888 888 | |
8 … | +888 "88b 888 888 | |
9 … | +888 .88P 888 888 | |
10 … | +8888888K. 888d888 .d88b. 8888b. 888888 88888b. | |
11 … | +888 "Y88b 888P" d8P Y8b "88b 888 888 "88b | |
12 … | +888 888 888 88888888 .d888888 888 888 888 | |
13 … | +888 d88P 888 Y8b. 888 888 Y88b. 888 888 | |
14 … | +8888888P" 888 "Y8888 "Y888888 "Y888 888 888 | |
15 … | + | |
16 … | + | |
17 … | + | |
18 … | + .d888 8888888888 d8b | |
19 … | + d88P" 888 Y8P | |
20 … | + 888 888 | |
21 … | + .d88b. 888888 8888888 888 888d888 .d88b. | |
22 … | +d88""88b 888 888 888 888P" d8P Y8b | |
23 … | +888 888 888 888 888 888 88888888 | |
24 … | +Y88..88P 888 888 888 888 Y8b. | |
25 … | + "Y88P" 888 888 888 888 "Y8888 | |
26 … | + """ | |
27 … | + print('\n'*6) | |
28 … | + print(bof) | |
29 … | + print('\n'*8) | |
30 … | + while mins != 0: | |
31 … | + time.sleep(60) | |
32 … | + mins += 1 | |
33 … | + intertwingled.transition() | |
34 … | + | |
35 … | +if __name__ == "__main__": | |
36 … | + main() |
asanas/cat_cow.py | ||
---|---|---|
@@ -1,0 +1,49 @@ | ||
1 … | +import time | |
2 … | +from . import intertwingled | |
3 … | + | |
4 … | +def main(duration): | |
5 … | + cc = """ | |
6 … | + | |
7 … | + | |
8 … | + | |
9 … | + | |
10 … | + | |
11 … | + | |
12 … | + | |
13 … | + .d8888b. 888 | |
14 … | +d88P Y88b 888 | |
15 … | +888 888 888 | |
16 … | +888 8888b. 888888 | |
17 … | +888 "88b 888 | |
18 … | +888 888 .d888888 888 | |
19 … | +Y88b d88P 888 888 Y88b. | |
20 … | + "Y8888P" "Y888888 "Y888 | |
21 … | + | |
22 … | + | |
23 … | + | |
24 … | + .d8888b. | |
25 … | +d88P Y88b | |
26 … | +888 888 | |
27 … | +888 .d88b. 888 888 888 | |
28 … | +888 d88""88b 888 888 888 | |
29 … | +888 888 888 888 888 888 888 | |
30 … | +Y88b d88P Y88..88P Y88b 888 d88P | |
31 … | + "Y8888P" "Y88P" "Y8888888P" | |
32 … | + | |
33 … | + | |
34 … | + | |
35 … | + | |
36 … | + | |
37 … | + | |
38 … | + | |
39 … | + """ | |
40 … | + print(cc) | |
41 … | + mins = 0 | |
42 … | + while mins != duration: | |
43 … | + time.sleep(60) | |
44 … | + mins += 1 | |
45 … | + intertwingled.transition() | |
46 … | + | |
47 … | +if __name__ == "__main__": | |
48 … | + main() | |
49 … | + |
asanas/hollow_body.py | ||
---|---|---|
@@ -1,0 +1,47 @@ | ||
1 … | +import time | |
2 … | +from . import intertwingled | |
3 … | + | |
4 … | +def main(duration): | |
5 … | + hb = """ | |
6 … | + | |
7 … | + | |
8 … | + | |
9 … | + | |
10 … | + | |
11 … | + | |
12 … | +888 888 888 888 | |
13 … | +888 888 888 888 | |
14 … | +888 888 888 888 | |
15 … | +8888888888 .d88b. 888 888 .d88b. 888 888 888 | |
16 … | +888 888 d88""88b 888 888 d88""88b 888 888 888 | |
17 … | +888 888 888 888 888 888 888 888 888 888 888 | |
18 … | +888 888 Y88..88P 888 888 Y88..88P Y88b 888 d88P | |
19 … | +888 888 "Y88P" 888 888 "Y88P" "Y8888888P" | |
20 … | + | |
21 … | + | |
22 … | + | |
23 … | +888888b. 888 | |
24 … | +888 "88b 888 | |
25 … | +888 .88P 888 | |
26 … | +8888888K. .d88b. .d88888 888 888 | |
27 … | +888 "Y88b d88""88b d88" 888 888 888 | |
28 … | +888 888 888 888 888 888 888 888 | |
29 … | +888 d88P Y88..88P Y88b 888 Y88b 888 | |
30 … | +8888888P" "Y88P" "Y88888 "Y88888 | |
31 … | + 888 | |
32 … | + Y8b d88P | |
33 … | + "Y88P" | |
34 … | + | |
35 … | + | |
36 … | + | |
37 … | + | |
38 … | + """ | |
39 … | + print(hb) | |
40 … | + mins = 0 | |
41 … | + while mins != duration: | |
42 … | + time.sleep(60) | |
43 … | + mins += 1 | |
44 … | + intertwingled.transition() | |
45 … | + | |
46 … | +if __name__ == "__main__": | |
47 … | + main() |
asanas/intertwingled.py | ||
---|---|---|
@@ -1,0 +1,21 @@ | ||
1 … | +import time | |
2 … | +import pyglet | |
3 … | +import os | |
4 … | + | |
5 … | +'''These are global variables for the whole kriya-helper ''' | |
6 … | +dir_path = os.path.dirname(os.path.realpath(__file__)) | |
7 … | + | |
8 … | +def beginning(): | |
9 … | + pyglet.resource.path = ['@asanas.sounds'] | |
10 … | + chime = pyglet.resource.media('starting_bell.wav', streaming=False) | |
11 … | + chime.play() | |
12 … | + | |
13 … | +def transition(): | |
14 … | + pyglet.resource.path = ['@asanas.sounds'] | |
15 … | + chime = pyglet.resource.media('kriya_chime.wav', streaming=False) | |
16 … | + breath = 0 | |
17 … | + | |
18 … | + chime.play() | |
19 … | + while breath != 1: | |
20 … | + time.sleep(11.2) | |
21 … | + breath += 1 |
asanas/mantra.py | ||
---|---|---|
@@ -1,0 +1,46 @@ | ||
1 … | +import time | |
2 … | +from . import intertwingled | |
3 … | + | |
4 … | +def main(duration): | |
5 … | + mant = """ | |
6 … | + | |
7 … | + | |
8 … | + | |
9 … | + | |
10 … | + | |
11 … | + | |
12 … | + | |
13 … | + | |
14 … | + | |
15 … | + | |
16 … | + | |
17 … | +888b d888 888 | |
18 … | +8888b d8888 888 | |
19 … | +88888b.d88888 888 | |
20 … | +888Y88888P888 8888b. 88888b. 888888 888d888 8888b. | |
21 … | +888 Y888P 888 "88b 888 "88b 888 888P" "88b | |
22 … | +888 Y8P 888 .d888888 888 888 888 888 .d888888 | |
23 … | +888 " 888 888 888 888 888 Y88b. 888 888 888 | |
24 … | +888 888 "Y888888 888 888 "Y888 888 "Y888888 | |
25 … | + | |
26 … | + | |
27 … | + | |
28 … | + | |
29 … | + | |
30 … | + | |
31 … | + | |
32 … | + | |
33 … | + | |
34 … | + | |
35 … | + | |
36 … | + | |
37 … | + """ | |
38 … | + print(mant) | |
39 … | + mins = 0 | |
40 … | + while mins != duration: | |
41 … | + time.sleep(60) | |
42 … | + mins += 1 | |
43 … | + intertwingled.transition() | |
44 … | + | |
45 … | +if __name__ == "__main__": | |
46 … | + main() |
asanas/meditation.py | ||
---|---|---|
@@ -1,0 +1,47 @@ | ||
1 … | +import time | |
2 … | +from . import intertwingled | |
3 … | + | |
4 … | +def main(duration): | |
5 … | + medi = """ | |
6 … | + | |
7 … | + | |
8 … | + | |
9 … | + | |
10 … | + | |
11 … | + | |
12 … | + | |
13 … | + | |
14 … | + | |
15 … | + | |
16 … | + | |
17 … | +888b d888 888 d8b 888 888 d8b | |
18 … | +8888b d8888 888 Y8P 888 888 Y8P | |
19 … | +88888b.d88888 888 888 888 | |
20 … | +888Y88888P888 .d88b. .d88888 888 888888 8888b. 888888 888 .d88b. 88888b. | |
21 … | +888 Y888P 888 d8P Y8b d88" 888 888 888 "88b 888 888 d88""88b 888 "88b | |
22 … | +888 Y8P 888 88888888 888 888 888 888 .d888888 888 888 888 888 888 888 | |
23 … | +888 " 888 Y8b. Y88b 888 888 Y88b. 888 888 Y88b. 888 Y88..88P 888 888 | |
24 … | +888 888 "Y8888 "Y88888 888 "Y888 "Y888888 "Y888 888 "Y88P" 888 888 | |
25 … | + | |
26 … | + | |
27 … | + | |
28 … | + | |
29 … | + | |
30 … | + | |
31 … | + | |
32 … | + | |
33 … | + | |
34 … | + | |
35 … | + | |
36 … | + | |
37 … | + | |
38 … | + """ | |
39 … | + print(medi) | |
40 … | + mins = 0 | |
41 … | + while mins != duration: | |
42 … | + time.sleep(60) | |
43 … | + mins += 1 | |
44 … | + intertwingled.transition() | |
45 … | + | |
46 … | +if __name__ == "__main__": | |
47 … | + main() |
asanas/sounds/__init__.py |
---|
asanas/sounds/kriya_chime.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 0 bytes New file size: 3007815 bytes |
asanas/sounds/starting_bell-old1.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 0 bytes New file size: 858107 bytes |
asanas/sounds/starting_bell.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 0 bytes New file size: 360809 bytes |
cat_cow.py | ||
---|---|---|
@@ -1,48 +1,0 @@ | ||
1 | -import time | |
2 | -import intertwingled | |
3 | - | |
4 | -def main(duration): | |
5 | - print """ | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | - .d8888b. 888 | |
14 | -d88P Y88b 888 | |
15 | -888 888 888 | |
16 | -888 8888b. 888888 | |
17 | -888 "88b 888 | |
18 | -888 888 .d888888 888 | |
19 | -Y88b d88P 888 888 Y88b. | |
20 | - "Y8888P" "Y888888 "Y888 | |
21 | - | |
22 | - | |
23 | - | |
24 | - .d8888b. | |
25 | -d88P Y88b | |
26 | -888 888 | |
27 | -888 .d88b. 888 888 888 | |
28 | -888 d88""88b 888 888 888 | |
29 | -888 888 888 888 888 888 888 | |
30 | -Y88b d88P Y88..88P Y88b 888 d88P | |
31 | - "Y8888P" "Y88P" "Y8888888P" | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - | |
39 | - """ | |
40 | - mins = 0 | |
41 | - while mins != duration: | |
42 | - time.sleep(60) | |
43 | - mins += 1 | |
44 | - intertwingled.transition() | |
45 | - | |
46 | -if __name__ == "__main__": | |
47 | - main() | |
48 | - |
hollow_body.py | ||
---|---|---|
@@ -1,47 +1,0 @@ | ||
1 | -import time | |
2 | -import intertwingled | |
3 | - | |
4 | -def main(duration): | |
5 | - print """ | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | -888 888 888 888 | |
14 | -888 888 888 888 | |
15 | -888 888 888 888 | |
16 | -8888888888 .d88b. 888 888 .d88b. 888 888 888 | |
17 | -888 888 d88""88b 888 888 d88""88b 888 888 888 | |
18 | -888 888 888 888 888 888 888 888 888 888 888 | |
19 | -888 888 Y88..88P 888 888 Y88..88P Y88b 888 d88P | |
20 | -888 888 "Y88P" 888 888 "Y88P" "Y8888888P" | |
21 | - | |
22 | - | |
23 | - | |
24 | -888888b. 888 | |
25 | -888 "88b 888 | |
26 | -888 .88P 888 | |
27 | -8888888K. .d88b. .d88888 888 888 | |
28 | -888 "Y88b d88""88b d88" 888 888 888 | |
29 | -888 888 888 888 888 888 888 888 | |
30 | -888 d88P Y88..88P Y88b 888 Y88b 888 | |
31 | -8888888P" "Y88P" "Y88888 "Y88888 | |
32 | - 888 | |
33 | - Y8b d88P | |
34 | - "Y88P" | |
35 | - | |
36 | - | |
37 | - | |
38 | - | |
39 | - """ | |
40 | - mins = 0 | |
41 | - while mins != duration: | |
42 | - time.sleep(60) | |
43 | - mins += 1 | |
44 | - intertwingled.transition() | |
45 | - | |
46 | -if __name__ == "__main__": | |
47 | - main() |
config-fun.py | ||
---|---|---|
@@ -1,0 +1,28 @@ | ||
1 … | +import configparser | |
2 … | +from possible_func import PossibleFuncs | |
3 … | + | |
4 … | +#bring in ini file to act as dictionary | |
5 … | +config = configparser.ConfigParser() | |
6 … | +config.sections() | |
7 … | +config.read('morning-kriya.ini') | |
8 … | + | |
9 … | +#Trying to get the tuples from the .ini file into a dictionary | |
10 … | +dictionary = {} | |
11 … | +for section in config.sections(): | |
12 … | + dictionary[section] = {} | |
13 … | +for option in config.options(section): | |
14 … | + dictionary[section][option] = config.get(section, option) | |
15 … | +for value in config.options(section): | |
16 … | + dictionary[section][option][value] = config.getint(section, value) | |
17 … | + | |
18 … | +#test dictionary to make sure parse_objects works | |
19 … | +test = { | |
20 … | + 'breathoffire': 1 | |
21 … | + } | |
22 … | + | |
23 … | +#To turn Strings into Functions | |
24 … | +def parse_object_and_run(anything): | |
25 … | + for func, param in anything.items(): | |
26 … | + func_to_run = getattr(PossibleFuncs, func) | |
27 … | + func_to_run(param) | |
28 … | +parse_object_and_run(dictionary[section]) |
intertwingled.py | ||
---|---|---|
@@ -1,17 +1,0 @@ | ||
1 | -import time | |
2 | -import pyglet | |
3 | - | |
4 | -'''These are global variables for the whole kriya-helper ''' | |
5 | - | |
6 | -def beginning(): | |
7 | - chime = pyglet.media.load('sounds/starting_bell.wav', streaming=False) | |
8 | - chime.play() | |
9 | - | |
10 | -def transition(): | |
11 | - chime = pyglet.media.load('sounds/kriya_chime.wav', streaming=False) | |
12 | - breath = 0 | |
13 | - | |
14 | - chime.play() | |
15 | - while breath != 1: | |
16 | - time.sleep(11.2) | |
17 | - breath += 1 |
mantra.py | ||
---|---|---|
@@ -1,46 +1,0 @@ | ||
1 | -import time | |
2 | -import intertwingled | |
3 | - | |
4 | -def main(duration): | |
5 | - print """ | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | - | |
17 | -888b d888 888 | |
18 | -8888b d8888 888 | |
19 | -88888b.d88888 888 | |
20 | -888Y88888P888 8888b. 88888b. 888888 888d888 8888b. | |
21 | -888 Y888P 888 "88b 888 "88b 888 888P" "88b | |
22 | -888 Y8P 888 .d888888 888 888 888 888 .d888888 | |
23 | -888 " 888 888 888 888 888 Y88b. 888 888 888 | |
24 | -888 888 "Y888888 888 888 "Y888 888 "Y888888 | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - """ | |
39 | - mins = 0 | |
40 | - while mins != duration: | |
41 | - time.sleep(60) | |
42 | - mins += 1 | |
43 | - intertwingled.transition() | |
44 | - | |
45 | -if __name__ == "__main__": | |
46 | - main() |
morning-kriya.ini | ||
---|---|---|
@@ -1,0 +1,8 @@ | ||
1 … | +[Morning Kriya] | |
2 … | +breathoffire = 1 | |
3 … | +hollow_body.py = 1 | |
4 … | +cat_cow.py = 3 | |
5 … | +mantra.py = 3 | |
6 … | +meditation.py = 10 | |
7 … | + | |
8 … | + |
meditation.py | ||
---|---|---|
@@ -1,46 +1,0 @@ | ||
1 | -import time | |
2 | -import intertwingled | |
3 | - | |
4 | -def main(duration): | |
5 | - print """ | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | - | |
17 | -888b d888 888 d8b 888 888 d8b | |
18 | -8888b d8888 888 Y8P 888 888 Y8P | |
19 | -88888b.d88888 888 888 888 | |
20 | -888Y88888P888 .d88b. .d88888 888 888888 8888b. 888888 888 .d88b. 88888b. | |
21 | -888 Y888P 888 d8P Y8b d88" 888 888 888 "88b 888 888 d88""88b 888 "88b | |
22 | -888 Y8P 888 88888888 888 888 888 888 .d888888 888 888 888 888 888 888 | |
23 | -888 " 888 Y8b. Y88b 888 888 Y88b. 888 888 Y88b. 888 Y88..88P 888 888 | |
24 | -888 888 "Y8888 "Y88888 888 "Y888 "Y888888 "Y888 888 "Y88P" 888 888 | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - """ | |
39 | - mins = 0 | |
40 | - while mins != duration: | |
41 | - time.sleep(60) | |
42 | - mins += 1 | |
43 | - intertwingled.transition() | |
44 | - | |
45 | -if __name__ == "__main__": | |
46 | - main() |
possible_func.py | ||
---|---|---|
@@ -1,0 +1,160 @@ | ||
1 … | +import time | |
2 … | +from asanas import intertwingled | |
3 … | + | |
4 … | +class PossibleFuncs: | |
5 … | + | |
6 … | + @classmethod | |
7 … | + def cool (self, times): | |
8 … | + for i in range(0, times): | |
9 … | + print('cool') | |
10 … | + | |
11 … | + @classmethod | |
12 … | + def awesome(self, times): | |
13 … | + for i in range(0, times): | |
14 … | + print('awesome') | |
15 … | + | |
16 … | + @classmethod | |
17 … | + def sweet(self, times): | |
18 … | + for i in range(0, times): | |
19 … | + print('sweet') | |
20 … | + | |
21 … | + @classmethod | |
22 … | + def breathoffire(self, duration): | |
23 … | + print('\n'*6) | |
24 … | + bof = """ | |
25 … | +888888b. 888 888 | |
26 … | +888 "88b 888 888 | |
27 … | +888 .88P 888 888 | |
28 … | +8888888K. 888d888 .d88b. 8888b. 888888 88888b. | |
29 … | +888 "Y88b 888P" d8P Y8b "88b 888 888 "88b | |
30 … | +888 888 888 88888888 .d888888 888 888 888 | |
31 … | +888 d88P 888 Y8b. 888 888 Y88b. 888 888 | |
32 … | +8888888P" 888 "Y8888 "Y888888 "Y888 888 888 | |
33 … | + | |
34 … | + | |
35 … | + | |
36 … | + .d888 8888888888 d8b | |
37 … | + d88P" 888 Y8P | |
38 … | + 888 888 | |
39 … | + .d88b. 888888 8888888 888 888d888 .d88b. | |
40 … | +d88""88b 888 888 888 888P" d8P Y8b | |
41 … | +888 888 888 888 888 888 88888888 | |
42 … | +Y88..88P 888 888 888 888 Y8b. | |
43 … | + "Y88P" 888 888 888 888 "Y8888 | |
44 … | + """ | |
45 … | + print(bof) | |
46 … | + print('\n'*6) | |
47 … | + mins = 0 | |
48 … | + while mins != duration: | |
49 … | + time.sleep(10) | |
50 … | + mins += 1 | |
51 … | + intertwingled.transition() | |
52 … | + | |
53 … | + @classmethod | |
54 … | + def catcow(self, duration): | |
55 … | + print('\n'*6) | |
56 … | + cc = """ | |
57 … | + .d8888b. 888 | |
58 … | +d88P Y88b 888 | |
59 … | +888 888 888 | |
60 … | +888 8888b. 888888 | |
61 … | +888 "88b 888 | |
62 … | +888 888 .d888888 888 | |
63 … | +Y88b d88P 888 888 Y88b. | |
64 … | + "Y8888P" "Y888888 "Y888 | |
65 … | + | |
66 … | + | |
67 … | + | |
68 … | + .d8888b. | |
69 … | +d88P Y88b | |
70 … | +888 888 | |
71 … | +888 .d88b. 888 888 888 | |
72 … | +888 d88""88b 888 888 888 | |
73 … | +888 888 888 888 888 888 888 | |
74 … | +Y88b d88P Y88..88P Y88b 888 d88P | |
75 … | + "Y8888P" "Y88P" "Y8888888P" | |
76 … | + """ | |
77 … | + print(cc) | |
78 … | + print('\n'*6) | |
79 … | + mins = 0 | |
80 … | + while mins != duration: | |
81 … | + time.sleep(5) | |
82 … | + mins += 1 | |
83 … | + intertwingled.transition() | |
84 … | + | |
85 … | + @classmethod | |
86 … | + def hollowbody(self, duration): | |
87 … | + print('\n'*6) | |
88 … | + hollowbody_ascii = """ | |
89 … | +888 888 888 888 | |
90 … | +888 888 888 888 | |
91 … | +888 888 888 888 | |
92 … | +8888888888 .d88b. 888 888 .d88b. 888 888 888 | |
93 … | +888 888 d88""88b 888 888 d88""88b 888 888 888 | |
94 … | +888 888 888 888 888 888 888 888 888 888 888 | |
95 … | +888 888 Y88..88P 888 888 Y88..88P Y88b 888 d88P | |
96 … | +888 888 "Y88P" 888 888 "Y88P" "Y8888888P" | |
97 … | + | |
98 … | + | |
99 … | + | |
100 … | +888888b. 888 | |
101 … | +888 "88b 888 | |
102 … | +888 .88P 888 | |
103 … | +8888888K. .d88b. .d88888 888 888 | |
104 … | +888 "Y88b d88""88b d88" 888 888 888 | |
105 … | +888 888 888 888 888 888 888 888 | |
106 … | +888 d88P Y88..88P Y88b 888 Y88b 888 | |
107 … | +8888888P" "Y88P" "Y88888 "Y88888 | |
108 … | + 888 | |
109 … | + Y8b d88P | |
110 … | + "Y88P" | |
111 … | + """ | |
112 … | + print(hollowbody_ascii) | |
113 … | + print('\n'*4) | |
114 … | + mins = 0 | |
115 … | + while mins != duration: | |
116 … | + time.sleep(5) | |
117 … | + mins += 1 | |
118 … | + intertwingled.transition() | |
119 … | + | |
120 … | + @classmethod | |
121 … | + def mantra(self, duration): | |
122 … | + print('\n'*11) | |
123 … | + mantra_ascii = """ | |
124 … | +888b d888 888 | |
125 … | +8888b d8888 888 | |
126 … | +88888b.d88888 888 | |
127 … | +888Y88888P888 8888b. 88888b. 888888 888d888 8888b. | |
128 … | +888 Y888P 888 "88b 888 "88b 888 888P" "88b | |
129 … | +888 Y8P 888 .d888888 888 888 888 888 .d888888 | |
130 … | +888 " 888 888 888 888 888 Y88b. 888 888 888 | |
131 … | +888 888 "Y888888 888 888 "Y888 888 "Y888888 | |
132 … | + """ | |
133 … | + print (mantra_ascii) | |
134 … | + print('\n'*13) | |
135 … | + mins = 0 | |
136 … | + while mins != duration: | |
137 … | + time.sleep(5) | |
138 … | + mins += 1 | |
139 … | + intertwingled.transition() | |
140 … | + | |
141 … | + @classmethod | |
142 … | + def meditation(self, duration): | |
143 … | + print('\n'*11) | |
144 … | + meditation_ascii = """ | |
145 … | +888b d888 888 d8b 888 888 d8b | |
146 … | +8888b d8888 888 Y8P 888 888 Y8P | |
147 … | +88888b.d88888 888 888 888 | |
148 … | +888Y88888P888 .d88b. .d88888 888 888888 8888b. 888888 888 .d88b. 88888b. | |
149 … | +888 Y888P 888 d8P Y8b d88" 888 888 888 "88b 888 888 d88""88b 888 "88b | |
150 … | +888 Y8P 888 88888888 888 888 888 888 .d888888 888 888 888 888 888 888 | |
151 … | +888 " 888 Y8b. Y88b 888 888 Y88b. 888 888 Y88b. 888 Y88..88P 888 888 | |
152 … | +888 888 "Y8888 "Y88888 888 "Y888 "Y888888 "Y888 888 "Y88P" 888 888 | |
153 … | + """ | |
154 … | + print(meditation_ascii) | |
155 … | + print('\n'*13) | |
156 … | + mins = 0 | |
157 … | + while mins != duration: | |
158 … | + time.sleep(5) | |
159 … | + mins += 1 | |
160 … | + intertwingled.transition() |
sounds/kriya_chime.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 3007815 bytes New file size: 0 bytes |
sounds/starting_bell-old1.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 858107 bytes New file size: 0 bytes |
sounds/starting_bell.wav | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 360809 bytes New file size: 0 bytes |
Built with git-ssb-web