This file contains hidden or 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() { |
This file contains hidden or 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
// copy this to: src/test/java/org/example/SimpleTest.java | |
package org.example; | |
import de.tobiasroeser.lambdatest.testng.FreeSpec; | |
class SimpleTest extends FreeSpec {{ | |
test("1 + 1 = 2", () -> { | |
assertEquals(1 + 1, 2); | |
}); |
This file contains hidden or 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 scalatest_issue | |
// The following test will not run with Scala 2.11.1 and ScalaTest 2.1.7 | |
import org.scalatest.FreeSpec | |
object TargetRefs2 { | |
def apply(targetRefs: String*): TargetRefs2 = new TargetRefs2(Seq(targetRefs)) | |
} |
This file contains hidden or 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
# ~/.screenrc | |
# use visual bell | |
vbell on | |
# set a big scrolling buffer | |
defscrollback 1000 | |
# Set the caption on the bottom line | |
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c" |
This file contains hidden or 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
lefou@x2 ~/work/tototec/sbuild/build-foreign-project-examples/scala.git $ sbuild-svn-unsorted compileScala-quick-library | |
Calculating dependency tree... | |
[0%] Executing... | |
[2%] Executing target: compile-forkjoin | |
Compiling 10 source files to /home/lefou/work/tototec/sbuild/build-foreign-project-examples/scala.git/target/forkjoin/classes | |
warning: [options] bootstrap class path not set in conjunction with -source 1.5 | |
1 warning | |
[3%] Executing target: target/forkjoin.jar | |
Building jar: /home/lefou/work/tototec/sbuild/build-foreign-project-examples/scala.git/target/forkjoin.jar | |
[10%] Executing target: compileJava-locker-library |
This file contains hidden or 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
## Nano color theme for Scala. | |
## 2013, 2018, Tobias Roeser | |
## | |
syntax "scala" "\.(scala|sbt|sc)$" | |
color green "\<(new|this|transient)\>" | |
color green "\<(catch|do|else|finally|for|if|match|return|switch|throw|try|val|var|while)\>" | |
color green "\<(def|abstract|class|extends|final|import|package|private|protected|public|trait|volatile)\>" | |
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)|\+|\-|\*|\/" | |
color red "@(\\.|[^(])*" | |
color yellow "\<(true|false|null)\>" |
NewerOlder