's Avatar

@peticol.as

15
Followers
30
Following
8
Posts
24.11.2024
Joined
Posts Following

Latest posts by @peticol.as

New year, same me trying to fulfill old year's commitments.

02.01.2026 23:12 👍 2 🔁 0 💬 0 📌 0

It’s funny how phones have made clock towers obsolete. Like now I can just google images of clock towers whenever I want

08.09.2025 16:06 👍 1271 🔁 199 💬 7 📌 8

One trig problem away from building the most unhinged ruler app

07.09.2025 17:02 👍 0 🔁 0 💬 0 📌 0
Post image

Accurate representation of making social commitments in your 30s

07.08.2025 14:54 👍 0 🔁 0 💬 0 📌 0
Screenshot of salad AI

Screenshot of salad AI

Nobody:

Just Salad:
"We're just salad and AI"

14.05.2025 19:17 👍 0 🔁 0 💬 0 📌 0

Wait. Is the Fuji x100vi just Gen Z's version of the vintage Instagram filter?

25.02.2025 14:50 👍 0 🔁 0 💬 0 📌 0

Manager: "What's this milestone 'Living on a prayer' ?"
Me: "That's the documentation deliverable."
Manager: "What's the status of that?"
Me: "We're halfway there"
Manager: "Why is progress so slow?"
Me: "You fired Tommy"
Manager: "So?"
Me: "Tommy used to work on the docs"

23.02.2025 21:12 👍 5345 🔁 1489 💬 91 📌 94
With Semicolons Version:
(function() {
  var totalSeconds = 300; // 5 minutes in seconds;
  var timerElement = document.getElementById('timer');

  function updateTimer() {
    var minutes = Math.floor(totalSeconds / 60);
    var seconds = totalSeconds % 60;
    if (seconds < 10) {
      seconds = "0" + seconds;
    }
    timerElement.textContent = minutes + ":" + seconds;
    totalSeconds--;
    if (totalSeconds < 0) {
      clearInterval(intervalId);
    }
  };

  updateTimer();
  var intervalId = setInterval(updateTimer, 1000);
})();

Without Semicolons Version:
let duration = 5 * 60 // 5 minutes in seconds
const timerDisplay = document.getElementById('timer')
const interval = setInterval(() => {
  let minutes = Math.floor(duration / 60)
  let seconds = duration % 60
  minutes = minutes < 10 ? "0" + minutes : minutes
  seconds = seconds < 10 ? "0" + seconds : seconds
  timerDisplay.textContent = minutes + ":" + seconds
  if (duration <= 0) {
    clearInterval(interval)
    timerDisplay.textContent = "Time's up!"
  }
  duration--
}, 1000)

With Semicolons Version: (function() { var totalSeconds = 300; // 5 minutes in seconds; var timerElement = document.getElementById('timer'); function updateTimer() { var minutes = Math.floor(totalSeconds / 60); var seconds = totalSeconds % 60; if (seconds < 10) { seconds = "0" + seconds; } timerElement.textContent = minutes + ":" + seconds; totalSeconds--; if (totalSeconds < 0) { clearInterval(intervalId); } }; updateTimer(); var intervalId = setInterval(updateTimer, 1000); })(); Without Semicolons Version: let duration = 5 * 60 // 5 minutes in seconds const timerDisplay = document.getElementById('timer') const interval = setInterval(() => { let minutes = Math.floor(duration / 60) let seconds = duration % 60 minutes = minutes < 10 ? "0" + minutes : minutes seconds = seconds < 10 ? "0" + seconds : seconds timerDisplay.textContent = minutes + ":" + seconds if (duration <= 0) { clearInterval(interval) timerDisplay.textContent = "Time's up!" } duration-- }, 1000)

Kind of interesting: I asked o3-mini to build a 5-minute timer web app twice, once with "use semicolons in your JavaScript" and "don't use unnecessary semicolons in your JavaScript"

24.02.2025 20:40 👍 0 🔁 0 💬 0 📌 0

Normal People:
"Infinity"

Python:
"inf"

The madman who wrote LaTeX:
"infty"

23.02.2025 03:17 👍 2 🔁 0 💬 0 📌 0

I see a Garchomp, Greninja, Marshadow deck in my future

29.01.2025 09:29 👍 1 🔁 0 💬 0 📌 0