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>How much of this year and this day have you wasted in percent down to 10 painful decimals</title> | |
</head> | |
<body> | |
<div style="height:auto;"> | |
<div align="center" id="headingyear" style="font-size:25px"></div> | |
<div align="center" id="timeleftyear" style="font-family:Monospace;font-size:30px"></div> | |
<br> |
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.jboss.netty.util.ThreadRenamingRunnable; | |
import org.jboss.netty.util.Timeout; | |
import org.jboss.netty.util.Timer; | |
import org.jboss.netty.util.TimerTask; | |
import java.util.Comparator; | |
import java.util.Iterator; | |
import java.util.Set; | |
import java.util.SortedSet; | |
import java.util.concurrent.ConcurrentSkipListSet; |
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
public class StringTokenizer { | |
private static ThreadLocal<String[]> tempArray = new ThreadLocal<String[]>(); | |
public static String[] tokenize(String string, char delimiter) | |
{ | |
String[] temp = tempArray.get(); | |
int tempLength = (string.length() / 2) + 2; | |
if (temp == null || temp.length < tempLength) | |
{ |