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
KHRDebug.glDebugMessageCallback(new KHRDebugCallback(new KHRDebugCallback.Handler() { | |
override def handleMessage(source: Int, msgType: Int, id: Int, severity: Int, message: String) { | |
println("%d %d %d %d: %s".format(source, msgType, id, severity, message)) | |
} | |
})); |
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
// Setup the data for our elements... | |
lazy val stop: Stream[Float] = 3f #:: stop.map(_ + .5f) | |
lazy val dt: Stream[Float] = 0f #:: .10f #:: .05f #:: -.05f #:: dt | |
lazy val dx: Stream[Int] = Stream.from(0, 15) | |
// I can have as many elements as I want by adjusting this number. | |
val values = (stop, dt, dx).zipped.take(10) | |
override def render() = { | |
time += Gdx.graphics.getDeltaTime() |
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
@ApplicationScoped | |
public class MyAuthorizer { | |
@Inject | |
private BasicAuthorizer basicAuth; | |
@Secures | |
@SomethingAccess | |
private boolean accessSomething() { | |
return basicAuth.isUser(ADMIN); |
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 com.javadocmd | |
import akka.actor.Actor | |
import akka.actor.FSM | |
import akka.actor.Props | |
import akka.actor.ActorSystem | |
import akka.actor.LoggingFSM | |
import scala.concurrent._ | |
import ExecutionContext.Implicits.global | |
import scala.collection._ |
NewerOlder