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/bash | |
# If you use branch names with JIRA ticket numbers in them, e.g. feature/ABC-4324-do-something, | |
# this includes automatically the ticket number (ABC-4324) at the start of the the commit message. | |
# This way, it's later easy to see which change was done for which ticket, without any manual effort. | |
# You need to copy or link this file into .git/hooks/prepare-commit-msg | |
# You can customize which branches should be skipped when prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi |
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.zip.ZipFile | |
println("Run in launchpad") | |
File topfile = new File("sling").canonicalFile | |
def pom = new FileWriter("pom.xml") | |
pom.append("""<?xml version="1.0" encoding="UTF-8"?> | |
<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"> |
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
rule(0+X,X). | |
rule(X+0,X). | |
rule(1*X,X). | |
rule(X*1,X). | |
rule(1*X,X). | |
rule(0*_,0). | |
rule(_*0,0). | |
rule(sum(_,0),0). | |
rule((X+Y)*Z, (X*Z)+(Y*Z)). |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"> | |
<xsl:output method="text" /> | |
<xsl:template match="/" > | |
<xsl:text>digraph tilesdefs { | |
ranksep="2"; | |
</xsl:text> | |
<xsl:for-each select="/tiles-definitions/definition[@extends]"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pom="http://maven.apache.org/POM/4.0.0"> | |
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/> | |
<!-- | |
Generiert Fragment von dotty-File für die Pom-Abhängigkeiten. | |
Anwendung: | |
( | |
echo "digraph PomDependencies {" | |
find . -name pom.xml | xargs xsltproc pom2dotty.xslt | sort -u | |
echo "}" |
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 net.stoerr.dirdupfinder | |
import java.nio.ByteBuffer | |
import java.nio.file.{FileSystems, Files, Path, StandardOpenOption} | |
import java.security.MessageDigest | |
import sun.misc.BASE64Encoder | |
import scala.collection.JavaConversions._ |
NewerOlder