Skip to content

Instantly share code, notes, and snippets.

@Qumeric
Qumeric / make_latex.py
Created October 14, 2016 12:06
A small script to build one latex file without garbage
#!/usr/bin/python3
from sys import argv
from subprocess import call
from os.path import splitext
if len(argv) != 2:
print("Usage: ./make.py <filename>.tex")
exit()
@Qumeric
Qumeric / install_ensurepip.py
Last active October 8, 2023 07:13 — forked from antoine-lizee/install_ensurepip.py
Script to install ensurepip to Python. Works on macOS and Linux for Anaconda and classic python installs.
import os
import sys
import io
import tarfile
import urllib.request
import re
ARCHIVE_URL = 'http://d.pr/f/YqS5+'
@Qumeric
Qumeric / preamble.tex
Last active October 14, 2016 12:28
My very own LaTeX style
% Language and page style
\documentclass[a4paper,12pt]{article}
\pagestyle{empty}
\usepackage{color}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}
% Auxiliary pacckages
\usepackage{amssymb}