Skip to content

Instantly share code, notes, and snippets.

View anssiko's full-sized avatar

Anssi Kostiainen anssiko

View GitHub Profile
@anssiko
anssiko / nda2csv.rb
Created May 13, 2020 15:28 — forked from terotil/nda2csv.rb
Processor for Nordea machine readable bank statements (NDA format). Functionally minimal, just enough to outline a friendly interface and be able to export main transaction records to CSV, which is further processable to OFX using https://github.com/terotil/ofxify
require 'date'
module Nordea
module NDA
class Record
def self.parse(str)
self.new(str).normalized
end
def initialize(str)
@anssiko
anssiko / gist:4073213
Created November 14, 2012 16:42 — forked from DavidBruant/gist:4066406
Figure out max vibration value
"use strict";
(function(global){
if(typeof global.navigator.vibrate === 'function')
return;
var MAX = Math.floor(1000000*Math.random());
console.log('MAX', MAX);