Skip to content

Instantly share code, notes, and snippets.

@bogaktik
bogaktik / HelloWorld.java
Last active January 14, 2023 05:04
ggg
System.out.println("Hello, world");
System.out.println(); // sout
System.out.println("gg");
@dainkaplan
dainkaplan / Ansi.java
Last active September 16, 2024 12:30
Simple ANSI colors class for terminal code for JVM written in Scala and Java (two implementations)
package org.tempura.console.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Usage:
* <li>String msg = Ansi.Red.and(Ansi.BgYellow).format("Hello %s", name)</li>
* <li>String msg = Ansi.Blink.colorize("BOOM!")</li>