Skip to content

Instantly share code, notes, and snippets.

View mananshr's full-sized avatar
👋
Working on smart retail tech

Manan Sharma mananshr

👋
Working on smart retail tech
View GitHub Profile
@mananshr
mananshr / Vanilla_learn.js
Created February 27, 2023 16:29
Learning Vanilla JS
import "./styles.css";
document.getElementById("app").innerHTML = `
<h1>Hello Vanilla!</h1>
<div>
We use the same configuration as Parcel to bundle this sandbox, you can find more
info about Parcel.
</div>
`;
@mananshr
mananshr / latency.txt
Created June 26, 2023 18:03 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@mananshr
mananshr / commit_message_template.txt
Created July 1, 2023 18:31
Git commit template to improve your project's commit messages.
##################################################
# Write a title summarizing what this commit does.
# Start with an uppercase imperative verb, such as
# Add, Drop, Fix, Refactor, Bump; see ideas below.
# Think of your title as akin to an email subject,
# so you don't need to end with a sentence period.
# Use 50 char maximum, which is this line's width.
##################################################
Add your title here
@mananshr
mananshr / profile.ps1
Last active October 26, 2024 11:00
My standard MS PowerShell profile
### PowerShell profile template - Manan Sharma
###
### https://gist.github.com/mananshr/be2a248d1e34e52a77d0be37ffcd7fb4
###
### Source credits: Tim Sneath <tim@sneath.org>
### Forked from https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force