Skip to content

Instantly share code, notes, and snippets.

View parj's full-sized avatar
💭
I may be slow to respond.

Parjanya Mudunuri parj

💭
I may be slow to respond.
View GitHub Profile
@parj
parj / dost.html
Last active April 30, 2026 05:14
dost
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>APEX — Finance Agent UI</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #09090C; display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
#__bundler_loading { position: fixed; bottom: 20px; right: 20px; font: 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; color: #666; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); z-index: 10000; }
#__bundler_thumbnail { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #09090C; z-index: 9999; }
@parj
parj / pptx.md
Created April 21, 2026 11:40
PPTX Spec
[MS-PPTX]:
PowerPoint (.pptx) Extensions to the Office Open XML File
Format

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions.

@parj
parj / docx.md
Created April 21, 2026 11:37
docx specification
[MS-DOCX]:
Word Extensions to the Office Open XML (.docx) File
Format

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions.

@parj
parj / ovba-file-format.md
Created April 11, 2026 09:52
OVBA File format
[MS-OVBA]:
Office VBA File Format Structure

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other

[MS-OFFMACRO]:
Office Macro-Enabled File Format

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other

@parj
parj / xslxspec.md
Created April 11, 2026 06:34
xlsx spec
[MS-XLSX]:
Excel (.xlsx) Extensions to the Office Open XML
SpreadsheetML File Format

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions.

@parj
parj / xslbspec.md
Last active April 11, 2026 06:33
xlsb spec
[MS-XLSB]:
Excel (.xlsb) Binary File Format

Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other

# “””
xlsb_formula_reader.py
Pure-Python reader that extracts cell formulas from Excel Binary Workbook
(.xlsb) files. No third-party dependencies — only the Python standard library.
Implemented from:
• [MS-XLSB] Excel (.xlsb) Binary File Format
https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-xlsb/
• Ptg token table from MS-XLSB specification §2.5.98.16
"""
Excel Large Data Handler Tool for AGNO with Azure OpenAI
Handles Excel files up to 20MB by chunking and intelligent data sampling
"""
from typing import Any, Dict, List, Optional, Union
import pandas as pd
import openpyxl
from pathlib import Path
import json
@parj
parj / Calcite-extract-Table-Where.java
Last active January 22, 2024 12:03
Example of calcite
package io.github.parj.sql;
import org.apache.calcite.config.Lex;
import org.apache.calcite.sql.*;
import org.apache.calcite.sql.fun.SqlStdOperatorTable;
import org.apache.calcite.sql.parser.SqlParseException;
import org.apache.calcite.sql.parser.SqlParser;
import java.util.HashMap;
import java.util.List;