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 { unified } from "https://esm.sh/unified@10.1.2"; | |
| import remarkParse from "https://esm.sh/remark-parse@10.0.2"; | |
| import remarkFrontmatter from "https://esm.sh/remark-frontmatter@4.0.1"; | |
| import remarkGfm from "https://esm.sh/remark-gfm@3.0.1"; | |
| import remarkRehype from "https://esm.sh/remark-rehype@10.1.0"; | |
| import rehypeStringify from "https://esm.sh/rehype-stringify@9.0.3"; | |
| import rehypeSlug from "https://esm.sh/rehype-slug@5.1.0"; | |
| import rehypeAutolinkHeadings from "https://esm.sh/rehype-autolink-headings@6.1.1"; | |
| import remarkGemoji from "https://esm.sh/remark-gemoji@7.0.1"; | |
| import rehypeStarryNight from "https://esm.sh/@microflash/rehype-starry-night@2.1.1"; |
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 type { ConnInfo, Handler } from "https://deno.land/std@0.194.0/http/server.ts"; | |
| type RemoveModifier<Pattern> = Pattern extends `${infer P}?` ? P | |
| : Pattern; | |
| type RemoveMatchingRule<Pattern> = Pattern extends `${infer P}(${infer R})` ? P | |
| : Pattern; | |
| type ExtractGroupName<Pattern> = RemoveModifier<RemoveMatchingRule<Pattern>>; | |
| type PatternParamValue<Key> = Key extends `${infer PatternString}?` | |
| ? string | undefined |
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
| /** | |
| * A generic class that allows for the creation of events and listeners. | |
| * | |
| * @template T - An object type that defines the events and their data types. | |
| */ | |
| export default class EventEmitter<T> { | |
| private events: { [K in keyof T]: Array<(data: T[K]) => void> } = {} as unknown as { [K in keyof T]: Array<(data: T[K]) => void> }; | |
| /** | |
| * Adds a listener to an event. |
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
| div[data-autogrow]:has(textarea) { | |
| display: grid; | |
| } | |
| div[data-autogrow]:has(textarea)::after { | |
| content: attr(data-autogrow) ' '; | |
| white-space: pre-wrap; | |
| visibility: hidden; | |
| } |
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
| James | |
| Mary | |
| Robert | |
| Patricia | |
| John | |
| Jennifer | |
| Michael | |
| Linda | |
| David | |
| Elizabeth |
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 jobs = [ | |
| 'Genetic Counselor', | |
| 'Mathematician', | |
| 'University Professor', | |
| 'Occupational Therapist', | |
| 'Statistician', | |
| 'Medical Services Manager', | |
| 'Data Scientist', | |
| 'Information Security Analyst', | |
| 'Operations Research Analyst', |
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
| :root { | |
| --slate-50: #f8fafc; | |
| --slate-100: #f1f5f9; | |
| --slate-200: #e2e8f0; | |
| --slate-300: #cbd5e1; | |
| --slate-400: #94a3b8; | |
| --slate-500: #64748b; | |
| --slate-600: #475569; | |
| --slate-700: #334155; | |
| --slate-800: #1e293b; |
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
| function encodeMessage(message: string) { | |
| const enc = new TextEncoder(); | |
| return enc.encode(message); | |
| } | |
| function decodeMessage(buffer: ArrayBuffer) { | |
| const dec = new TextDecoder(); | |
| return dec.decode(buffer); | |
| } |
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
| bl_info = { | |
| "name": "Smart Join", | |
| "author": "Jeroen Trines", | |
| "version": (1, 0), | |
| "blender": (3, 1, 0), | |
| "location": "View3D > Object > Smart Join", | |
| "description": "Create vertex groups for each mesh before joining objects in Blender", | |
| "warning": "", | |
| "doc_url": "", | |
| "category": "Object", |
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
| /* blingbling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| HTMLElement.prototype.$ = function (selector) { | |
| return this.querySelector(selector); | |
| } | |
| HTMLElement.prototype.$$ = function (selector) { |