Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created March 24, 2010 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/342504 to your computer and use it in GitHub Desktop.
Save matschaffer/342504 to your computer and use it in GitHub Desktop.
var sys = require('sys'),
buffer = '{"props":{"name":"blogs","allow_mult":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_util","fun":"chash_std_keyfun"},"linkfun":{"mod":"raw_link_walker_resource","fun":"mapreduce_linkfun"},"n_val":3,"old_vclock":86400,"small_vclock":10,"young_vclock":20},"keys":["joe","bob","4KuXdR9WKW0p45ORqKbElZBaK45","frank"]}';
sys.p(JSON.parse(buffer));
sys.puts("Worked fine.");
require.paths.unshift('express/lib');
require('express');
sys.p(JSON.parse(buffer));
sys.puts("If you see this, it worked. If not, it's busted.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment