Skip to content

Instantly share code, notes, and snippets.

View ali-bahjati's full-sized avatar
🧙‍♂️
We gotta make these good times last!

Ali Behjati ali-bahjati

🧙‍♂️
We gotta make these good times last!
  • Douro Labs
  • Amsterdam, Netherlands
  • X @LiTiTwo
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ali-bahjati on github.
* I am ali_behjati (https://keybase.io/ali_behjati) on keybase.
* I have a public key ASDsrqQ_jMD9ZU0lL5HtPUwLVIoZPhDKb66lBZunHz_bkgo
To claim this, I am signing this object:
@ali-bahjati
ali-bahjati / nested_function_call_formatter.py
Created June 30, 2021 11:15
Nested Function Call Formatter (useful for graphite queries)
#!/usr/bin/env python3
# Useful to format and see how nested function calls specially graphite expressions
# unquote is used to replace url-encoded expressions (useful when you inspect graphite query)
from urllib.parse import unquote
import sys
BASE_INDENT = 4