Skip to content

Instantly share code, notes, and snippets.

View tinylinden's full-sized avatar

Łukasz Lipka tinylinden

View GitHub Profile
logging:
pattern:
console: "%d{HH:mm:ss.SSS} %highlight(%.-1level) %cyan(%40.40logger{39}): %msg%n%throwable"
///usr/bin/env jbang "$0" "$@" ; exit $?
import java.awt.*;
import java.util.concurrent.*;
object Jiggler : Runnable {
private val robot: Robot = Robot()
override fun run() =
with (MouseInfo.getPointerInfo().getLocation()) {
fetch('/bar.html')
.then(response => response.text())
.then(text => {
document.open()
document.write(text)
document.close()
window.history.replaceState(null, '', '/bar.html')
})
.catch(error => {
// handle the error
import java.awt.*;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class Jiggler implements Runnable {
private final Robot robot;
private Jiggler() {
try {