| Filter | Description | Example |
|---|---|---|
| allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
| intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
| inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
| allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
| intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Usage: | |
| // Replace React.lazy(() => import('x')); | |
| // with retryDynamicImport(() => import('x')); | |
| import { ComponentType, lazy } from 'react'; | |
| const MAX_RETRY_COUNT = 15; | |
| const RETRY_DELAY_MS = 500; | |
| // Regex to extract the module URL from the import statement |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
| Version | Link |
|---|---|
| ECMAScript 2015 - ES2015 - ES6 | All Features List |
| ECMAScript 2016 - ES2016 - ES7 | All Features List |
| ECMAScript 2017 - ES2017 - "ES8" | All Features List |
| ECMAScript 2018 - ES2018 - "ES9" | All Features List |
| ECMAScript 2019 - ES2019 - "ES10" | All Features List |
| ECMAScript 2020 - ES2020 - "ES11" | All Features List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Private methods: are only accessible inside the class that they are defined. | |
| Protected methods: are only accessible inside the class that they are defined and also accessible inside | |
| of any class that extends their class. | |
| Static methods and properties: are not accessible on instance of their class(`new keyword`) and only accessible directly on the class(`MyClass.method`) | |
| and inside their class are only accessible | |
| inside of another static property (unless we don't use the this keyword). | |
| for e.g. Math Class. we add static keyword to the method inside the class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| andorid studio: build -> generate signed bundle/apk | |
| if we created keystore we should add it in gradle.properties and app/build.gradle | |
| in gradle.properties instead of myrelease-key.keystore change myrelease-key.jks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sum of n consequetive numbers is (n / 2)(first number + last number) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param {string} dayStart - start day hour in 24 hours format | |
| * @param {string} dayEnd - end day hour in 24 hours format | |
| * @param {string} startTime - start meeting hour in 24 hours format | |
| * @param {number} durationMinutes - meeting duration in minutes | |
| * @returns {boolean} - if the meeting is in work hours bound return true | |
| */ | |
| function scheduleMeeting(dayStart: string, dayEnd: string, startTime: string,durationMinutes: number): boolean { | |
| const getHourMinutes = (item: string): {hours: string, minutes: string} => { |