So here is the problem; I have an existing project which installs a private package that uses features not-yet-supported in an old version of node. And due to the fact that @babel 7 will not transpile any files under node_modules (Maybe I need a file like .babelrc for that package?)… Read more »
Tag: Codes
Preface Initially I did not plan to use canvas for this task, but to use a div with block of span with solid colours. However, for some bazaar reasons, that would cause the content to offset 1 pixel towards right and bottom. Since React works directly with DOM elements, I… Read more »
Preface Was thinking about making my own stats page to monitor basic information for all my servers using the Primary back-end and Secondary Workers, where the Primary server will serve the front-end assets while other Worker back-ends provides API exposing the server stats. This post is about the Secondary Worker… Read more »
Just a nice and simple alternative implementation of React.createElement. var h = (function () { function deref(fn) { return Function.call.bind(fn); } var slice = deref(Array.prototype.slice); // Lodash code starts here var MAX_SAFE_INTEGER = 9007199254740991; function isObject(value) { var type = typeof value; return value != null && (type == 'object'… Read more »