Skip to content

Instantly share code, notes, and snippets.

View vijayanant's full-sized avatar
🏠
Working from home

Vijay Anant vijayanant

🏠
Working from home
View GitHub Profile
@vijayanant
vijayanant / TypeFamilies.hs
Created November 30, 2018 17:40
Type Families - WIP
{-# LANGUAGE TypeFamilies
, DataKinds
, PolyKinds
, TypeInType
, TypeOperators
, UndecidableInstances
, RankNTypes
#-}
@vijayanant
vijayanant / Git Branching and Releasing for Happy Developers.md
Last active July 29, 2019 14:22
Git Branching and Releasing for Happy Developers

Git Branching and Realeasing

AIM

To make below listed activites simple (from SCM point of view)

  • Adding new features
  • Fixing bugs
  • Preparing for release
  • Deploying to production
  • Applying hotfixes
  • Versioning
@vijayanant
vijayanant / gadt1.hs
Created April 8, 2020 03:45
GADT Code Samples
data Point = Pt Int Int
data Expr a = Number Integer | Boolean Bool
@vijayanant
vijayanant / carncdr.py
Created June 4, 2021 15:47
Simple Python problem #1 --- pair, car, and cdr
# Problem Statement
# cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair.
# For example, car(cons(3, 4)) returns 3, and cdr(cons(3, 4)) returns 4.
# Given the below implementation for cons( ), please implement car & cdr
def cons(a, b):
def pair(f):
return f(a, b)
return pair
@vijayanant
vijayanant / TraitSum.rs
Created March 1, 2025 11:02
Rust - Traits
trait Summable {
fn zero() -> Self;
fn add(&self, other: &Self) -> Self;
}
impl Summable for i32 {
fn zero() -> Self {
0
}
fn add(&self, other: &Self) -> Self {
@vijayanant
vijayanant / after-DRY.py
Created July 28, 2025 06:42
Duplication Vs Abstraction
def can_user_act_on_document(user, document, action):
if user.is_admin:
return True
if action == "view":
return document.owner_id == user.id
if action == "edit":
return document.owner_id == user.id
return False # unknown action
# growing conditionals and nested logic
@vijayanant
vijayanant / curated_curriculum.md
Created August 29, 2026 09:01
Curriculum: Mathematical Foundations of AI

Curriculum: Mathematical Foundations of AI

This is a personalized, self-paced roadmap for mastering the mathematical foundations of Machine Learning (ML) and Artificial Intelligence (AI). It is designed to build a strong "intuition-first" theoretical base, immediately backed by practical Python/NumPy implementations and empirical experiments.

Primary Theoretical Sources & Video Series

  1. [MFML] Mathematical Foundations of Machine Learning by Prof. Prathosh AP (IISc)
  2. [PF] Probability Foundations by Prof. Krishna Jagannathan (IIT Madras)
  3. [Prathosh-Prob] Probability Theory by Prof. Prathosh (IISc)
  4. [3B1B-LA] 3Blue1Brown: Essence of Linear Algebra