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
| ;; Pulls and pushes a few github repos from emacs | |
| ;; Laurent Gatto (https://github.com/lgatto) | |
| ;; Thanks to Stephen J. Eglen for his help in redirecting to a | |
| ;; dedicated buffer (https://github.com/sje30) | |
| (setq git-dirs '( | |
| "~/wd" | |
| "~/bin" | |
| "~/Documents/org" | |
| "~/Documents/roam" |
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
| ## Installation instructions for the R for Mass Spectrometry tutorial | |
| ## https://rformassspectrometry.github.io/book/ | |
| ## Install packages | |
| if (!requireNamespace("BiocManager", quietly = TRUE)) | |
| install.packages("BiocManager") | |
| BiocManager::install("tidyverse", ask = FALSE) | |
| BiocManager::install("factoextra", ask = FALSE) |
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
| (defun yank-bibtex-from-doi () | |
| "Create and yank bibtex entry from a DOI." | |
| (interactive) | |
| ;; read the doi from minibuffer | |
| (setq doi (read-from-minibuffer "doi: ")) | |
| ;; define the curl shell command | |
| (setq cmd | |
| (concat | |
| "curl -LH \"Accept: application/x-bibtex\" " | |
| "https://doi.org/" |
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
| ## See https://lgatto.github.io/the-grid-in-r/ | |
| plotSquare <- function(x, y, width) { | |
| x1 <- x - (width / 2) | |
| y1 <- y - (width / 2) | |
| x2 <- x1 + width | |
| y2 <- y1 + width | |
| rect(x1, y1, x2, y2) | |
| } |
OlderNewer