Skip to content

Instantly share code, notes, and snippets.

View MSch's full-sized avatar

Martin Schürrer MSch

View GitHub Profile
asd
@MSch
MSch / gist:285999
Created January 25, 2010 16:41
Mitschrift vom Steuerrecht Gastvortrag
Mag. jur. Köger, 40 Jahre Finanzverwaltung
www.bmf.gv.at
- SelbständigenBuch
- Findok (Finanzdokumentation)
Mögliche Organisationsformen:
- Einzelfirma
- Personengesellschaft
Anfang keine bezahlten Angestellten, alle die hakln sind beteiligt
class A
def a
5
end
def demo
puts a # => 5
puts self.a # => 5
a = 6
puts a # => 6
puts self.a # => 5
require 'bigdecimal'
class BigDecimal
def singleton_method_added(id)
end
end
a = BigDecimal('3.14')
def a.to_s(s = 'E')
'foo'
end
require 'rubygems'
require 'sinatra'
require 'dm-core'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup(:default, 'sqlite3::memory:')
# Don't use this in production code! Extending lots of objects during runtime
# will have a negative impact on performance/memory because ruby clears out
# the method cache.
.text
.globl _asma
_asma:
LFB2:
pushq %rbp
LCFI0:
movq %rsp, %rbp
LCFI1:
movl $0, %ecx
L2:
.text
.align 4,0x90
.globl _asma
_asma:
Leh_func_begin1:
pushq %rbp
Llabel1:
movq %rsp, %rbp
Llabel2:
<script>parent.changeParentUrl('<%= url %>');</script>
source 'http://rubygems.org'
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'pg'
# Use unicorn as the web server
# gem 'unicorn'
msch@iMartin:~/projects/inviteapp (master)$ rspec --drb
Exception encountered: #<NoMethodError: undefined method `configure' for ["--color"]:Array>
backtrace:
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/rspec-core-2.0.0.beta.16/lib/rspec/core/command_line.rb:11:in `run'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/rspec-core-2.0.0.beta.16/lib/rspec/monkey/spork/test_framework/rspec.rb:4:in `run_tests'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/spork-0.8.4/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/spork-0.8.4/lib/spork/forker.rb:21:in `block in initialize'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/spork-0.8.4/lib/spork/forker.rb:18:in `fork'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/spork-0.8.4/lib/spork/forker.rb:18:in `initialize'
/Users/msch/.rvm/gems/ruby-1.9.2-rc1@rails3/gems/spork-0.8.4/lib/spork/run_strategy/forking.rb:9:in `new'