Skip to content

Instantly share code, notes, and snippets.

name = "aws-vault"
type = "cli"
[resolve]
git-url = "https://github.com/99designs/aws-vault"
[install]
download-url = "https://github.com/99designs/aws-vault/releases/download/v{version}/{download_file}"
unpack = false
name = "just"
type = "cli"
[platform.macos]
download-file = "just-{version}-{arch}-apple-darwin.tar.gz"
[platform.linux]
# download-file = "just-{version}-{arch}-unknown-linux-{libc}.tar.gz"
download-file = "just-{version}-{arch}-unknown-linux-musl.tar.gz"
nodejs 16.18.0
java zulu-17.38.21
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexbepple
alexbepple / # ask-cli - 2019-01-27_19-13-35.txt
Created January 27, 2019 18:19
ask-cli on macOS 10.14.2 - Homebrew build logs
Homebrew build logs for ask-cli on macOS 10.14.2
Build date: 2019-01-27 19:13:35
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@alexbepple
alexbepple / index.md
Last active May 29, 2018 22:38
Stricter stubs for better dev experience

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.


What's the problem, again?

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.