Skip to content

Instantly share code, notes, and snippets.

View PabloAballe's full-sized avatar

Paballe PabloAballe

View GitHub Profile

Webhook Processor Demo

A simple FastAPI-based webhook receiver that validates incoming webhook payloads and simulates notification processing.

What This Demo Does

This project simulates a webhook receiver endpoint that:

  • Accepts POST requests with JSON payloads containing id, event, and metadata fields
  • Normalizes all keys to lowercase for consistent processing
  • Validates required fields and returns appropriate error codes
@PabloAballe
PabloAballe / README.md
Created November 26, 2025 18:21
Demo project showing a simple Python data-processing workflow. It loads mock JSON data, validates the structure, transforms the fields and exports the results into a clean CSV file. Created as a portfolio example for API-based automation work.

API to Sheets Demo

This script demonstrates a mock API to Google Sheets integration workflow. It loads JSON data from a file, processes it by lowercasing keys and adding a processed timestamp, and exports the results to a CSV file.

What it does

The script reads mock JSON data (simulating an API response), validates the data structure, transforms it, and outputs it to CSV format. This demonstrates a common workflow for integrating external APIs with spreadsheet applications.

Features

@PabloAballe
PabloAballe / main.js
Created December 22, 2023 11:11
Date and Time Functions: Brief Description: Collection of functions to handle and format dates and times in JavaScript.
/**
* Date and Time Functions
* Brief Description: Collection of functions to handle and format dates and times in JavaScript.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Formats a Date object into a readable string.
@PabloAballe
PabloAballe / main.css
Last active December 22, 2023 11:12
Dark Mode CSS Mixin: A CSS mixin for toggling between light and dark modes in web pages.
/**
* Dark Mode Mixin
* Brief Description: A CSS mixin for toggling between light and dark modes in web pages.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
:root {
--color-text: #333; /* Default text color for light mode */
@PabloAballe
PabloAballe / main.js
Last active December 22, 2023 11:12
LocalStorage Helper Function: Simplifies the use of LocalStorage in web applications.
/**
* LocalStorage Helper Function
* Brief Description: Simplifies the use of LocalStorage in web applications.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Simplifies setting, getting, and removing items in LocalStorage.
@PabloAballe
PabloAballe / main.js
Last active December 22, 2023 11:12
Debounce Function Snippet: Implements a debounce function to limit the rate at which a function can fire.
/**
* Debounce Function Snippet
* Brief Description: Implements a debounce function to limit the rate at which a function can fire.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Creates a debounced version of a function.
@PabloAballe
PabloAballe / main.js
Last active December 22, 2023 11:15
Fetch API Connection Snippet: Demonstrates how to use Fetch to connect to external APIs.
/**
* Fetch API Connection Snippet
* Brief Description: Demonstrates how to use Fetch to connect to external APIs.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Connects to an external API using Fetch.
@PabloAballe
PabloAballe / main.js
Last active December 22, 2023 11:15
Array Sorting Function: Efficient method for sorting arrays in JavaScript.
/**
* Array Sorting Function
* Brief Description: Efficient method for sorting arrays in JavaScript.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Sorts an array of numbers in ascending order.
@PabloAballe
PabloAballe / main.js
Last active December 22, 2023 11:16
Email Validation Snippet: Validates email addresses using regular expressions.
/**
* Email Validation Snippet
* Brief Description: Validates email addresses using regular expressions.
*
* Author: Pablo Aballe
* Date: 2023-12-22
*/
/**
* Validates if an email address is valid.