rsync_ext user@remote /remote/base/dir/ /local/target/dir/ cif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This function scans a directory for symbolic links and replaces the | |
| # leading path prefix of each link target with a new prefix while keeping | |
| # the remainder of the path unchanged. | |
| # | |
| # Only links whose targets match the directory boundary pattern | |
| # OLD_PREFIX/* | |
| # are modified. This prevents accidental matches such as | |
| # /path/foo2 | |
| # when replacing | |
| # /path/foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git_log_range() { | |
| """ | |
| Print full multiline Git commit messages between two revisions. | |
| Args: | |
| $1 (string): Start revision (exclusive). Example: v1.2.0 | |
| $2 (string): End revision (inclusive). Example: HEAD | |
| Defaults to HEAD if not provided. | |
| Behavior: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Use single-threaded Julia per worker (PythonCall stability) | |
| export JULIA_NUM_THREADS=1 | |
| # Force PythonCall to use your venv Python (e.g., 3.12) | |
| export JULIA_PYTHONCALL_EXE="/path/to/bin/python" | |
| # Launch Julia with 10 worker processes using current project | |
| julia --project=. -p 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Downloads | |
| using Printf | |
| const VERSION = "2.1.37" | |
| const BASE = "https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases" | |
| const TARGETS = [ | |
| ("darwin", "arm64"), | |
| ("darwin", "x64"), | |
| ("linux", "x64"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function list_valid_paths(paths) | |
| valid = [] | |
| for p in paths | |
| try | |
| expanded = expanduser(p) | |
| if ispath(expanded) | |
| push!(valid, expanded) | |
| end | |
| catch | |
| # Ignore malformed paths or permission issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.colors import ListedColormap, BoundaryNorm | |
| from typing import Iterable, Tuple, Optional, Union | |
| Color = Union[str, Tuple[float, float, float], Tuple[float, float, float, float]] | |
| def vector_to_heatmap_array(vec: Iterable[int], vertical: bool = True) -> np.ndarray: | |
| """Converts a 1D binary vector into a 2D array for heatmap plotting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from scipy.spatial import Delaunay | |
| import svgwrite | |
| from pathlib import Path | |
| # cairosvg might not be pre-imported after reset; import explicitly | |
| import cairosvg | |
| def polygon_mesh_svg( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "colors": [ | |
| { | |
| "hex": "D6D2C4", | |
| "name": "Westar", | |
| "rgba": { | |
| "alpha": 100, | |
| "blue": 196, | |
| "green": 210, | |
| "red": 214 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using GLMakie | |
| using GeometryBasics: Point3f, QuadFace, Mesh, Point3, Vec3 | |
| """ | |
| axis_colored_cube_base(c_fb, c_tb, c_lr; size=1.0) | |
| Build base geometry for a single cube whose three pairs of axis-aligned faces | |
| share colors according to the Cartesian axes. | |
| This is a low-level helper that constructs the vertex positions, face indices, |
NewerOlder