Skip to content

Instantly share code, notes, and snippets.

View nirajpandkar's full-sized avatar

Niraj Pandkar nirajpandkar

View GitHub Profile
@nirajpandkar
nirajpandkar / syncwithboo-privacy-policy.md
Last active November 16, 2026 10:47
syncwithboo Chrome extension privacy policy

syncwithboo privacy policy

Last updated: 15 November 2026

syncwithboo is a Chrome extension that keeps Netflix playback in step between two people's browsers. This policy says what it handles, where that goes, and who can see it.

What the extension handles

While you have a Netflix title open, the extension reads:

@nirajpandkar
nirajpandkar / README.md
Last active August 21, 2025 00:33
FaceBase Landmarking Software Instructions (2025 August)

These are the additional (to the facebase steps) steps taken to make the FaceBase automatic landmarking software work - https://www.facebase.org/resources/human/facial_landmarking/

Installations

  1. Matlab - https://www.mathworks.com/help/install/ug/install-products-with-internet-connection.html
  2. PyMeshlab - https://pymeshlab.readthedocs.io/en/latest/installation.html
  3. Install Statistics and Machine Learning Toolbox add-on in Matlab for the pdist function.

Steps taken

  1. Get_compute_many_Windows generates a now defunct command using meshlabserver.exe. This executable has been deprecated since 2020. We need to use PyMeshlab library in python instead.
  2. Use compute_curvature.py instead. This utility generates the curvature of each object .obj file and converts it into a .ply file with C information in it required by the landmarking method. Currently, if you open .obj file, you'll find V (vertices) and F (faces) information.
@nirajpandkar
nirajpandkar / simple_llama_index_demo
Created June 26, 2023 04:26
A simple llama index demo to query local files using OpenAI API.
# Import necessary packages
import os
import pickle
from llama_index import GPTSimpleVectorIndex, download_loader
os.environ['OPENAI_API_KEY'] = '<openai_api_key>'
# Load custom data source. Here it is being loaded from the data directory.
SimpleDirectoryReader = download_loader("SimpleDirectoryReader")
@nirajpandkar
nirajpandkar / Dockerfile
Created June 9, 2019 09:12
Dockerfile for captcha breaker
FROM python:3.6.3
# install Python modules needed by the Python app
COPY . /Captcha-Prediction
WORKDIR /Captcha-Prediction
RUN pip install --no-cache-dir -r requirements.txt
# tell the port number the container should expose
EXPOSE 5000
"""
This script removes stray lines from images using image processing techniques with OpenCV library.
All credit where it's due - https://stackoverflow.com/a/45563349/4411757. Simon Mourier created a script in C# which I
have ported to python. Tested with python 3.5 and opencv-python==3.4.2.17. Shoot your suggestions/improvements in the
comments. Cheers!
"""
def clean_image(img):
height, width = img.shape[:2]