Building on the great work of http://www.dev-eth0.de All commands below ran in one terminal as root (Watch that PATH doesn't disappear on you)
Tested on R15B01 http://www.erlang.org/download/otp_src_R15B01.tar.gz which is also compatible with RIAK.
Building on the great work of http://www.dev-eth0.de All commands below ran in one terminal as root (Watch that PATH doesn't disappear on you)
Tested on R15B01 http://www.erlang.org/download/otp_src_R15B01.tar.gz which is also compatible with RIAK.
var seneca = require('seneca')() | |
seneca.add( {cmd:'sales-tax'}, function(args){ | |
var rate = 0.23 | |
var total = args.net * (1+rate) | |
seneca.act({cmd:'tax-total'}, {total:total}) | |
}) | |
seneca.add( {cmd:'tax-total'}, function(args){ | |
try{ |
{ | |
"typename" : "header", | |
"mode":"client", | |
"peer":"9a6cfdf0-6bab-11e2-8648-fd224dae7ee4", | |
"timestamp":1359640016194, | |
"data": | |
{ | |
"typename" : "summary", | |
"downloaded":909115392, | |
"downloadRate":2864163.073936958, |
# Do not edit. Generated by the configure script. | |
{ 'target_defaults': { 'cflags': [], | |
'default_configuration': 'Release', | |
'defines': [], | |
'include_dirs': [], | |
'libraries': []}, | |
'variables': { 'clang': 0, | |
'gcc_version': 46, | |
'host_arch': 'x64', | |
'node_install_npm': 'true', |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\4.0] | |
"VCTargetsPath"="$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\" |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\3.5] | |
"DefaultToolsVersion"="2.0" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\4.0] | |
"DefaultToolsVersion"="2.0" | |
"MSBuildOverrideTasksPath"="C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\" |
==== Test ArenaTest.Empty | |
==== Test ArenaTest.Simple | |
==== PASSED 2 tests | |
==== Test BloomTest.EmptyFilter | |
==== Test BloomTest.Small | |
==== Test BloomTest.VaryingLengths | |
False positives: 0.23% @ length = 1 ; bytes = 9 | |
False positives: 0.44% @ length = 2 ; bytes = 9 | |
False positives: 0.75% @ length = 3 ; bytes = 9 | |
False positives: 1.08% @ length = 4 ; bytes = 9 |
(function() { | |
try { | |
var a = new Uint8Array(1); | |
return; //no need | |
} catch(e) { } | |
function subarray(start, end) { | |
return this.slice(start, end); | |
} |
The browser
field is provided by a module author as a hint to javascript bundlers or component tools when preparing modules for client side use.
Below are common terms used in the rest of the document
This is a non-dom based javascript execution environment. It usually only contains the base javascript language spec libraries and objects along with modules to communicate with OS features (available through commonjs require).
;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){ | |
var leveldowngap = require('leveldown-gap') | |
, levelup = require('levelup') | |
, factory = function (location) { return new leveldowngap(location) } | |
, db = levelup('/does/not/matter', { db: factory }) | |
db.put('name', 'Yuri Irsenovich Kim') | |
db.put('dob', '16 February 1941') | |
db.put('spouse', 'Kim Young-sook') | |
db.put('occupation', 'Clown') |