This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Transforms raw ledger input into a denormalized line-per-entry-leg flat file | |
disco run ledger.Ledger tag://ledger | |
""" | |
from disco.job import Job | |
from disco.worker.classic.func import nop_map | |
import io, re, uuid | |
datepattern = re.compile('\d\d\d\d/\d\d/\d\d') | |
lineno = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ft=sh:ts=4:sw=4:autoindent:expandtab: | |
# Author: Avishai Ish-Shalom <avishai@fewbytes.com> and Erik Mackdanz <erikmack@gmail.com> | |
# We need to specify GNU sed for OS X, BSDs, etc. | |
if [[ "$(uname -s)" == "Darwin" ]]; then | |
SED=gsed | |
else | |
SED=sed | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ***** BASIC ***** | |
Option Explicit | |
Option VBASupport 1 ' Enables InStrRev() | |
Sub Main | |
' Src database is .odb wrapper around .ods Spreadsheet | |
DIM oSrcContext AS OBJECT | |
oSrcContext = createUnoService("com.sun.star.sdb.DatabaseContext") |