Here's how to undo your last commit (that accidentally included __pycache__
) and prevent it from being tracked in the future:
git reset --soft HEAD~1
- This will:
- Remove the commit (
fd8b15c
)
- Remove the commit (
Open VS Code Keyboard Shortcuts
Ctrl + K
then Ctrl + S
(Windows/Linux)Cmd + K
then Cmd + S
(Mac)Search for the Python Run Command
Python: Run Python File in Terminal
Software Engineer Career Ladder at Google | |
Here’s an understanding of the software engineer career ladder at Google: | |
Software Engineer I (Level 2) | |
SWE-I refers to a fresh out of college software engineer or an intern still pursuing a four-year bachelor’s degree in an engineering program. | |
Software Engineer II (Level 3) | |
Google entry-level software engineer is a designated Level 3 coding engineer with an undergraduate degree in a computer-related field. It is also common for an SWE-II to have a Master’s degree. However, since they possess 0 to 1 year of industry experience, they are assigned an entry-level position. On average, they earn a base salary of $130,041 per year. | |
Software Engineer III (Level 4) |
388 Longest Absolute File Path 34.7% Medium | |
340 Longest Substring with At Most K Distinct Characters 38.5% Hard | |
308 Range Sum Query 2D - Mutable 19.8% Hard | |
418 Sentence Screen Fitting 27.2% Medium | |
361 Bomb Enemy 38.0% Medium | |
281 Zigzag Iterator 48.3% Medium | |
298 Binary Tree Longest Consecutive Sequence 39.8% Medium | |
425 Word Squares 41.7% Hard | |
346 Moving Average from Data Stream 57.4% Easy | |
163 Missing Ranges 27.7% Medium |
Here’s a clear breakdown of the differences between index funds and ETFs (even when tracking the same stocks), along with guidance on choosing the best option for your goals:
Feature | Index Fund (Mutual Fund) | ETF (Exchange-Traded Fund) |
---|---|---|
Trading | Priced once daily (after market close). | Traded like stocks (intraday pricing). |
Minimum Investment | Often requires $1k–$3k initial buy-in. | Buy any number of shares (no minimum). |
Expense Ratios | Slightly higher (e.g., 0.04–0.15%). | Often lower (e.g., 0.03–0.10%). |
For a 40–50-year-old investor with a moderate risk tolerance and a focus on balanced growth and capital preservation, here’s a recommended portfolio allocation using your selected funds:
Asset Class | Fund(s) | Percentage | Rationale |
---|---|---|---|
Domestic Stocks | VTI | 40% | Core U.S. equity exposure for growth and diversification. |
International Stocks | FZILX | 20% | Diversifies globally, capturing growth in developed/emerging markets. |
Broad Bonds | BND | 30% | Stabilizes the portfolio with investment-grade U.S. bonds (mix of durations). |
To add another person as an editor to your YouTube channel, follow these steps:
Sign in to YouTube Studio:
Navigate to Settings:
Open Permissions:
Below is a simple "Hello, World!" program written in x86-64 assembly language for Linux. I'll also provide instructions on how to assemble, link, and run it on Fedora Linux.
Save the following code in a file named hello.asm
:
section .data
hello db 'Hello, World!', 0x0A ; 'Hello, World!' followed by a newline (0x0A)
section .text