knox / AutoGPT.sh
0 likes
0 forks
1 files
Last active
1 | $ ./run |
2 | Usage: cli.py [OPTIONS] COMMAND [ARGS]... |
3 | |
4 | Options: |
5 | --help Show this message and exit. |
6 | |
7 | Commands: |
8 | agent Commands to create, start and stop agents |
9 | benchmark Commands to start the benchmark and list tests and categories |
10 | setup Installs dependencies needed for your system. |
knox / Async-2.js
0 likes
0 forks
1 files
Last active
1 | import { mapLimit } from "async-es"; |
2 | |
3 | // ...or ES2017 async functions |
4 | mapLimit(urls, 5, async function(url) { |
5 | const response = await fetch(url) |
6 | return response.body |
7 | }, (err, results) => { |
8 | if (err) throw err |
9 | // results is now an array of the response bodies |
10 | console.log(results) |
knox / Async-1.js
0 likes
0 forks
1 files
Last active
1 | // for use with callbacks... |
2 | import { forEachOf } from "async-es"; |
3 | |
4 | const images = {cat: "/cat.png", dog: "/dog.png", duck: "/duck.png"}; |
5 | const sizes = {}; |
6 | |
7 | forEachOf(images, (value, key, callback) => { |
8 | const imageElem = new Image(); |
9 | imageElem.src = value; |
10 | imageElem.addEventListener("load", () => { |
knox / Textual-3.sh
0 likes
0 forks
1 files
Last active
1 | python -m textual |
knox / Textual-2.sh
0 likes
0 forks
1 files
Last active
1 | pip install textual-dev |
knox / Textual-1.sh
0 likes
0 forks
1 files
Last active
1 | pip install textual |
knox / Uppy-3.html
0 likes
0 forks
1 files
Last active
1 | <!-- 1. Add CSS to `<head>` --> |
2 | <link |
3 | href="https://releases.transloadit.com/uppy/v4.6.0/uppy.min.css" |
4 | rel="stylesheet" |
5 | /> |
6 | |
7 | <!-- 2. Initialize --> |
8 | <div id="files-drag-drop"></div> |
9 | <script type="module"> |
10 | import { |