- Create Snippets for repetitive code, or use available extensions
- Create directories from VSCode GUI
- If you want to rename something, right click and select “Find All References” and then use “Rename Symbol” option
- Command Palette gives you all the power of the keyboard without having to memorize them
$ CTRL + P // opens command palette, by default search for scripts to open
$ CTRL + P + “>” // access to open any command in vscode along with commands from extensions ex toggle mini map
$ CTRL + P + “@“ // symbols search; for whole codebase use #TargetSymbol or #TSA for T…S..A…
$ CTRL + SHIFT + “.” // symbols search inside file itself
$ CTRL + G + “:NN” // Go to line NN; use “⬅️” or “➡️“ for character by character, or “CTRL + arrows” for word by word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gstatus=`git status --porcelain` | |
if [ ${#gstatus} -ne 0 ] | |
then | |
git add --all | |
git commit -m "Automated sync: $gstatus" | |
git pull --rebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# Set the number of points to generate | |
num_points = 1000000 # 10^6 | |
# Initialize the counters for points inside and outside the circle | |
inside_circle = 0 | |
outside_circle = 0 | |
# Generate random points and count the number inside/outside the circle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import StringIO | |
import sys | |
from typing import Dict, Optional | |
from langchain.agents import load_tools | |
from langchain.agents import initialize_agent | |
from langchain.agents.tools import Tool | |
from langchain.llms import OpenAI | |
For complete MicroDSA go to: https://husseinlezzaik.github.io/2023/07/15/MicroDSA.html
- Invert Binary Tree
- Reverse Linked List
- Binary Search
- Sliding Window (2 pointers)
- Recursion (trees, graphs, backtracking, DP)
- Dynamic Programming
- Merge & Quick Sort
- Hacker Rank
- Leet Code
- Algo Expert
- Educative.io
- Exponent
- Interviewing.io
- Pramp free mock interviews
- JoinTaro mentorship program
- Advent of Code
- Design Patterns: Elements of Reusable Object Oriented Software
- The Art of Computer Programming, Donald Knuth
- Literate Programming, Donald Knuth
- The Practice of Programming, by Brian W. Kernighan and Rob Pike.
- Essence and Accidents of Software Engineering, Frederick Brooks
- Introduction to Data Structures and Algorithms
- Latency Numbers, Jeff Dean
- From 0 to Clearing Uber/Amazon/Google, Leetcode
- Systems Design Primer github
- Engineering Blogs
- Awesome System Designngithub
- Algorithms you Should know for Systems Design
- Techniques and numbers for estimating system's performance from first-principles
- Computer Operations Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Pip | |
```python | |
$ pip install package_name==required_version | |
$ pip uninstall package_name | |
``` | |
## Install via Brew | |
```python | |
$ brew install [email protected] | |
``` |
OlderNewer