Skip to content

Instantly share code, notes, and snippets.

View SomajitDey's full-sized avatar

Somajit SomajitDey

View GitHub Profile
@SomajitDey
SomajitDey / GraphQL_GitHub.md
Last active April 10, 2025 12:26
GraphQL offers many advantages over REST API. Once learned, it's fast, it's efficient, it's fun

Notes and Learning Resources

@SomajitDey
SomajitDey / cloudflare.md
Last active April 7, 2025 19:52
Resources related to Cloudflare
@SomajitDey
SomajitDey / chess_engine_algo_resources.md
Created December 3, 2024 07:19
Resources regarding zero-sum game engines. Chess engine. NNUE. Chess-playing AI/ML, NN. Eval functions. Heuristics. Minimax. Alpha/Beta. DSA.
@SomajitDey
SomajitDey / web_dev_resources.md
Last active April 25, 2025 12:53
Resources for HTML, CSS and JS/NodeJS development
@SomajitDey
SomajitDey / compression_cryptography_using_URL_shortener.md
Last active September 19, 2024 07:31
Any data can be compressed using URL shorteners. Two such compression can form a public-private key pair. Only one can lead to the other not the other way round.

Compression

  • take your minified JSON and turn it into a URL safe base64 string. The length of this string can be as big as this.
  • make a dummy url like http://dummy.tld/<the base64 string> and shorten it using any URL shortener.
  • save the unique path of the shortened url as your compressed data (henceforth called token). No need to store the domain of the shortened URL as the URL shortener would be hardcoded in your app.

Decompression

  1. Reconstruct the shortened URL from the token. Try to fetch (GET) the shortened URL.
  2. Parse the response for the redirect url and extract the base64 string.
  3. Decode the base64.
@SomajitDey
SomajitDey / static_site_howto.md
Last active March 8, 2025 17:12
Create and deploy static site for personal website or blog. Contains contact form, feeds and comment section.
@SomajitDey
SomajitDey / ANN_DL_deep_dive.md
Last active September 12, 2024 13:16
Transformers and Artificial Neural Networks/Deep Learning in AI/ML
@SomajitDey
SomajitDey / WSLg.md
Last active March 25, 2024 16:25 — forked from 4wk-/README.md
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
# list all installed distros
wsl -l -v

# destroy distros
wsl --unregister Ubuntu