Run:
node a.js
Result:
A from C {}
C from B This is C
B from A This is B
Run:
node a.js
Result:
A from C {}
C from B This is C
B from A This is B
// Duration | |
export type Duration = number; | |
const PPQ: Duration = 960; | |
export const wn = 4 * PPQ; // whole note duration | |
export const hn = (1 / 2) * wn; // half note duration | |
export const qn = (1 / 4) * wn; // quarter note duration | |
export const en = (1 / 8) * wn; // eight note duration | |
export const sn = (1 / 16) * wn; // sixteenth note duration | |
export const tn = (1 / 32) * wn; // thirty-second note duration |
{ | |
"presets": ["env", "react"], | |
"plugins": [ | |
"transform-class-properties", | |
"transform-object-rest-spread", | |
"react-hot-loader/babel" | |
] | |
} |
https://www.docker.com/community-edition
docker pull microsoft/mssql-server-linux
{ | |
"parser": "babel-eslint", | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"env": { | |
"browser": true, | |
"jest": true, | |
"es6": true | |
} | |
} |
Me encantan los cursos que son una implementación naive de algo para entenderlo mejor.
'use strict' | |
const httpStatus = require("http-status"); | |
/** | |
* Extends the node base Error object to have status while capturing the stack trace | |
*/ | |
class ApiError extends Error { | |
constructor(statusCode = 500, message = httpStatus[statusCode]) { |