Skip to content

Instantly share code, notes, and snippets.

View matschmann's full-sized avatar

Rainer Standke matschmann

View GitHub Profile
@matschmann
matschmann / junit5-gradle
Last active March 18, 2019 14:20
Adds Junit5 and assertJ to a gradle project
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter:5.4.1')
testCompile('org.assertj:assertj-core:3.11.1')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
@matschmann
matschmann / ecletide_theme_osx_terminal.xml
Last active February 12, 2016 08:01
ecletide theme for the osx terminal
<?xml version="1.0" encoding="UTF-8"?>
<!---
How to import this theme into OS X Terminal App
* Save file as xml
* In Terminal Press Cmd+; for Preferences
* Click on the tab "Profiles"
* Click on the gear-wheel on the lower left and click import
* Select file & enjoy
@matschmann
matschmann / 0_reuse_code.js
Created October 21, 2013 09:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/**
*
* the code:
* tr -s ' ' < /etc/mime.types |while read; do z=$( echo $REPLY|cut -f1 -d'#' |cut -f1 -d ' ' );for j in $( echo $REPLY|cut -f1 -d'#' |cut -f2- -d ' '); do [[ "$j" =~ "/" ]] || echo $j '("'$z'"),' ; done; done|sort
*
*
* User: jim
* Date: May 21, 2009
* Time: 2:42:05 AM
*/