Use http://evanw.github.io/source-map-visualization/ for inspecting the source maps.
Drag and drop transpiled.js
and transpiled.js.map
into one window, and instrumented.js
+ instrumented.js.map
into another.
This file contains 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 | |
echo "IP" | |
curl -s https://ipv4.ipleak.net/json/ | grep -E 'country|city|region|continent|ip' | |
echo -e "\nDNS" | |
for i in {1..5} | |
do | |
HASH=$(head /dev/urandom | tr -dc a-z0-9 | head -c 39 ; echo '') | |
echo $(curl -s https://1$HASH.ipleak.net/dnsdetect/) & |
This file contains 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
// https://www.typescriptlang.org/play?#code/C4TwDgpgBAggNnA0hEBnA8mYBLA9gOwEM4AeAFSggA9gJ8ATVKAbygG1EAuKVYAJ2z4A5gF1uhfCCgBfAHxQAvCwBQUNe0RRBUANYpcAMyhkRAfm5kOIgNzLpt5aEhQAqvjz4yuGHz6EQJKrqbh5k4NDUtAxMvALCADRBaj5+IGHOkXSMPPyCQmwiiuwiyvJKzEnsAMq5wgAy2LR+cFr4ru4E6RBiUACiVADGcACu9BAkIZ3h8VA1cUINTcTymdFQ+BAAbhB8lepQpuwAdCcp-l0zc3mLO8Ql+-vck57evv4k-UOj488Xs7ULRq3OCyGZsE5HM5pab-eY3ZoiWS2aRsX7hQoAMhy8wKDmUAHp8cYILxUI5wrNcABbCBdIoAcnQADlevSoAAfKD0sgAdXQbM53IAEgAlXqshyCJoGQgDaAAWRAAEl8NLZdAKmonBBuFVqbTwrY1EQadxYnkjVp6GaAZa4NheDacTY7MplAMCLxYNxFSq1XKiqxtdxGSz6TMTTquTBw1aQzAAIyx+2O9j0pMzekAJnpIns7s9wCgACFuPAkCgMFgPMQSL7VTsZXKyix1oRTdG2fmC-gvQ1eOgDHqaV0MHwxnwINb2qFXqkSMODZAW2xQ6zM7z+RvReLc7YPb2i-3gIPF6O3Lhxzsnh0XlCF-quivhWL11zN7G13u3YSoAABYBUAAWmoSABmAEDfEvHs+wdE8h0fcJUHlB1UDyG9Z3vM9wmfD9M2ZVkXQJIkAOA0CIHAyC+Ggg9YIHBCRyQtwdHwXAAHd8AANWIYYo1+Od3mw5cilXAjPzwrkADF0BcEVv2I-9AJAqgwIgnZqN2Wijzg09EMgVBmNYjjuJGCAswwzoBICISIGfMSNz5cSdzfelpNk+Tf1I5TVKomjCygY9dMY-S6joIRgAACyZXBgHlQhgAGCL0JnSysL02yRK-Byt3fZynNfeSgA | |
type AllKeysOpt |
This file contains 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
document.querySelectorAll([ | |
'main', | |
'[role="main"]', | |
'header', | |
'[role="banned"]', | |
'footer', | |
'[role="contentinfo"]', |
- Message:
Component "Header" is declared during render. You should move this declaration outside of render to ensure this component's state is persisted across re-renders of its parent. If this component is memoized, you should still refactor the component to be able to move it outside of render. If you want to reset its state use a key instead (see https://reactjs.org/docs/lists-and-keys.html#keys).
- Path:
tannerlinsley/react-table/old-examples/expanding/src/App.js
- Link
90 | // Build our expander column
91 | id: 'expander', // Make sure it has an ID
> 92 | Header: ({ getToggleAllRowsExpandedProps, isAllRowsExpanded }) => (
This file contains 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
/* | |
rm -rf ./profiling | |
node --cpu-prof --cpu-prof-dir=./profiling index.mjs | |
*/ | |
import { fileURLToPath } from "node:url"; | |
import vm from "node:vm"; | |
import { Worker, isMainThread } from "node:worker_threads"; | |
globalThis.variableInGlobalScope = "Hello world"; |
This file contains 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 { writeFileSync } from "node:fs"; | |
import inspector from "node:inspector"; | |
function firstMethod() {} | |
function secondMethod() {} | |
const session = new inspector.Session(); | |
const collectedCoverage = []; | |
session.connect(); |
This file contains 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
/* | |
* Run as `node process.mjs` and open Chrome DevTools or similar debugging tool | |
*/ | |
import { fork } from "node:child_process"; | |
import { fileURLToPath } from "node:url"; | |
import inspector from "node:inspector"; | |
const filename = fileURLToPath(import.meta.url); | |
if (!process.env.SOME_FLAG) { |
This file contains 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
/* | |
$ node --watch --no-warnings --experimental-vm-modules --experimental-import-meta-resolve vm.mjs | |
*/ | |
import vm from "node:vm"; | |
import { readFileSync } from "node:fs"; | |
import { fileURLToPath } from "node:url"; | |
import { JSDOM } from "jsdom"; | |
const server = { | |
async fetchModule(filename) { |
This file contains 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
/* Typings */ | |
type TicTacToe< | |
MovesOrNextBoard extends Board | Turn[], // On initial round this will be a Turn[], on next rounds it will be a Board with some moves done | |
MovesOrMissing extends Turn[] = [], // On initial round this will be empty, on next rounds it will be the moves | |
PreviousMark extends ValidMark | undefined = undefined, // On initial round this will be missing, on next rounds it will be the mark of the last move | |
CurrentBoard extends Board = ResolveBoardFromArgs<MovesOrNextBoard>, // Parsed argument | |
Moves extends Turn[] = ResolveNextMovesFromArgs<MovesOrNextBoard, MovesOrMissing> // Parsed argument | |
> = | |
Moves extends [infer NextMove, ...infer NextMoves] ? | |
NextMove extends Turn ? |
OlderNewer