This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using StackExchange.Redis; | |
| namespace CitySurvival.Redis | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="entry-content" itemprop="text"> | |
| <p>Without any More Useless Bla Bla, here goes the List of Undiscovered <strong>Useful websites</strong> updated daily.</p><div class="code-block code-block-3" style="margin: 8px auto; text-align: center; display: block; clear: both;"> | |
| <script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0956305217587314" crossorigin="anonymous" type="text/javascript"></script> | |
| <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0956305217587314" data-ad-slot="9883736448" data-ad-format="auto" data-full-width-responsive="true"></ins> | |
| <script type="text/javascript">(adsbygoogle=window.adsbygoogle||[]).push({});</script></div><div id="ez-toc-container" class="ez-toc-v2_0_51_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction"> | |
| <div class="ez-toc-title-container"> | |
| <p class="ez-toc-title">Table of Contents</p><div class="code-block code-block-2" style="margin: 8px auto; text-align: center; display: blo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Something = useMemo(() => { | |
| const dictionary = {}; | |
| currentItems.forEach((item) => { | |
| const categoryName = item.categoryName; | |
| if (dictionary[categoryName]) { | |
| // push item in a list | |
| dictionary[categoryName].push(item); | |
| } else { | |
| // create a list with an item; |