This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {| import collections, random, sys, textwrap | |
| # Build possibles table indexed by pair of prefix words (w1, w2) | |
| w1 = w2 = '' | |
| possibles = collections.defaultdict(list) | |
| for line in sys.stdin: | |
| for word in line.split(): | |
| possibles[w1, w2].append(word) | |
| w1, w2 = w2, word |
| /* | |
| * This is an experimental view library that would compete with react, svelte, qwik.js, vue.js etc. | |
| * | |
| * Implementation reference: https://git.sr.ht/~erock/alpfx | |
| * | |
| * Features: | |
| * - Instead of `view = func(state)` we have `view = func(event)` | |
| * - This paradigm shift will: | |
| * - make prop mgmt (e.g. when to update component) more manual | |
| * - animations easier (events or transitions are sent to the component that the end-user |
| import { Texture, ImageLoader, DefaultLoadingManager, RGBAFormat, RGBFormat } from 'three'; | |
| function TextureAtlasLoader(manager) { | |
| this.manager = manager || DefaultLoadingManager; | |
| } | |
| Object.assign(TextureAtlasLoader.prototype, { | |
| crossOrigin: "Anonymous", | |
| tileWidth: 16, | |
| tileHeight: 16, |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.