Skip to content

Instantly share code, notes, and snippets.

View fabtjar's full-sized avatar

FabianTJ fabtjar

View GitHub Profile
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/UI }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Fortnite.com/UI }
using { /Verse.org/Colors }
ui_manager := class:
MoneyTextSize:float = 50.0
@fabtjar
fabtjar / t480-fedora-fingerprint.md
Created March 31, 2023 17:51 — forked from appelgriebsch/t480-fedora-fingerprint.md
ThinkPad T480 fingerprint reader on Fedora Linux

ThinkPad T480 fingerprint reader on Fedora Linux

Background

The Synaptics fingerprint sensor (06cb:009a) present on my T480 is not supported by libfprint and fprintd as it requires a non-free binary blob. uunicorn created open-fprintd, a replacement for fprintd, that allows for loading of binary blobs. In conjunction with their python-validity driver we are able to make use of the inbuilt fingerprint reader. The following instructions were tested against Fedora Linux 35.

Installing open-fprintd and python-validity

sudo dnf copr enable tigro/python-validity
sudo dnf install open-fprintd fprintd-clients fprintd-clients-pam python3-validity

An Example of Play

To further clarify what really goes on during an AD&D game, read the following example. This is typical of the sort of action that occurs during a playing session. Shortly before this example begins, three player characters fought a skirmish with a wererat (a creature similar to a werewolf but which becomes an enormous rat instead of a wolf). The wererat was wounded and fled down a tunnel. The characters are in pursuit. The group includes two fighters and a cleric.

Fighter 1 is the group's leader.

@fabtjar
fabtjar / get-nearest.hx
Last active April 19, 2020 16:47
Gets the nearest object in a group from the given position
public function getNearest(position:FlxPoint):FlxSprite {
var closet = {obj: null, dist: 0.0}
group.forEachAlive(obj -> {
var dist = obj.getPosition().distanceTo(position);
if (dist < closet.dist) {
closet.obj = obj;
closet.dist = dist;
}
});
return closet.obj;