├── hey_jude
├── images
│ └── sadCat.jpg
├── index.html
├── styles.css
└── script.js
├── README.md
├── fix_you.py
├── summertime_sadness.py
├── blue.py
├── just_give_me_a_reason.py
├── if_i_had_a_gun.py
├── cancer.py
├── the_less_i_know_the_better.py
├── dischanted.py
├── slipping_through_my_fingers.py
├── christmas_in_our_hearts.py
├── cheerleader.py
├── bags.py
├── hell_n_back.py
├── stuck_on_the_puzzle.py
├── mr_loverman.py
├── angeleyes.py
├── you_da_one.py
├── i_love_you_so.py
├── apocalypse.py
└── let_it_happen.py
/hey_jude/images/sadCat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Exzort567/song_lyrics/HEAD/hey_jude/images/sadCat.jpg
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # This is for my tiktok content
2 |
3 |
4 | [https://www.tiktok.com/@kkkinittt?_t=8lw3nv1WVG6&_r=1](https://www.tiktok.com/@exzortsanity)
5 |
--------------------------------------------------------------------------------
/hey_jude/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Karaoke Lyrics
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/fix_you.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("When you lose something you cannot replace", 0.11),
8 | ("Tears stream", 0.11),
9 | ("down your face", 0.11),
10 | ("I promise you I will learn from my mistakes", 0.12),
11 | ]
12 |
13 | delays = [2.4, 1.7, 1.7, 1.5]
14 |
15 | for i, (line, char_delay) in enumerate(lines):
16 | for char in line:
17 | print(char, end='')
18 | sys.stdout.flush()
19 | sleep(char_delay)
20 | time.sleep(delays[i])
21 | print('')
22 |
23 | print_lyrics()
24 |
--------------------------------------------------------------------------------
/summertime_sadness.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("Think I'll miss you forever", 0.07),
8 | ("Like the stars miss the sun in the morning sky", 0.08),
9 | ("Later's better than never", 0.08),
10 | ("Even if you're gone, I'm gonna drive", 0.09),
11 |
12 |
13 | ]
14 |
15 | delays = [ 1.3, 1.3 , 1.3, 5 ]
16 |
17 | for i, (line, char_delay) in enumerate(lines):
18 | for char in line:
19 | print(char, end='')
20 | sys.stdout.flush()
21 | sleep(char_delay)
22 | time.sleep(delays[i])
23 | print('')
24 |
25 | print_lyrics()
26 |
--------------------------------------------------------------------------------
/blue.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("you're all that I want this life", 0.15),
8 | ("I'll imagine we fell in love", 0.08),
9 | ("I'll nap under moonlight skies with you", 0.08),
10 | ("I think I'll picture us, you with the waves", 0.07),
11 | ("The oceans colors on your face", 0.08),
12 |
13 |
14 | ]
15 |
16 | delays = [3.2, 0.5, 0.5 , 0.5, 5 ]
17 |
18 | for i, (line, char_delay) in enumerate(lines):
19 | for char in line:
20 | print(char, end='')
21 | sys.stdout.flush()
22 | sleep(char_delay)
23 | time.sleep(delays[i])
24 | print('')
25 |
26 | print_lyrics()
27 |
--------------------------------------------------------------------------------
/just_give_me_a_reason.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("You're not broken, just bent,", 0.07),
8 | ("and we can learn to love again", 0.07),
9 | ("Oh, tear ducts and rust", 0.1),
10 | ("I'll fix it for us", 0.1),
11 |
12 | ("We're collecting dust,", 0.1),
13 | ("but our love's enough", 0.1),
14 |
15 |
16 | ]
17 |
18 | delays = [0.5, 0.5, 1, 1.1,
19 | 0.5, 3]
20 |
21 | for i, (line, char_delay) in enumerate(lines):
22 | for char in line:
23 | print(char, end='')
24 | sys.stdout.flush()
25 | sleep(char_delay)
26 | time.sleep(delays[i])
27 | print('')
28 |
29 | print_lyrics()
30 |
--------------------------------------------------------------------------------
/if_i_had_a_gun.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("let me fly you to the moon", 0.1),
8 | ("my eyes have always", 0.1),
9 | ("followed you around the room", 0.1),
10 | ("cause you're the only", 0.1),
11 | ("God that I will ever need", 0.1),
12 | ("i'm holding on and", 0.08),
13 | ("waiting for the moment to find me", 0.1),
14 |
15 |
16 | ]
17 |
18 | delays = [1, 0.7, 0.5, 0.7, 0.9, 0.3, 2]
19 |
20 | for i, (line, char_delay) in enumerate(lines):
21 | for char in line:
22 | print(char, end='')
23 | sys.stdout.flush()
24 | sleep(char_delay)
25 | time.sleep(delays[i])
26 | print('')
27 |
28 | print_lyrics()
29 |
--------------------------------------------------------------------------------
/cancer.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_colored_text(text, color_code):
6 | print(f"\033[{color_code}m{text}\033[0m", end='')
7 |
8 | def print_lyrics():
9 | lines = [
10 | ("That if you say", 0.1),
11 | ("Good-bye today", 0.1),
12 | ("I'd ask you to be true", 0.13),
13 | ("'Cause the hardest part of this", 0.1),
14 | ("is leaving you", 0.14)
15 | ]
16 |
17 | delays = [1.3, 1.7, 3.5, 1.4, 6]
18 | colors = [97, 97, 97, 97, 91]
19 |
20 | for i, ((line, char_delay), color) in enumerate(zip(lines, colors)):
21 | for char in line:
22 | print_colored_text(char, color)
23 | sys.stdout.flush()
24 | sleep(char_delay)
25 | time.sleep(delays[i])
26 | print('')
27 |
28 | print_lyrics()
29 |
--------------------------------------------------------------------------------
/the_less_i_know_the_better.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("she said", 0.08),
8 | ("\u2018It's not now or never", 0.08),
9 | ("wait ten years, we'll be together\u2019", 0.08),
10 | ("I said,", 0.1),
11 | ("\u2018Better late than never", 0.1),
12 | ("just don't make me wait forever\u2019", 0.1),
13 | ("Don't make me wait", 0.09),
14 | ("forever", 0.07),
15 |
16 | ]
17 |
18 | delays = [0.2, 1.3, 0.8, 0.3, 0.6, 5, 0.2, 4]
19 |
20 | for i, (line, char_delay) in enumerate(lines):
21 | for char in line:
22 | print(char, end='')
23 | sys.stdout.flush()
24 | sleep(char_delay)
25 | time.sleep(delays[i])
26 | print('')
27 |
28 | print_lyrics()
29 |
--------------------------------------------------------------------------------
/dischanted.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("because you never learn", 0.08),
8 | ("a goddamn thing", 0.13),
9 | ("you're just a sad song", 0.08),
10 | ("with nothing to say", 0.1),
11 | ("about a life long", 0.1),
12 | ("wait for a hospital stay", 0.1),
13 | ("and if you think", 0.09),
14 | ("that i'm wrong", 0.07),
15 | ("this never meant nothing to ya", 0.13)
16 | ]
17 |
18 | delays = [0.1, 2, 1.3, 0.3, 1, 0.3, 0.2, 0.6, 5]
19 |
20 | for i, (line, char_delay) in enumerate(lines):
21 | for char in line:
22 | print(char, end='')
23 | sys.stdout.flush()
24 | sleep(char_delay)
25 | time.sleep(delays[i])
26 | print('')
27 |
28 | print_lyrics()
29 |
--------------------------------------------------------------------------------
/slipping_through_my_fingers.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("What happened to those wonderful adventures", 0.1),
8 | ("The places I had planned for us to go?", 0.1),
9 | ("Well, some of that we did,", 0.1),
10 | ("but most we didn't", 0.1),
11 |
12 | ("And why?", 0.1),
13 | ("I just don't know", 0.11),
14 | ("Slipping through my fingers all the time", 0.07),
15 |
16 |
17 | ]
18 |
19 | delays = [1.8, 2.2, 0.4, 0.4,
20 | 0.3, 1, 3]
21 |
22 | for i, (line, char_delay) in enumerate(lines):
23 | for char in line:
24 | print(char, end='')
25 | sys.stdout.flush()
26 | sleep(char_delay)
27 | time.sleep(delays[i])
28 | print('')
29 |
30 | print_lyrics()
31 |
--------------------------------------------------------------------------------
/christmas_in_our_hearts.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("Whenever I see girls and boys", 0.10),
8 | ("Selling lanterns on the streets", 0.095),
9 | ("I remember the Child", 0.12),
10 | ("In the manger, as he sleeps", 0.11),
11 |
12 | ]
13 |
14 | delays = [ 0.13, 0.15, 0.5,
15 | 2 ]
16 |
17 | for i, (line, char_delay) in enumerate(lines):
18 | for char in line:
19 | print(char, end='')
20 | sys.stdout.flush()
21 | sleep(char_delay)
22 | time.sleep(delays[i])
23 | print('')
24 |
25 | print_lyrics()
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/cheerleader.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("She gives me love", 0.07),
8 | ("and affection", 0.07),
9 | ("Baby, did I mention?", 0.1),
10 | ("You're the only girl for me", 0.08),
11 | ("No, I don't need the next one", 0.07),
12 | ("Mama loves you too", 0.05),
13 | ("She thinks I made the right selection", 0.07),
14 | ("Now all that's left to do", 0.07),
15 | ("Is just for me to pop the question", 0.07)
16 | ]
17 |
18 | delays = [0.06, 0.3, 0.3, 0.2, 0.6, 0.1, 0.1, 0.1, 5]
19 |
20 | for i, (line, char_delay) in enumerate(lines):
21 | for char in line:
22 | print(char, end='')
23 | sys.stdout.flush()
24 | sleep(char_delay)
25 | time.sleep(delays[i])
26 | print('')
27 |
28 | print_lyrics()
29 |
--------------------------------------------------------------------------------
/bags.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("Can you see me?", 0.07),
8 | ("I'm waiting for the right time", 0.07),
9 | ("I can't read you,", 0.07),
10 | ("but if you want,", 0.07),
11 | ("the pleasure's all mine", 0.06),
12 | ("Can you see me", 0.07),
13 |
14 | ("using everything to hold back?", 0.07),
15 | ("I guess this could be worse", 0.07),
16 | ("Walkin' out the door with your bags", 0.07),
17 |
18 |
19 | ]
20 |
21 | delays = [0.23, 0.2, 0.2, 0.17, 0.2, 0.2,
22 | 0.33, 0.2, 3]
23 |
24 | for i, (line, char_delay) in enumerate(lines):
25 | for char in line:
26 | print(char, end='')
27 | sys.stdout.flush()
28 | sleep(char_delay)
29 | time.sleep(delays[i])
30 | print('')
31 |
32 | print_lyrics()
33 |
--------------------------------------------------------------------------------
/hell_n_back.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("I was over love,", 0.04),
8 | ("though I had enough,", 0.05),
9 | ("then I found you,", 0.06),
10 | ("oh I was, no doubt, stressed out", 0.1),
11 | ("without you", 0.08),
12 | ("All we got is us,", 0.1),
13 | ("when nobody does, ", 0.07),
14 | ("I got you", 0.07),
15 | ("For your sanity and my mentality", 0.1),
16 | ("Could you tell where my head", 0.08),
17 | ("was at when you found me", 0.05)
18 |
19 | ]
20 |
21 | delays = [0.3, 0.3, 0.3, 0.3, 0.4, 0.3, 0.1, 0.6, 0.07, 0.3, 0.5]
22 |
23 | for i, (line, char_delay) in enumerate(lines):
24 | for char in line:
25 | print(char, end='')
26 | sys.stdout.flush()
27 | sleep(char_delay)
28 | time.sleep(delays[i])
29 | print('')
30 |
31 | print_lyrics()
32 |
--------------------------------------------------------------------------------
/stuck_on_the_puzzle.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("I'm not the kind of fool", 0.09),
8 | ("Who's gonna sit and sing to you,", 0.087),
9 | ("About stars, girl.", 0.18),
10 |
11 | ("But last night I looked up into", 0.09),
12 | ("The dark half of the \033[34mblue\033[0m,", 0.07),
13 | ("And they'd gone backwards.", 0.1),
14 |
15 | ("Something in your magnetism", 0.09),
16 | ("Must have pissed them off,", 0.09),
17 | ("Forcing them to get an early night.", 0.1),
18 | ]
19 |
20 | delays = [0.2, 1.8, 0.7,
21 | 0.2, 1.5, 1.7,
22 | 0.15, 1.4, 3 ]
23 |
24 | for i, (line, char_delay) in enumerate(lines):
25 | for char in line:
26 | print(char, end='')
27 | sys.stdout.flush()
28 | sleep(char_delay)
29 | time.sleep(delays[i])
30 | print('')
31 |
32 | print_lyrics()
33 |
--------------------------------------------------------------------------------
/mr_loverman.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("I've shattered now, I'm spilling out", 0.13),
8 | ("Upon this linoleum ground", 0.15),
9 | ("I'm reeling in my brain again", 0.17),
10 | ("Before it can get back to you", 0.13),
11 | ("Oh what am I", 0.15),
12 | ("Supposed to do", 0.13),
13 | ("Without you?", 0.15),
14 |
15 | ("I'm Mr. Loverman", 0.16),
16 | ("And I miss my lover, man", 0.12),
17 | ("I'm Mr. Loverman", 0.13),
18 | ("Oh, and I miss my lover", 0.13),
19 | ]
20 |
21 | delays = [ 0.8, 1.3, 0.8, 1.2, 1.2, 1.2, 3.5,
22 | 2.3, 2.5, 2.5, 1.5]
23 |
24 | for i, (line, char_delay) in enumerate(lines):
25 | for char in line:
26 | print(char, end='')
27 | sys.stdout.flush()
28 | sleep(char_delay)
29 | time.sleep(delays[i])
30 | print('')
31 |
32 | print_lyrics()
33 |
--------------------------------------------------------------------------------
/angeleyes.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("Sometimes when I'm lonely", 0.08),
8 | ("I sit and think about him", 0.06),
9 | ("And it hurts to remember ", 0.06),
10 | ("all the good times", 0.06),
11 |
12 | ("When I thought I could ", 0.06),
13 | ("never live without him", 0.06),
14 |
15 | ("And I wonder does it have to be the same", 0.08),
16 | ("Every time", 0.08),
17 | ("when I see him,", 0.08),
18 | ("will it bring back all the pain?", 0.07),
19 | ("Ah-ha-ha,", 0.08),
20 | ("how can I forget that name?", 0.08),
21 |
22 | ]
23 |
24 | delays = [0.2, 0.1, 0.1, 0.1,
25 | 0.1, 0.1,
26 | 1.4, 0.8, 0.4, 0.9, 0.5, 4]
27 |
28 | for i, (line, char_delay) in enumerate(lines):
29 | for char in line:
30 | print(char, end='')
31 | sys.stdout.flush()
32 | sleep(char_delay)
33 | time.sleep(delays[i])
34 | print('')
35 |
36 | print_lyrics()
37 |
--------------------------------------------------------------------------------
/hey_jude/styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: black;
3 | color: white;
4 | font-family: Arial, sans-serif;
5 | display: flex;
6 | justify-content: center;
7 | align-items: center;
8 | height: 100vh;
9 | flex-direction: column;
10 | margin: 0;
11 | position: relative;
12 | overflow: hidden;
13 | }
14 |
15 | #lyrics {
16 | font-size: 2em;
17 | white-space: pre-wrap;
18 | text-align: center;
19 | margin-bottom: 20px;
20 | z-index: 1;
21 | }
22 |
23 | .play-btn {
24 | font-size: 1.5em;
25 | padding: 10px 20px;
26 | cursor: pointer;
27 | background-color: #007BFF;
28 | color: white;
29 | border: none;
30 | border-radius: 5px;
31 | }
32 |
33 | .play-btn:hover {
34 | background-color: #0056b3;
35 | }
36 |
37 | .background-fade {
38 | position: absolute;
39 | top: 0;
40 | left: 0;
41 | width: 100%;
42 | height: 100%;
43 | background-repeat: repeat;
44 | opacity: 0;
45 | animation: fadeIn 3s forwards; /* Adjust duration as needed */
46 | z-index: 0;
47 | }
48 |
49 | @keyframes fadeIn {
50 | from {
51 | opacity: 0;
52 | }
53 | to {
54 | opacity: 1;
55 | }
56 | }
--------------------------------------------------------------------------------
/you_da_one.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("Cause you know how to give me that", 0.05),
8 | ("you know how to pull me back", 0.05),
9 | ("when I go runnin', runnin'", 0.05),
10 | ("tryna get away from loving ya", 0.05),
11 | ("you know how to love me hard", 0.05),
12 | ("I won't lie, I'm falling hard", 0.05),
13 | ("yep, I'm falling for ya", 0.05),
14 |
15 | ("but there's nothing wrong with that", 0.04),
16 | ("you da one that I dream", 0.06),
17 | ("about all day", 0.06),
18 | ("you da one that I think", 0.06),
19 | ("about always", 0.06),
20 | ("you are the one,", 0.06),
21 | ("so I make sure I'll behave", 0.06),
22 | ("my love is your love,", 0.06),
23 | ("your love is my love", 0.06),
24 | ("you da one that I dream", 0.06),
25 | ("about all day", 0.06),
26 |
27 |
28 |
29 | ]
30 |
31 | delays = [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 1, 0.3, 1, 0.3, 0.3 , 0.6, 0.8, 0.6, 2]
32 |
33 | for i, (line, char_delay) in enumerate(lines):
34 | for char in line:
35 | print(char, end='')
36 | sys.stdout.flush()
37 | sleep(char_delay)
38 | time.sleep(delays[i])
39 | print('')
40 |
41 | print_lyrics()
42 |
--------------------------------------------------------------------------------
/i_love_you_so.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def print_lyrics():
6 | lines = [
7 | ("I'm gonna pack my things", 0.1, False),
8 | ("and leave you behind", 0.1, False),
9 | ("This feeling's old and I know", 0.1, False),
10 | ("that I've made up my mind", 0.08, False),
11 | ("I hope you feel what I felt", 0.11, False),
12 | ("when you shattered my soul", 0.08, False),
13 | ("'Cause you were cruel and I'm a fool", 0.08, False),
14 | ("So, please let me go", 0.08, True),
15 |
16 | ("But I love you so", 0.13, False),
17 | ("please let me go", 0.13, True),
18 | ("I love you so ", 0.13, False),
19 | ("please let me go", 0.13, True),
20 | ("I love you so ", 0.13, False),
21 | ("please let me go", 0.13, True),
22 | ("I love you so ", 0.13, False)
23 | ]
24 |
25 | delays = [0.8, 0.5, 0.5, 0.5, 0.7, 0.5, 0.5, 2.7,
26 | 1, 0.8, 1, 0.8, 1.1, 0.8, 5]
27 |
28 | for i, (line, char_delay, is_colored) in enumerate(lines):
29 | if is_colored:
30 | print("\033[91m", end='')
31 |
32 | for char in line:
33 | print(char, end='')
34 | sys.stdout.flush()
35 | sleep(char_delay)
36 |
37 | if is_colored:
38 | print("\033[0m", end='')
39 |
40 | time.sleep(delays[i])
41 | print('')
42 |
43 | print_lyrics()
44 |
--------------------------------------------------------------------------------
/apocalypse.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from time import sleep
3 | import time
4 |
5 | def apply_gradient(text):
6 | # Define the gradient colors for an "apocalypse" vibe
7 | colors = [
8 | "\033[38;5;88m", # Dark red
9 | "\033[38;5;130m", # Orange-red
10 | "\033[38;5;94m", # Deep orange
11 | "\033[38;5;136m", # Orange
12 | "\033[38;5;166m", # Dark orange
13 | "\033[38;5;202m", # Red-orange
14 | "\033[38;5;208m", # Orange-red
15 | "\033[38;5;124m", # Red
16 | "\033[38;5;88m" # Dark red
17 | ]
18 |
19 | gradient_text = ''
20 | for i, char in enumerate(text):
21 | color = colors[i % len(colors)]
22 | gradient_text += color + char
23 | gradient_text += "\033[0m" # Reset color
24 | return gradient_text
25 |
26 | def print_lyrics():
27 | lines = [
28 | ("Got the music in you, baby", 0.08),
29 | ("Tell me why", 0.08),
30 | ("Got the music in you, baby", 0.08),
31 | ("Tell me why", 0.08),
32 |
33 | ("You've been locked in here forever", 0.05),
34 | ("And you just can't say goodbye", 0.09),
35 |
36 | ("Your lips, my lips", 0.09),
37 | ("Apocalypse", 0.009),
38 | ("Your lips, my lips", 0.09),
39 | ("Apocalypse", 0.009)
40 | ]
41 |
42 | delays = [0.1, 2, 0.3, 2,
43 | 0.2, 6.6,
44 | 1.2, 6.4, 1.2, 5]
45 |
46 | for i, (line, char_delay) in enumerate(lines):
47 | if "Apocalypse" in line:
48 | line = line.replace("Apocalypse", apply_gradient("Apocalypse"))
49 | for char in line:
50 | print(char, end='')
51 | sys.stdout.flush()
52 | sleep(char_delay)
53 | time.sleep(delays[i])
54 | print('')
55 |
56 | print_lyrics()
57 |
--------------------------------------------------------------------------------
/hey_jude/script.js:
--------------------------------------------------------------------------------
1 | document.addEventListener('DOMContentLoaded', (event) => {
2 | const playBtn = document.querySelector('.play-btn');
3 | const body = document.querySelector('.body');
4 | const lyricsContainer = document.getElementById('lyrics');
5 |
6 | const lyrics = [
7 | { text: "And anytime you,", delay: 0.06 },
8 | { text: "feel the pain,", delay: 0.08 },
9 | { text: "Hey, Jude, refrain,", delay: 0.1 },
10 | { text: "Don't carry the world", delay: 0.12 },
11 | { text: "upon your shoulders", delay: 0.09 },
12 | { text: "For well you know", delay: 0.08 },
13 | { text: "that it's a fool ", delay: 0.08 },
14 | { text: "Who plays it cool", delay: 0.1 },
15 | { text: "By making his world", delay: 0.08 },
16 | { text: "a little colder", delay: 0.2 },
17 | { text: "Na, na na, na na,", delay: 0.1 },
18 | { text: "na na, na na", delay: 0.15 }
19 | ];
20 |
21 | const delays = [0.12, 0.23, 0.6, 0.5, 3, 0.3, 0.5, 0.7, 0.8, 1, 0.1, 2];
22 |
23 | async function displayLyrics() {
24 | for (let i = 0; i < lyrics.length; i++) {
25 | let line = lyrics[i].text;
26 | let charDelay = lyrics[i].delay;
27 | for (let char of line) {
28 | lyricsContainer.innerHTML += char;
29 | await new Promise(resolve => setTimeout(resolve, charDelay * 1000));
30 | }
31 | await new Promise(resolve => setTimeout(resolve, delays[i] * 1000));
32 | lyricsContainer.innerHTML += '\n';
33 | lyricsContainer.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
34 | }
35 | }
36 |
37 | playBtn.addEventListener('click', () => {
38 | playBtn.style.display = 'none';
39 |
40 | // Create a new div for the background animation
41 | const backgroundFade = document.createElement('div');
42 | backgroundFade.className = 'background-fade';
43 | backgroundFade.style.backgroundImage = 'url("./images/sadCat.jpg")';
44 | body.appendChild(backgroundFade);
45 |
46 | displayLyrics();
47 | });
48 | });
--------------------------------------------------------------------------------
/let_it_happen.py:
--------------------------------------------------------------------------------
1 | import time
2 | from time import sleep
3 | import sys
4 |
5 | def print_lyrics():
6 | first = ["i cannot vanish"]
7 | second = ["you will not scare me"]
8 | third = ["try to get through it"]
9 | fourth = ["try to push through it"]
10 | fifth = ["you were not thinking that i will not do it"]
11 | sixth = ["they be lovin' someone"]
12 | seventh = ["and i'm another story"]
13 | eigth = ["take the next ticket"]
14 | ninth = ["take the next train"]
15 | tenth = ["why would i do it?"]
16 | eleventh = ["anyone'd think that"] # then baby
17 |
18 | twelfth = ["baby"]
19 | thirteenth = ["now i'm ready"]
20 | fourteenth = ["moving on"]
21 | fifteenth = ["oh, but maybe"]
22 | sixteenth = ["i was ready"]
23 | seventeenth = ["all along"]
24 | eighteenth = ["oh, i'm ready"]
25 | nineteenth = ["for the moment"]
26 | twentieth = ["and the sound"]
27 | twentyfirst = ["oh, but maybe"]
28 | twentysecond = ["i was ready"]
29 | twentythird = ["all along"]
30 | twentyfourth = ["oh, baby"]
31 | twentyfifth = ["now i'm ready"]
32 |
33 | twentysixth = ["moving on"]
34 | twentyseventh = ["oh, but maybe"]
35 | twentyeighth = ["i was ready"]
36 | twentyninth = ["all along"]
37 |
38 |
39 |
40 | delay1 = 0.3
41 | delay2 = 0.1
42 | delay3 = 0.3
43 | delay4 = 0.3
44 | delay5 = 0.6
45 | delay6 = 0.3
46 | delay7 = 0.4
47 | delay8 = 0.6
48 | delay9 = 0.5
49 | delay10 = 0.5
50 |
51 | delay11 = 0.3
52 | delay12 = 0.8
53 | delay13 = 1
54 | delay14 = 1
55 | delay15 = 1
56 | delay16 = 1
57 | delay17 = 1
58 | delay18 = 1
59 | delay19 = 0.9
60 | delay20 = 0.9
61 | delay21 = 0.9
62 | delay22 = 0.9
63 | delay23 = 0.9
64 | delay24 = 0.9
65 | delay25 = 0.9
66 | delay26 = 0.9
67 | delay27 = 0.9
68 | delay28 = 0.9
69 | delay29 = 0.9
70 |
71 |
72 | for line in first:
73 | for c in line:
74 | print(c, end='')
75 | sys.stdout.flush()
76 | sleep(0.08)
77 | time.sleep(delay1)
78 | print('')
79 |
80 | for line in second:
81 | for c in line:
82 | print(c, end='')
83 | sys.stdout.flush()
84 | sleep(0.06)
85 | time.sleep(delay2)
86 | print('')
87 |
88 | for line in third:
89 | for c in line:
90 | print(c, end='')
91 | sys.stdout.flush()
92 | sleep(0.08)
93 | time.sleep(delay3)
94 | print('')
95 |
96 | for line in fourth:
97 | for c in line:
98 | print(c, end='')
99 | sys.stdout.flush()
100 | sleep(0.06)
101 | time.sleep(delay4)
102 | print('')
103 |
104 | for line in fifth:
105 | for c in line:
106 | print(c, end='')
107 | sys.stdout.flush()
108 | sleep(0.07)
109 | time.sleep(delay5)
110 | print('')
111 |
112 | for line in sixth:
113 | for c in line:
114 | print(c, end='')
115 | sys.stdout.flush()
116 | sleep(0.06)
117 | time.sleep(delay6)
118 | print('')
119 |
120 | for line in seventh:
121 | for c in line:
122 | print(c, end='')
123 | sys.stdout.flush()
124 | sleep(0.07)
125 | time.sleep(delay7)
126 | print('')
127 |
128 | for line in eigth:
129 | for c in line:
130 | print(c, end='')
131 | sys.stdout.flush()
132 | sleep(0.05)
133 | time.sleep(delay8)
134 | print('')
135 |
136 | for line in ninth:
137 | for c in line:
138 | print(c, end='')
139 | sys.stdout.flush()
140 | sleep(0.05)
141 | time.sleep(delay8)
142 | print('')
143 |
144 | for line in tenth:
145 | for c in line:
146 | print(c, end='')
147 | sys.stdout.flush()
148 | sleep(0.08)
149 | time.sleep(delay10)
150 | print('')
151 |
152 | for line in eleventh:
153 | for c in line:
154 | print(c, end='')
155 | sys.stdout.flush()
156 | sleep(0.06)
157 | time.sleep(delay11)
158 | print('')
159 |
160 | for line in twelfth:
161 | for c in line:
162 | print(c, end='')
163 | sys.stdout.flush()
164 | sleep(0.1)
165 | time.sleep(delay12)
166 | print('')
167 |
168 | for line in thirteenth:
169 | for c in line:
170 | print(c, end='')
171 | sys.stdout.flush()
172 | sleep(0.06)
173 | time.sleep(delay13)
174 | print('')
175 |
176 | for line in fourteenth:
177 | for c in line:
178 | print(c, end='')
179 | sys.stdout.flush()
180 | sleep(0.08)
181 | time.sleep(delay14)
182 | print('')
183 |
184 | for line in fifteenth:
185 | for c in line:
186 | print(c, end='')
187 | sys.stdout.flush()
188 | sleep(0.08)
189 | time.sleep(delay15)
190 | print('')
191 |
192 | for line in sixteenth:
193 | for c in line:
194 | print(c, end='')
195 | sys.stdout.flush()
196 | sleep(0.07)
197 | time.sleep(delay16)
198 | print('')
199 |
200 | for line in seventeenth:
201 | for c in line:
202 | print(c, end='')
203 | sys.stdout.flush()
204 | sleep(0.05)
205 | time.sleep(delay17)
206 | print('')
207 |
208 | for line in eighteenth:
209 | for c in line:
210 | print(c, end='')
211 | sys.stdout.flush()
212 | sleep(0.07)
213 | time.sleep(delay18)
214 | print('')
215 |
216 | for line in nineteenth:
217 | for c in line:
218 | print(c, end='')
219 | sys.stdout.flush()
220 | sleep(0.08)
221 | time.sleep(delay19)
222 | print('')
223 |
224 | for line in twentieth:
225 | for c in line:
226 | print(c, end='')
227 | sys.stdout.flush()
228 | sleep(0.08)
229 | time.sleep(delay20)
230 | print('')
231 |
232 | for line in twentyfirst:
233 | for c in line:
234 | print(c, end='')
235 | sys.stdout.flush()
236 | sleep(0.08)
237 | time.sleep(delay21)
238 | print('')
239 |
240 | for line in twentysecond:
241 | for c in line:
242 | print(c, end='')
243 | sys.stdout.flush()
244 | sleep(0.06)
245 | time.sleep(delay22)
246 | print('')
247 |
248 | for line in twentythird:
249 | for c in line:
250 | print(c, end='')
251 | sys.stdout.flush()
252 | sleep(0.06)
253 | time.sleep(delay23)
254 | print('')
255 |
256 | for line in twentyfourth:
257 | for c in line:
258 | print(c, end='')
259 | sys.stdout.flush()
260 | sleep(0.07)
261 | time.sleep(delay24)
262 | print('')
263 |
264 | for line in twentyfifth:
265 | for c in line:
266 | print(c, end='')
267 | sys.stdout.flush()
268 | sleep(0.06)
269 | time.sleep(delay25)
270 | print('')
271 |
272 | for line in twentysixth:
273 | for c in line:
274 | print(c, end='')
275 | sys.stdout.flush()
276 | sleep(0.07)
277 | time.sleep(delay26)
278 | print('')
279 |
280 | for line in twentyseventh:
281 | for c in line:
282 | print(c, end='')
283 | sys.stdout.flush()
284 | sleep(0.07)
285 | time.sleep(delay27)
286 | print('')
287 |
288 | for line in twentyeighth:
289 | for c in line:
290 | print(c, end='')
291 | sys.stdout.flush()
292 | sleep(0.05)
293 | time.sleep(delay28)
294 | print('')
295 |
296 | for line in twentyninth:
297 | for c in line:
298 | print(c, end='')
299 | sys.stdout.flush()
300 | sleep(0.05)
301 | time.sleep(delay29)
302 | print('')
303 |
304 | print_lyrics()
305 |
--------------------------------------------------------------------------------