Skip to content

Instantly share code, notes, and snippets.

View RahulDas-dev's full-sized avatar
🏠
Working from home

Rahul Das RahulDas-dev

🏠
Working from home
View GitHub Profile
@RahulDas-dev
RahulDas-dev / Gaussian Process.py
Last active September 16, 2024 13:15
Plot Samples from Gaussian distributations
import numpy as np
import seaborn as sns
from matplotlib import pyplot as plt
from matplotlib.offsetbox import AnchoredText
from scipy import stats
from ipywidgets import interact
@RahulDas-dev
RahulDas-dev / LinearRegrassion.ipynb
Last active October 26, 2024 06:30
Math behind the Linear Regression with Gradient Descent from scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RahulDas-dev
RahulDas-dev / Readme.md
Last active April 23, 2025 15:45
🧠 Tree-sitter JavaScript, TypeScript, and TSX Code Parser Utility

This utility script demonstrates how to use Tree-sitter to parse and traverse JavaScript, TypeScript, and React+TypeScript (TSX) source code. It includes:

📦 Installation instructions for tree-sitter and related language bindings.

pip install tree-sitter=="0.23.1"
pip install tree-sitter-javascript=="0.23.0"
pip install tree-sitter-languages=="1.10.2"

🔧 A utility function to read source code from a file.

@RahulDas-dev
RahulDas-dev / litellm_tool_calling.py
Created July 26, 2025 18:39
Tool Calling Example with LiteLLM
# ruff: noqa: T201
import asyncio
import json
from typing import Any
import litellm
from dotenv import load_dotenv
_ = load_dotenv()