Skip to content

Instantly share code, notes, and snippets.

View ntrix's full-sized avatar

Ngoc Tien Nguyen ntrix

View GitHub Profile
@ntrix
ntrix / ultimate-ut-cheat-sheet.md
Created July 15, 2022 20:51 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@ntrix
ntrix / index.md
Created September 24, 2021 14:45 — forked from bvaughn/index.md
How to use profiling in production mode for react-dom

React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.

Table of Contents

Profiling in production

React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.

HTTP Status Codes

1×× Informational

100 Continue

101 Switching Protocols

102 Processing

Getting Started


const { Sequelize, Op, Model, DataTypes } = require("sequelize");

Option 1: Passing a connection URI

@ntrix
ntrix / mongoDBmongoose.md
Last active October 10, 2020 09:47
mongodb list