Skip to content

Instantly share code, notes, and snippets.

View avinab-neogy's full-sized avatar
👨‍🔧

Avinab Neogy avinab-neogy

👨‍🔧
View GitHub Profile
@avinab-neogy
avinab-neogy / einops-torch-cheat.md
Created October 29, 2025 14:23
einops cheat sheet
@avinab-neogy
avinab-neogy / patch_18773.diff
Created February 26, 2025 18:42
Patch fixes error messages and documentation in grid::dataViewport() to clarify numeric vector requirements
Index: src/library/grid/R/viewport.R
===================================================================
--- src/library/grid/R/viewport.R (revision 87829)
+++ src/library/grid/R/viewport.R (working copy)
@@ -454,12 +454,12 @@
extension <- rep(extension, length.out = 2)
if (is.null(xscale)) {
if (is.null(xData))
- stop("must specify at least one of 'x' or 'xscale'")
+ stop("must specify at least one of 'xData' or 'xscale'")