Hello, Javaniceday!

  • Prettier config

    Prettier config

    Overview Prettier is a code formatter that supports many languages and can be integrated with most of the editors. Also, you can integrate it with your CI/CD. That why nobody will be able to merge to the master branch if the code is not well-formatted. With Prettier you will be able to define your own Read more

  • flexsearch example

    About flexsearch package flexsearch It’s an awesome package to index in-memory data. You can use it to implement justa. search box in your site or to show related data with the content you are displaying How to install it yarn add flexsearch Or npm install flexsearch Example const { Index } = require(“flexsearch”); const options Read more

  • Count business hours in a Spreadsheet

    Convert date: =DATE(2021,9,1) Count business days: =NETWORKDAYS(DATE(2021,9,1), DATE(2021,9,30)) Count business hours: =MULTIPLY(NETWORKDAYS(DATE(2021,9,1), DATE(2021,9,30)),8) Photo by Annie Spratt on Unsplash Read more

  • javascript lazy load images

    Why should you load your images in a lazy way? Among other reasons: Increase page speed Better page rank More visitors Reduce bounce rate Increase pages / session rate Improve user experience Reduce infrastructure costs In a nutshell This is the process: Modify all your tags by changing src by data-src or something else Add Read more

  • error authenticating with auth code due to: grant type not supported

    error authenticating with auth code due to: grant type not supported

    You are trying to log in through an instance URL (example: sandbox) and you do this. sfdx auth:web:login -a myusername@myorg.sandbox –instanceurl=https://mysandbox-domain.lightning.force.com And you get this error in console: ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. Error authenticating with auth code due to: grant type not supported In your browser Read more

  • Show failing tests after running a dry deployment (–checkonly) in Salesforce

    sfdx force:source:deploy -x manifest/package.xml -l RunLocalTests –checkonly *** Deploying with SOAP API *** Deploy ID: 0Bf7D000003ygUYWBY SOURCE PROGRESS | █████████████████████████████████░░░░░░░ | 92/111 Components === Component Failures [0] Type Name Problem ──── ──── ─────── === Test Results Summary Passing: 30 Failing: 17 Total: 47 Time: 0 ERROR running force:source:deploy: Deploy failed. sfdx force:source:deploy:report -i 0Bf7D000003ygUYWBY –json Read more