View myapp.java
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 $? | |
//DEPS org.kohsuke:github-api:1.125 | |
import org.kohsuke.github.*; | |
import java.io.IOException; | |
import java.util.ArrayList; |
View maze.java
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 $? | |
//JAVA 17+ | |
import static java.lang.System.*; | |
public class maze { | |
static void print(String s) { | |
out.println(s); | |
} |
View maze.java
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 $? | |
//JAVA 17+ | |
import static java.lang.System.*; | |
public class maze { | |
static void print(String s) { | |
out.println(s); | |
} |
View maze.jsh
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 $? | |
//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
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 $? | |
//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
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 $? | |
//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
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
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
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
> Windup CLI 6.1.4.Final (Windup Components 6.1.4.Final) https://github.com/windup/windup |
View jjfq.java
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 $? | |
//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
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
RULE trace main entry | |
CLASS AppMain | |
METHOD main | |
AT ENTRY | |
IF true | |
DO traceln("entering main") |
NewerOlder