Skip to content

Instantly share code, notes, and snippets.

View stevenpetryk's full-sized avatar

Steven Petryk stevenpetryk

View GitHub Profile
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
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, [])
@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
@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)
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
Created June 19, 2019 03:04
Lighthouse automation
@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 / 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

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:

roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.02b040b0a5e9b2ca5ffd4b410f8f21bb8a976820.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.2b163098f1bf531c159bceaa6a0a6a8cb3bc5874.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.2f35cb78c42dfa75aac8b066a53ee7a01837e8f8.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.3c9bb28f127459f217d5aa390dbe0fccc65b643b.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.3c6785c74db5ac2a9508a75781a1d46665bd72c8.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.5d5310774c2a9c7f06481d8c7c14495107673c8b.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.5fcd2f64bea83f1670773b0699d0b906165aca07.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.6d550937aa22378c7f2e96e6bb1920b17b237dc8.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.7d434b9fda0ef01b971a8bb1242b3289277ea61d.tar.gz
roseBinaryEDG-4-12-x86_64-pc-linux-gnu-gnu-4.9-4.7dc7c5dac37b9ffe2b4cb25183b42ac52fcea228.tar.gz