Skip to content

Instantly share code, notes, and snippets.

View stevenpetryk's full-sized avatar

Steven Petryk stevenpetryk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am stevenpetryk on github.
  • I am stevenpetryk (https://keybase.io/stevenpetryk) on keybase.
  • I have a public key ASBf3hBUItZ9PL6XSouJPBvEc6XdVNG3LpawQW0XV2hHGAo

To claim this, I am signing this object:

@stevenpetryk
stevenpetryk / SketchSystems.spec
Last active August 6, 2018 00:42
Waiting for input*
Waiting for input*
entered input -> Format overview
Format overview
Got it -> Sign bit
Showing IEEE format
Sign bit
Got it -> Exponent
Exponent
@stevenpetryk
stevenpetryk / SketchSystems.spec
Created August 19, 2018 21:06
Waiting for input*
Waiting for input*
entered input -> Format overview
Format overview
Got it -> Sign bit
Showing IEEE format
Sign bit
Got it -> Exponent
@stevenpetryk
stevenpetryk / README.md
Created June 19, 2019 03:04
Lighthouse automation
export default function FocusGroup() {
const items = [1, 2, 3, 4, 5]
const [selectedIndex, setSelectedIndex] = useState(0)
const {
containerProps,
itemProps,
} = useFocusGroup<HTMLButtonElement>(items, index => selectedIndex === index)
return (
@stevenpetryk
stevenpetryk / README.md
Last active August 7, 2019 18:42
A generator + issue template for WCAG 2.1

To generate this list, I ran the following on the WCAG document page:

const a = Array.from(document.querySelectorAll('h1, h2, h3, h4'))
const headings = a.map((el) => [el.tagName, el.textContent, (el.parentNode.querySelector('.conformance-level') || {}).innerText])

headings
  .filter((h) => /^\D*[1-4]/.test(h[1]))
  .map(([headingLevel, title, level, permalink]) => {
 const headingHashes = "#".repeat(+headingLevel.replace(/\D/g, "") - 1)
@stevenpetryk
stevenpetryk / ssh_config
Last active August 3, 2020 20:07
A bitbar app that starts and stops a DO droplet
Host workspace
User steven
ForwardAgent yes
ControlPersist 300
HostName 64.225.89.72
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
import React from 'react'
import Point from '../shapes/Point'
import useMovablePoint from '../controls/useMovablePoint'
import GridLines from '../origin/GridLines'
import Origin from '../origin/Origin'
import Function, { useFunction } from '../shapes/Function'
import Polygon from '../shapes/Polygon'
const ParabolaQuadrature: React.FC = () => {
const parabola = useFunction((x) => -(x ** 2) + 1, [])
on cell
far from junction
enter junction -> inside junction
hovered tile above -> north cell
hovered tile to right -> east cell
inside junction
leave junction -> on cell
north cell
northeast cell