This is a test demo for Edge. You may need a static file server to view the demo page.
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
| node_modules | |
| .swc | |
| output |
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 promisePool = <T>(list: Iterable<() => PromiseLike<T>>, limit: number): Promise<T[]> => { | |
| const result: Promise<T>[] = []; | |
| const iterator = list[Symbol.iterator](); | |
| return new Promise((resolve, reject) => { | |
| const settle = (next: ReturnType<typeof iterator["next"]>) => { | |
| if (next.done) { | |
| Promise.all(result).then(resolve, reject); | |
| return; |
Lit-element test
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
| This file is used to be tracked and identified by https://lrc-maker.github.io |
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
| node_modules | |
| dist |
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
| export class App extends React.Component { | |
| readonly state = { clicked: 0 }; | |
| onClick = () => this.setState({ clicked: this.state.clicked + 1 }); | |
| public render() { | |
| return ( | |
| <div> | |
| <div>You have clicked {this.state.clicked}</div> | |
| <button onClick={this.onClick}>click me</button> |
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
| #!/usr/bin/env osascript -l JavaScript | |
| ObjC.import("Foundation"); | |
| ObjC.import("ImageIO"); | |
| ObjC.import("AVFoundation"); | |
| const quality = 0.8; | |
| function run(input) { | |
| for (const file of input) { |