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
logging: | |
pattern: | |
console: "%d{HH:mm:ss.SSS} %highlight(%.-1level) %cyan(%40.40logger{39}): %msg%n%throwable" |
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
///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()) { |
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
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 |
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.awt.*; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
public class Jiggler implements Runnable { | |
private final Robot robot; | |
private Jiggler() { | |
try { |