layout | title | subtitle | date | author | header-img | comments | tags | |
---|---|---|---|---|---|---|---|---|
post |
Cracking the FAANG internship |
Comprehensive guide for getting you your next FAANG internship |
2019-10-30 15:09:00 -0700 |
Krystian Wojcicki |
img/posts/jekyll-bg.jpg |
true |
|
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
"""Project: HTML Generator | |
With the new html() decorator you can focus on | |
writing simple functions that return the | |
information you want to display on the webpage | |
and let the decorator take care of wrapping them | |
in the appropriate HTML tag. | |
""" | |
def html(open_tag, close_tag): | |
def decorator(func): | |
@wraps(func) |
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
def infinite_sequence(): | |
"""Makes the infinite sequence with Python generator. | |
""" | |
num = 0 | |
while True: | |
yield num | |
num += 1 |
minikube stop; minikube delete
docker stop $(docker ps -aq)
rm -r ~/.kube ~/.minikube
sudo rm /usr/local/bin/localkube /usr/local/bin/minikube
systemctl stop '*kubelet*.mount'
sudo rm -rf /etc/kubernetes/
docker system prune -af --volumes
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
# -*- coding: utf-8 -*- | |
import logging | |
import os | |
import datetime | |
import time | |
class SingletonType(type): | |
_instances = {} |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs