Add Gematria mode 10 (v1.3.0)

Port gematria logic from gematria.py: Hebrew/Arabic/English letter
values with --lang flag (hebrew|arabic|english|all). Added to both
bin/zitsbit and distributed zitsbit.js. Version bumped to 1.3.0.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
This commit is contained in:
z8tek
2026-07-16 15:20:10 +04:00
co-authored by CommandCodeBot
commit f1c2cc2a24
3 changed files with 495 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
#!/bin/sh
set -e
BIN_DIR="${HOME}/bin"
SCRIPT_URL="https://app.z8tek.net/zitsbit/zitsbit.js"
TARGET="${BIN_DIR}/zitsbit"
echo ">>> Installing zitsbit..."
# Ensure ~/bin exists
mkdir -p "${BIN_DIR}"
# Download the script
echo ">>> Downloading from ${SCRIPT_URL}..."
if command -v curl >/dev/null 2>&1; then
curl -sfL "${SCRIPT_URL}" -o "${TARGET}"
elif command -v wget >/dev/null 2>&1; then
wget -q "${SCRIPT_URL}" -O "${TARGET}"
else
echo "ERROR: Need curl or wget to install." >&2
exit 1
fi
chmod +x "${TARGET}"
# Add ~/bin to PATH if not already there
case ":${PATH}:" in
*:"${BIN_DIR}":*) ;;
*)
SHELL_PROFILE="${HOME}/.profile"
if [ -n "${ZSH_VERSION}" ]; then SHELL_PROFILE="${HOME}/.zshrc"; fi
if [ -n "${BASH_VERSION}" ]; then
[ -f "${HOME}/.bashrc" ] && SHELL_PROFILE="${HOME}/.bashrc"
fi
echo "export PATH=\"\${PATH}:${BIN_DIR}\"" >> "${SHELL_PROFILE}"
echo ">>> Added ${BIN_DIR} to PATH in ${SHELL_PROFILE}"
echo ">>> Run: source ${SHELL_PROFILE}"
;;
esac
echo ""
echo " zitsbit installed to ${TARGET}"
echo " Run: zitsbit --help"
echo ""