Skip to content

Instantly share code, notes, and snippets.

View 2rohityadav's full-sized avatar
🌴
Working From Home

Rohit Kumar 2rohityadav

🌴
Working From Home
View GitHub Profile
@2rohityadav
2rohityadav / sampleREADME.md
Last active September 14, 2020 09:23 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@2rohityadav
2rohityadav / constant.js
Last active January 14, 2021 11:11
constant.js
const prod = {
ENV: 'prod',
BASE_PATH:'/prod/',
BASE_URL: 'https://prod.com',
API_URL_USERS: 'https://prod.com/users'
};
const staging = {
ENV: 'staging',
BASE_PATH:'/staging/',
BASE_URL: 'https://staging.com',
@2rohityadav
2rohityadav / Dev-Issues.md
Last active February 26, 2021 10:53
Issues - logs

Issue:- Stackblitz preview doesn't work on Chrome

Soluction - -> chrome://settings/content/cookies -> Allow -> Add: [*.]stackblitz.io

Source: stackblitz/core#162 (comment)


@2rohityadav
2rohityadav / extensions-list-for-vscode
Last active April 20, 2023 16:43
extensions-list-for-vscode.md
code --install-extension 2gua.rainbow-brackets
code --install-extension aaron-bond.better-comments
code --install-extension adpyke.codesnap
code --install-extension andys8.jest-snippets
code --install-extension Angular.ng-template
code --install-extension anweber.vscode-httpyac
code --install-extension apollographql.vscode-apollo
code --install-extension bradgashler.htmltagwrap
code --install-extension bradlc.vscode-tailwindcss
code --install-extension Cardinal90.multi-cursor-case-preserve
@2rohityadav
2rohityadav / vscode-settings-win.json
Last active April 20, 2023 16:45
vscode-settings.json | Windows Only
{
"workbench.iconTheme": "material-icon-theme",
// FiraCode
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"window.zoomLevel": 0,
// Enable/disable navigation breadcrumbs
"breadcrumbs.enabled": true,
/*
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll ([email protected])
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
@2rohityadav
2rohityadav / queryParams.md
Created September 16, 2021 12:14
Add or update query string parameter
  • JavaScript Version
function updateUrlParameter(uri, key, value) {
    // remove the hash part before operating on the uri
    var i = uri.indexOf('#');
    var hash = i === -1 ? ''  : uri.substr(i);
    uri = i === -1 ? uri : uri.substr(0, i);

 var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
@2rohityadav
2rohityadav / neovim-install-providers-in-windows.md
Created October 28, 2021 16:58 — forked from goldie-lin/neovim-install-providers-in-windows.md
Install provider-* for Neovim (nvim) in Windows

Install provider-* for Neovim (nvim) in Windows

:h provider-python

First, add those lines in your %LocalAppData%\nvim\init.vim:

" Source local init.vim {{{1
let s:local_vimrc = expand('$LOCALAPPDATA\nvim\init.local.vim')
if filereadable(fnameescape(s:local_vimrc))

Angular - Unit Testing | Code Coverage | Chrome headless

1) Configuarion in karma.conf.js -

browsers: ['ChromeHeadless', 'Chrome'],

2) Configuarion in package.json