Skip to content

Instantly share code, notes, and snippets.

View HannesGitH's full-sized avatar
👽
Working from home

HannesH HannesGitH

👽
Working from home
View GitHub Profile
@munrocket
munrocket / wgsl_3d_sdf.md
Last active May 22, 2024 17:13
WGSL 3D SDF Primitives

WGSL 3D SDF Primitives

Revision: 06.08.2023, https://compute.toys/view/407

Sphere - exact

fn sdSphere(p: vec3f, r: f32) -> f32 {
  return length(p) - r;
}
@jogboms
jogboms / sliver_colored_box.dart
Last active November 22, 2023 22:48
A simplified custom sliver widget
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class SliverColoredBox extends SingleChildRenderObjectWidget {
const SliverColoredBox({
Key key,
@required this.color,
@required Widget sliver,
}) : super(key: key, child: sliver);
@jb-alvarado
jb-alvarado / pci-passthrough.md
Last active October 27, 2023 02:16
PCI Passthrough on Fedora 31

PCI Passthrough

Hardware:

  • Mainboard ASUS PRIME Z390-A Z390
  • ASUS Dual-GTX1650-O4G
  • Intel i9 9900
  • 32GB Ram
  • NEC Corporation uPD720200 USB 3.0 Host Controller
  • Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (1 TB)