Skip to content

Instantly share code, notes, and snippets.

View pelusa-v's full-sized avatar

Jean Pierre Leon pelusa-v

View GitHub Profile
@rkalit
rkalit / Go_SimpleConsoleApp.go
Last active December 26, 2023 01:13
A simple console App that can do simple CRUD (Create Read Update Delete) written in Go language
/*
Code by rkalit
*/
package main
import(
"fmt"
"bufio"
"os"
)
@MichalZalecki
MichalZalecki / docx2pdf.py
Created July 8, 2017 08:09
Converting DOCX to PDF using Python
import sys
import subprocess
import re
def convert_to(folder, source, timeout=None):
args = [libreoffice_exec(), '--headless', '--convert-to', 'pdf', '--outdir', folder, source]
process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout)
filename = re.search('-> (.*?) using filter', process.stdout.decode())