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 | |
//DEPS info.picocli:picocli:4.6.3 | |
package df; | |
import picocli.CommandLine; | |
import picocli.CommandLine.Model.CommandSpec; | |
import picocli.CommandLine.Option; | |
import picocli.CommandLine.ParameterException; | |
import picocli.CommandLine.Spec; |
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
WITH duplicate_checksums AS ( | |
SELECT MD5 FROM file_duplicates_develop.files | |
GROUP BY MD5 HAVING COUNT(*) > 1 | |
) | |
SELECT * FROM file_duplicates_develop.files | |
WHERE MD5 = duplicate_checksums.MD5 | |
ORDER BY -Size, MD5; |
The goal was it to find the authors of a book in fileA.json and get their details in fileB.json
See:
https://twitter.com/JMHReif/status/1503851216740171784?s=20&t=4D2LUKLH9Kh5hCuTSxRlbw
https://twitter.com/JMHReif/status/1503851872096067585?s=20&t=4D2LUKLH9Kh5hCuTSxRlbw
Goal: Create an array of author ids from fileA. Depending on what is to be filtered from fileA.json, there are different approaches:
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 | |
//DEPS info.picocli:picocli:4.6.3 | |
//DEPS org.neo4j.driver:neo4j-java-driver:4.4.5 | |
import picocli.CommandLine; | |
import picocli.CommandLine.Command; | |
import picocli.CommandLine.Option; | |
import picocli.CommandLine.Parameters; |
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.Color; | |
import java.awt.Font; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
public class Peng { | |
public static void main(String... a) throws IOException { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<jfragent> | |
<config> | |
<classprefix>__JFREvent</classprefix> | |
<allowtostring>true</allowtostring> | |
<allowconverter>true</allowconverter> | |
</config> | |
<events> | |
<event id="bolt.TemplatedQueryRun"> | |
<label>Templated queries</label> |
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.jsoup:jsoup:1.14.3 | |
//JAVA_OPTIONS -ea | |
import org.jsoup.parser.Parser; | |
public class f { | |
public static void main(String...a) { | |
var s1 = "🚀 Features"; | |
var s2 = "\uD83D\uDE80 Features"; |
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 | |
//DEPS org.graalvm.sdk:graal-sdk:21.3.0 | |
//DEPS org.assertj:assertj-core:3.21.0 | |
// Only needed when running on vanilla JVM | |
//DEPS org.graalvm.js:js:21.3.0 | |
package example; | |
import static org.assertj.core.api.Assertions.assertThat; |
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
package com.example.demo; | |
import java.util.List; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
import org.springframework.context.annotation.Bean; |