Skip to content

Instantly share code, notes, and snippets.

View Willienn's full-sized avatar
🌴
Living?

Willien Willienn

🌴
Living?
View GitHub Profile
@Willienn
Willienn / RedisJobQueue.cs
Created December 7, 2023 14:42 — forked from tenowg/RedisJobQueue.cs
A Message/Job Queue based on StackExchange.Redis and Redis Server
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
{
@Willienn
Willienn / html
Created July 27, 2023 20:43
Useful sites?
<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
@Willienn
Willienn / useful-things.jsx
Created October 19, 2022 19:17
Useful things
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;