This script generates a table of contents from a Markdown file, reading from stdin or a file and outputting to stdout.
Usage:
./generate-toc.sh [input_file]
cat input_file.md | ./generate-toc.shExample output:
This script generates a table of contents from a Markdown file, reading from stdin or a file and outputting to stdout.
Usage:
./generate-toc.sh [input_file]
cat input_file.md | ./generate-toc.shExample output:
interface MyInterface {
prop1: string;
prop2: number;
// other properties
}
const myObject: MyInterface = {
prop1: "value1",
prop2: 123,| name | wikipedia_url | |
|---|---|---|
| A# .NET | https://en.wikipedia.org/wiki/A_Sharp_(.NET) | |
| A# (Axiom) | https://en.wikipedia.org/wiki/A_Sharp_(Axiom) | |
| A-0 System | https://en.wikipedia.org/wiki/A-0_System | |
| A+ | https://en.wikipedia.org/wiki/A%2B_(programming_language) | |
| A++ | https://en.wikipedia.org/wiki/A%2B%2B | |
| ABAP | https://en.wikipedia.org/wiki/ABAP | |
| ABC | https://en.wikipedia.org/wiki/ABC_(programming_language) | |
| ABC ALGOL | https://en.wikipedia.org/wiki/ABC_ALGOL | |
| ABSET | https://en.wikipedia.org/wiki/ABSET |
%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryColor': '#BB2528',
'primaryTextColor': '#fff',
'primaryBorderColor': '#7C0000',
'lineColor': '#F8B229',
'secondaryColor': '#000',An error encountered while trying to instantiate a class from the node package I'm builiding, blockly_multiselect_plugin.
Bundling a node project for distribution as a library should be the same as bundling an application. One exception is that you need to expose exports from the package's entry point using Webpack's output.library option.
When targeting a library, especially when libraryTarget is 'umd', the globalObject option indicates what global object will be used to mount the library. To make UMD build available on both browsers and Node.js, set output.globalObject option to 'this'. The globalObject option defaults to 'self' for Web-like targets.
The following fragment of webpack.config.js shows how to correctly export the entry point for consumption by other packages.
| import Blockly from 'blockly'; | |
| declare interface CustomNode extends Node { | |
| removeAttribute(arg0: string); | |
| } | |
| const DOMURL = window.URL || window.webkitURL; | |
| const getSvgBlob = (workspace: Blockly.WorkspaceSvg) => { | |
| const canvas = workspace.svgBlockCanvas_.cloneNode(true) as CustomNode; |
On Mac, launch browser using a dedicated profile. This will create directory remote-profile in cwd.
% /Applications/GoogleChrome.app/Contents/MacOS/GoogleChrome --remote-debugging-port=9222 --user-data-dir=remote-profile
DevTools listening on ws://127.0.0.1:9222/devtools/browser/1f9619a3-abe2-449b-a81e-dde827123e20Make sure that webroot points to the webpack-built distribution of your extension that's loaded by the browser.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |