Skip to content

Instantly share code, notes, and snippets.

View Kumawatlalit912's full-sized avatar
🎯
Focusing

Kumawat Lalit Kumawatlalit912

🎯
Focusing
View GitHub Profile
@Kumawatlalit912
Kumawatlalit912 / ChocolatePickup.cpp
Created September 10, 2022 15:54
3d dp concept chocolate pickup
#include<bits/stdc++.h>
const int mod=-1e9+7;
int dp[50][50][50];
int solve(int i,int j1,int j2,vector<vector<int>>&grid,int r,int c){
if( j1<0 || j2<0 || j1>c-1 || j2>c-1 ) return mod;
if(i==r-1){
if(j1==j2) return grid[i][j1];
else{
return grid[i][j1]+grid[i][j2];
}
@Kumawatlalit912
Kumawatlalit912 / MyOhMyPoshTheme.omp.json
Created October 8, 2022 05:52
customize theme from tohtaltech(yt)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#c386f1",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@Kumawatlalit912
Kumawatlalit912 / MyOhMyPoshTheme.omp.json
Created October 8, 2022 05:52
customize theme from tohtaltech(yt)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#c386f1",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
for installation oh-my-posh go to ohmyposh website and select your operating system
TO OPEN Json files go to C:\Users\Dell\AppData\Local\Programs\oh-my-posh\themes in your pc
Install-Module -Name Terminal-Icons -Repository PSGallery
Install-Module -Name PSReadLine -AllowClobber -Force
for any further assitance you can comment down below or
@Kumawatlalit912
Kumawatlalit912 / terminal_commnads.txt
Created October 19, 2022 21:49
Pip cmdlet Problem solved
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
upgrading----->
python -m pip install -U pip
---first
dowload this npm install -g json-server
then
create fake data---->
{
"users": [
{
"id": 1,
"name": "user1",
"email": "[email protected]"
https://medium.com/codex/create-fake-json-server-in-less-than-30-seconds-with-crud-operations-7cdcd560d84b
@Kumawatlalit912
Kumawatlalit912 / GitBashCommands.txt
Last active April 6, 2023 18:27
includes important commands for git bash
git remote set-url origin https://<githubToken>@github.com/kumawatlalit007/ProductionCode.git --->(for new user)
git remote
git remote -v
//to remove the origin
git remote remove origin
@Kumawatlalit912
Kumawatlalit912 / mongodb.txt
Created January 31, 2023 05:07
How to install mongodb in linux machine
1 - Uninstall current installation completely
Source - official instructions
sudo service mongod stop
Remove Packages
sudo apt-get purge mongodb-org*
Remove the folders