git ssb

1+

Zach! / kriya-helper



Get this up to daaaaate and start the experimenting!

%uMFR/GkbzG2kP58Vtom+reJztqOmF262mINl42ht/Mc=.sha256
Closed Zach! wants to merge commits into master from ini-file
closing_remark.pychanged
kriya-helper.pychanged
breath_of_fire.pydeleted
asanas/__init__.pyadded
asanas/breath_of_fire.pyadded
asanas/cat_cow.pyadded
asanas/hollow_body.pyadded
asanas/intertwingled.pyadded
asanas/mantra.pyadded
asanas/meditation.pyadded
asanas/sounds/__init__.pyadded
asanas/sounds/kriya_chime.wavadded
asanas/sounds/starting_bell-old1.wavadded
asanas/sounds/starting_bell.wavadded
cat_cow.pydeleted
hollow_body.pydeleted
config-fun.pyadded
intertwingled.pydeleted
mantra.pydeleted
morning-kriya.iniadded
meditation.pydeleted
possible_func.pyadded
sounds/kriya_chime.wavdeleted
sounds/starting_bell-old1.wavdeleted
sounds/starting_bell.wavdeleted
closing_remark.pyView
@@ -1,7 +1,7 @@
11
22 def main():
3- print """
3 + yag = """
44
55
66
77
@@ -34,8 +34,9 @@
3434
3535
3636
3737
38-"""
38 + """
39 + print(yag)
3940
4041 if __name__ == "__main__":
4142 main()
kriya-helper.pyView
@@ -1,16 +1,11 @@
11 import time
22 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 *
94 import closing_remark
105
116 def main():
12- print """
7 + splashpage = """
138
149
1510
1611
@@ -24,9 +19,9 @@
2419 888 Y88b 888 888 Y88b 888 888 888
2520 888 Y88b 888 888 "Y88888 "Y888888
2621 888
2722 Y8b d88P
28- "Y88P"
23 + 'Y88P"
2924 888 888 888
3025 888 888 888
3126 888 888 888
3227 8888888888 .d88b. 888 88888b. .d88b. 888d888
@@ -41,16 +36,17 @@
4136
4237
4338
4439 """
45- begin = raw_input("Press Enter > ")
40 + print(splashpage)
41 + begin = input("Press Enter > ")
4642 if begin == "":
4743 intertwingled.beginning()
48- summary()
44 + intention()
4945 closing_remark.main()
5046
51-def summary():
52- print """
47 +def intention():
48 + summary = """
5349
5450
5551
5652
@@ -81,10 +77,11 @@
8177
8278
8379
8480 """
85- print ("Start your Kriya? [y/N]")
86- run = raw_input("> ")
81 + print(intention)
82 + print("Start your Kriya? [y/N]")
83 + run = input("> ")
8784 # only run if the user types y
8885 if run == "y":
8986 kriya()
9087
breath_of_fire.pyView
@@ -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__.pyView
@@ -1,0 +1,1 @@
1 +__all__ = ["breath_of_fire", "cat_cow", "intertwingled", "hollow_body", "mantra", "meditation"]
asanas/breath_of_fire.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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__.pyView
asanas/sounds/kriya_chime.wavView
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.wavView
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.wavView
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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.pyView
@@ -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.iniView
@@ -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.pyView
@@ -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.pyView
@@ -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.wavView
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.wavView
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.wavView
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