— Ted Patrick (@__ted__)
— Wesley Todd (wesleytodd.com)
Expedia is always hiring! expediajobs.com
import mySinglePageApp from "./index.html";
Rapidly build modern websites without ever leaving your HTML.
Tailwind utility classes to style without CSS
<button class="btn btn-primary">Press Me</button>
import {use} from 'react';
function Comments({commentsPromise}) {
// `use` will suspend until the promise resolves.
const comments = use(commentsPromise);
return comments.map(c => <p key={c.id}>{c}</p>);
}
// If the callback is synchronous and it throws
// an exception, the error won't be caught here:
new Promise(resolve => resolve(callback());
// But it will be here:
Promise.try(callback)
.then(result => console.log(result))
.catch(error => console.log(error))
.finally(() => console.log("All settled."));
const canvas = document.querySelector('cv') as HTMLCanvasElement;
const adapter = await navigator.gpu?.requestAdapter();
const device = await adapter?.requestDevice();
const context = canvas.getContext('webgpu') as GPUCanvasContext;
Ted Patrick