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
/* Based on matejlatin.github.io/Gutenberg. */ | |
/*.debug h1,*/ | |
/*.debug h2,*/ | |
/*.debug h3,*/ | |
/*.debug h4,*/ | |
/*.debug h5,*/ | |
/*.debug h6,*/ | |
/*.debug p {*/ | |
/* margin-top: -1px !important;*/ | |
/* margin-bottom: -1px !important;*/ |
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
/* unpkg.com is preferred over rsms.me for loading speed. */ | |
/*@import "https://unpkg.com/inter-ui/inter.css";*/ | |
/*--ls: -0.0183em !important;*/ | |
/*font-feature-settings: "case", "cv06", "cv11";*/ | |
/*letter-spacing: var(--ls);*/ | |
/* "Inter var", "Inter", system-ui, -apple-system, sans-serif; */ | |
/* Based on rsms.me/inter/dynmetrics. */ |
This page is an overview of the React documentation and related resources.
React is a JavaScript library for building user interfaces. Learn what React is all about on our homepage or in the tutorial.
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 Token = { | |
UNS: "uns", // unset (not whitespace) | |
COM: "com", // comment | |
KEY: "key", // keyword | |
NUM: "num", // number | |
STR: "str", // string | |
PUN: "pun", // punctuation | |
FUN: "fun", // function | |
} |
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
# Building… | |
osascript -e 'display notification \"Building…\" with title \"Codex\"' && | |
yarn build 1>/dev/null && | |
# Deploying… | |
osascript -e 'display notification \"Deploying…\" with title \"Codex\"' && | |
echo build | netlify deploy 1>/dev/null && | |
# Deployed! | |
echo build | netlify deploy --prod 1>/dev/null && | |
osascript -e 'display notification \"Deployed!\" with title \"Codex\"'", |
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
// `reverse` reverses a string. `reverse` is not Unicode- | |
// safe. | |
function reverseString(str) { | |
return str.split("").reverse().join("") | |
} | |
// `humanReadableInteger` converts a number to a human- | |
// readable string. `humanReadableInteger` is not Unicode- | |
// safe. | |
// |
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 PropTypes from "prop-types" | |
import React from "react" | |
import { useInterval } from "react-use" | |
import * as globals from "./globals" | |
import * as traverseDOM from "./traverseDOM" | |
import lex from "./lexer" | |
// // TODO: Refactor to hook with and use `useDebounce`. | |
// function scrollIntoView() { |