Skip to content

Instantly share code, notes, and snippets.

@brimonk
Created September 9, 2021 19:19
Show Gist options
  • Save brimonk/5b9a08077b31edcfdf6ca3f9224ac81a to your computer and use it in GitHub Desktop.
Save brimonk/5b9a08077b31edcfdf6ca3f9224ac81a to your computer and use it in GitHub Desktop.
Basically a small `dc` script that computes the distance between two points.
#!/usr/bin/env sh
dc -e "? ? - 2 ^ ? ? - 2 ^ + v p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment