Skip to content

Instantly share code, notes, and snippets.

View Rustam-Z's full-sized avatar
🚀
Hello from Mars!

Rustam Zokirov Rustam-Z

🚀
Hello from Mars!
View GitHub Profile
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

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

@huklee
huklee / MyLogger.py
Last active January 6, 2024 18:06
python Logger using example with Singleton Pattern
# -*- coding: utf-8 -*-
import logging
import os
import datetime
import time
class SingletonType(type):
_instances = {}
@rahulkumar-aws
rahulkumar-aws / minikube.md
Last active June 9, 2024 06:55
Install/Uninstall Minikube from Mac
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
@darhonbek
darhonbek / resume-dark-mamataliev.md
Last active July 11, 2024 11:10
Resume - Dark Mamataliev

Darkhonbek Mamataliev

Senior iOS Engineer at TikTok · ex Uber

GitHub | LinkedIn | Email

Building pixel perfect apps for 1 billion people. Areas: social network, delivery, finance, logistics.

EXPERIENCE

**TikTok, October, 2023 – Present

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
Programming
@Rustam-Z
Rustam-Z / infinite_sequence.py
Created August 9, 2021 04:53
Makes the infinite sequence using generator.
def infinite_sequence():
"""Makes the infinite sequence with Python generator.
"""
num = 0
while True:
yield num
num += 1
@Rustam-Z
Rustam-Z / html_generator.py
Last active August 9, 2021 12:01
Project: HTML generator with Python decorator
"""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)