Skip to content

Instantly share code, notes, and snippets.

View TheAntimist's full-sized avatar

Ankush Mishra TheAntimist

View GitHub Profile
@TheAntimist
TheAntimist / parallel.py
Last active July 13, 2021 05:05
Parallel Python processes
__author__ = "Ankush Aniket Mishra"
__copyright__ = "Copyright 2018, Ankush A. Mishra"
__license__ = "MIT"
import os, sys
import multiprocessing as mp
from queue import Queue
from threading import Thread
def worker(queue, run):
@reiver-dev
reiver-dev / fira_code_patch.py
Created February 5, 2018 03:07
Move ligatures for Fira Code font to private unicode area at U+e100
import os
import sys
import argparse
from glob import glob
from itertools import chain
import fontforge
ADDITIONAL_LIGATURES = [
'x.multiply',
@subfuzion
subfuzion / curl.md
Last active November 17, 2024 03:54
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@LSinev
LSinev / word_vs_latex_rus_tikz_pdfx.tex
Last active September 16, 2020 02:07
Word vs LaTeX image translated into russian, done by tikz code, compilable with pdflatex, xelatex and lualatex in PDF/X. Compilation in xelatex have to be done with commandline like (as PDF 1.3 required by PDF/X): "xelatex.exe -synctex=1 -interaction=nonstopmode -output-driver="xdvipdfmx -V 3 -z 0" --shell-escape %.tex"
% Úτƒ-8 encoded
% http://gist.github.com/LSinev/98c0a40e94f4507922a8
%%% Defining function to check compiler %%%
\RequirePackage{iftex}
\newif\ifxetexorluatex % new if operator (http://tex.stackexchange.com/a/47579/79756)
\ifXeTeX
\xetexorluatextrue
\else
\ifLuaTeX
\xetexorluatextrue