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
.data | |
break: .asciiz "\n" | |
ask: .asciiz "Please enter a random a number greater than 0, or enter a negative number to exit: " | |
input : .word 100 | |
list : .word 100 | |
zero: .float 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
.data | |
input: .space 100 | |
buffer: .byte 100 | |
break: .asciiz "\n" | |
ask: .asciiz "Please enter Sentence: " | |
.text |
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 edu.hartford.cs375.northpole.web; | |
import java.util.List; | |
import javax.ejb.EJB; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
import javax.persistence.TypedQuery; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.DELETE; |
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 edu.hartford.cs375.digsig.web; | |
import java.util.List; | |
import javax.ejb.EJB; | |
import javax.jws.WebService; | |
import edu.hartford.cs375.digsig.ejb.DigitalSignatureService; | |
import edu.hartford.cs375.digsig.ejb.DigitallySignedString; |
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 edu.hartford.cs375.digsig.web; | |
import java.util.List; | |
import javax.jws.WebParam; | |
import javax.jws.WebResult; | |
import javax.jws.WebService; | |
import edu.hartford.cs375.digsig.ejb.DigitallySignedString; |
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
(* Raises a to the power of b *) | |
fun pow(a:real, b:int) :real = | |
if b > 1 then a * pow(a, (b - 1)) | |
else a; | |
(* Raises a to the power of b but it is a real*real->real *) | |
fun power((a, b):(real*real)) = | |
if a <= 0.0 then 1.0 | |
else a * pow(a, b - 1.0):real; | |
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
%{ | |
#include <stdio.h> | |
%} | |
%% | |
command : expr '\n' { printf("The result is: %d\n",$1); } | |
; | |
expr : | |
expr '+' term |
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
fun polyhelper ([], _, _) = 0.0 | |
| polyhelper (a::b, x, e) = ( a * power (x, e) ) + polyhelper (b, x, e + 1.0); | |
fun polyeval([], _) = 0.0 | |
| polyeval(a::b, x) = a + polyhelper(b, x, 1.0); | |
fun addToAll(x, nil) = nil | |
| addToAll(x, y::z) = (x::y)::addToAll(x,z); | |
fun powerSet(nil) = [nil] |
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
fun member(e, nil) = false | |
| member(e, h::t) = | |
if e = h then true | |
else member(e, t); | |
fun union(nil, c) = c | |
| union(a::b,c) = | |
if member(a, c) then union(b,c) | |
else a::union(b,c); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>apelon</groupId> | |
<artifactId>vas</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>maven-plugin</packaging> | |
<name>vas sample plugin</name> |