Skip to content

Instantly share code, notes, and snippets.

View rjoydip-zz's full-sized avatar
💭
👨‍💻

Joydip Roy rjoydip-zz

💭
👨‍💻
View GitHub Profile
(function() {
/**
* @description Establish a reference to the `window` object of the `Firechat` variable.
*/
var root = this;
/**
* Firechat
* @description Firechat constructor function
* @constructs
var exists = [];
function randNumGen($len) {
do {
randomNumber = Math.floor(Math.random() * 5);
} while (exists[randomNumber]);
exists[randomNumber] = true;
return randomNumber;
}
console.log(randNumGen(5));
- [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)
- [Bracket Pair Colorizer](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer)
- [Todo Highlighter](https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight)
- [Auto Close Tag](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag)
- [Auto Rename Tag](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag)
- [Quokka.js](https://quokkajs.com/)
- [JavaScript (ES6) code snippets](https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets)
- [Import Cost](https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost)
- [Class-based Tree Shaking](https://www.youtube.com/watch?v=lsd2-TCgHEs)
- [Libraries vs Frameworks](https://www.youtube.com/watch?v=t_pxnrLktNI)
@rjoydip-zz
rjoydip-zz / bashscript.sh
Last active May 23, 2018 03:45 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"

React.js Question Answers

What is react.js?

A JavaScript library for building user interfaces

What is the role of webpack?

Webpack is a popular module bundling system built on top of Node.js. It can handle not only combination and minification of JavaScript and CSS files, but also other assets such as image files (spriting) through the use of plugins.

With Webpack, you give a single path. The path to your entry point. This is typically index.js or main.js. Webpack will now investigate your application. It will figure out how everything is connected through require, import, etc. statements, url values in your CSS, href values in image tags, etc. It creates a complete dependency graph of all the assets your application needs to run. All of this just pointing to one single file.

@rjoydip-zz
rjoydip-zz / config-vuepress.md
Last active May 25, 2020 01:31
How to config vuepress to your project

Generate documentation

How to config vuepress to your project.

Instruction

  1. create .vuepress folder.
  2. Create config.js file
  3. Add below snippet in config.js.
notifications:
  email:
    on_success: never
    on_failure: always
@rjoydip-zz
rjoydip-zz / unique.js
Created August 20, 2018 13:51
unique array using set
var result = [...new Set([1, 2, 1, 4, 1, 3])];
console.log(result)