Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# earl, 2008-07-22
from __future__ import with_statement
import stringtemplate3, simplejson, sys
def main():
with open(sys.argv[1]) as template_file:
template = stringtemplate3.StringTemplate(template_file.read())
template.attributes = simplejson.load(sys.stdin)
sys.stdout.write(unicode(template).encode('utf-8'))
include('helma/shell');
if (__name__ == '__main__') {
writeln('hello, world!');
}
$ git clone git://github.com/hns/helma-ng.git
Initialized empty Git repository in helma-ng/.git/
remote: Counting objects: 4338, done.
remote: Compressing objects: 100% (1926/1926), done.
remote: Total 4338 (delta 2352), reused 3922 (delta 2086)
Receiving objects: 100% (4338/4338), 14.02 MiB | 315 KiB/s, done.
Resolving deltas: 100% (2352/2352), done.
$ cd helma-ng/
$ ant dpkg
// see http://earl.strain.at/space/2009-07-06
#include <functional>
template <typename F, typename G, typename H>
struct compose3_t : public std::binary_function<typename G::argument_type,
typename H::argument_type,
typename F::result_type> {
F f;
G g;
--- scripts/prot-ftp.r.orig 2010-01-12 02:35:03.646150037 +0100
+++ scripts/prot-ftp.r 2010-01-12 02:58:26.453609012 +0100
@@ -2,7 +2,7 @@
file: %prot-ftp.r
author: "Graham Chiu"
date: [10-Jan-2010 .. 12-Jan-2010]
- version: 0.0.5
+ version: 0.0.6
rights: 'BSD
notes: {
--- scripts/prot-imap.r.0.0.3 2010-01-20 01:46:16.136278414 +0100
+++ scripts/prot-imap.r 2010-01-20 02:16:27.824332402 +0100
@@ -110,34 +110,11 @@
CAPABILITY [
; need to parse the multiline response
- foreach res parse/all response crlf [
- if all [res not empty? res] [
- either client/locals/capability [
- case [
diff --git a/modules/ringo/skin/macros.js b/modules/ringo/skin/macros.js
index db2573f..ded6e57 100644
--- a/modules/ringo/skin/macros.js
+++ b/modules/ringo/skin/macros.js
@@ -1,13 +1,14 @@
include('ringo/markdown');
require('core/string');
+var webappEnv = require('ringo/webapp/env');
exports.href_macro = function(tag) {
#!/bin/bash
# Launches RingoJS
#
# find_home - manually emulate GNU's `readlink -f`
#
function find_home() {
# save original working directory
ORIG_PWD="$(pwd -P)"
$ rgrep "'file'" apps/ modules/ src/
apps/demo/config.js:var resolve = require('file').resolve;
modules/ringo/admin/create.js:var file = require('file');
modules/ringo/fileutils.js:var fs = require('file');
modules/packages.js:var fs = require('file');
REBOL []
unset 'exit
unset 'return
function-ctx: context [
exit: :system/contexts/system/exit
return: :system/contexts/system/return
]