Reset vanillajs and
git add . && git stash && rm -rf node_modules && rm -rf snapchain-vanillajs/target
Reset astro
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| #!/bin/bash | |
| set -e | |
| port="9944" | |
| printf "\nSearches for processes running on port %s and performs a kill 9 on each pid" "$port" | |
| printf "\n------------------------- \n" | |
| printf "\nPrinting output from command: lsof -i :%s \n" "$port" | |
| lsof -i :$port |
| #!/bin/bash | |
| set -e | |
| touch docs.log | |
| chmod 775 docs.log | |
| nohup yarn start --port 3000 > docs.log 2>&1 & echo $! > run.pid | |
| echo "Docusaurus running on process: $(cat run.pid)" | |
| echo "Docusaurus running on port 3000" | |
| echo "" |
| // Utility script: Wrap all unquoted parameter names (object keys) with double quotes | |
| // Usage: quote-json-keys.js | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const filePath = path.join(__dirname, 'config.json'); | |
| let text = fs.readFileSync(filePath, 'utf8'); |
| import { | |
| passetHub, | |
| XcmV3MultiassetFungibility, | |
| XcmV3WeightLimit, | |
| XcmV5AssetFilter, | |
| XcmV5Instruction, | |
| XcmV5Junction, | |
| XcmV5Junctions, | |
| XcmV5WildAsset, | |
| XcmVersionedXcm, |
All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14
Pros & Cons:
Notes:
B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.| $ curl --help | |
| Usage: curl [options...] <url> | |
| --abstract-unix-socket <path> Connect via abstract Unix domain socket | |
| --alt-svc <file name> Enable alt-svc with this cache file | |
| --anyauth Pick any authentication method | |
| -a, --append Append to target file when uploading | |
| --basic Use HTTP Basic Authentication | |
| --cacert <file> CA certificate to verify peer against | |
| --capath <dir> CA directory to verify peer against | |
| -E, --cert <certificate[:password]> Client certificate file and password |
type StringBool = "true"|"false";
interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };
type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];