Skip to content

Instantly share code, notes, and snippets.

@Lesik
Lesik / ingdiba-transactions.js
Created Nov 4, 2021
Dump all transactions from your ING DiBa account to JSON // Auszug aller Zahlungsein/ausgänge vom ING-DiBa-Konto in JSON
View ingdiba-transactions.js
/** Run this on https://banking.ing.de/app/umsatzanzeige, the final object will be
* inside a Promise in your console from where you can copy it into your data
* processing software.
*/
// load all transactions
loadMoreFn = (resolve, reject) => {
const btn = document.querySelector('.g2p-transaction__card__load-more');
if (btn) {
btn.click();
@Lesik
Lesik / fetch.md
Last active Apr 8, 2022
Fetch a lendable book from archive.org as individual page images
View fetch.md

By looking at the book online, you already (unwillingly and unknowingly) downloaded the pages to your computer, the only difference is that you have to keep the browser open, stay logged in and have internet connectivity to read it. I see no moral concerns with taking the data that's already on your computer and saving it in a more accessible way.

Open Chrome and devtools, then visit the book's online reading page and click "Borrow for 1 hour".

In the network tab, click XHR and copy the response of BookReaderJISA.php?... and save it as data in the console.

Then, run:

data.data.brOptions.data.forEach((first, firstI) => {
@Lesik
Lesik / widget.py
Last active Feb 24, 2020
PyQt 5 pyqtProperty QSS example
View widget.py
#!/usr/bin/env python3
from PyQt5.QtCore import QRect, pyqtProperty
from PyQt5.QtGui import QPaintEvent, QPainter, QColor, QPen
from PyQt5.QtWidgets import QWidget
from PyQt5.QtCore import Qt
class Widget(QWidget):
"""
https://www.riverbankcomputing.com/static/Docs/PyQt5/qt_properties.html