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 be.crydust.findweirdchars; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.io.StringWriter; |
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
mvn com.github.ekryd.sortpom:sortpom-maven-plugin:2.5.0:sort -Dsort.predefinedSortOrder=recommended_2008_06 -Dsort.nrOfIndentSpace=4 |
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/sh | |
ps aux | grep java | grep spring | awk '{print $2}' | xargs kill |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.adaptionsoft.games</groupId> | |
<artifactId>uglytrivia</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> |
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.io.InputStream; | |
import java.io.Reader; | |
import java.math.BigDecimal; | |
import java.net.URL; | |
import java.sql.Array; | |
import java.sql.Blob; | |
import java.sql.Clob; | |
import java.sql.Date; | |
import java.sql.NClob; | |
import java.sql.Ref; |
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
\d\d (januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december) \d\d\d\d, \d\d:\d\d:\d\d |
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
body { | |
background: #eee; | |
color: #444; | |
font-size: 18px; | |
line-height: 1.6; | |
margin: 40px auto; | |
max-width: 650px; | |
padding: 0; | |
} | |
h1, h2, h3 { |
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
<c:if test="${not empty items}"> | |
<c:set var="itemColumns" value="3" /> | |
<table border="1"> | |
<tr> | |
<c:forEach items="${items}" var="item" varStatus="itemStatus"> | |
<td><c:out value="${item}" /></td> | |
<c:if test="${itemStatus.index % itemColumns eq itemColumns - 1}"></tr><tr></c:if> | |
</c:forEach> | |
<c:if test="${fn:length(items) % itemColumns gt 0}"> | |
<td colspan="${itemColumns - (fn:length(items) % itemColumns)}"> </td> |
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
move onto newbase | |
the commits after upstream | |
upto and including branch | |
git rebase --onto newbase upstream branch | |
from: | |
n-u-b | |
to: |
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.beans.XMLEncoder; | |
try (XMLEncoder xmlEncoder = new XMLEncoder(System.out)) { | |
xmlEncoder.writeObject(viewReport); | |
} |