Skip to content

Instantly share code, notes, and snippets.

View Dvisacker's full-sized avatar

David Dvisacker

  • Blockpour
  • Seoul, South-Korea
  • 18:21 (UTC -12:00)
View GitHub Profile
@Dvisacker
Dvisacker / prisma.ts
Created September 14, 2022 06:50
Prisma Timer
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;
});

some tools for diagrams in software documentation

Diagrams For Documentation

Obvious Choices

ASCII

@Dvisacker
Dvisacker / bitcore-fiddling.js
Created December 7, 2017 09:40
Fiddling with bitcore
// 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 = {}
@Dvisacker
Dvisacker / rinkeby.txt
Last active December 7, 2017 09:41
Rinkeby Addresses
0x35c44b4b7100861af28e9d74577f6705702d86b3
@Dvisacker
Dvisacker / .babelrc
Created October 8, 2016 08:36
JS: Babelrc File
{
"presets": [
"react"
]
}
@Dvisacker
Dvisacker / webpack.config.js
Last active October 8, 2016 08:37
JS Webpack Config Template
//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: {