- How the browser renders the document
- Receives the data (bytes) from the server.
- Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
- Turns tokens into nodes.
- Turns nodes into the
DOMtree.
- Builds
CSSOMtree from thecss rules.
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
| class LinkedListNode { | |
| constructor(value) { | |
| this.next = null; | |
| this.value = value; | |
| } | |
| } | |
| class LinkedList { | |
| constructor() { | |
| this.head = null; |
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 const isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; |
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
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v5.0.2 | 20191019 | |
| License: none (public domain) | |
| */ | |
| html, | |
| body, | |
| div, | |
| span, | |
| applet, |
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
| { | |
| "typescript.tsserver.experimental.enableProjectDiagnostics": true, | |
| "editor.tabSize": 2, | |
| "editor.rulers": [80], | |
| "editor.detectIndentation": false, | |
| "editor.insertSpaces": true, | |
| "[typescript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[json]": { |
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 | |
| # Read JSON input from stdin | |
| input=$(cat) | |
| echo "$input" >> /tmp/statusline_debug.log | |
| # Extract values using jq | |
| MODEL=$(echo "$input" | jq -r '.model.display_name') | |
| # Get git branch if in a git repo | |
| GIT_BRANCH="" |
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
Show hidden characters
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "agent": { | |
| "plan": { | |
| "permission": { | |
| "read": "allow", | |
| "edit": "deny", | |
| "glob": "allow", | |
| "grep": "allow", | |
| "list": "allow", |
OlderNewer
