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 / 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 / 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 / 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 / checkDataTypes.md
Last active July 16, 2021 05:28
check data types in javascript
@2rohityadav
2rohityadav / electron-fem-v2.md
Created July 2, 2020 06:47 — forked from stevekinney/electron-fem-v2.md
Frontend Masters: Electron Workshop (December, 2018)

Frontend Masters: Electron (Version 2)

You'll need a recent version of Node.js installed on your computer with administrative access. Yarn is not required, but Electron Forge uses it, so it would be helpful to install beforehand.

Please make sure you're using a supported platform. This is particularly important if you're running Linux.

Important note: If you're using Windows, make sure you're not using the Windows Subsystem for Linux. This will confuse Electron to thinking you're running on a Linux machine when you're really not.

We'll be using working through the following repositories over the course of the workshop:

Participants should have a recent version of Node.js installed on their system (preferably the latest LTS version, which is 6.9.1 as of this writing—but anything from 0.10 on should work). Participants should clone the following repositories and run npm install in each of them prior to the start of the workshop.

Optional: It might be helpful to install Electron globally so that you can use it from the command line in case there are any issues with any of the dependencies in the project above. You can install this through npm install -g electron.

Finally, debugging the main process is easiest using Visual Studio Code, which is available for all platforms (Windows, Linux, and macOS). This is not a hard requirement, but helpful if you'd like to follow along for that small segment of the workshop.

@2rohityadav
2rohityadav / mediaqueries.css
Created June 12, 2020 11:46 — forked from needim/mediaqueries.css
Device Specific CSS Media Queries Collection
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone X in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
@2rohityadav
2rohityadav / export_vscode_extesions.md
Created June 10, 2020 14:03 — forked from joseluisq/export_vscode_extesions.md
How to export your VS Code extensions from terminal

How to export your VS Code extensions from terminal

Note: Unix-like systems only.

  1. Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
@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": {

Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

2. Initialize the local directory as a Git repository.

git init