Skip to content

Instantly share code, notes, and snippets.

View shubham43MP's full-sized avatar
🏠
Working from home

Shubham Dixit shubham43MP

🏠
Working from home
View GitHub Profile
// useDeepLinker.ts
import { useCallback, useEffect, useRef } from "react";
export type DeepLinkOptions = {
onIgnored?: () => void;
onFallback?: () => void;
onReturn?: () => void;
/**
* Time to wait before deciding the browser "ignored" the deep link.
* Default: 500ms (same as original code)
@shubham43MP
shubham43MP / role.md
Created January 14, 2025 07:49
My Previous roles

Project: Hoory.com

As the Senior Full-Stack Engineer and Lead Developer on the Hoory project, I played a pivotal role in designing and implementing key features of the platform, which includes customer support tools such as live chat, chatbot builders, AI assistants, and omnichannel inboxes. My primary focus was on API integration and creation to ensure seamless interactions between the platform's backend and various customer touchpoints.

Roles and Responsibilities:

  • API Design & Integration: Led the API design, development, and integration process, ensuring that Hoory's platform could seamlessly connect with various customer communication channels (email, WhatsApp, Telegram, etc.).
  • Backend Development: Built and optimized backend APIs for handling high volumes of requests efficiently, with a focus on scalability and performance.
  • Team Leadership: Managed and mentored two developers, providing technical guidance, conducting code reviews, and fostering collaboration within the tea
@shubham43MP
shubham43MP / overview.md
Created January 14, 2025 07:47
Proj Overview

Speechify Hover Button Feature

Purpose

This project allows users to hover over a paragraph (<p>) element, where a play button appears. Upon clicking the button, the text is read aloud using the Web Speech API, and the words being spoken are highlighted in real-time.

Features

  • Hover-to-Activate Button: On hovering over a paragraph, a play button appears next to the text.
  • Text-to-Speech: Clicking the play button reads the paragraph text aloud.
  • Word Highlighting: Words are highlighted as they are spoken aloud to provide visual context.
@shubham43MP
shubham43MP / .txt
Created November 21, 2024 10:07
Technical writing sample
Hi Steve,
I have encountered some challenges that I believe require re-evaluation of the current approach. Different tables have distinct requirements, which inherently limit the scope for code reuse. Ideally, updating data for these tables may warrant separate components or pages altogether.
While the functionality for the courses table has been implemented as expected, extending the solution to other tables in a generic manner is proving to be infeasible. The variations in update requirements across tables cannot be effectively generalized.
For instance, the employer table requires sectorIds during updates, which should not be mandatory but is enforced by the API. Such nuances introduce additional complexities, making it difficult to work with a one-size-fits-all approach.
The basic UI for courses is functional, but the unique characteristics of each table highlight the inherent complexity. A more tailored solution may be necessary to address these challenges effectively.
@shubham43MP
shubham43MP / js
Created August 13, 2024 08:55
numberOfIslands
/* Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.
An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
Example 1:
Input: grid = [
["1","1","1","1","0"],
@shubham43MP
shubham43MP / js
Created August 13, 2024 08:54
Flatten JS question
FLATTEN FUNCTION
// [1,2,3,[4,5, [6, 9]]]
// [1,2,3,4,5, 6, 9]
// []
// []
// [[], 1, [[]]]
// [1]
@shubham43MP
shubham43MP / logical_problem_solving.txt
Created August 1, 2024 17:51
logical problem solving
Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.
An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
Example 1:
Input: grid = [
["1","1","1","1","0"],
// Predict is output with reasoning
const xyzPromise = () => {
return new Promise((resolve) => {
resolve('A')
});
};
console.log('B');
setTimeout(() => console.log('C'), 0);
xyzPromise()

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.