* sort Used to order an array of integers in ascending order (O(n)).
                     * @param {Array} arr
                     * @return {Promise}
                    function sort (arr) {
                        return new Promise(resolve => {
                            const sorted = [];
                            for (const item of arr) {
                                setTimeout(item => sorted.push(item), item, item);
                            setTimeout(() => resolve(sorted), arr.reduce((a, b) => a + b, 0) + 1);
                    «Nullam elementum blandit molestie.
                    Aenean condimentum lectus ut felis.
                    Phasellus fringilla nisl tincidunt dolor.»
                    «Nam quis ante sed neque rhoncus.
                    Proin porta, turpis quis iaculis.
                    Maecenas tristique vulputate magna, vel laoreet.»
                    «Nullam lobortis turpis a tempor molestie.
                    Maecenas fringilla nisl at malesuada porta.»

Latest Posts

Flexible OLED Display, Arduino and PONG

Recently I bought a flexible OLED display (really hard to find), very small but efficient and foldable! Fortunately they provided a library for Arduino so all I had to do was to mount the circuit and…

How to Detect Collision Side in Unity 2D

Detecting the side of a collision might be fundamental for certain games, Unity doesn't help doing this: when a collision occurs only basic information is calculated, like the contact points of the c…

My first post

Finally Malgol is online. I hope you like this design, I have been working on it for months, it is available on GitHub. I have a lot of things to write and I can't wait to share them with the WWW.