Skip to content

Instantly share code, notes, and snippets.

@dasblitz
dasblitz / rabo-export.js
Last active November 25, 2016 15:49
Very naïve script to log Rabobank transactions comma separated so you can import it into an excel. (Chrome only)
// DISCLAIMER: this script can and probably will break as soon as the Rabobank decides to change their website
// I won't maintain this in any way
// currently only logs:
// AccountNumber, transactionDate (not interestDate), debit or credit, amount, beneficiaryBank, beneficiaryName and description
// The reason I wrote this is because the Rabobank export function doesn't let you export this data if it's older than 1.5 years.
// If you need older data, Rabobank can send you the paper version, and charges you about €5 for each month you need, with a maximum of €25,-
// However you can search and view older the transactions
// To use: On rabointernetbankieren go to advanced search, select a period and hit search
@dasblitz
dasblitz / example.js
Last active July 4, 2021 19:25
React createFetcher explained
// This gist aims to explain how it's possible that async functions inside React
// using createFetcher(Promise).next(key) can work.
// A possible implementation of the new createFetcher function
// as shown by https://twitter.com/jamiebuilds/status/969169357094842368
// @param method, should be a function returning a Promise.
// @returns an object with a property 'read', used to read values from the resolved 'cache'.
const createFetcher = function(method) {
// First create a Map for the resolved values.
const resolved = new Map()