Skip to content

Instantly share code, notes, and snippets.

View j-jayes's full-sized avatar

Jonathan Jayes j-jayes

View GitHub Profile
@coehne
coehne / Readme.md
Last active August 1, 2025 13:05
Host SvelteKit on Firebase Hosting with Framework Aware Hosting

SvelteKit + Firebase Hosting

These are instructions for setting up a SvelteKit demo project and deploying it to Firebase with framework aware hosting.

Installation steps

Setup SvelteKit

Setup a new SvelteKit project with:

@fubits1
fubits1 / single-axis-label-annotated.R
Last active October 27, 2021 20:02
ggplot2 hack: annotate a single axis-label and preserve intendation
library(tidyverse)
annotation <-"HP"
# identify max char length of y-label
ymax_chr <- nchar(as.integer(max(mtcars$hp)))
ggplot(mtcars, aes(x = mpg, y = hp)) +
geom_point(color = "black", alpha = 0.5) +
scale_y_continuous(
@33eyes
33eyes / commit_jupyter_notebooks_code_to_git_and_keep_output_locally.md
Last active November 26, 2025 10:46
How to commit jupyter notebooks without output to git while keeping the notebooks outputs intact locally

Commit jupyter notebooks code to git and keep output locally

  1. Add a filter to git config by running the following command in bash inside the repo:
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'  
  1. Create a .gitattributes file inside the directory with the notebooks

  2. Add the following to that file: