Skip to content

Instantly share code, notes, and snippets.

@iantocristian
iantocristian / snippets.md
Last active March 10, 2016 15:18
Seneca snippets

Extract actual arguments from args:

seneca.add({role:'api', cmd:'ping'}, function(args, cb) { 
  var actualargs = seneca.util.argprops({}, args, {}, 'role, cmd')
})

argprops signature: argprops(defaults, args, fixed, omit)

@benrasmusen
benrasmusen / statistics-distributions.js
Created October 4, 2011 15:44
JavaScript library for calculating critical values and upper probabilities of common statistical distributions
/*
* NAME
*
* statistics-distributions.js - JavaScript library for calculating
* critical values and upper probabilities of common statistical
* distributions
*
* SYNOPSIS
*
*