- Rust
- rustfmt
- Go
- gofmt
- Javascript/Typescript
- prettier
- biome
- Markdown
- prettier
- Python
This file contains 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 { useQueryClient, type DefaultError, type FetchQueryOptions, type QueryKey } from '@tanstack/react-query'; | |
// Type specified by `ensureQueryData` definition. | |
// Pulled from <https://tanstack.com/query/latest/docs/react/guides/prefetching> | |
export function usePrefetchQuery< | |
TQueryFnData, | |
TError = DefaultError, | |
TData = TQueryFnData, | |
TQueryKey extends QueryKey = QueryKey, | |
>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, { enabled = false }: { enabled?: boolean } = {}) { |
This file contains 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
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
old-hugo-nixpkgs.url = "github:NixOS/nixpkgs/4fe31ab170bbbdd089b05b268b681542886eb642"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, old-hugo-nixpkgs, flake-utils, }: | |
flake-utils.lib.eachDefaultSystem | |
(system: | |
let |
This file contains 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 { Tab as AriakitTab, type TabProps } from 'ariakit/tab'; | |
import cn from 'classnames'; | |
import { useLayoutEffect, useRef } from 'react'; | |
import { useRect } from '@hooks/useRect'; | |
import { useAnimatedTabs } from '../context/useAnimatedTabs'; | |
import styles from './Tab.module.css'; | |
/** | |
* A tab that goes at the top of a tab panel, which a user clicks on to change the UI underneath. | |
* This is a button by default, but can also be a react-router Link, if the `to` and `as` props are provided. |
This file contains 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 { Markdown } from 'astro-remote'; | |
import MainLayout from "@layouts/MainLayout.astro"; | |
const markdown = Astro.request.headers.get('markdown'); | |
--- | |
<html> | |
<MainLayout> | |
<h1>My ODB post page</h1 | |
<!-- Disallow inline `style` attributes, but allow HTML comments --> | |
<Markdown content={markdown} sanitize={{ dropAttributes: { "style": ["*"] }, allowComments: true }} /> |
This file contains 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
openapi: 3.1.0 | |
servers: | |
- url: https://api.defined.net | |
description: Default server | |
info: | |
description: | | |
# Introduction | |
This API is documented in **OpenAPI format** and describes methods that can be invoked when using an api key from <https://admin.defined.net/settings/api-keys> | |
Each endpoint is versioned individually, under a `/vXX` endpoint, ex `/v1/hosts` would become `/v2/hosts` with a breaking change, while `/v1/host-and-enrollment-code` would remain at `/v1` |
This file contains 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 { getPicture } from "@astrojs/image"; | |
type BgHeroCSS = { | |
/** perfect for use w/ define:vars to inject */ | |
cssProperty: string; | |
/** the source of the regular image */ | |
imageSrc: string; | |
/** the sourceset used in the image-set */ | |
imageSet: string; | |
/** the set useful for preloading |
This file contains 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 { assert } from "assert-ts"; | |
import type { MarkdownInstance, MDXInstance } from "astro"; | |
import type { MarkdownFrontmatter } from "@data/posts/MarkdownFrontmatter"; | |
export type MarkdownOrMDXInstance = | |
| MarkdownInstance<MarkdownFrontmatter> | |
| MDXInstance<MarkdownFrontmatter>; | |
type PartialMarkdownOrMDXInstance = | |
| MarkdownInstance<Partial<MarkdownFrontmatter>> |
This file contains 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 BlogIndex from "@layouts/BlogIndex.astro"; | |
import BlogPost from "@layouts/BlogPost.astro"; | |
import { assert } from "assert-ts"; | |
import type { MarkdownInstance, MDXInstance, Page, PaginateFunction } from "astro"; | |
import type { AstroComponentFactory } from "astro/dist/runtime/server"; | |
import BlogMeta from "./meta.json"; | |
import type { MarkdownFrontmatter } from "@data/posts/MarkdownFrontmatter"; | |
type MarkdownOrMDXInstance = |
- How to access the composite video output? -- https://www.circuitbenders.co.uk/forum/index.php?topic=1621.0
- Video demo + a minimal port diagram -- https://www.youtube.com/watch?v=9cvvcUwrL74 - https://www.getlofi.com/wp-content/uploads/2008/04/mvp_ic.jpg
- Vague description of a particular bending setup -- https://getlofi.com/v-tech-videopainter-bending/
- ^^^ is a translated quote from https://www.unosunosyunosceros.com/videozpainter/
NewerOlder