Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View sampila's full-sized avatar

Alip Sulistio sampila

  • Malang
  • 09:33 (UTC +07:00)
View GitHub Profile
@sampila
sampila / conventional-commits-cheatsheet.md
Created February 3, 2026 19:59 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet
@sampila
sampila / commit.md
Created January 30, 2026 05:48 — forked from abravalheri/commit.md
RFC: Git Commit Message Guidelines

Commit Message Guidelines

In the last few years, the number of programmers concerned about writing structured commit messages have dramatically grown. As exposed by Tim Pope in article readable commit messages are easy to follow when looking through the project history. Moreover the AngularJS contributing guides introduced conventions that can be used by automation tools to automatically generate useful documentation, or by developers during debugging process.

This document borrows some concepts, conventions and even text mainly from these two sources, extending them in order to provide a sensible guideline for writing commit messages.

@sampila
sampila / unipdf_redact_text.go
Created May 17, 2025 14:31
UniPDF webinar text redact source code
/*
* Redact text: Redacts text that match given regexp patterns on a PDF document.
*
* Run as: go run redact_text.go input.pdf output.pdf
*/
package main
import (
"fmt"
/*
* Fill PDF form JSON input data and flatten it with a customized appearance to output PDF.
*
* Run as: go run main.go.
*/
package main
import (
"fmt"
@sampila
sampila / unipdf_splits_and_ai.go
Last active March 17, 2025 19:19
Splits PDF pages and process pages using AI
/*
* Example the usage of UniPDF page splits and AI processing.
*
* Run as: go run main.go input.pdf
* The input PDF file will be split into pages and each page will be sent to the AI for processing.
* The AI will extract the text from the page and answer the question: "What is the latest experience?".
*/
package main
@sampila
sampila / extract_pdf_contents.go
Created February 21, 2025 00:12
UniPDF extract PDF text, table and images to directory
/*
* Extract PDF contents to directory : Extract text, tables and images for each page of a pdf file.
*
* Run as: go run extract_pdf_contents.go output_directory
*/
package main
import (
"encoding/csv"
@sampila
sampila / extract_text_to_txt.go
Last active February 16, 2025 20:41
UniPDF text extraction to TXT
/*
* PDF to text: Extract all text for each page of a pdf file and save the results to TXT file.
*
* Run as: go run extract_text_to_txt.go input.pdf output.txt
*/
package main
import (
"fmt"
@sampila
sampila / pdf_airplane_ticket.go
Created December 14, 2024 21:22
Airplane ticket main.go
/*
* This example showcases the usage of creator templates by creating a sample
* airplane ticket.
*
* Run as: go run pdf_airplane_ticket.go
*/
package main
import (
/*
* This example showcases the usage of creator templates by creating a sample
* warehouse shipment report.
*
* Run as: go run pdf_warehouse_shipment_report.go
*/
package main
import (
@sampila
sampila / pdf_trade_confirmation.go
Created October 28, 2024 10:17
UniPDF templates trade confirmation main.go
/*
* This example showcases the usage of creator templates by creating a sample
* trade confirmation document.
*
* Run as: go run pdf_trade_confirmation.go
*/
package main
import (