awacke1 commited on
Commit
13d9ac1
·
1 Parent(s): bd49946

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +150 -0
app.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.markdown("""
4
+ # Laws of Power
5
+ - Never Outshine the Master 🌟
6
+ - Always Say Less Than Necessary 🤐
7
+ - Keep Your Friends Close, but Your Enemies Closer 👥🔍
8
+ - Conceal Your Intentions 🙅‍♂️💭
9
+ - Crush Your Enemy Totally 💥👊
10
+ - Use Absence to Increase Respect and Honor 🚶‍♂️👀
11
+ - Get Others to Do the Work for You 👥💪
12
+ - Think as You Like, but Behave Like Others 🤔👥
13
+ - Play to People's Fantasies 🌟🧚‍♀️
14
+ - Avoid Stepping on the Toes of Those Above You 🚶‍♂️👞
15
+
16
+ # Laws of Success
17
+ - Set Clear Goals and Visualize Them 🎯🖼️
18
+ - Take Action and Persevere 💪🚀
19
+ - Continuously Learn and Adapt 📚🔄
20
+ - Build Strong Relationships and Networks 👥🤝
21
+ - Embrace Failure and Learn from It ❌📖
22
+ - Take Ownership of Your Actions and Results 🙋‍♂️📊
23
+ - Stay Focused and Prioritize 🎯🔝
24
+ - Maintain a Positive Attitude and Mindset 😄🌈
25
+ - Practice Discipline and Consistency 📆🔁
26
+ - Celebrate Milestones and Reward Yourself 🎉🏆
27
+
28
+ ## Intersection List
29
+ - Laws of Power:
30
+ - Never Outshine the Master
31
+ - Always Say Less Than Necessary
32
+ - Keep Your Friends Close, but Your Enemies Closer
33
+ - Conceal Your Intentions
34
+ - Crush Your Enemy Totally
35
+ - Use Absence to Increase Respect and Honor
36
+ - Get Others to Do the Work for You
37
+ - Think as You Like, but Behave Like Others
38
+ - Play to People's Fantasies
39
+ - Avoid Stepping on the Toes of Those Above You
40
+
41
+ - Laws of Success:
42
+ - Set Clear Goals and Visualize Them
43
+ - Take Action and Persevere
44
+ - Continuously Learn and Adapt
45
+ - Build Strong Relationships and Networks
46
+ - Embrace Failure and Learn from It
47
+ - Take Ownership of Your Actions and Results
48
+ - Stay Focused and Prioritize
49
+ - Maintain a Positive Attitude and Mindset
50
+ - Practice Discipline and Consistency
51
+ - Celebrate Milestones and Reward Yourself
52
+
53
+ ## Heatmap of Dimensions
54
+ - Success:
55
+ - Goals
56
+ - Action
57
+ - Learning
58
+ - Relationships
59
+ - Failure
60
+ - Ownership
61
+ - Focus
62
+ - Attitude
63
+ - Discipline
64
+ - Milestones
65
+
66
+ - Power:
67
+ - Master
68
+ - Necessary
69
+ - Enemies
70
+ - Intentions
71
+ - Enemy
72
+ - Absence
73
+ - Work
74
+ - Behave
75
+ - Fantasies
76
+ - Above
77
+ """)
78
+
79
+ import nltk
80
+ from nltk.corpus import wordnet as wn
81
+
82
+ nltk.download('wordnet')
83
+
84
+ # Laws of Power
85
+ laws_of_power = [
86
+ ("Never Outshine the Master", "Avoid overshadowing or showing up your superiors, as it can lead to jealousy and resentment."),
87
+ ("Always Say Less Than Necessary", "Control your words and reveal only what is necessary, as excessive talking can lead to mistakes or giving away too much information."),
88
+ ("Keep Your Friends Close, but Your Enemies Closer", "Stay aware of your enemies and their actions, as understanding their motives and intentions can help you anticipate and counter their moves."),
89
+ ("Conceal Your Intentions", "Keep your true intentions hidden to maintain an element of surprise and gain an advantage in negotiations or conflicts."),
90
+ ("Crush Your Enemy Totally", "When facing opposition, eliminate any chance of retaliation or future threats by decisively defeating your enemies."),
91
+ ("Use Absence to Increase Respect and Honor", "Create a sense of importance and value by occasionally withdrawing from the spotlight, making others appreciate your presence more."),
92
+ ("Get Others to Do the Work for You", "Delegate tasks and responsibilities to others, allowing you to focus on higher-level strategies and maintain control over the outcome."),
93
+ ("Think as You Like, but Behave Like Others", "Blend in with your surroundings and adapt to social norms, as deviating too much from the norm can lead to isolation or suspicion."),
94
+ ("Play to People's Fantasies", "Appeal to people's desires and aspirations, tapping into their fantasies to gain their support or influence their decisions."),
95
+ ("Avoid Stepping on the Toes of Those Above You", "Be cautious not to offend or challenge those in positions of power, as it can lead to negative consequences for your own advancement.")
96
+ ]
97
+
98
+ # Laws of Success
99
+ laws_of_success = [
100
+ ("Set Clear Goals and Visualize Them", "Define specific and achievable goals, and visualize yourself achieving them to increase motivation and focus."),
101
+ ("Take Action and Persevere", "Act upon your goals and persist through challenges and setbacks, as consistent effort is essential for success."),
102
+ ("Continuously Learn and Adapt", "Embrace a growth mindset and seek knowledge and new skills, as the ability to adapt to changing circumstances is crucial for success."),
103
+ ("Build Strong Relationships and Networks", "Cultivate meaningful connections with others, as strong relationships and networks can provide support, opportunities, and valuable insights."),
104
+ ("Embrace Failure and Learn from It", "See failure as a learning opportunity and use it to improve and grow, as resilience and the ability to bounce back are vital for success."),
105
+ ("Take Ownership of Your Actions and Results", "Accept responsibility for your choices and outcomes, as taking ownership empowers you to make necessary changes and drive your own success."),
106
+ ("Stay Focused and Prioritize", "Concentrate your time and energy on the most important tasks and goals, avoiding distractions that can hinder progress."),
107
+ ("Maintain a Positive Attitude and Mindset", "Cultivate optimism and resilience, as a positive attitude can help you overcome challenges and attract opportunities."),
108
+ ("Practice Discipline and Consistency", "Develop self-discipline and maintain consistent effort towards your goals, as small daily actions can lead to significant long-term success."),
109
+ ("Celebrate Milestones and Reward Yourself", "Acknowledge and celebrate your achievements along the way, as rewarding yourself reinforces positive behavior and motivates further success.")
110
+ ]
111
+
112
+ # Intersection List
113
+ intersection_list = [law[0] for law in laws_of_power if law[0] in [law[0] for law in laws_of_success]]
114
+
115
+ # Heatmap of Dimensions
116
+ success_words = ['Goals', 'Action', 'Learning', 'Relationships', 'Failure', 'Ownership', 'Focus', 'Attitude', 'Discipline', 'Milestones']
117
+ power_words = ['Master', 'Necessary', 'Enemies', 'Intentions', 'Enemy', 'Absence', 'Work', 'Behave', 'Fantasies', 'Above']
118
+
119
+ heatmap = []
120
+ for word in success_words:
121
+ if word in power_words:
122
+ heatmap.append(word)
123
+
124
+ # Print the laws of power
125
+ print("## Laws of Power")
126
+ for law in laws_of_power:
127
+ print(f"- {law[0]} {law[1]}")
128
+
129
+ # Print the laws of success
130
+ print("\n## Laws of Success")
131
+ for law in laws_of_success:
132
+ print(f"- {law[0]} {law[1]}")
133
+
134
+ # Print the intersection list
135
+ print("\n## Intersection List")
136
+ for law in intersection_list:
137
+ print(f"- {law}")
138
+
139
+ # Print the heatmap of dimensions
140
+ print("\n## Heatmap of Dimensions")
141
+ print("- Success:")
142
+ for word in success_words:
143
+ if word in heatmap:
144
+ print(f" - {word}")
145
+ print("\n- Power:")
146
+ for word in power_words:
147
+ if word in heatmap:
148
+ print(f" - {word}")
149
+
150
+