Skip to content

Instantly share code, notes, and snippets.

View nirmalkar's full-sized avatar
👋
hallo!

Monty nirmalkar

👋
hallo!
View GitHub Profile
//Below written code will produce array of 0 and first 3 positive integers.
const num = 3
Array.from(Array(num).keys())
{
"arrowParens": "avoid",
"semi": false,
"tabWidth": 4
}
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.bracketPairColorization.enabled": true,
"editor.wordWrap": "on"
}
@nirmalkar
nirmalkar / jsconfig.json
Last active January 26, 2021 08:37
Absolute imports in react js
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
@nirmalkar
nirmalkar / .zshrc
Last active September 8, 2022 06:40
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
CASE_SENSITIVE="true"
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(
git
@nirmalkar
nirmalkar / index.css
Last active January 9, 2021 07:15
Hide Scrollbars
/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
html {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
//html
<span class="change-icon icon-top">
<i class="far fa-heart"></i>
<i class="fas fa-heart"></i>
</span>
/*css*/
{
"name": "eslint_test",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"standard",
"plugin:prettier/recommended"
],
{
"workbench.iconTheme": "material-icon-theme",
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"editor.tabSize": 2,
"editor.suggestSelection": "first",
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"terminal.integrated.rendererType": "dom",