Skip to content

Instantly share code, notes, and snippets.

import { program } from "commander";
import * as fs from 'fs';
import path from "path";
import markdownit from "markdown-it";
import * as d3 from 'd3';
import hljs from 'highlight.js';
// folx warned me about jsdom
import slugify from "slugify";
import { DOMParser, parseHTML } from 'linkedom';
import { fileURLToPath } from 'url';
This file has been truncated, but you can view the full file.
<html lang="en" itemscope itemtype="https://schema.org/Article">
<!-- # accessible notebook reference template
an accessible reference for computational notebooks based on semantic html
-->
<head>
<!-- ## document properties -->
<meta charset="utf-8">
<html lang="en" itemscope itemtype="https://schema.org/Article">
<!-- # accessible notebook reference template
an accessible reference for computational notebooks based on semantic html
-->
<head>
<!-- ## document properties -->
<meta charset="utf-8">
@tonyfast
tonyfast / index.html
Created November 27, 2024 03:47
a zine of rocks.
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html itemscope="" itemtype="https://schema.org/Article" lang="en">
<!-- # accessible notebook reference template
an accessible reference for computational notebooks based on semantic html
-->
<head>
<!-- ## document properties -->
<meta charset="utf-8"/>
<title></title>
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html itemscope="" itemtype="https://schema.org/Article" lang="en">
<!-- # accessible notebook reference template -->
<head>
<!-- ## document properties -->
<meta charset="utf-8"/>
<title></title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="" itemprop="description" name="description"/>

class example

i made a class example

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

guidelines for course content

Subjective Priority Guideline References
A assume and design for low numeracy this effects A LOT of people so it is high priority https://accessiblenumbers.com/
A anchors go somewhere and buttons do something https://css-tricks.com/a-complete-guide-to-links-and-buttons/
A one h1, headings are naturally order for assistive technology users https://www.tpgi.com/heading-off-confusion-when-do-headings-fail-wcag/
A there is a visual table of contents
AA all nonvisual information is captured in plain text
AA all visual information is captured in plain text
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / index.js
Created April 11, 2024 20:19
my first sonification
// https://hf.co/chat/r/8qoS6Gb
// Set up the Web Audio API context and create an oscillator node
audioCtx = new (window.AudioContext || window.webkitAudioContext)();
oscillator = audioCtx.createOscillator();
yourArray = [1,2,3,3,2,1]
// Calculate the range of pitches to use
minVal = Math.min(...yourArray);
maxVal = Math.max(...yourArray);