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> |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>apelon</groupId> | |
<artifactId>vas</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<executions> | |
<execution> | |
<phase>generate-resources</phase> | |
<goals> |
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
#! /usr/bin/python | |
# | |
# Build the entire ISAAC Project | |
import subprocess | |
import os | |
import sys | |
projects = ['va-isaac-parent', | |
'va-ochre', |
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
#! /usr/bin/python | |
# | |
# Pull each Apelon-VA Repo | |
# | |
import subprocess | |
import os | |
def git(*args): | |
return subprocess.Popen(['git'] + list(args), shell=True, stdout=subprocess.PIPE).communicate()[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
[ | |
{ | |
"id":1673, | |
"collection_id":1666, | |
"name":"Address", | |
"created_at":"2015-10-19T19:45:22.000Z", | |
"updated_at":"2015-10-20T14:59:10.000Z", | |
"ord":1, | |
"anonymous_user_permission":"none", | |
"fields":[ |
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
{ | |
"layer":{ | |
"id":"1670", | |
"name":"Medical Facility Information", | |
"ord":"1", | |
"fields_attributes":{ | |
"0":{ | |
"id":"13377", | |
"name":"Facility Type", | |
"code":"facility_type", |
OlderNewer