This markdown was exported from Data-Forge Notebook
First define some test data:
// | |
// Original code here. | |
// | |
// https://stackoverflow.com/a/41674522/25868 | |
// | |
const m = require('module'); | |
const originalLoader = m._load; | |
m._load = function(request, parent, isMain) { |
This markdown was exported from Data-Forge Notebook
First define some test data:
import * as path from "path"; | |
import { IDiagnostic } from "./language-code-generator"; | |
import { readJsonFile } from "../common/file"; | |
// | |
// Result of compiling TypeScript code. | |
// | |
export interface ICompilationResult { | |
code?: string; | |
diagnostics: IDiagnostic[]; |
// | |
// Search backwards iteratively through a graph from the head nodes to find the set of last common | |
// ancestors that all paths pass through and that are reachable from the head nodes. | |
// | |
export function findLastCommonAncestor(blockGraph: BlockGraph, blocks: string[]): IBlockNode[] { | |
if (blocks.length === 0) { | |
return []; | |
} | |
// |
A comprehensive shell script for managing development tools on Ubuntu 24. Install, update, list, and uninstall your essential development tools with a single command. Now supports 16 tools including JSON processing capabilities, HTTP clients, Microsoft enterprise tools, and remote access solutions.