Skip to content

Instantly share code, notes, and snippets.

View brantz's full-sized avatar

Thomas Rudolf brantz

  • Givve
  • Munich, Germany
View GitHub Profile
@brantz
brantz / output.txt
Created December 29, 2011 14:55
output
[/]$ apt-get install apache2 libapache2-mod-jk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw tomcat6 libapache-mod-jk-doc
The following NEW packages will be installed:
apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapache2-mod-jk libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
@brantz
brantz / index.html
Created August 8, 2011 21:15
dw example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Check Magazine</title>
<link href="styles/check_cs5.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/check_menu.css" rel="stylesheet" type="text/css" />
</head>
@brantz
brantz / gist:841226
Created February 23, 2011 21:32
updateloop.java
public void tradeAcceptUpdateLoop() {
if (model.getTradingOfferStatus() == 2) {
log.log(Level.INFO, model.getPlayerColor()
+ "'s trade offer was accepted.");
killTimer();
Window.alert("Your trade offer was accepted");
} else if (model.getTradingOfferStatus() == 0) {
log.log(Level.INFO, model.getPlayerColor()
+ "'s trade offer was declined.");
killTimer();
package com.nagai.server;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.nagai.client.GameServerService;