Skip to content

Instantly share code, notes, and snippets.

View michaelkebe's full-sized avatar

Michael Kebe michaelkebe

View GitHub Profile
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_ISA_DEFS_H
#define _SYS_ISA_DEFS_H
/*
* This header file serves to group a set of well known defines and to
@michaelkebe
michaelkebe / gist:973474
Created May 15, 2011 19:50
Scala Client for SQLSpaces
import info.collide.sqlspaces.client.TupleSpace
import info.collide.sqlspaces.commons._
object ScalaDom {
import scala.xml._
import org.w3c.dom.{Document => JDocument, Node => JNode}
import javax.xml.parsers.DocumentBuilderFactory
def dom(n: Node): JDocument = {
package calculator;
public class CalculatorController {
private enum Operation {
NOP, ADDITION, SUBSTRACTION, MULTIPLICATION, DIVISION
}
private static final String INIT_DISPLAY_VALUE = "0.";