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
| #!/bin/bash | |
| set -euo pipefail | |
| OUTPUT_DIR="history" | |
| mkdir -p "$OUTPUT_DIR" | |
| count=1 | |
| for commit in $(git rev-list --reverse HEAD); do | |
| mkdir "$OUTPUT_DIR/commit_$count" | |
| git archive $commit | tar -x -C "$OUTPUT_DIR/commit_$count" |
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
| #!/bin/bash | |
| loadkeys br-abnt2 | |
| iwctl | |
| # [iwd] device list | |
| # [iwd] station DEVICENAME scan | |
| # [iwd] station DEVICENAME get-networks | |
| # [iwd] station DEVICENAME connect NETWORKNAME |
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
| type Token = { type: "word" | "number", value: string }; | |
| type ASTNode = { type: string, body: any[] }; | |
| type SVGNode = { tag: string, attr: { [key: string]: string | number }, body: any[] }; | |
| class Compiler { | |
| public version: string = "0.0.1"; | |
| lexer(code: string): Token[] { | |
| return code.split(/\s+/) | |
| .filter(token => token.length > 0) |