Skip to content

Instantly share code, notes, and snippets.

View dibyanshusinha's full-sized avatar

Dibyanshu dibyanshusinha

View GitHub Profile
import React from "react";
import { withFormik, Form, Field } from "formik";
import { object, string, boolean, mixed } from "yup";
const SignUpForm = ({
values,
isValid,
setFieldValue,
setFieldTouched,
dirty,
i. Mount NTFS external drive on your Mac and find it's name
diskutil list
ii. Launch Terminal and enter the following command
sudo nano /etc/fstab
iii. Now add new code to nano and replace NAME with the NTFS drive’s name
@dibyanshusinha
dibyanshusinha / react_d3_playground.js
Last active May 7, 2021 11:13
BlackBoxing Approach D3 with React.
// Approach uses clear Seperation of concern
// Lifecycle Methods wraps D3 chart created outside
// Cons - No SSR
import React, { useLayoutEffect } from "react";
import * as d3 from "d3";
const draw = () => {
const width = 600;

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
# domainstosell
Domain Listing
unicopt.com
A class is a template for creating a particular form of object.
class Entry {
/* fields */
String name;
String address;
String phone;
/* constructor */ is called Implicitly
@dibyanshusinha
dibyanshusinha / MyGitCheatSheet.md
Last active March 13, 2023 11:20
Git Commands

Submodules:

git submodule update --init --recursive

CHERRY-PICKING