The importance of the CSS user-select property
A small detail can completely change how a product is perceived and the user-select property is one of those. Let's talk about one of the most underestimated CSS properties and see why you should star…
/** * 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.»
A small detail can completely change how a product is perceived and the user-select property is one of those. Let's talk about one of the most underestimated CSS properties and see why you should star…
There are many scenarios where the force generated by a collision is necessary to perform certain actions, for instance dealing damage when a player falls to the ground. In fact we may calculate the d…
Merging two arrays is very common while programming and many algorithms have been written to solve this problem, most modern languages offer APIs to solve these types of recurring problems and JavaScr…
Sometimes might happen that we need to reload an iframe but what is the cross browser solution? Let's see together how to reload an iframe with just one line of JavaScript code.
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 co…