Skip to content

Instantly share code, notes, and snippets.

View snth's full-sized avatar

Tobias Brandt snth

View GitHub Profile
@snth
snth / jazzTracks.prql
Last active August 5, 2024 13:02
jazzTracks example in PRQL
# Try this for yourself at: https://prql-lang.org/playground/
let arr_agg = func x -> s"array_agg({x})"
let jazzTracks = (
from t=tracks
join g=genres (==genre_id && g.name=="Jazz")
select {t.*, genre=g.name}
)

Hello

Welcome!

@snth
snth / do_nothing_script.py
Created November 3, 2021 05:10
Procedural version of do nothing script
import sys
def wait_for_enter():
input("Press Enter to continue: ")
def create_ssh_keys(context):
"""Run:
ssh-keygen -t rsa -f ~/{username}
"""
pass