Skip to content

Instantly share code, notes, and snippets.

View ww9's full-sized avatar
When everything hangs on a single moment, be sure you choose the right moment.

ww9

When everything hangs on a single moment, be sure you choose the right moment.
View GitHub Profile
@ww9
ww9 / _vanilla_go_web_server.md
Last active November 22, 2020 00:43 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies

Go vanilla web server

Go web server with logging, tracing, health check, graceful shutdown and zero dependencies.

@ww9
ww9 / A_README.md
Created August 21, 2020 01:52 — forked from gmamaladze/A_README.md
HashSet that preserves insertion order or .NET implementation of LinkedHashSet

HashSet that preserves insertion order or .NET implementation of LinkedHashSet

Many people naively assume an ordinary .NET HashSet preserves insertion order. Indeed HashSet accidentally preserves insertion order until you remove and re-add some elements. There is such a data structure in Java - LinkedHashSet which respects order and has O(1) RW times.

No, I did not find a (working) corresponding implementation in .NET. That's I wrote this one.

The implementation uses linked list in combination with dictionary to define the iteration, ordering and at the same time allow O(1) removal.

The order is not affected if an element is re-inserted into the set it retains it's old position.

@ww9
ww9 / .NET6Migration.md
Created September 19, 2021 01:54 — forked from davidfowl/.NET6Migration.md
.NET 6 ASP.NET Core Migration
@ww9
ww9 / README.rst
Created August 17, 2023 09:11 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.