Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
import { injectScript } from '@module-federation/utilities'; | |
// example of dynamic remote import on server and client | |
const isServer = typeof window === 'undefined'; | |
//could also use | |
// getModule({ | |
// remoteContainer: { | |
// global: 'app2', | |
// url: 'http://localhost:3002/remoteEntry.js', | |
// }, | |
// modulePath: './sample' |
Steps to configure prettier, eslint, husky (pre commit hook), lint-staged in react + typescript project created using create-react-app. This is opinionated configuration with airbnb's style guide as the base style guide.
npm install --save-dev --save-exact prettier
from django.utils.translation import ugettext_lazy as _ | |
from rest_framework import serializers | |
class SomeSerializer(serializers.ModelSerializer): | |
""" | |
Demostrating How to Override DRF UniqueTogetherValidator Message | |
""" | |
class Meta: |
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |