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 someorg.aspects; | |
import de.tototec.utils.functional.Try; | |
import jakarta.persistence.EntityManager; | |
import jakarta.persistence.PersistenceContext; | |
import org.aspectj.lang.Aspects; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; |
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 scala.collection.immutable.Seq | |
import mill.scalalib._ | |
/** | |
* Defines an Archive file (ZIP, ...) than can be downloaded from a given URL. | |
* The bundle must be location inside the archive with the schematic name `${artifactId}_${version}.jar`. | |
* Source bundles must have the schematic name `${artifactId}.source_${version}.jar`. | |
* | |
* @param url |
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 sh | |
if [ "x$@" = "x" ] ; then | |
gitk --all `git stash list '--pretty=format:%gd'` & | |
else | |
gitk "$@" & | |
fi |
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' standalone='yes' ?> | |
<gpx version="1.1" creator="OsmAnd~ 3.7.4" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> | |
<metadata> | |
<name>2020-09-12_07-02_Sat</name> | |
</metadata> | |
<trk> | |
<trkseg> | |
<trkpt lat="51.0655571" lon="13.7425885"> | |
<ele>101.007</ele> | |
<time>2020-09-12T05:02:10Z</time> |
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 bash | |
basedir= | |
dirname= | |
found=0 | |
# traverses directory structure from process work directory to filesystem root | |
# first directory with .mvn subdirectory is considered project base directory | |
find_maven_basedir() { |
example of several maven pom.xml profiles that congiure scala.js library and runtime projects
see http://stackoverflow.com/questions/26512750/how-to-use-scala-js-from-maven
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
// You should include this file from your pom.scala | |
// In your pom.scala (or somewhere else) you must define | |
// - a Deps object with the required dependencies | |
// - a Plugins object with the required plugin dependencies | |
import org.sonatype.maven.polyglot.scala.model._ | |
import scala.collection.immutable._ | |
object ReleaseProfile { |
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
#!/bin/bash | |
# Default behavior is scan directory recursively | |
if [ "x$1" == "x" ]; then | |
echo "Find JAR files and searches their content listings for a given pattern" | |
echo | |
echo "Usage: jarfind [-l] <SEARCHTERM> [[DIR] ...]" | |
echo | |
echo "If DIRs is empty, $HOME/.m2/repository is searched." |
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 bash | |
basedir= | |
dirname= | |
found=0 | |
# traverses directory structure from process work directory to filesystem root | |
# first directory with .mvn subdirectory is considered project base directory | |
find_maven_basedir() { |
NewerOlder