Input: Output: . . ├── es ├── effects │ ├── effects.js │ └── package.json │ ├── index.js ├── es │ └── utils.js │ ├── effects.js ├── lib │ ├── index.js │ ├── effects.js │ └── utils.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const zipObject = function (keys, values) { | |
| const result = {}; | |
| keys.forEach((key, i) => { | |
| result[key] = values[i]; | |
| }); | |
| return result; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| class HTMLElementPlus extends HTMLElement { | |
| static defaultAttributeValue() { | |
| /* the name of the attribute is parsed in as a parameter */ | |
| return; | |
| } | |
| static parseAttributeValue(name, value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * For compare function return: | |
| * - Less than zero: item1 has higher priority than item2. | |
| * - Zero: same. | |
| * - Greater than zero: item1 has lower priority than item2. | |
| */ | |
| export type CompareFunction<T> = (item1: T, item2: T) => number; | |
| export class PriorityQueue<T> { | |
| _items: Array<T>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "Asset Metadata", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string", | |
| "description": "Identifies the asset to which this NFT represents", | |
| }, | |
| "description": { | |
| "type": "string", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Perlin noise text displacement. | |
| // Created using Processing 3.5.3. | |
| // | |
| // Code by @marcedwards from @bjango. | |
| // | |
| PGraphics textbuffer; | |
| void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Used in real world eg. here: https://github.com/voxpelli/node-format-microformat/blob/5381268dbcdb1aef6a5757758710e4b9f75cbea3/index.js#L72-L78 | |
| // Works | |
| /** @typedef {null|undefined|boolean|string|number|Array} NonObject */ | |
| /** | |
| * @template T | |
| * @typedef {T|Promise<T>} MaybePromised | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @template T | |
| * @param {T} value | |
| * @returns {T} | |
| */ | |
| const passthrough = value => value; | |
| /** | |
| * @param {object} [options] | |
| * @param {(value: string) => string} [options.staticCallback] |
- d6.asm a six-sided dice roller
- k2000.asm K2000-like flash-light.
- k2000-loop.asm same as above, with 2 loops (This version is stored in fewer RAM slots, but it's slower because of an extra instruction).
- fibonacci.asm a basic Fibonacci series computation, displayed on the Data LEDs. The maximum result will be 233, and then it "crashes", all Data LEDs will blink as if it was an error signal.
- christmas.asm a XMas light using RANDA for the data LEDs + Speed for blinking delay.
- christmas-advanced.asm Expanded version, still using a random SPEED + blinking both DATA & ADR LEDs.