Put all files in ctest
directory.
cd ctest
go test
package flatbuffers | |
import ( | |
"github.com/ReforgedStudios/legion-gameserver/flatbuffers/messages" | |
flatbuffers "github.com/google/flatbuffers/go" | |
"github.com/stretchr/testify/assert" | |
"testing" | |
//"log" | |
) |
package msgpack | |
import ( | |
"github.com/ugorji/go/codec" | |
"log" | |
//"io" | |
"bytes" | |
"testing" | |
) |
import org.jose4j.jwk.HttpsJwks; | |
import org.jose4j.jwt.consumer.InvalidJwtException; | |
import org.jose4j.jwt.consumer.JwtConsumer; | |
import org.jose4j.jwt.consumer.JwtConsumerBuilder; | |
import org.jose4j.jwt.consumer.JwtContext; | |
import org.jose4j.keys.resolvers.HttpsJwksVerificationKeyResolver; | |
/** | |
* Simple authentication that can be used to validate google oauth tokens. |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.io.IOUtils; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipFile; |
import com.jamonapi.Monitor; | |
import com.jamonapi.MonitorFactory; | |
import org.apache.commons.lang.StringUtils; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.aspectj.lang.reflect.MethodSignature; | |
import org.springframework.stereotype.Component; | |
import java.util.regex.Pattern; |
/** | |
* My languages song. | |
* | |
* Inspired by the Finland song from Monty Python. | |
*/ | |
public class Song { | |
public static void main(String[] args) { | |
String s = "Java, Java, Java\n" | |
+ "The language I want to be\n" | |
+ "Debugging or Test Driving\n" |
# Find the slice width that correlates with high distances | |
def find_slice_width(): | |
dm = sorted( [(x, slice_distance(x,x+1)) for x in range(0,width-1)], key=lambda d: d[1], reverse=True) | |
for w in range(2,width/2): | |
m = width / w - 1 | |
p = len( filter(lambda dd: (dd[0]+1) % w == 0, dm[:m]) ) | |
if p / float(m) > 0.6: | |
return w | |
return 10 |
<html> | |
<head> | |
<title>ForkMeSun</title> | |
<link href='http://fonts.googleapis.com/css?family=Dorsa' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<a href="http://huljas.github.com"> | |
<canvas id="forkMe" width="150" height="150"> | |
</canvas> |