- pylance
- git lens
Open the preferences via Ctrl Shift P
#!/usr/bin/env bash | |
QUOTED_ARRAY="-Djava=\"one 'and' two\" -Djavax=\"three four\"" | |
while IFS= read -r -d '' item; do echo "$item"; done < <(xargs printf '%s\0' <<< "$QUOTED_ARRAY") | |
# Output: | |
# -Djava=one 'and' two | |
# -Djavax=three four |
# (C) Tai Kedzierski | |
# LGPLv3 | |
from collections import OrderedDict | |
from typing import Any, Union, List | |
class DataTable(list): | |
def __init__(self, data:List[List[Any]]): | |
""" Builds a table, after popping the first line which provides headers |
#!/usr/bin/env bbrun | |
# Steps obtained from: | |
# https://ubuntuhandbook.org/index.php/2021/10/anbox-run-android-apps-ubuntu/ | |
#%include std/out.sh | |
#%include std/askuser.sh | |
set -euo pipefail |
sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop | |
xdg-desktop-menu forceupdate |
<!DOCTYPE html> | |
<html><head> | |
<style> | |
python { display: none; } | |
</style> | |
<script src="https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js"></script> | |
<script> | |
// https://pyodide.org/en/stable/usage/quickstart.html | |
pyscripts = document.getElementsByTagName("python"); | |
let pyodide = null |
# ... add this to your bashrc to turn off those pesky warnings when running Groovy | |
# From https://github.com/apache/groovy/commit/a7f7cdd352a40dd7acd2def999eb560c2b76904e | |
# Via https://dev.to/erichelgeson/removing-illegal-reflective-access-warnings-in-grails-4-393o | |
_java_opens=( | |
--add-opens=java.base/java.io=ALL-UNNAMED | |
--add-opens=java.base/java.lang=ALL-UNNAMED | |
--add-opens=java.base/java.lang.annotation=ALL-UNNAMED | |
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED | |
--add-opens=java.base/java.lang.module=ALL-UNNAMED |
The default setup for the logging utility is a little unwieldy to set up for every project - though once done, it is likely to seldom change.
This snippet provides a pre-configured global logging utility allowing for a log level to be set via environment variable,
as well as a pretty-print dump()
log function that writes when level is set to DEBUG.
By default, logging goes to stdout
, but can be redirected to a file.