Skip to content

Instantly share code, notes, and snippets.

View eiennohito's full-sized avatar

Arseny Tolmachev eiennohito

  • Hakuhodo Technologies
  • Osaka, Japan
View GitHub Profile
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"))}
}
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
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;
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;
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;
package org.eiennohito.services;
import javax.media.opengl.GL;
/**
* @author eiennohito
* @date 30.03.2008
*/
public interface GLCallback {
void doInGl(GL gl);
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;
/**
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.0.0")
<!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>
// 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/
//