Skip to content

Instantly share code, notes, and snippets.

% ./build/ledger/debug/ledger --version | head -1
Ledger next-0-g3f00f83, the command-line accounting tool
% ./build/ledger/debug/ledger -f doc/sample.dat reg
While parsing file "doc/sample.dat", line 3:
While parsing value expression:
account =~ /^Expenses:Books/
^^^^^^^^^^^^^^^^^
While parsing periodic transaction:
> = account =~ /^Expenses:Books/
Error: std::bad_cast
% cat /tmp/comma.dat
--european
= account =~ /Income:Salary/
(Liabilities:Taxes) 0,10
2009/11/09 * PayDay
Assets:Bank:Checking € 1.000,00
Income:Salary -€ 1.000,00
% ~/bin/ledger -f /tmp/comma.dat reg
# Makefile.in generated by automake 1.10 from Makefile.am.
# Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
In file included from /Volumes/Users/afh/src/ledger/src/value.h:53,
from /Volumes/Users/afh/src/ledger/src/draft.h:46,
from /Volumes/Users/afh/src/ledger/src/stats.cc:34:
/Volumes/Users/afh/src/ledger/src/mask.h: In function ‘void ledger::to_xml(std::ostream&, const ledger::mask_t&)’:
/Volumes/Users/afh/src/ledger/src/mask.h:152: error: no matching function for call to ‘ledger::push_xml::guard(std::basic_string<int, std::char_traits<int>, std::allocator<int> >)’
/Volumes/Users/afh/src/ledger/src/utils.h:672: note: candidates are: static ledger::string ledger::push_xml::guard(const ledger::string&)
make[2]: *** [libledger_report_la-stats.lo] Error 1
% ledger --version | head -1
Ledger next-0-ga345f9e, the command-line accounting tool
% cat <<EOF | ledger --european -f - bal
= Income:Clients:
(Liabilities:Taxes:VAT) ((1,00 / 1,19) * 0,19)
2009/07/27 * Invoice
Assets:Bank:Checking € 1.190,00
Income:Clients:ACME_Inc
EOF
% cat <<EOF > a.tl
--european
D h0.000,00
i 2009/12/07 08:00:00 Task A:1
o 2009/12/07 09:00:00 end task
i 2009/12/07 09:00:00 Meeting
o 2009/12/07 10:30:00 end task
EOF
% cat <<EOF > b.tl
--european
@afh
afh / .rspactor
Created February 12, 2010 10:34 — forked from mislav/.rspactor
# this goes in the $HOME dir
# needs mislav-rspactor v0.6.3 and RSpec 1.3
RSpactor::Runner.class_eval do
alias old_formatter_opts spec_formatter_opts
def spec_formatter_opts
# update this path to where you saved unicode_formatter.rb
old_formatter_opts + " -r /Users/mislav/Projects/unicode_formatter -f UnicodeFormatter"
end
end
require 'formula'
class Utf8cpp <Formula
url 'http://sourceforge.net/projects/utfcpp/files/utf8cpp_2x/Release%202.2.4/utf8_v2_2_4.zip/download'
homepage 'http://utfcpp.sourceforge.net/'
md5 'b30e1f7087aeca5ad38f7966aaf5f739'
version '2.2.4'
#head 'http://github.com/jwiegley/utfcpp/'
end
//
// NSObject+BlockObservation.h
// Version 1.0
//
// Andy Matuschak
// andy@andymatuschak.org
// Public domain because I love you. Let me know how you use it.
//
#import <Cocoa/Cocoa.h>
% npm install fab
npm info it worked if it ends with ok
npm info using npm@0.2.3
npm WARN not supported on node@v0.2.3 fab
npm WARN fab supported engines: undefined
npm WARN not supported on node@v0.2.3 fab
npm WARN fab supported engines: undefined
npm ERR! Error: fab@0.5.1 not compatible with your version of node
npm ERR! Requires: node@
npm ERR! You have: node@v0.2.3