Skip to content

Instantly share code, notes, and snippets.

View tarptaeya's full-sized avatar

Anmol Gautam tarptaeya

View GitHub Profile
@tarptaeya
tarptaeya / Makefile
Created January 16, 2022 12:47
init-book
all:
pandoc metadata.yml `ls src/*.md | sort` -o %%NAME%%.pdf \
--table-of-contents \
--number-sections \
--pdf-engine=xelatex \
-V mainfont="Palatino" \
-V documentclass=report \
-V papersize=A4 \
-V geometry:margin=1in
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tarptaeya
tarptaeya / i18n.cpp
Last active June 28, 2018 16:11
Using Python gettext in c++
#include "i18n.h"
#include <QDebug>
#include <QStandardPaths>
i18n::i18n()
: m_gettextModule(nullptr)
, m_translationFunction(nullptr)
, m_gettextFunction(nullptr)
{
Py_Initialize();