Skip to content

Instantly share code, notes, and snippets.

/* 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;*/
/* 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. */

header

subheader

triple subheader

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
}

B

C

D

A

# 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\"'",
@zaydek-old
zaydek-old / humanReadableInteger.js
Last active August 28, 2019 15:15
Convert a number (integer) to a human-readable string.
// `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.
//
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() {