You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Christian Prior-Mamulyan
cprima
Business Administration guy with a knack for IT: From controlling reports to database queries, and from business processes via software requirements to code.
Generate Solarized Color SVG Sprites for UI Styling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generates SVG sprite files for all 16 Solarized colors.
.DESCRIPTION
Creates rectangular bar and circular icon SVG files in various dimensions, suitable for use in documentation styling, UI mockups, or visual metadata indicators. Output includes:
Extract structured Markdown-formatted conversations from exported LLM chat HTML files (e.g., ChatGPT). Outputs a clean JSON file with user/assistant roles, turns, and content.
📦 Features
Parses exported chat .html files
Detects roles via visually hidden headings (You said:, ChatGPT said:)
Extract Graphical Activities from UiPath XAML Workflows
UiPath XAML Graphical Activity Extractor
Author: Christian Prior-Mamulyan
License: CC-BY
Email: [email protected]
📌 Purpose
This script parses a UiPath .xaml workflow file and extracts only those elements that are visually represented in UiPath Studio (i.e., shown in the workflow designer panel). It uses structural rules and a metadata blacklist for accuracy.
Sort CSV Places Along a GPX Route to Generate a Sorted Roadbook(Python Script)
Sort CSV Places Along a GPX Route to Generate a Sorted Roadbook (Python Script)
This Python script sorts unsorted geographical data (from a CSV file) based on its proximity to a predefined GPX track. It generates a sorted "roadbook" by ordering places in the sequence they are encountered along the route. Ideal for cyclists, hikers, and geospatial analysts working with Overpass API results or similar unsorted data sources.
Features
Align Places to GPX Track: Matches CSV places (e.g., towns, landmarks) to the nearest points on a GPX track.
Calculate Sunrise, Sunset, and Civil Twilight with Python
Solar Event Calculator: Civil Twilight, Sunrise, Sunset, and Meridian
Description
This Python script calculates civil twilight, sunrise, sunset, and solar noon (meridian) times for a list of geographic locations provided in a CSV file. The output includes local timezone information and UTC offsets for each location, ensuring precise timing based on coordinates.
Features
Calculates civil dawn, sunrise, meridian (solar noon), sunset, and civil dusk.
Adjusts times to the local timezone of each location.
Advanced tour planning with brouter considering its cost-per-km factor
Effort-Adjusted Bicycle Tour Planner
Overview
The Effort-Adjusted Bicycle Tour Planner is a Python-based tool designed to enhance the planning of multi-week bicycle tours using data from BRouter-Web. The tool segments long routes into manageable daily chunks based on user-defined effort or time limits, making multi-day planning practical and adaptable.
Key Features
Effort-Based Segmentation
Plan your daily cycling routes based on personalized effort levels (e.g., distance adjusted for elevation and terrain).
Supports a reduced first-day effort for late starts or adjustments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script for Creating, Archiving and Zipping Git Snapshots by Tag, Branch, or Commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bypass X-Frame-Options: PHP Proxy for iframe Embedding
PHP Proxy Script for Iframe Embedding
Description
This PHP script is a server-side proxy designed to bypass restrictions that prevent embedding external websites within iframes. Many websites use security headers (e.g., X-Frame-Options or Content-Security-Policy) to block their content from being displayed in iframes, leading to errors like "Content refused to connect." when trying to embed them directly. This proxy script retrieves the content server-side, modifies it, and delivers it to the iframe, effectively circumventing these restrictions.
Use Case
This script is particularly useful for integrating external web pages into Reveal.js presentations. Reveal.js allows the use of iframes to display content during slideshows. However, embedding some web pages directly often fails due to security restrictions. By using this proxy script, users can include external content seamlessly in their presentations without encountering connection errors.