Skip to content

Instantly share code, notes, and snippets.

<script>
var module = WebAssembly.instantiateStreaming(fetch("linked_list.wasm"), {});
</script>
@firelightning13
firelightning13 / [GUIDE] GPU Passthrough for Laptop with Fedora.md
Last active July 4, 2025 15:15
[GUIDE] GPU Passthrough for Laptop with Fedora

Running Windows 10/11 Guest with GPU Passthrough using laptop running Fedora

Abstract

This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)

There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc
@Glavak
Glavak / mechanics.txt
Created December 7, 2020 13:52
Список игровых механик из видео https://youtu.be/hq5fofOLI6w
Здоровье в качестве валюты как в некоторых комнатах Isaac'а или пули за здоровье в Bloodborne
Туман войны, он есть во многих стратегиях
Отсутствие меню, или меню вписанное в игровой мир, например в Antichamber
Красные бочки - наверное одна из самых шаблонных механик - но зато это делает её понятной всем игрокам
Такая широкая идея как редактирование мира, как в терарии и майнкрафте, или в astroneer, в котором она выглядит красивее засчёт отсутствия блоков
Гибкое создание кастомных заклинаний или оружия, как было в тех же Worms
Сохранение в кровати или в доме игрового персонажа
Bullet hell, и не обязательно как жанр, можно создать такого босса или уровень во многих 2D играх со стрельбой
Сложные взаимоотношения между нпс, когда мутанты сражаются с рейдерами, или система нпс в Streets Of Rouge
Изменение цвета уровня как в shift
@Rich-Harris
Rich-Harris / http-apis.md
Last active November 3, 2022 09:02
Next-gen Node HTTP APIs

I saw this poll on Twitter earlier and was surprised at the result, which at the time of writing overwhelmingly favours option 1:

Screen Shot 2020-09-10 at 10 19 22 AM

I've always been of the opinion that the (req, res, next) => {} API is the worst of all possible worlds, so one of two things is happening:

  • I'm an idiot with bad opinions (very possibly!)
  • People like familiarity
@pesterhazy
pesterhazy / indexeddb-problems.md
Last active July 2, 2025 19:28
The pain and anguish of using IndexedDB: problems, bugs and oddities

This gist lists challenges you run into when building offline-first applications based on IndexedDB, including open-source libraries like Firebase, pouchdb and AWS amplify (more).

Note that some of the following issues affect only Safari. Out of the major browsers, Chrome's IndexedDB implementation is the best.

Backing file on disk (WAL file) keeps growing (Safari)

When this bug occurs, every time you use the indexeddb, the WAL file grows. Garbage collection doesn't seem to be working, so after a while, you end up with gigabytes of data.

Random exceptions when working with a large number of indexeddb databases (Safari)

🌞 Morning 123 commits █▉░░░░░░░░░░░░░░░░░░░ 9.4%
🌆 Daytime 345 commits █████▌░░░░░░░░░░░░░░░ 26.3%
🌃 Evening 548 commits ████████▊░░░░░░░░░░░░ 41.8%
🌙 Night 295 commits ████▋░░░░░░░░░░░░░░░░ 22.5%
@semmel
semmel / Useful Combinators in Ramda.md
Last active June 18, 2024 17:32
Function Combinators with Ramda

Function Combinators with Ramda

Original Idea comes from [Avaq/combinators.js][avaq].

Name # [Haskell][] [Ramda][] [Crocks][] Functional Signature Functor m ⇒ Function f, g, h Evaluation
identity I id identity identity a → a
constant K const always constant a → b → a
eager application¹ A ($) call
@yogthos
yogthos / clojure-beginner.md
Last active July 1, 2025 02:53
Clojure beginner resources

Introductory resources