Every diagram below visualizes a different aspect of the same fictional Online Bookstore system.
Order processing flow with color-coded components.
(Working as of 2025-02-09)
There are websites that use disable-devtool to prevent you from opening or using devtools. They typically prevent you from right clicking or using the keyboard shortcut to open devtools. Even if you successfully do so, they detect it and redirect you elsewhere. You can bypass this by using one of the following ways.
If the shortcut F12 on Windows or Option + ⌘ + I on Mac do not work. Press the three vertically aligned dots in the top right corner of your Google Chrome or Microsoft Edge window. Under the section "More Tools", you'll see the option to select "Developer Tools" which opens the toolkit in your window.
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).| #!/bin/bash | |
| # Requires ffmpeg - brew install ffmpeg | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: $0 Screen\\ Recording\\ at\\ 2021-01-21.mov" | |
| exit 1 | |
| fi | |
| basefilename=$(basename "$1" .mov) | |
| outputname="$basefilename.mp4" | |
| nice ffmpeg \ |
| #!/bin/bash | |
| DAYS_SINCE_LAST_CHANGE=14 # If a project hasn't been touched in this long its node_modules will be deleted | |
| SEARCH_PATH="./Git" # Update this to the path where your code is stored | |
| TOTAL_BYTES_REMOVED=0 | |
| Mb=1000000 | |
| Kb=1000 | |
| node_modules=$(find $SEARCH_PATH -name "node_modules" -type d -prune) |
| patch-package | |
| --- a/node_modules/webpack/lib/dependencies/ImportParserPlugin.js | |
| +++ b/node_modules/webpack/lib/dependencies/ImportParserPlugin.js | |
| @@ -28,7 +28,8 @@ class ImportParserPlugin { | |
| const param = parser.evaluateExpression(expr.arguments[0]); | |
| let chunkName = null; | |
| - let mode = "lazy"; | |
| + // let mode = "lazy"; | |
| + let mode = "eager"; |
just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo.
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
| // Licensed under CC BY 4.0. | |
| type $If<X: boolean, Then, Else = empty> = $Call< | |
| & ((true, Then, Else) => Then) | |
| & ((false, Then, Else) => Else), | |
| X, | |
| Then, | |
| Else, | |
| >; |