Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@soham2008xyz
soham2008xyz / mysql-8-grant-privileges.sql
Created April 22, 2024 14:52
Grant all privileges to root user (on MySQL 8)
CREATE USER 'root'@'%' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
@soham2008xyz
soham2008xyz / dsa-learning-roadmap.md
Created January 6, 2024 11:25
Data Structures and Algorithms Learning Roadmap

Data Structures and Algorithms Learning Roadmap

Here's a comprehensive learning roadmap for a developer on LeetCode who wants to improve their understanding and skills in Data Structures & Algorithms:

  1. Start with the basics: Before delving into complex algorithms, make sure you have a strong grasp of basic data structures like arrays, linked lists, stacks, and queues. This foundation will help you understand more advanced concepts later on. You can find plenty of resources online to learn about these topics, including tutorials and videos.
  2. Algorithmic thinking: Learn how to approach problems algorithmically by breaking them down into smaller steps and identifying patterns. Practice solving simple problems using basic data structures, then gradually move on to more complex ones. This skill will be invaluable when tackling LeetCode problems.
  3. Practice, practice, practice: The key to mastering algorithms is practice. Start by working through easy problems on LeetCode and gradually increase the diff
@soham2008xyz
soham2008xyz / leetcode-problem-statements.md
Created January 6, 2024 11:24
LeetCode Problem Statements
@soham2008xyz
soham2008xyz / autoexec.cfg
Last active March 15, 2024 15:02
CS2 autoexec & practice config
// Jump Throw
alias "+throw" "-attack;-attack2"
bind "space" "+jump;+throw"
// Run Throw
alias "+walkjumpthrow" "+forward;+jump"
alias "-walkjumpthrow" "-jump;-forward"
bind "n" "+walkjumpthrow;+throw"
@soham2008xyz
soham2008xyz / react-developer-exercise.md
Created November 8, 2023 09:35
React.js developer onboarding hands-on exercise simulating a real-world app development scenario (demo)

React Developer Onboarding Exercise

Problem Statement

You are tasked with developing a web application that allows users to search for and view information about movies. The application should be built using React and should simulate a real-world app development environment. The application should have the following features:

  1. A search bar that allows users to search for movies by title or keyword.
  2. A results page that displays a list of movies matching the user's search criteria.
  3. A movie details page that displays detailed information about a selected movie, including its title, release date, rating, and synopsis.
  4. A responsive design that works well on both desktop and mobile devices.
@soham2008xyz
soham2008xyz / react-junior-developer-problem-statement.md
Created November 8, 2023 09:30
React Junior Developer Onboarding Problem Statement

Problem Statement: React.js Developer Onboarding Hands-on Exercise

E-Shopify - Your Online Fashion Store (Demo)

Background

As part of the onboarding process for our React.js developers, we want to simulate a real-world development scenario. Consider the following scenario - Renderbit Technologies is collaborating with a new e-commerce startup, "E-Shopify," to build a modern online fashion store.

Project Description

@soham2008xyz
soham2008xyz / qodana.yml
Created October 31, 2023 13:16
JetBrains Qodana code inspection config for Laravel/PHP projects
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
# Specify inspection profile for code analysis
profile:
name: qodana.starter
# Enable inspections
# include:
@soham2008xyz
soham2008xyz / cs_launch_options.txt
Last active October 20, 2023 15:43
CS2/CS:GO Launch Options
CS:GO Launch Options
-language bananagaming -tickrate 64 +fps_max 0 -novid -nojoy -nothreadedsockets -console -fullscreen -limitvsconst -forcenovsync -softparticlesdefaultoff +mat_queue_mode 2 +r_dynamic 0 -width 1600 -height 900
CS2 Launch Options
-console -novid -nojoy -nothreadedsockets -language bananagaming -fullscreen -width 1280 -height 720 +exec autoexec
@soham2008xyz
soham2008xyz / doOnlineProcess.kt
Created October 6, 2023 13:44
doOnlineProcess.kt
private fun doOnlineProcess(): String {
val onlineResult = StringBuffer()
val rEMVCardData: CardData = rEMV.uSDKprocessCardRecord(null)
cardDataBundle = Bundle()
cardDataBundle?.putParcelable(Flags.CARD_DATA_PARCEL, rEMVCardData)
// TODO: 5A33 to be set in case the transaction is not completed from the server end
// All the responses received from the server is to be converted to HEX