Skip to content

Instantly share code, notes, and snippets.

View TheMatjaz's full-sized avatar
💻
If you need any help with my code, feel free to send me an email!

Matjaž TheMatjaz

💻
If you need any help with my code, feel free to send me an email!
View GitHub Profile
@TheMatjaz
TheMatjaz / latex_pdfa.md
Last active April 29, 2022 10:32
Achieving PDF/A compliance in LaTeX

Achieving PDF/A compliance in LaTeX

LaTeX code

Minimal project available also on OverLeaf

  1. Use the PDFLaTeX or XeLaTeX compiler
  2. Create a preamble.tex file and place this into it. Clearly, change the language, metadata, any hyperref fields as required.
@TheMatjaz
TheMatjaz / horizon.py
Created February 26, 2022 11:24
Distance to the horizon in Python
#!/usr/bin/env python3
# coding: utf8
# BSD 3-Clause License
# ===============================================================================
#
# Copyright © 2022, Matjaž Guštin <dev@matjaz.it> <https://matjaz.it>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@TheMatjaz
TheMatjaz / deploying_to_pypi.md
Last active April 29, 2022 07:09
Commands to build and deploy a Python package to PyPi

Deploying a Python package to PyPi

.pypirc

if ~/.pypirc does not exists, create it with the content (alter the username):

[distutils]
index-servers=
@TheMatjaz
TheMatjaz / less_cheatsheet.md
Created April 8, 2019 20:12
Less command cheat sheet (--help in Markdown)

Summary of less comands

For less v487, obtained through less --help.

Commands marked with [N] may be preceded by a number, N. Notes in parentheses indicate the behavior if N is given.

A key preceded by a caret indicates the Ctrl key; thus ^K is Ctrl-K.

@TheMatjaz
TheMatjaz / keybase.md
Created February 7, 2016 10:51
Proving myself on Keybase through GitHub

Keybase proof

I hereby claim:

  • I am thematjaz on github.
  • I am thematjaz (https://keybase.io/thematjaz) on keybase.
  • I have a public key ASDefsoKsXURXq1avX6lGf29G0MoxacQqUkNwhXelBdTHAo

To claim this, I am signing this object: