Skip to content

Instantly share code, notes, and snippets.

View deepaks7n's full-sized avatar
🐒
learning

Deepak Sisupalan deepaks7n

🐒
learning
  • Maersk
  • London, UK
View GitHub Profile
@deepaks7n
deepaks7n / prompt-rewriter.popclipext
Last active June 1, 2025 12:50
A Popclip extension to rewrite badly written LLM prompts as per Claude 4 best practices
#popclip
name: Prompt Rewriter
identifier: com.custom.promptrewriter
icon: symbol:sparkles
options:
- identifier: api_key
type: string
label: Anthropic API Key
description: Your Anthropic Claude API Key
- identifier: model
@deepaks7n
deepaks7n / azure-tts.popclipext
Created May 31, 2025 15:48
a popclip extention to TTS using gpt-4o-mini-tts
#popclip
name: Azure TTS
identifier: com.custom.azuretts
icon: symbol:message.and.waveform
options:
- identifier: api_key
type: string
label: Azure API Key
description: Your Azure OpenAI API Key
- identifier: endpoint

PDF Invoice Parser System - Implementation Guide

Project Structure

invoice-parser/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ models.py

PDF Invoice Parser System - Low Level Design (LLD)

1. System Components Architecture

1.1 Component Interaction Diagram

classDiagram
    class InvoiceParser {
        <<interface>>

PDF Invoice Parser System - High Level Design (HLD)

1. Executive Summary

The PDF Invoice Parser System is a scalable, cloud-native solution designed to process invoices from 1000+ vendors with unique formats. The system employs a strategy pattern for vendor-specific parsing, supports both digital and scanned PDFs, and is optimized for serverless deployment.

2. System Architecture Overview

2.1 High-Level Architecture

@deepaks7n
deepaks7n / Sorted Lis by Abs.md
Created March 26, 2024 15:21
The code snippet sorts an array of numbers in ascending order and returns the sorted list as a tuple. The result is then returned with all negative values from 1 to 10, -9

Sorted Lis by Abs

Preview:
```python
# Using a lambda function helps to customize the sorting key for better performance.

numbers = [1, -5, 10, 6, 3, -4, -9]
# Sort the list based on the absolute values of the numbers in descending order
sorted_numbers = sorted(numbers, key=lambda x: abs(x), reverse=True)
print(sorted_numbers)
@deepaks7n
deepaks7n / Sorted Lis by Abs.md
Created March 26, 2024 15:21
The code snippet sorts an array of numbers in ascending order and returns the sorted list as a tuple. The result is then returned with all negative values from 1 to 10, -9

Sorted Lis by Abs

Preview:
```python
# Using a lambda function helps to customize the sorting key for better performance.

numbers = [1, -5, 10, 6, 3, -4, -9]
# Sort the list based on the absolute values of the numbers in descending order
sorted_numbers = sorted(numbers, key=lambda x: abs(x), reverse=True)
print(sorted_numbers)