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
dev: | |
quarkus dev | |
jshell: | |
#!/usr/bin/env jbang --jsh | |
//DEPS com.github.javafaker:javafaker:1.0.2 | |
var faker = new com.github.javafaker.Faker(); | |
println(faker.nation().nationality()); | |
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; |
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); | |
} |
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); | |
} |
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(), |
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"); | |
} |
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(); | |
} |
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): |
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 |
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; |