Here is my code. It's not clean, just for practice. The idea is that whatever big number you give, it shrinks to a recursion of 4, 2, 1.
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
const Collatz = (function () {
let numStep: number = 0;
function getStep(): number {
return numStep;
}
function resetStep(): void {
numStep = 0;
}
function CollatzSequence(num: number): number[] {
numStep++;
if (num <= 1) return [num];
else if (num % 2 === 0) return [num, ...CollatzSequence(num / 2)];
else return [num, ...CollatzSequence(num * 3 + 1)];
}
return {
CollatzSequence,
getStep,
resetStep,
};
})();
console.log(Collatz.CollatzSequence(477777));
console.log("steps:", Collatz.getStep());
Collatz.resetStep();▬▬▬▬▬▬▬▬▬▬
@tiletsolution
😁2
I recently came across an interesting concept called the Phi Coefficient, which calculates the correlation between two variables. (Check it out here: Phi Coefficient).
So, I decided to give it a try and had this cool idea: why not use it to find out how our daily activities affect our productivity?
Here's how it works:
Add the activities you performed each day.
Rate your daily productivity.
At the end of the week, calculate which activities correspond to positive or negative productivity.
It's simple and could be super insightful! 😃
I’m still figuring out the details, but what do you think? Any thoughts or suggestions? 💡
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
So, I decided to give it a try and had this cool idea: why not use it to find out how our daily activities affect our productivity?
Here's how it works:
Add the activities you performed each day.
Rate your daily productivity.
At the end of the week, calculate which activities correspond to positive or negative productivity.
It's simple and could be super insightful! 😃
I’m still figuring out the details, but what do you think? Any thoughts or suggestions? 💡
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
Tilet solution
I recently came across an interesting concept called the Phi Coefficient, which calculates the correlation between two variables. (Check it out here: Phi Coefficient). So, I decided to give it a try and had this cool idea: why not use it to find out how our…
Here this is how i implemented it. The code isn't perfect, but it covers the core operations I've been working on. just take a look if you're curious! The repo is here: phi-Repo
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
"The future belongs to those who see possibilities before they become obvious."
– John Sculley
In a dark, uncharted cave, a group of explorers stumbled through the darkness, their hands reaching out to feel their way. They couldn't see a thing, but each felt something under their fingers. One brushed it lightly with their palm, another grabbed a handful, while a third hesitated, thinking they were just touching soil.
Hours later, as they emerged into the light, they opened their hands to see what they had been holding. To their astonishment, what they thought was dirt or mere rocks turned out to be gold. Those who only brushed it lightly or hesitated had just a small amount, but the one who grabbed a handful was now rich beyond measure.
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
– John Sculley
In a dark, uncharted cave, a group of explorers stumbled through the darkness, their hands reaching out to feel their way. They couldn't see a thing, but each felt something under their fingers. One brushed it lightly with their palm, another grabbed a handful, while a third hesitated, thinking they were just touching soil.
Hours later, as they emerged into the light, they opened their hands to see what they had been holding. To their astonishment, what they thought was dirt or mere rocks turned out to be gold. Those who only brushed it lightly or hesitated had just a small amount, but the one who grabbed a handful was now rich beyond measure.
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Tilet solution
Book Summary Part 1 #Here_are_the_5_must_read_books_out_of_9 1. Blitzscaling 2. Thinking Fast and Slow 3. winning 4. Zero to One 5. Doughnut Economics Happy reading (or listening)! 😊 #Blinkist #BookSummaries #ReadingOnTheGo #LearnEveryDay ▬▬▬▬▬▬▬▬▬▬…
Book Summary Part 2
Here are the remaining 4 books as promised
6. Secrets of Sand Hill Road
7. The Beginning of Infinity
8. Superintelligence
9. Being You
Happy reading (or listening)! 😊
#Blinkist #BookSummaries #ReadingOnTheGo #LearnEveryDay
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Here are the remaining 4 books as promised
6. Secrets of Sand Hill Road
7. The Beginning of Infinity
8. Superintelligence
9. Being You
Happy reading (or listening)! 😊
#Blinkist #BookSummaries #ReadingOnTheGo #LearnEveryDay
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
👍1
Eloquent JavaScript.pdf
6.2 MB
Anyway, I've been reading this book called Eloquent JavaScript by Marijn Haverbeke. If you're interested in JS, give it a try. I practice 10-15 pages a day, and it's been really helpful.
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Flutter in Action.pdf
15.3 MB
For Flutter developer?
Best Dependency Collections
🔗 https://fluttergems.dev/
Best YouTube Channels
🔗 Fun with Flutter
🔗 Code With Andrea
🔗 Clean Architecture (Reso Coder)
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Best Dependency Collections
🔗 https://fluttergems.dev/
Best YouTube Channels
🔗 Fun with Flutter
🔗 Code With Andrea
🔗 Clean Architecture (Reso Coder)
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
👍1
Quick tip for you
if you’re stuck on a piece of code and it’s just not working, don’t waste time struggling. Seriously, take a break!
Here’s the scoop: if something isn’t working, don’t stress. Step back and review the basics. It’s not about proving yourself—it’s just that you might have missed something simple.
Remember, it’s okay to pause and study. This will save you time and make you a better coder. No need to tear your hair out! 😅
Quick tips:
1. Basics Are Key Review the fundamentals.
2. Ask for Help Don’t be shy—reach out to someone or search online.
3. Take Breaks Fresh eyes can make all the difference.
4. Stay Positive Every coder struggles. You’re doing great!
Keep going, and happy coding!
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
if you’re stuck on a piece of code and it’s just not working, don’t waste time struggling. Seriously, take a break!
Here’s the scoop: if something isn’t working, don’t stress. Step back and review the basics. It’s not about proving yourself—it’s just that you might have missed something simple.
Remember, it’s okay to pause and study. This will save you time and make you a better coder. No need to tear your hair out! 😅
Quick tips:
1. Basics Are Key Review the fundamentals.
2. Ask for Help Don’t be shy—reach out to someone or search online.
3. Take Breaks Fresh eyes can make all the difference.
4. Stay Positive Every coder struggles. You’re doing great!
Keep going, and happy coding!
▬▬▬▬▬▬▬▬▬▬
@tiletsolution
👍6
One important thing to remember on our journey of growth is that learning is not a straight line. 📈 Just because you learn 10 new things in a day doesn’t mean you’ll end up knowing 3650 things by the end of the year. That’s why it’s called a learning curve—it curves and twists in unexpected ways.
Sometimes you might feel like you've got a handle on something, and then, out of nowhere, it gets confusing again. 🤔 But don’t let that frustration get to you! It's completely normal. Instead of pushing yourself to learn everything at once, focus on your passion and treat learning like a hobby. 🎨
Stay aware of everything you do, and look for small ways to improve each day. 📈 Remember, it's all about progress, not perfection. So keep at it, enjoy the journey, and celebrate every little victory along the way. You’ve got this! 💪✨
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Sometimes you might feel like you've got a handle on something, and then, out of nowhere, it gets confusing again. 🤔 But don’t let that frustration get to you! It's completely normal. Instead of pushing yourself to learn everything at once, focus on your passion and treat learning like a hobby. 🎨
Stay aware of everything you do, and look for small ways to improve each day. 📈 Remember, it's all about progress, not perfection. So keep at it, enjoy the journey, and celebrate every little victory along the way. You’ve got this! 💪✨
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
❤3
just super curious – how many of you are developers here? Or maybe you're not? Let me know!
Anonymous Poll
21%
Front-End Developer
17%
Back-End Developer
36%
Full-Stack Developer
8%
UI/UX Designer
18%
🛠 Other (drop a comment and tell us!)
These videos are some of the best to start Upwork, believe me, you’re gonna thank me later!
https://www.youtube.com/watch?v=4vF2ekWH9UM
https://www.youtube.com/watch?v=XtRXf_0GDPM
https://www.youtube.com/watch?v=qF4QUXBJd-E
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
https://www.youtube.com/watch?v=4vF2ekWH9UM
https://www.youtube.com/watch?v=XtRXf_0GDPM
https://www.youtube.com/watch?v=qF4QUXBJd-E
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Guess what, folks! This channel gives you paid Udemy courses for FREE!
Check it out here: Coursevania
You can get certified with paid Udemy courses without spending a dime. Maybe most of you already know about it, but I just discovered it earlier. What a silly goose I am! 🦆
Just give it a try, you won't regret it! 😄
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Check it out here: Coursevania
You can get certified with paid Udemy courses without spending a dime. Maybe most of you already know about it, but I just discovered it earlier. What a silly goose I am! 🦆
Just give it a try, you won't regret it! 😄
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
🔥3
Ah, this feels kinda weird 😅
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
— Brian Kernighan and P.J. Plauger
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
— Brian Kernighan and P.J. Plauger
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
😁4
I was taking a some course recently and picked up some great tips on decision-making that I thought I'd share.
When faced with indecision, start by understanding what's holding you back and acknowledging your doubts. Then, list out the pros and cons of your options, set clear goals, and consider advice from friends or professionals you trust. Taking breaks for meditation or exercise can also help clear your mind.
Remember, making a decision, even if it's not perfect, is better than staying stuck. Learn from each choice you make to grow and avoid missed opportunities and unnecessary stress.
Unrealistic Thinking
🔴 Overestimating tasks can lead to procrastination and avoidance.
🔴 Underestimating tasks can result in poor planning and time management.
🔴 Unrealistic thinking can cause unnecessary stress and anxiety.
😔 It can also lead to disappointment and frustration when expectations are not met.
👎 Unrealistic thinking can affect self-esteem and confidence when goals are consistently unattainable
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
When faced with indecision, start by understanding what's holding you back and acknowledging your doubts. Then, list out the pros and cons of your options, set clear goals, and consider advice from friends or professionals you trust. Taking breaks for meditation or exercise can also help clear your mind.
Remember, making a decision, even if it's not perfect, is better than staying stuck. Learn from each choice you make to grow and avoid missed opportunities and unnecessary stress.
Unrealistic Thinking
🔴 Overestimating tasks can lead to procrastination and avoidance.
🔴 Underestimating tasks can result in poor planning and time management.
🔴 Unrealistic thinking can cause unnecessary stress and anxiety.
😔 It can also lead to disappointment and frustration when expectations are not met.
👎 Unrealistic thinking can affect self-esteem and confidence when goals are consistently unattainable
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Facebook
Log in or sign up to view
See posts, photos and more on Facebook.
👍5
I just deposited some money into a shiny new account they insisted I create, and now, when I try to withdraw, they tell me my signature is missing! So, guess what? My money is stuck!
Seriously, what’s up with Ethiopian banks? 🙄
@tiletsolution
Seriously, what’s up with Ethiopian banks? 🙄
@tiletsolution
Forwarded from Moh-Anbessa 👑
A friendly reminder
"If you won't start today, you won't start tomorrow either"
"If you won't start today, you won't start tomorrow either"
Have you ever noticed how our self-reliance has dropped since AI came along? 🤔 I always wonder how legends graduated without AI. They must truly be legends! Or are we becoming more productive than them? I use AI all the time, and I don't know what I'd do if AI was blocked worldwide. The Stone Age would rise again! 😁
I just remembered an ad for beer that says, "በሀላፊነት ይጠጡ" I think we need that for using AI too! 🍻
@tiletsolution
I just remembered an ad for beer that says, "በሀላፊነት ይጠጡ" I think we need that for using AI too! 🍻
@tiletsolution
😁5👍1
Have you heard of a Möbius strip? It's a fascinating loop with only one surface and one edge. You can easily make one by taking a strip of paper, giving it a half-twist, and then gluing the ends together.
Now, here's where it gets interesting. If you try to cut this strip down the middle, you'll end up with one long loop instead of two separate pieces. Try cutting it in half several times and you'll see the same result.
That's exactly how I feel when trying to solve certain problems—it just turns into a long, continuous loop with no inside or outside. If you start at any point and keep going, you'll cover the entire surface without ever encountering an edge, eventually returning to where you began.
It's a perfect metaphor for life's persistent challenges!
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
Now, here's where it gets interesting. If you try to cut this strip down the middle, you'll end up with one long loop instead of two separate pieces. Try cutting it in half several times and you'll see the same result.
That's exactly how I feel when trying to solve certain problems—it just turns into a long, continuous loop with no inside or outside. If you start at any point and keep going, you'll cover the entire surface without ever encountering an edge, eventually returning to where you began.
It's a perfect metaphor for life's persistent challenges!
Follow us on our social media platforms
Facebook | Telegram | LinkedIn | Instagram
@tiletsolution
❤3