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
test("xmlparser parses double tag") { | |
val xml = p("""<div> | |
<span>hey!</span> | |
</div>""") | |
val parsed = xml.toArray | |
parsed should have length (5) | |
parsed(3) should have {'pos (List("div", "span"))} | |
} |
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 org.eiennohito.ui; | |
import org.springframework.context.support.AbstractApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
import javax.swing.*; | |
/** | |
* @author eiennohito | |
* @date 25.02.2008 |
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 org.eiennohito.ui.components; | |
import org.eiennohito.transformations.ZByXShift; | |
import org.eiennohito.transformations.AbstractTransformation; | |
import org.eiennohito.transformations.ProjectiveTransformation; | |
import org.eiennohito.ui.GLDrawer; | |
import org.eiennohito.ui.verification.FloatInputVerifier; | |
import javax.swing.*; | |
import java.awt.event.MouseAdapter; |
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 org.eiennohito.drawing; | |
import org.eiennohito.math.Matrix; | |
import org.eiennohito.math.Vector; | |
import org.eiennohito.model.Vertex; | |
import org.eiennohito.services.GLCallbackHolder; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
import javax.media.opengl.GL; |
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 org.eiennohito.ui; | |
import com.sun.opengl.util.j2d.TextRenderer; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.eiennohito.MouseUtils; | |
import static org.eiennohito.MouseUtils.isButton1Pressed; | |
import org.eiennohito.control.MouseToTransformation; | |
import org.eiennohito.control.TranslatorsService; | |
import org.eiennohito.drawing.GLRenderer; |
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 org.eiennohito.services; | |
import javax.media.opengl.GL; | |
/** | |
* @author eiennohito | |
* @date 30.03.2008 | |
*/ | |
public interface GLCallback { | |
void doInGl(GL gl); |
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 org.eiennohito.model; | |
import com.thoughtworks.xstream.annotations.XStreamAlias; | |
import org.eiennohito.drawing.Color; | |
import org.eiennohito.drawing.GLFillable; | |
import org.eiennohito.math.Vector; | |
import javax.media.opengl.GL; | |
/** |
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
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" | |
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.0.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="text/html; charset=UTF-8" http-equiv="content-type"> | |
<meta content="" name="description"> | |
<meta content="" name="keywords"> | |
<title>App: Repetition</title> | |
<script type="text/javascript" src="/static/jquery-1.7.2.js" id="jquery"></script> | |
<script type="text/javascript" src="/classpath/json.js" id="json"></script> |
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
// Boost.Range library | |
// | |
// Copyright Neil Groves 2009. Use, modification and | |
// distribution is subject to the Boost Software License, Version | |
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// | |
// | |
// For more information, see http://www.boost.org/libs/range/ | |
// |