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
@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active November 13, 2024 21:29
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active November 5, 2024 12:03
Online Resources For Web Developers (No Downloading)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shallow vs Deep Copy</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../video-pages/main.css">
</head>
<body>
<header>
@2rohityadav
2rohityadav / github_bitbucket_sameFolder.md
Last active April 2, 2020 06:06
Using Github & bitbucket in same folder

How to Use GitHub and BitBucket at the Same Time for One Project?

You can use multiple remote repositories with git. But you'll have to push separately into 2 of your remotes.

cd project

$ git remote add github https://github.com/your_user/your_repo.git

$ git remote add bitbucket https://[email protected]/your_user/your_repo.git

@2rohityadav
2rohityadav / sonarqube-setup-angular.md
Last active January 2, 2023 19:25
sonarqube setup with angular

SONAR Configuration - Angular

1) Install sonarqube-scanner -

npm install sonarqube-scanner --save-dev

2) Need to install few npm packages as a devDependencies

"devDependencies": {
@2rohityadav
2rohityadav / checkDataTypes.md
Last active July 16, 2021 05:28
check data types in javascript
@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,
@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("([?&amp;])" + key + "=.*?(&amp;|$)", "i");
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shallow vs Deep Copy</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../video-pages/main.css">
</head>
<body>
<header>