Ramda homepage: http://ramdajs.com/
JS Bin that I used to demo Ramda: http://jsbin.com/cosati/edit?js,output
These are a nice introductions to basic functional programming with Ramda:
import React, {AppRegistry, Text, View, Dimensions, ScrollView, Image} from 'react-native' | |
const window = Dimensions.get('window') | |
const imageDimensions = { | |
height: window.height, | |
width: window.width | |
} | |
var SampleApp = React.createClass({ | |
render: function () { |
Ramda homepage: http://ramdajs.com/
JS Bin that I used to demo Ramda: http://jsbin.com/cosati/edit?js,output
These are a nice introductions to basic functional programming with Ramda:
I hereby claim:
To claim this, I am signing this object:
autoscale: true
Most modern test-double libraries create stubs with default behavior. Now, if the code under test uses the stub differently, the test will fail late – and even more importantly with an error that might be hard to interpret. Strict stubs help to avoid this problem and thus provide a better experience. testdouble-only-when is a helper for strict stubs for use with testdouble.js.
Most stubs come with a default behavior. In Java land, Mockito stubs return null, false, etc. when no specific behavior has been rehearsed for the call. In JavaScript land, both testdouble.js stubs and Sinon stubs return undefined, if you call them in unrehearsed fashion.
LP solvers in JS | |
jsLPSolver, https://github.com/JWally/jsLPSolver, https://www.npmjs.com/package/javascript-lp-solver | |
++ no trouble whatsoever with 10000 constraints, however I got tired of waiting for 20000 (multiple minutes) | |
there is quite a lot on optimizing the problem formulation at http://lpsolve.sourceforge.net/5.5/lp-format.htm | |
SOS (special ordered sets) look interesting: http://lpsolve.sourceforge.net/5.5/SOS.htm | |
https://www.npmjs.com/package/simple-simplex | |
! violated constraints in some instances | |
-- cumbersome that all variables have to be named everywhere | |
https://www.npmjs.com/package/simplex-solver |
Homebrew build logs for ask-cli on macOS 10.14.2 | |
Build date: 2019-01-27 19:13:35 |