Skip to content

Instantly share code, notes, and snippets.

View pgaijin66's full-sized avatar

Prabesh pgaijin66

View GitHub Profile
@pgaijin66
pgaijin66 / Tix-tac-toe
Last active March 28, 2022 07:05
simple Tic tac toe game made in python
def display_board(board):
for i in range(3):
print " ",
for j in range(3):
if board[i*3+j] == 1:
print 'X',
elif board[i*3+j] == 0:
### Keybase proof
I hereby claim:
* I am pgaijin66 on github.
* I am pgaijin66 (https://keybase.io/pgaijin66) on keybase.
* I have a public key whose fingerprint is E460 B98E 61D4 8EDC 59AE 99D9 F0FC D8EB F976 D615
To claim this, I am signing this object:
@pgaijin66
pgaijin66 / latency.txt
Created October 13, 2020 03:17 — 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
sudo killall apt apt-get
sudo dpkg –configure -a
sudo apt update
brew install git-lfs 
or 
port install git-lfs
git lfs install
@pgaijin66
pgaijin66 / gist:554c41d5370a36cf55a244125196d1ca
Created January 6, 2021 06:44
git lfs recursively tracking files and folders
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u | awk '{print $1" filter=lfs diff=lfs merge=lfs -text"}' | sed 's/^/*./'
git lfs track "folder/**/*.*"