Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Peter Kehl peter-kehl

🏠
Working from home
View GitHub Profile
@peter-kehl
peter-kehl / rust_const_generics.md
Last active March 7, 2021 18:25
Rust Const Generics
View rust_const_generics.md

Presentation on Const Generics as of 1.50.0 stable and 1.52.0-nightly

Challenges

  • Beware no, or misleading, documentation
  • Syntax may seem arbitrary:
    • Need ::< turbofish at some places, ordinary < elsewhere.
    • Need {...} curly brackets around some const generic parameter values, not around others.
    • Some error messages feel like going in circles.
@peter-kehl
peter-kehl / 00_destructuring.md
Last active December 4, 2018 15:49 — forked from john2x/00_destructuring.md
Clojure Destructuring Tutorial and Cheat Sheet
View 00_destructuring.md

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

View Apps Script Gmail Utilities.md

Google Apps Script Gmail Utilities

##sendAndLabel(recipient, subject, body, options, label)##

An alternative to GmailApp.sendEmail(), which applies a label to the message thread in the sender's account.

Sends an email message with optional arguments. The email can contain plain text or an HTML body. The size of the email