public
Description: Run programs in the Emacs buffer holding their source, seeing their output inline, interactively.
Homepage: http://wry.me/project/halp
Clone URL: git://github.com/darius/halp.git
halp / sample.js
100644 15 lines (10 sloc) 0.23 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Hello, this is a sample.
 
function fact(n) {
    if (n <= 0)
        return 1;
    else
        return n * fact(n - 1);
}
 
// When you hit M-i you should see '//. 120' appear below the following line:
 
/// fact(2 + 3)
 
// OK.