/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Manually downloading, extracting and configuring the installation of OpenJDK 11+ is a high-maintenance exercise. Particularly if you need to install and switch between multiple versions of the JDK.
The following options for installing OpenJDK 11+ and switching between versions make the job easier..
Jabba is a Java version manager inspired by nvm (Node.js) written in Go.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class RouletteWheel { | |
private boolean bouncing = false; | |
private int ballNumber = 0; | |
private long elapsedSpinTime = 0; | |
private long spinStartTime = 0; | |
public boolean isBouncing() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Software Craftmanship 2016 - Mini Project | |
Roll your own logging framework | |
Estimated Duration: 1-2 hours | |
Author: Daniel Marlow | |
Language(s)/stacks: Any |