Skip to content

Instantly share code, notes, and snippets.

View RobSchilderr's full-sized avatar

Rob Schilder RobSchilderr

View GitHub Profile
@MarcosNASA
MarcosNASA / ChatGPTVoice.js
Last active December 6, 2022 17:15
Gives ChatGPT a voice
const debounce = (delay) => (fn) => {
let timeoutId;
return (...args) => {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
fn(...args);
}, delay);
};
};
const speak = (text) => {
@j-bullard
j-bullard / App.tsx
Created July 4, 2021 07:15
Headless UI with React Hook Forms
import "./styles.css";
import { Person } from "./types";
import { Listbox } from "./listbox/listbox";
import { useForm } from "react-hook-form";
const people: Person[] = [
{ id: 1, name: "Durward Reynolds", unavailable: false },
{ id: 2, name: "Kenton Towne", unavailable: false },
{ id: 3, name: "Therese Wunsch", unavailable: false },
{ id: 4, name: "Benedict Kessler", unavailable: true },