Skip to content

Instantly share code, notes, and snippets.

@atwm
atwm / PaperColor-Light.js
Last active December 15, 2021 16:00
PaperColor Theme for Blink.sh
t.prefs_.set('color-palette-overrides',["#eeeeee", "#af0000", "#008700", "#5f8700", "#0087af","#878787", "#005f87","#444444","#bcbcbc","#d70000","#d70087","#8700af","#d75f00", "#d75f00","#005faf","#005f87" ]);
t.prefs_.set('foreground-color',"#444444");
t.prefs_.set('background-color',"#eeeeee");
t.prefs_.set('cursor-color','rgba(32,187,252,0.5)');
@atwm
atwm / includegraphicsfromweb.tex
Last active October 20, 2021 09:20
By default LaTeX does not allow to insert pictures from an URL. ConTex provides the \externalgraphics command that allows this, but standard pdfLaTex or XeLaTex does not.Redefining \includegraphics to load and cache a picture from the web and include it in the document
\documentclass{article}
\usepackage{graphicx}
\let\latexincludegraphics\includegraphics
\makeatletter
\renewcommand{\includegraphics}[2][]{%
\DeclareRobustCommand{\filename}[1]{%
\begingroup
\filename@parse{#1}%
@atwm
atwm / progress.py
Created May 25, 2019 15:28 — forked from vladignatyev/progress.py
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#