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
const animationMachine = Machine({ | |
id: 'animation', | |
initial: 'drafted', | |
states: { | |
drafted: { | |
on: { | |
RUN: 'running', | |
ARCHIVE: 'archived' | |
} | |
}, |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
{ | |
:layers { | |
:caps_lock_mode {:key :caps_lock :alone {:key :escape}} | |
} | |
:main [ | |
{ | |
:des "Caps lock layer" | |
:rules [ | |
:caps_lock_mode | |
[:##h :left_arrow] |
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 {MDXProvider} from '@mdx-js/react'; | |
import {MDXComponents} from 'components/MDX/MDXComponents'; | |
import {Toc} from 'components/Toc/Toc'; | |
import * as React from 'react'; | |
export interface MarkdownProps<Frontmatter> { | |
meta: Frontmatter; | |
children?: React.ReactNode; | |
} |
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
####################################################################################################################################### | |
####################################################################################################################################### | |
####################################################################################################################################### | |
####################################################################################################################################### | |
####################################################################################################################################### | |
####################################################################################################################################### | |
########################################################################M@############################################################# | |
#########################################################x############## |
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
stable_website_preview_cherry_pick: | |
runs-on: ubuntu-latest | |
name: Cherry pick main to stable-website-preview branch | |
steps: |
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
const container = { | |
hidden: { opacity: 0 }, | |
show: { | |
opacity: 1, | |
transition: { | |
staggerChildren: 0.25, | |
}, | |
}, | |
} |
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
function useBoolean(initialState = false) { | |
const [state, setState] = React.useState(initialState) | |
const handlers = React.useMemo( | |
() => ({ | |
on: () => { | |
setState(true) | |
}, | |
off: () => { | |
setState(false) |
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 PropTypes from 'prop-types' | |
import Link from 'next/link' | |
| |
// Checks against absolute URLs that share 👇 so | |
// we can still pass it along to our internal link component | |
const domainRegex = /http[s]*:\/\/[www.]*YOURDOMAIN\.com[/]?/ | |
| |
const TextLink = ({ href, ...rest }) => { | |
const sameDomain = domainRegex.test(href) | |
|
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
{ | |
"window.autoDetectColorScheme": true, | |
"workbench.colorTheme": "GitHub Dark", | |
"workbench.preferredLightColorTheme": "GitHub Light", | |
"workbench.preferredDarkColorTheme": "GitHub Dark", | |
"workbench.tree.indent": 20, | |
"editor.fontFamily": "JetBrains Mono NL, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 16, | |
"editor.tabSize": 2, | |
"editor.cursorStyle": "block", |
OlderNewer