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