Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
TIL: Sleep sort. For an array of length N we can launch N tasks that'll sleep for some time (based on the sorting key) and then emit their value. Wait for all tasks to finish and woohoo, we have a sorted array.

#humor #algorithm #sorting
Unbelievable! A resume with points like:
- Expert in JavaScript, ..., Mia Khalifa, ...
- Led team of 6 engineers to mine Ethereum on company servers
- Spread Herpes STD to 60% of intern team
was good enough for companies like Reddit, Dropbox, Atlassian and others.

#hr #interview #humor
A short post on crash that'll happen if we invoke startForegroundService and then it'll take us too long to invoke startForeground. This guy's solution is to wait for the main thread first and only then to launch the service.

#service #thread #crash
Offtop, but it's worth it, I promise.
In this post author explains why japanese web is so different and so outdated, compared to what we have here.

#design #localization
In Vietnam COVID pass system used weak cryptography, which allowed researchers to get private key (and ability to generate valid QR codes) using several AWS instances, 9 hours and $250. Factoring as a Service indeed.

#cybersec #vulnerability
Inspirational talk about hacks and tricks The Ancients used to run awesome and complex games on NES.
- How to save progress if all you have is a read-only storage?
- How to perform physics calculations if you don't have fractions or division?
- How to generate a random number if you don't have a generator?

#talk #gamedev
An interesting post in Git mailing list: creator of JGit describes, what they have to do in order to make their Java implementation of Git faster and why they are still slower than C implementation.

#git #c #java
Someone really wanted to use the same color scheme across all the different tools. Meet Dracula. It supports a lot of things. IDEs, editors, terminals, you name it. They even have Thunderbird support!

#theme #tool #ide
Here's an interesting project: coding font tournament. Two snippets, a bunch of fonts, may the strongest win. Don't forget to turn "Hide font names" on, it'd be fair.

#font #tool
Sometimes I need to format some JSON, to convert seconds back and forth or ot encode-decode some URL. Usually I've been using some random "online URL encoder"s and stuff like that, but recently I've discovered this little sucker. All-in-one kind of tool, not too expensive, always at your fingertips.

#tool