Tomek Świstak's Avatar

Tomek Świstak

@swistak.codes

🦫 swistak.codes author (Polish) 🤓 JavaScript Developer (10+ years in IT) ☁️ Software Architect 🎸 Writing mostly IT related stuff (English and Polish) 🎯 Also: games, music, movies etc ➡️ More: https://linktr.ee/swistak.codes

61
Followers
250
Following
169
Posts
20.11.2024
Joined
Posts Following

Latest posts by Tomek Świstak @swistak.codes

Preview
Jak działają kody 2FA? Artykuł wyjaśniający, w jaki sposób działają kody 2FA, czyli dwuetapowej weryfikacji. Dowiedz się, jak to możliwe, że aplikacje generujące kody 2FA działają całkowicie offline, wymagając jedynie jedno...

swistak.codes/post/kody-2fa/

#juniordev #algorytmika #programowanie #juniordeveloper #devblog #javascript #it #informatyka #algorytm #cybersecurity

18.02.2026 09:21 👍 0 🔁 0 💬 0 📌 0
Preview
Problem selekcji Artykuł omawiający problem selekcji, czyli znalezienia k-tego najmniejszego elementu w zbiorze danych, wraz z różnymi algorytmami jego rozwiązania.

swistak.codes/post/problem...

#javascript #informatyka #programowanie #algorytmika #it #devblog #algorytm #juniordev #juniordeveloper

04.02.2026 19:10 👍 1 🔁 0 💬 0 📌 0
Preview
Liczby zespolone Artykuł omawia, czym są liczby zespolone i w jaki sposób mogą przydać się programistom.

swistak.codes/post/liczby-...

#algorytmika #programowanie #juniordev #devblog #matematyka #informatyka #javascript #it #juniordeveloper #algorytm

22.12.2025 22:07 👍 0 🔁 0 💬 0 📌 0
Preview
Znajdowanie dominującej barwy Artykuł omawia operacje na barwach w grafice komputerowej, takie jak określenie koloru dominującego, chroma keying i znajdowanie barw dopełniających.

swistak.codes/post/barwa-d...

03.12.2025 16:10 👍 0 🔁 0 💬 0 📌 0
comparison between apple's finder icon and mine. apple's is the split blue and white smiley face, mine is two blue and white anime girls making out

comparison between apple's finder icon and mine. apple's is the split blue and white smiley face, mine is two blue and white anime girls making out

comparison between discord's icon and mine. mine is like a screaming cat on a blue/purple slimy background

comparison between discord's icon and mine. mine is like a screaming cat on a blue/purple slimy background

comparison between celsys's clip studio paint icon and mine. mine is similar but rotated with some comic styling and pink and blue highlights

comparison between celsys's clip studio paint icon and mine. mine is similar but rotated with some comic styling and pink and blue highlights

comparison between mozilla's firefox icon and mine. mine is similar but looks closer to the old firefox icon and brings back the little arm and gives the fox a cute little smiley face

comparison between mozilla's firefox icon and mine. mine is similar but looks closer to the old firefox icon and brings back the little arm and gives the fox a cute little smiley face

last week i remembered that macOS lets you set your own icons and that *I* have the power to delegitimize the professionalism of the software that runs on my machine, so here's a thread of the 16 new icons i've made so far

i really forgot how fun it was to just sit down and make art for myself :')

29.11.2025 01:48 👍 12670 🔁 3301 💬 38 📌 101
Preview
Określanie trudności pisania słowa Artykuł opisuje, w jaki sposób możemy mierzyć, jak ciężko jest napisać słowo na klawiaturze.

Pisząc bezwzrokowo na klawiaturze, jedne słowa wpisuje się łatwiej, inne trudniej – niektóre niemal bez ruchu palców, inne wymagają gimnastyki. Czy można to zmierzyć? Sprawdziłem!

Zapraszam do lektury:
swistak.codes/post/trudnos...

11.11.2025 22:58 👍 0 🔁 0 💬 0 📌 0
Preview
Silnia i powiązane zagadnienia Artykuł opisuje funkcję silni, jej zastosowania, obliczanie i powiązane zagadnienia matematyczne.

Silnia to jedna z szerzej znanych funkcji matematycznych. Z jednej strony podczas nauki matematyki kojarzymy ją mocno z kombinatoryką, z drugiej podczas nauki programowania stanowi sztandarowy przykład rekurencji. Ten temat jednak warto rozszerzyć.
swistak.codes/post/silnia/

25.09.2025 06:01 👍 0 🔁 0 💬 0 📌 0
Preview
Renderowanie grafiki w stylu Wolfenstein 3D Artykuł przedstawia algorytmikę stojącą za renderowaniem grafiki w stylu Wolfenstein 3D. Pomija detale implementacyjne oryginału.

Wolfenstein 3D nie był pierwszą grą z trójwymiarowym światem, ale za to była pierwszą, która wprowadziła graczy w świat 3D w sposób przystępny. Technicznie najciekawszą rzeczą w tej grze jest renderowanie 3D. Omówmy je i zaimplementujmy w JavaScript.
swistak.codes/post/rendero...

25.06.2025 08:23 👍 0 🔁 0 💬 0 📌 0
Preview
Wyszukiwanie obiektów w przestrzeni Artykuł przedstawia algorytmy wyszukiwania obiektów w przestrzeni, które są wykorzystywane w różnych dziedzinach, takich jak np. gry komputerowe.

Wyszukiwanie obiektów w przestrzeni - przydatne przykładowo przy programowaniu gier. W artykule przedstawiam przykładowe podejścia do tego problemu, ograniczając się do przestrzeni dwuwymiarowej.
swistak.codes/post/wyszuki...

06.06.2025 09:36 👍 0 🔁 0 💬 0 📌 0
GitHub - swistak-codes/blog: Publiczna kopia kodu bloga świstak.codes Publiczna kopia kodu bloga świstak.codes. Contribute to swistak-codes/blog development by creating an account on GitHub.

Bezpośredni link do GitHuba: github.com/swistak-code...

17.04.2025 07:41 👍 0 🔁 0 💬 0 📌 0
Preview
świstak.codes staje się open‑source! W artykule opisuję przejście świstak.codes na open-source i dlaczego kod wygląda tak, a nie inaczej.

Z okazji 5-lecia bloga świstak.codes i 3-lecia jego przepisania postanowiłem udostępnić jego źródła na GitHubie. Jeśli jesteś ciekaw(a) więcej szczegółów, a także informacji o tym, dlaczego kod jest napisany tak, a nie inaczej, to zapraszam do lektury.
swistak.codes/offtopic/ope...

17.04.2025 07:41 👍 0 🔁 0 💬 1 📌 0
Preview
Losowość w informatyce Artykuł omawia temat losowości w informatyce. Opisuje, dlaczego losowość jest ważna w informatyce i jak ją osiągamy.

W informatyce bardzo często spotykamy się z pojęciem losowości. Tylko odpowiedzmy sobie na kluczowe pytanie — jak w ogóle komputer losuje? Czy komputer jest w stanie wygenerować coś, co jest naprawdę losowe?

Zapraszam do lektury!
swistak.codes/post/losowosc/

#it #programowanie #algorytmy

12.03.2025 07:56 👍 0 🔁 0 💬 0 📌 0
Preview
Korekcja perspektywy — algorytmiczne podejście Artykuł przedstawia algorytmiczne podejście do korekcji perspektywy w grafice komputerowej. Rozpatrzymy problem z punktu widzenia matematyki i zaimplementujemy wszystko od zera.

W aplikacjach graficznych jedną z dostępnych funkcji jest możliwość skorygowania perspektywy wykonanego zdjęcia. Robienie tego jest tematem tego artykułu. Zrozummy temat z punktu widzenia matematyki i zaimplementujmy wszystko od zera. Wskażę też, gdzie znaleźć gotowce.

swistak.codes/post/korekcj...

12.02.2025 10:13 👍 1 🔁 0 💬 0 📌 0
A custom function that returns different values based on light or dark mode being used to visit the page.

A custom function that returns different values based on light or dark mode being used to visit the page.

CSS Custom Functions are coming … and they are going to be a game changer!

👉 brm.us/css-custom-f...

09.02.2025 01:21 👍 399 🔁 92 💬 18 📌 18
Preview
Explore the complexities of division remainders in programming. Learn how different languages handle modulo operations and the math behind them. Explore the complexities of division remainders in programming. Learn how different languages handle modulo operations and the math behind them.

Did you know that computing the remainder of a division varies across different programming languages, and that most implementations don’t align with the mathematical definition?

Read about it here: 4markdown.com/the-curious-...

03.02.2025 09:40 👍 0 🔁 0 💬 0 📌 0
Preview
Chińskie twierdzenie o resztach Chińskie twierdzenie o resztach to twierdzenie matematyczne, które pozwala na rozwiązywanie układów równań modularnych. Dowiedz się, jak działa chińskie twierdzenie o resztach i jakie ma zastosowania.

Piąty rok istnienia bloga świstak.codes zacznijmy z przytupem. Czas więc poeksplorować chińskie twierdzenie o resztach. Dowiedzmy się, o co w nim chodzi, jak działa i jakie ma praktyczne zastosowania. Co najważniejsze dla programistów, pokażę, jak je zaimplementować.

swistak.codes/post/chinski...

22.01.2025 09:21 👍 1 🔁 0 💬 0 📌 0
Post image

😏

18.01.2025 12:40 👍 301 🔁 36 💬 15 📌 5
Video thumbnail

I made a Doom source port that runs within a PDF file.

PDFs support Javascript, so Emscripten is used to compile Doom to asm.js, which is then run within the PDF engine. Input/output is done by manipulating text input fields.

doompdf.pages.dev/doom.pdf

github.com/ading2210/do...

13.01.2025 04:16 👍 4120 🔁 1929 💬 71 📌 220
Preview
Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more! Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more!

In case you missed it:

I've translated my article about measuring execution time into English. In it, I explain how to do it properly and interpret the results.

Check it out here:
4markdown.com/measuring-ex...

14.01.2025 07:07 👍 0 🔁 0 💬 0 📌 0
Preview
Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more! Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more!

So, where’s the article? You can read it here: 4markdown.com/measuring-ex...

What do you think? Drop me a comment if you like this content—it’ll definitely motivate me to translate more posts!

BTW. Fresh content is coming to świstak.codes at the end of January.

13.01.2025 09:03 👍 1 🔁 0 💬 0 📌 0

Since I want to keep świstak.codes in Polish, I’ve used a different platform for this translation. I decided to try out 4Markdown by @polubis.bsky.social, a relatively new platform designed for writing and publishing educational content.

13.01.2025 09:03 👍 0 🔁 0 💬 1 📌 0

The first article I chose to translate is...

"Measuring Execution Time"

This article was originally published as "Mierzenie czasu wykonania" about a year ago.

13.01.2025 09:03 👍 0 🔁 0 💬 1 📌 0

This year, I’m starting to translate some świstak.codes content into English! It won’t be regular, and I won’t translate everything, but I think the English-speaking community might enjoy a curated selection of my (very subjective) “best-of.”

13.01.2025 09:03 👍 0 🔁 0 💬 1 📌 0
Video thumbnail

Bad Apple but it's 6,500 regular expressions that i search for one at a time inside of vim

full writeup over here on my blog: eieio.games/blog/bad-app...

10.01.2025 18:18 👍 91 🔁 18 💬 3 📌 7

Let's finish it.

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

20/20

10.01.2025 13:54 👍 2 🔁 0 💬 0 📌 0

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

19/20

09.01.2025 13:55 👍 0 🔁 0 💬 0 📌 1

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

18/20

08.01.2025 11:06 👍 0 🔁 0 💬 0 📌 1

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

17/20

07.01.2025 10:19 👍 0 🔁 0 💬 0 📌 1

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

16/20

06.01.2025 18:58 👍 0 🔁 0 💬 0 📌 1

Brzmi jak coś, co mogłoby parę lat temu trafić do Polinuksa obok "popłochu jądra" 😄

05.01.2025 21:43 👍 1 🔁 0 💬 0 📌 0