This gist will guide you through to setup starship along with zsh suggestions and zsh syntax highlight for your codespaces.
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 requests | |
| from diskcache import Cache | |
| import os | |
| # Ensure cache directory exists | |
| os.makedirs('cache', exist_ok=True) | |
| cache = Cache('cache') | |
| def check_pmcid(pmid, email="[email protected]"): |
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
| library(ggplot2) | |
| library(yaml) | |
| # Function to summarize a ggplot object | |
| # TODO: dendrograms with hclust do not work | |
| summarize_ggplot <- function(object) { | |
| wrap <- function(x) paste( | |
| paste(strwrap(x, exdent = 2), collapse = "\n"), | |
| "\n", sep = "" | |
| ) |
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
| // ==UserScript== | |
| // @name PubMed Central LLM Summaries | |
| // @namespace http://example.com | |
| // @version 0.2 | |
| // @description Add LLM Summaries to PMC | |
| // @author cannin | |
| // @match https://pubmed.ncbi.nlm.nih.gov/?term=* | |
| // @match https://pubmed.ncbi.nlm.nih.gov/*/ | |
| // @match https://www.ncbi.nlm.nih.gov/labs/pmc/articles/*/ | |
| // @match https://www.ncbi.nlm.nih.gov/pmc/articles/*/ |
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 json | |
| import dspy | |
| from dspy.teleprompt import BootstrapFewShot, LabeledFewShot | |
| from dspy.evaluate import Evaluate, answer_exact_match | |
| from dspy.datasets import DataLoader | |
| # PURPOSE ---- | |
| # Example with dataset read from CSV using LLM judge to evaluate the answer |
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
| \begingroup | |
| \fontsize{6pt}{12pt}\selectfont | |
| \begin{verbatim} | |
| 6pt-tiny | |
| \end{verbatim} | |
| \endgroup |
https://hub.docker.com/r/cannin/caiman
docker pull cannin/caiman:1.9.15-20230906
sudo docker rm -f cm; sudo docker run --name cm -d -p 4444:4444 -p 5900:5900 -8888:8888 -e SE_VNC_PASSWORD=password -v /home/ubuntu/tmp:/home/seluser/tmp --shm-size="4g" cannin/caiman:1.9.15-20230906
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
| library(lintr) | |
| # Excluded linters | |
| # closed_curly_linter | |
| # camel_case_linter | |
| # implicit_integer_linter | |
| # paren_brace_linter | |
| # pipe_continuation_linter | |
| # trailing_blank_lines_linter | |
| # commented_code_linter |
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
| cancer_type | cancer_type_color | organ_system | organ_system_color | |
|---|---|---|---|---|
| BRCA | #ED2891 | Breast | #e6308e | |
| GBM | #B2509E | Central Nervous System | #c48cbc | |
| LGG | #D49DC7 | Central Nervous System | #c48cbc | |
| COAD | #00AEEF | Core_GI | #7aa8d9 | |
| ESCA | #007EB5 | Core_GI | #7aa8d9 | |
| READ | #DAF1FC | Core_GI | #7aa8d9 | |
| STAD | #00AEEF | Core_GI | #7aa8d9 | |
| COADREAD | #00AEEF | Core_GI | #7aa8d9 | |
| STES | #007EB5 | Core_GI | #7aa8d9 |
NewerOlder