Playground with Grok xAI

I am interested in the AI boom this year. So I am learning skills related to using AI. Based on this idea, I asked Grok to list their existing skills.

More …

Flipping Bits

Bit flipping is an algorithmic manipulation of binary digits (bits). It performs logical negation on a single bit, or on each of several bits, switching state 0 to 1 and vice versa. Bit flipping is one of the popular bit manipulation algorithms, alongside AND, OR, XOR, NOT, and bit shifts. It’s usually used in cryptography algorithms to obfuscate messages.

More …

Simple ASYNCIO Python 3

I have a problem with the use of asyncio. Every call to my function must run with an event loop. I hate it, because it makes my code too long and not efficient. I think using a decorator will simplify my code and work fast with async. This is my simple decorator that wraps an async function and calls it with an event loop.

More …