This is a text part.
def name
"Org"
end
puts name
More text.
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
(defun fibonacci (n)
(if (or (= n 0) (= n 1))
n
(+ (fibonacci (- n 1)) (fibonacci (- n 2)))))
(mapcar (lambda (row)
(mapcar #'fibonacci row)) fib-inputs)
Without header args: src_lang{code} or with header args:
src_lang[args]{code},
for example src_ruby{x = 10*3; puts “x is ” + x.to_s; x} 30
,
where x is a variable existing in the python session.
x*x
cd ~ && du -sc * | grep -v total
pie(dirs[,1], labels = dirs[,2])
The literate programming examples from yesterday night.
Some setup was also necessary to be able to evaluate ruby, shell, R, etc. There is a variable
org-babel-load-languages
, which i customized:Before I also eval'd a package, ob-ruby.el – but I'm not sure if that would have been necessary with above variable setting.
(For using gist.el see also this comment if you use 2AF: defunkt/gist.el#51 (comment))
Attn @plexus
Proudly posted using gist.el :)