Skip to content

Instantly share code, notes, and snippets.

@Kadeluxe
Kadeluxe / README.md
Last active November 27, 2021 10:31
Node 17 custom ESM loader (TypeScript and paths rewrite)

Allows to use ts-node and tsconfig-paths with ES Modules. Works only in Node 17+.

WARNING: This Node API (custom ESM loaders) is currently being redesigned and will still change [>]

Usage: Pass --loader ./loader.js to Node: node --loader ./loader.js index.ts

Example with Webpack: node --loader ./loader.js node_modules/webpack/bin/webpack serve -c build/config/development.ts

@Kadeluxe
Kadeluxe / userChrome.css
Created November 11, 2021 19:17
Hide Firefox tabs bar completely (for usage with vertical tabs)
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#nav-bar {
alias TargetTank d0
alias TargetPipe d1
alias BufferPipe d2
alias HotPump d3
alias HotPipe d4
define FINAL_TEMPERATURE 295.15 # 20C, adjust as needed
define HEAT_EXCHANGER_VOLUME 500 # const
define R 8.3144 # const
define HEAT_CO2 28.2 # const
define HEAT_N 20.6 # const