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
| import { promises as fsp } from 'fs'; | |
| import { instantiateEmscriptenWasm, pathify } from './emscripten-utils.js'; | |
| import { threads } from 'wasm-feature-detect'; | |
| import { cpus } from 'os'; | |
| // We use `navigator.hardwareConcurrency` for Emscripten’s pthread pool size. | |
| // This is the only workaround I can get working without crying. | |
| (globalThis as any).navigator = { | |
| hardwareConcurrency: cpus().length, | |
| }; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> | |
| <!-- All of the Node.js APIs are available in this renderer process. --> | |
| We are using Node.js <script>document.write(process.versions.node)</script>, |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> | |
| <!-- All of the Node.js APIs are available in this renderer process. --> | |
| We are using Node.js <script>document.write(process.versions.node)</script>, |
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
| # Thanks to Cory House (@housecor) https://twitter.com/housecor/status/961942463006027776 | |
| git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done |
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
| #!/usr/bin/env bash | |
| set -e | |
| # allow being run from somewhere other than the git rootdir | |
| gitroot=$(git rev-parse --show-cdup) | |
| # default gitroot to . if we're already at the rootdir | |
| gitroot=${gitroot:-.}; | |
| nm_bin=$gitroot/node_modules/.bin |
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
| cat $1 | sed -e 's/ */#/g' | grep error | grep "#" | tr -d '0123456789.:' | cut -d "#" -f5 | sort | uniq -c | sort -bgr |