Skip to content

Instantly share code, notes, and snippets.

View soumilshah1995's full-sized avatar

Soumil Nitin Shah soumilshah1995

View GitHub Profile
@soumilshah1995
soumilshah1995 / calendar-sync-guide.md
Created May 23, 2026 15:03 — forked from aartraju/calendar-sync-guide.md
How to sync Outlook ↔ Gmail calendars using AI + MCP (Amazon Quick)

How I Synced My Work Calendar (Outlook) with My Personal Calendar (Gmail) Using AI + MCP

The Problem

Two calendars. Work life in Outlook, personal life in Gmail. Neither knows the other exists.

Real scenarios that kept happening:

  • I'd block "Business Travel" on my work calendar (3 days in NYC) but my husband had no idea I'd be gone until I told him
  • I'd schedule a doctor appointment for my kiddo on Gmail, then forget to block my work calendar. colleagues would book meetings over it
  • Weekend-only family trips didn't need a work block, but a Friday-through-Sunday trip did. I had to think about this manually every time
@soumilshah1995
soumilshah1995 / Date_Dimension.md
Created December 16, 2022 01:41 — forked from alcheng10/Date_Dimension.md
Python (Pandas) function that creates a dimension date with workday flag
import pandas as pd
import holidays

def create_dim_date(start_date, end_date):
    '''
    Create Dimension Date in Pandas
    
    :return df_date : DataFrame
    '''
@soumilshah1995
soumilshah1995 / examples.json
Created October 24, 2022 12:34 — forked from spinscale/examples.json
Elastic Bytes - rank/distance feature
###################################################
## Boosting scores based on numeric field values ##
###################################################
# Existing solution: function_score query
# Problem: Performance penalty
# Solution: Rescoring, only rescoring top-n documents
# Lucene optimization in Elasticsearch 7: Block MAX WAND
# New query: distance_feature, efficiently skips non-competitive hits
class Node(object):
"""
Tree node: left and right child + data which can be any object
"""
def __init__(self, data):
"""
Node Constructor
@param data node data object
"""
self.left = None
@soumilshah1995
soumilshah1995 / scrapeImages.py
Created November 15, 2019 18:21 — forked from genekogan/scrapeImages.py
scraping full size images from Google Images
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import argparse
import sys
import json
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search