1️⃣ Productive Morning: ✅
Woke up at 5.45am, did 15mins of yoga, journaled, healthy breakfast of pancakes with cashew butter and raspberries, daughter to school with no rush, laundry, cleaning etc.
2️⃣ Organise to-dos… and do them: ✅
3️⃣ 30 Minutes of Learning: ✅
4️⃣ Time to Code: ✅
- The following coding challenge to get my brain warmed up:
Trilingual democracy
When native speakers of one or more of these languages meet, they follow certain regulations to choose a language for the group.2 Here are the rules for groups of exactly three3 people:4 - When all three are native speakers of the same language, it also becomes their group's language.5a
- When two are native speakers of the same language, but the third person speaks a different language, all three will converse in the minority language.5b
- When native speakers of three different languages meet, they eschew these three languages and instead use the remaining of the four official languages.5c
The languages are encoded by the letters D for Deutsch, F for Français, I for Italiano, and K for Rumantsch.6
Your task is to write a function that takes a list of three languages and returns the language the group should use.7 8
Examples:9
- The language for a group of three native French speakers is French: FFF → F
- A group of two native Italian speakers and a Romansh speaker converses in Romansh: IIK → K
- When three people meet whose native languages are German, French, and Romansh, the group language is Italian: DFK → I
- Worked on the Intercom build. Made a big breakthrough, managing to debug an issue when adding characteristics. I found it tough to diagnose because It was silently failing, giving me an empty server response. It turned out to be a problem with the created_at argument.
5️⃣ Daily Reset: ✅
I've started making a 10min meditation part of my evening wind down before bed and its going well.
6️⃣ Support the Community: ✅
Quote of the day - “You were born into the opportunity as well as the responsibility to become legendary. You’ve been built to achieve masterwork-level projects, designed to realize unusually important pursuits and constructed to be a force for good on this tiny planet. You have it in you to reclaim sovereignty over your primal greatness in a civilization that has become fairly uncivilized. To restore your nobility in a global community where the majority shops for nice shoes and acquires expensive things yet rarely invests in a better self. Your personal leadership requires—no, demands—that you stop being a cyber-zombie relentlessly attracted to digital devices and restructure your life to model mastery, exemplify decency and relinquish the self-centeredness that keeps good people limited. The great women and men of the world were all givers, not takers. Renounce the common delusion that those who accumulate the most win. Instead, do work that is heroic…”
Notes: It was a day with a lot of time-consuming errands. I had a doctor’s appt and had to take my cat to the vet. These things in particular took longer than I expected. Considering, I am happy with everything I achieved today.