Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
; is so overrated

Max Rydahl Andersen maxandersen

💭
; is so overrated
View GitHub Profile
View myapp.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.kohsuke:github-api:1.125
import org.kohsuke.github.*;
import java.io.IOException;
import java.util.ArrayList;
View maze.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
import static java.lang.System.*;
public class maze {
static void print(String s) {
out.println(s);
}
View maze.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
import static java.lang.System.*;
public class maze {
static void print(String s) {
out.println(s);
}
View maze.jsh
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
import static java.lang.System.*;
// clears the screen using ANSI escape codes
void clear_output() { out.print("\033[H\033[2J");}
var maze = new char[][] {
"######################".toCharArray(),
View maze.jsh
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
import static java.lang.System.*;
// clears the screen using ANSI escape codes
static void clear_output() {
out.print("\033[H\033[2J");
}
View maze.jsh
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 17+
import static java.lang.System.*;
// clears the screen using ANSI escape codes
static void clear_output() {
out.print("\033[H\033[2J");
out.flush();
}
View gist:42182eb242b30e43aff53bba44c23070
def can_complete_word(word, word_with_blanks):
# Remove all non-alphabetic characters from the word with blanks
word_with_blanks = ''.join(filter(str.isalpha, word_with_blanks))
# Check if the word with blanks is longer than the word
if len(word_with_blanks) > len(word):
return False
# Iterate through each letter in the word with blanks
for i, c in enumerate(word_with_blanks):
View gist:ff574656e0dc9d724ea929cc09560d9e
> Windup CLI 6.1.4.Final (Windup Components 6.1.4.Final) https://github.com/windup/windup
View jjfq.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS info.picocli:picocli:4.6.3
//DEPS com.ibm.jsonata4java:JSONata4Java:2.2.6
//DEPS com.fasterxml.jackson.core:jackson-databind:2.9.8
import static java.lang.System.out;
import java.io.IOException;
import java.nio.file.Path;
View a.btm
RULE trace main entry
CLASS AppMain
METHOD main
AT ENTRY
IF true
DO traceln("entering main")