Skip to content

Instantly share code, notes, and snippets.

View arteme's full-sized avatar

Artem Egorkine arteme

  • Helsinki, Finland
View GitHub Profile
@adamw
adamw / gen.scala
Created September 6, 2022 07:15
How to generate an exhaustive match for a sealed trait in a Scala 3 macro?
// TestMacro.scala
import scala.quoted.*
object TestMacro {
inline def name[E](e: E): String = ${ nameImpl[E]('e) }
def nameImpl[E: Type](e: Expr[E])(using Quotes): Expr[String] = {
import quotes.reflect.*
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active July 12, 2024 23:40
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image