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
| if (typeof ResizeObserver === "undefined") { | |
| globalThis.ResizeObserver = class { | |
| // eslint-disable-next-line | |
| constructor (..._args: ConstructorParameters<typeof ResizeObserver>) {} | |
| // eslint-disable-next-line | |
| observe (..._args: Parameters<ResizeObserver["observe"]>) {} | |
| // eslint-disable-next-line | |
| unobserve (..._args: Parameters<ResizeObserver["unobserve"]>) {} | |
| // eslint-disable-next-line | |
| disconnect (..._args: Parameters<ResizeObserver["disconnect"]>) {} |
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
| rm -rf ../../shoelace-nextjs-lazy/node_modules/@shoelace-style/shoelace \ | |
| && mkdir -p ../../shoelace-nextjs-lazy/node_modules/@shoelace-style/shoelace \ | |
| && cp -R ./{LICENSE.md,README.md,cdn,dist,package.json} ../../shoelace-nextjs-lazy/node_modules/@shoelace-style/shoelace/ |
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
| -- ~/.config/nvim/config/autocmds.lua | |
| -- https://github.com/standardrb/standard/wiki/IDE:-neovim | |
| vim.api.nvim_create_autocmd("FileType", { | |
| pattern = "ruby", | |
| group = vim.api.nvim_create_augroup("StandardRB LSP", { clear = true }), -- also this is not /needed/ but it's good practice | |
| callback = function() | |
| vim.lsp.start { | |
| name = "standard", | |
| cmd = { "~/.asdf/shims/standardrb", "--lsp" }, |
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
| return { | |
| -- add ruby_lsp to lspconfig and disable solargraph | |
| { | |
| "neovim/nvim-lspconfig", | |
| ---@class PluginLspOpts | |
| opts = { | |
| ---@type lspconfig.options | |
| servers = { | |
| -- ruby_lsp will be automatically installed with mason and loaded with lspconfig | |
| ruby_lsp = {}, |
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
| Uncaught Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. | |
| Vs https://tanstack.com/_build/assets/client-1mQvwBVG.js:38 | |
| uf https://tanstack.com/_build/assets/client-1mQvwBVG.js:40 | |
| sf https://tanstack.com/_build/assets/client-1mQvwBVG.js:40 | |
| kh https://tanstack.com/_build/assets/client-1mQvwBVG.js:40 | |
| nf https://tanstack.com/_build/assets/client-1mQvwBVG.js:40 | |
| S https://tanstack.com/_build/assets/client-1mQvwBVG.js:25 | |
| T https://tanstack.com/_build/assets/client-1mQvwBVG.js:25 | |
| 2 client-1mQvwBVG.js:38:4791 | |
| Uncaught Error: Minified React error #422; visit https://reactjs.org/docs/error-decoder.html?invariant=422 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. |
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
| const domParser = new DOMParser() | |
| function morphCustomElement (currentEl) { | |
| const tagName = currentEl.tagName.toLowerCase() | |
| const isRegistered = Boolean(window.customElements.get(tagName)) | |
| if (!isRegistered) return | |
| // TODO: This should ideally be a contextualFragment of where the element currently lives so it can have context of |
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
| files = %w[ | |
| bad-input-validator.md | |
| custom-error-validator.md | |
| mirror-validator.md | |
| pattern-mismatch-validator.md | |
| range-overflow-validator.md | |
| range-underflow-validator.md | |
| step-mismatch-validator.md | |
| too-long-validator.md | |
| too-short-validator.md |
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
| // @ts-check | |
| import ts from "typescript"; | |
| import { globSync } from "glob"; | |
| import * as fs from "fs"; | |
| import path from "path"; | |
| /** | |
| * @typedef {Array<string | TypeArray>} TypeArray | |
| */ |
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
| var code = document.querySelector(":is(.language-bash, .language-shell, .language-zsh, .language-sh, .language-console).highlighter-rouge pre.highlight > code") | |
| code.innerHTML = code.innerHTML.split("\n").map((str) => { | |
| return str.replace(/^(\w)/, "<span class='highlight-command-line-start'>$</span>$1") | |
| }).join("\n") |
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
| class Base { | |
| constructor () { | |
| super() | |
| /** | |
| * @type {null | Map<object | string | number | symbol, ReturnType<typeof setTimeout>>} | |
| */ | |
| this.__debounceMap__ = null | |
| } |