Daily Shaarli

All links of one day in a single page.

September 22, 2017

Quick Tour of WebStorm and Docker | WebStorm Blog

Node.js developers are embracing Docker for repeatable builds, and WebStorm supports Docker-oriented workflows: Quickly bootstrap your Node.js app with a Dockerfile, then run and debug your app in Docker, from the WebStorm IDE.

Tips and Tricks for IEx | Echobind

IEx tips

GitHub - pholser/junit-quickcheck: Property-based testing, JUnit-style

junit-quickcheck is a library that supports writing and running property-based tests in JUnit, inspired by QuickCheck for Haskell.

Property-based tests capture characteristics, or "properties", of the output of code that should be true given arbitrary inputs that meet certain criteria. For example, imagine a function that produces a list of the prime factors of a positive integer n greater than 1. Regardless of the specific value of n, the function must give a list whose members are all primes, must equal n when all multiplied together, and must be different from the factorization of a positive integer m greater than 1 and not equal to n.

Rather than testing such properties for all possible inputs, junit-quickcheck and other QuickCheck kin generate some number of random inputs, and verify that the properties hold at least for the generated inputs. This gives us some reasonable assurance over time that the properties hold true for any valid inputs.

Farbsensor über I2C/Grove auslesen - Hackster.io

Farbwerte über den RGB-Sensor auslesen (dieser hängt am linken Grove-Anschluss, Grove-Kabel muss ggf. angelötet werden). Dann RGB-LED des mini entsprechend der gemessenen Werte einstellen. Farbwerte werden zusätzlich über die serielle Konsole ausgegeben.

DevOpsCon 2016: Docker Container Loading - YouTube