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 de.janhendriks.java8test; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
import java.util.function.Supplier; | |
import java.util.function.UnaryOperator; |
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 de.playground.test; | |
import java.time.Instant; | |
public class TimespanOverlap { | |
private Instant begin; | |
private Instant end; | |
public TimespanOverlap(Instant begin, Instant end) { |
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 de.janhendriks; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.Statement; | |
import javax.servlet.ServletException; |
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
/** | |
* Example program showing conversion of an image in the X11 XImage format to the openCV format IplImage | |
* (by demonstrating the XImage2OpenCVImage function below) | |
* The minimalistic program takes a screenshot of a specified area using XGetImage(...), | |
* converts the resulting XImage to IplImage and shows the resulting openCV image until the user presses a key. | |
* | |
* Compile with opencv linker flags (`pkg-config --libs opencv`) e.g. | |
* $ g++ ximage2opencvimage.cpp -L `pkg-config --libs opencv` -o ximage2opencvimage && ./ximage2opencvimage | |
* | |
* @File: ximage2opencvimage.cpp |
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
/* | |
* Simple demo program showing how to use boosted training in openCV | |
* File: opencv_2class_boosting_example.cpp | |
* Author: Jan Hendriks, [email protected], http://www.janhendriks.de | |
* | |
* Created on 18. August 2011, 13:55 | |
*/ | |
#include <cstdlib> | |
#include "opencv/cv.h" |
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
import org.primefaces.component.picklist.PickList; | |
import org.primefaces.model.DualListModel; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import java.util.List; | |
import java.util.Objects; | |
/** |
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
import org.primefaces.component.orderlist.OrderList; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import java.util.List; | |
import java.util.Objects; | |
/** | |
* Generic converter for primefaces component (orderList). |
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
<?php | |
/* | |
> CONTACT: | |
Jan Hendriks | |
http://www.gawe-design.de | |
[email protected] | |
> DESCRIPTION: | |
The functions (you can also use them via php-include) checks if a given IP is in a given IP range | |
These functions are much more efficient than the ip2long / long2ip functions from php that can only be used for IP v4 and have polynomial costs | |
These functions are about O(number of positions), e.g. IP v.4: O(4); (I think) |
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
\documentclass[10pt, a4paper]{article} | |
\usepackage[english,ngerman]{babel} | |
\usepackage{amsmath, amssymb, wasysym} | |
\usepackage{textcomp} | |
\usepackage{graphicx} % Graphics package | |
%\usepackage{graphs} % c.f. http://www8.cs.umu.se/~drewes/graphs/ | |
\usepackage{tikz} | |
\usepackage[T1]{fontenc} | |
% \usepackage[latin9]{inputenc} % Encoding |
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
<html> | |
<head> | |
<title>JUnit Test Report Pie Chart over test durations</title> | |
<meta content=""> | |
<style></style> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script type="text/javascript"> | |
// Load google charts | |
google.charts.load('current', {'packages':['corechart']}); | |
// google.charts.setOnLoadCallback(drawChart); |
OlderNewer