Skip to content

Instantly share code, notes, and snippets.

View Conaclos's full-sized avatar

Victorien Elvinger Conaclos

View GitHub Profile

Other posts

Lessons from Hash Table Merging

Merging two hash maps seems like an O(N) operation. However, while merging millions of keys, I encountered a massive >10x performance degradation unexpectedly. This post explores why some of the most popular libraries fall into this trap and how to fix it. The source code is available here.

@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active January 11, 2026 12:31
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.

@benfrankel
benfrankel / gamedev_assets.md
Created January 25, 2024 23:17
Gamedev free assets
@sindresorhus
sindresorhus / esm-package.md
Last active January 7, 2026 12:41
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@t-mat
t-mat / my_8x8_bitmap_chars.h
Created August 19, 2020 07:07
Classic arcade game style 8x8 bitmap font
// Classic arcade game style 8x8 bitmap font
//
// Copyright (C) 2020, Takayuki Matsuoka.
// SPDX-License-Identifier: CC0-1.0
// https://spdx.org/licenses/CC0-1.0.html
static const unsigned char my_8x8_bitmap_chars[][8] = {
{ // 32 (0x20) : ' '
0b00000000,
0b00000000,
0b00000000,
@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active January 9, 2026 17:07 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

@ohanhi
ohanhi / frp.md
Last active September 23, 2025 16:12
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@clemtibs
clemtibs / Commit Formatting.md
Last active July 6, 2025 15:32
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@grugq
grugq / gist:03167bed45e774551155
Last active January 10, 2026 02:28
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@staltz
staltz / introrx.md
Last active January 9, 2026 02:13
The introduction to Reactive Programming you've been missing