some tools for diagrams in software documentation
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
| prisma.$use(async (params, next) => { | |
| const before = Date.now(); | |
| const result = await next(params); | |
| const after = Date.now(); | |
| console.log(`${params.model}.${params.action} took ${after - before}ms`); | |
| return result; | |
| }); |
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
| // Create a new directory, install bitcore-explorers, and run the node shell | |
| mkdir bitcoin && cd bitcoin | |
| npm install --save bitcore-explorers | |
| node | |
| // Require the Bitcore libraries into the global namespace | |
| var bitcore = require(“bitcore-lib”) | |
| var explo = require(“bitcore-explorers”) | |
| var shell = {} |
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
| 0x35c44b4b7100861af28e9d74577f6705702d86b3 |
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
Show hidden characters
| { | |
| "presets": [ | |
| "react" | |
| ] | |
| } |
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
| //Template of web.config.js gist | |
| var HtmlWebpackPlugin = require('html-webpack-plugin') | |
| var HTMLWebpackPluginConfig = new HtmlWebpackPlugin({ | |
| template: __dirname + 'index.html', | |
| filename: 'index.html', | |
| inject: 'body' | |
| }); | |
| module.exports = { | |
| entry: './index.js', | |
| output: { |