View Dockerfile
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
FROM openjdk:11-jre-slim-stretch | |
# Versions | |
ARG SONAR_VERSION=8.5.0.37579 | |
ARG WRAPPER_VERSION=3.5.43 | |
# Add needed software and create sonarqube user | |
RUN ["/bin/bash", "-c", "set -o pipefail && \ | |
apt-get update && \ | |
apt-get -y install openjdk-11-jre-headless unzip wget procps && \ |
View pom.xml
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
<!-- create "private_libs" as folder and put your private maven-dependencies there --> | |
<repositories> | |
<!-- in project repository, mostly for private libs --> | |
<repository> | |
<id>in-project</id> | |
<name>In Project Repo</name> | |
<url>file://${project.basedir}/private_libs</url> | |
<snapshots> | |
<enabled>true</enabled> |
View Vagrantfile
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/stretch64" | |
config.vm.hostname = "some-vm" | |
## when using non-"contrib-" boxes from debian | |
## do NOT use rsync: https://stackoverflow.com/a/34882657/1961102 | |
## override speficied type to use type "virtualbox" (default on debian-boxes are rsync) |
View SomeJavaFXClassWithCDI.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
import java.util.logging.Logger; | |
import javafx.application.Platform; | |
import javafx.concurrent.Task; | |
import javafx.event.ActionEvent; | |
import javafx.stage.Stage; | |
import javafx.stage.StageStyle; | |
import javax.inject.Inject; | |
public class SomeJavaFXClassWithCDI extends javafx.application.Application { |
View removeThumbsDB.js
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
var fs = require('fs'); | |
// -------------------------------------- | |
// JS-fixes | |
if (!String.prototype.endsWith) { | |
console.log("fixing String-prototype (endsWith)"); | |
Object.defineProperty(String.prototype, 'endsWith', { | |
enumerable: false, | |
configurable: false, | |
writable: false, | |
value: function (searchString, position) { |
View jquery.isPartlyInViewPort.js
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
function isPartlyInViewPort($entry){ | |
var windowScrollTop = $(window).scrollTop(); | |
var windowHeight = $(window).height(); | |
var windowVisibleBottom = windowScrollTop + windowHeight; | |
var entryTop = $entry.offset().top; | |
var entryOuterHeight = $entry.outerHeight(); | |
var entryVisibleBottom = entryTop + entryOuterHeight; | |
var isAboveViewPort = entryVisibleBottom < windowScrollTop; | |
var isBelowViewPort = windowVisibleBottom < entryTop; |
View jquery.isTotallyInViewPort.js
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
function isTotallyInViewPort($entry){ | |
var windowScrollTop = $(window).scrollTop(); | |
var windowHeight = $(window).height(); | |
var windowVisibleBottom = windowScrollTop + windowHeight; | |
var entryTop = $entry.offset().top; | |
var entryOuterHeight = $entry.outerHeight(); | |
var entryVisibleBottom = entryTop + entryOuterHeight; | |
var isInView = windowScrollTop < ( entryTop ) < (windowVisibleBottom); | |
if(!isInView) return false; |