Skip to content

Instantly share code, notes, and snippets.

View Dragonink's full-sized avatar

Tanguy Dragonink

View GitHub Profile
@Dragonink
Dragonink / README.md
Created February 13, 2025 11:47
How to Typst + PanDiff

How to Typst + PanDiff

  1. Prepare a diff.typ source file as shown in this Gist.
  2. Provided you have two Typst SOURCE files named a.typ and b.typ, execute:
    pandiff --from typst --to typst a.typ b.typ > diff.content.typ
  3. Compile the diff.typ file:

typst compile diff.typ

Keybase proof

I hereby claim:

  • I am dragonink on github.
  • I am dragonink (https://keybase.io/dragonink) on keybase.
  • I have a public key ASAxkjp35hlUHtxCBZE9COhL0p39bDMJ8Q7K0QJkeLkW-Qo

To claim this, I am signing this object:

@Dragonink
Dragonink / Cargo.toml
Last active March 27, 2025 11:13
Useful Rust lints
[lints.rust]
# Correctness
let-underscore = "deny"
meta_variable_misuse = "deny"
missing_abi = "forbid"
unsafe_attr_outside_unsafe = "forbid"
unsafe_op_in_unsafe_fn = "forbid"
unused_must_use = "deny"
# Restriction
missing_docs = "warn"
@Dragonink
Dragonink / debug.mk
Created January 25, 2022 21:15
Util Makefile snippets
# DEBUG VARIABLE FUNCTION
#
# USAGE: $(call debug,<var_name>)
# <var_name> is the identifier of the variable to debug
#
# EXAMPLE:
# $(call debug,ARCH) print "ARCH = x86" provided the variable ARCH has the value "x86"
debug = $(info $1 = $($1))