Use the class ZkAwareFederationAuthenticator
in your META-INF/context.xml
as described in https://cxf.apache.org/fediz-tomcat.html
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
// Version 5: Eating Platty | |
int px = 320, py = 240; | |
int tileSize = 20; | |
int signum(float value) { | |
return value < 0 ? -1 : value > 0 ? 1 : 0; | |
} | |
class Enemy { |
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
// Version 6: Winning the game | |
int px = 320, py = 240; | |
int tileSize = 20; | |
int signum(float value) { | |
return value < 0 ? -1 : value > 0 ? 1 : 0; | |
} | |
class Enemy { |
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
// Version 7: Scoring | |
int px = 320, py = 240; | |
int tileSize = 20; | |
int score = 0; | |
int signum(float value) { | |
return value < 0 ? -1 : value > 0 ? 1 : 0; | |
} |
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
Show hidden characters
// Put this in .../Packages/User/Default (**YOUR_OS_HERE**).sublime-keymap | |
[ | |
// Eclipse keyboard mapping for Sublime Text 2+3, based on https://gist.github.com/thbkrkr/3194275 | |
{ "keys": ["f12"], "command": "htmlprettify"}, | |
{ "keys": ["f1"], "command": "fold" }, | |
{ "keys": ["f2"], "command": "unfold" }, | |
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, | |
{ "keys": ["ctrl+space"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": |
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 groovy.sql.Sql | |
class OrphanNodesTool { | |
Sql sql; | |
String schema; | |
Set<String> tablesTargetedByForeignKeys() { | |
def query = '''\ |
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
// ==UserScript== | |
// @name c't Inhaltsverzeichnis sortieren | |
// @namespace http://www.pdark.de/ | |
// @version 1.0 | |
// @description Sortiert das Inhaltsverzeichnis der c't nach Seitenzahl, wenn man auf "aktuell" klickt | |
// @match https://www.heise.de/artikel-archiv/ct/* | |
// @copyright 2014+, Aaron Digulla | |
// @grant unsafeWindow | |
// ==/UserScript== |
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 de.pdark.h2.txtest; | |
import static org.junit.Assert.*; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import org.h2.jdbcx.JdbcDataSource; | |
import org.junit.Test; | |
public class H2TransactionTest { |
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 ubuntu:14.04.1 | |
MAINTAINER Wei-Ming Wu <wnameless@gmail.com> | |
ADD chkconfig /sbin/chkconfig | |
ADD init.ora / | |
ADD initXETemp.ora / | |
@PARTS@ | |
RUN cat /@BASENAME@.deb?? > /@BASENAME@.deb |
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
/** Copyleft (C) 2016 by Aaron Digulla. Use as you wish. This copyright notice can be removed. */ | |
package bug507401; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
import java.util.List; |