170 days and counting

Categories: Development, Education

Initially, I planned to do one commit a day for at least 100 consecutive days. Well, that was 170 days ago and I’m still creating at least one commit a day. As you can see on the chart above, recently I haven’t built much “skyscrapers”, thus, it’s about time to create another section of high-rising towers. 😁

Codewars: Find the unique number 👨‍💻

Categories: Education

A while ago, I signed up at https://www.codewars.com/ to practice both my PHP and JS skills. I decided to publish my results and to compare them with the best practice solution if found, thus, here we go.

Task:

Given an array with at least three numbers.All numbers are equal except one.Find the unique numer.

My solution:

View this gist on GitHub

Best practice:

View this gist on GitHub

Resources:

sortrsortendcurrent

How can lb and lbs be the acronyms for pound? 🧐

Categories: Useless knowledge

Lb is an abbreviation of the Latin word libra. The primary meaning of libra was balance or scales (as in the astrological sign), but it also stood for the ancient Roman unit of measure libra pondo, meaning “a pound by weight.” We got the word “pound” in English from the pondo part of the libra pondo but our abbreviation comes from the libra. The libra is also why the symbol for the British pound is £—an L with a line through it. The Italian lira also used that symbol (with two lines through it), the word “lira” itself being a shortened version of libra.

Quote from https://www.mentalfloss.com/