Skip to content

Instantly share code, notes, and snippets.

View animesh-chouhan's full-sized avatar

Animesh Singh Chouhan animesh-chouhan

View GitHub Profile
@animesh-chouhan
animesh-chouhan / queens.js
Last active July 23, 2024 12:18
JavaScript code to solve the LinkedIn Queens puzzle using chrome devtools
const N = Math.sqrt(document.querySelector("#queens-grid").children.length)
// Parse the grid into 2D color array
var arr = Array.from(Array(N), () => new Array(N));
for (let i = 0; i < N; i++) {
for (let j = 0; j < N; j++) {
arr[i][j] = parseInt(document.querySelector("#queens-grid").children[i * N + j].classList[1].split("-")[2])
}
}
@animesh-chouhan
animesh-chouhan / arpit-bhayani-papers.py
Created April 5, 2024 09:51
Python script to download Arpit Bhayani's papershelf
import re, wget, requests
from concurrent.futures import ThreadPoolExecutor
r = requests.get("https://arpitbhayani.me/papershelf")
ids = re.findall(r"/d/(.*)/view", r.text)
urls = [f"https://drive.usercontent.google.com/u/0/uc?id={id}&export=download" for id in ids]
with ThreadPoolExecutor() as executor:
executor.map(wget.download, urls)
@animesh-chouhan
animesh-chouhan / keybase.md
Created July 16, 2021 05:39
Keybase proof

Keybase proof

I hereby claim:

  • I am animesh-chouhan on github.
  • I am animeshchouhan (https://keybase.io/animeshchouhan) on keybase.
  • I have a public key whose fingerprint is D507 1587 041D F3B8 EE2E 7F6B 4ABC C33B B666 FA24

To claim this, I am signing this object: