Skip to content

Instantly share code, notes, and snippets.

@steelman
steelman / import.py
Created April 24, 2019 08:52
A wrapper for ImageMagick's import to add created files to Gtk's recent manager and find the quickly in Gimp
#!/usr/bin/python3
#
# This work is in public domain
#
import subprocess
import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GLib, Gio
@steelman
steelman / prices-vs-costs.dat
Last active November 24, 2019 19:20
Prices versus costs
; Good
~yearly from 2019-11-01
Assets:Checking
Expense:Food 10 apples {=1,00 PLN}
Expense:Food 10 pears {=1,00 PLN}
2019-11-19 Foo
Assets:Checking
Expense:Food 10,0 apples {{=10,0 PLN}}
Expense:Food 10,0 pears {{=10,0 PLN}}
@steelman
steelman / expograph.py
Created March 28, 2020 10:47
Time spent looking at exponential graphs (log scale)
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.dates as md
t0 = pd.Timestamp('2020-01-01')
x = pd.date_range('2020-01-01', '2020-03-31')
y = np.exp(13.815510558/90 * (x-t0).days)
xt = [pd.Timestamp('2020-01-15'),pd.Timestamp('2020-02-15'),pd.Timestamp('2020-03-15')]
@steelman
steelman / this.pdf
Created November 29, 2021 21:34
Basic example how to use CIDFonts to render non-Latin-1 characters in PDF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.