Deploy opencode on a cluster without root.
# 1. install opencode
curl -fsSL https://opencode.ai/install | bash| /** | |
| * Debug overlay / issue reporter (admin or dev). | |
| * | |
| * Self-contained in-page tool: a small "BUG" tab on the right edge opens a | |
| * panel where the user can describe an issue and submit a capture bundle: | |
| * - screenshot (html2canvas, loaded on demand from a CDN) | |
| * - DOM | |
| * - browser console log (buffered from page load) | |
| * - screen size | |
| * and the app-side server + sidecar logs (last 15 min). |
Deploy opencode on a cluster without root.
# 1. install opencode
curl -fsSL https://opencode.ai/install | bash| -- svg2png.lua | |
| -- Convert SVG to PNG for all output formats, keeping original basenames | |
| -- | |
| -- This Pandoc Lua filter automatically converts SVG images to PNG format | |
| -- for better compatibility across different output formats in Quarto. | |
| -- | |
| -- Features: | |
| -- - Converts SVG images to PNG at 192 DPI for good quality | |
| -- - Intelligent caching: skips conversion if PNG is newer than SVG | |
| -- - Cross-platform compatibility (macOS/Linux) |
| def auc_analysis(classifier,X,y,n_splits=6,random_state=0,show_plot=True): | |
| import matplotlib.pyplot as plt | |
| #!/usr/bin/env python | |
| import os, shutil | |
| from atlas.color_logger import logger | |
| from pathlib2 import Path | |
| import pandas as pd | |
| import argparse | |
| from snakemake.shell import shell | |
| # STARTUP SCREENS | |
| # =============================================================== | |
| # Defines the time screen delays a new message when one message | |
| # is currently displayed. The default is 1 second. | |
| # msgminwait 2 | |
| # Time a message is displayed if screen is not disturbed by | |
| # other activity. The dafault is 5 seconds: | |
| # msgwait 2 |
| import os | |
| import sys | |
| import logging | |
| logger = logging.getLogger(os.path.basename(__file__)) | |
| import pandas as pd | |
| import numpy as np | |
| from collections import defaultdict |