Skip to content

Instantly share code, notes, and snippets.

View navneet-kumar's full-sized avatar
🇮🇳
Loading...

Navneet kumar navneet-kumar

🇮🇳
Loading...
View GitHub Profile
docker pull mysql:latest
docker run --name mySql -p3306:3306 -e MYSQL_ROOT_PASSWORD=Password12 -d mysql:latest
> Error : Public Key Retrieval is not allowed
1.Right click your connection, choose "Edit Connection"
2.On the "Connection settings" screen (main screen) click on "Edit Driver Settings"
3.Click on "Connection properties", (In recent versions it named "Driver properties")
4.Right click the "user properties" area and choose "Add new property"
5.Add two properties:

Graph

Types of Graph

Undirected Graph

An undirected graph is a graph in which edges have no orientation. The edge (u,v) is identical to the edge (u,v).

Directed Graph (DiGraph)

An directed graph is a graph in which edges have orientation. The edge (u,v) is the edge from node u to node v.

Behavioural Questions

Please introduce yourself

Why do you want to leave you current company?

How would you be a great resource to the team, and how can you contribute remarkably?

Tell me about the time you go beyond customer's expectation?

import React from "react";
import styled from "styled-components";
import device from "../utils/device";
export const CenterPadded = styled.div`
padding: 5%;
margin: 5%;
position: relative;
@media ${device.tablet} {
@navneet-kumar
navneet-kumar / functional programming.md
Last active May 31, 2020 05:12
Array Immutability in JS

Array

Immutable operations (Add,remove, update) in a array

  const number = [1,2,3];

  // add at the end
  const addedAtEnd = [...number,4];
  
sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
@navneet-kumar
navneet-kumar / APPIUM SETUP FOR MAC.md
Last active October 21, 2019 06:29
APPIUM SETUP ON MAC

$ npm install -g appium
$ npm install -g appium-doctor
$ brew install libimobiledevice --HEAD
$ brew install ideviceinstaller
$ npm install -g ios-deploy
$ gem install xcpretty
$ cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
$ brew install carthage
$ npm i -g webpack
$ ./Scripts/bootstrap.sh -d

brew cask install android
brew cask install android-platform-tools
@navneet-kumar
navneet-kumar / Gradle Task
Created June 25, 2019 08:29
Gradle task to generate kotlin data class on the fly from xml file
task generateStrings{
String dir = "build/sources"
delete dir
mkdir(dir)
def f = file(dir + "/StringsEn.kt")
File file = file("src/main/resources/strings_en.xml")
f.append("package myCompany.framework.data\n")
f.append("data class StringsEn constructor (\n")
def strings = []
@navneet-kumar
navneet-kumar / GitHub-Forking.md
Created March 15, 2019 04:37 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j