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
CREATE TABLE accounts( | |
id serial PRIMARY KEY, | |
name VARCHAR(256) NOT NULL | |
); | |
CREATE TABLE entries( | |
id serial PRIMARY KEY, | |
description VARCHAR(1024) NOT NULL, | |
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
-- Every entry is a credit to one account... |
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
Flowable<Boolean> validate(String token) { | |
final Map<String, String> parameters = [secret: key(SECRET), response: token] | |
final HttpRequest<Map<String, String>> request = HttpRequest.POST(SITE_VERIFY_ENDPOINT, parameters).contentType(MediaType.APPLICATION_FORM_URLENCODED) | |
final Flowable<HttpResponse<Map<String, ?>>> exchange = http.exchange(request, Map.class) as Flowable<HttpResponse<Map<String, ?>>> | |
return exchange.map(response -> { | |
final Map<String, ?> body = response.body() | |
if (body == null) { | |
return false | |
} | |
return body.getOrDefault(KEY_SUCCESS, false) |
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": 000001, | |
"institution": "AU", | |
"module": "agency_information_form", | |
"title": "Agency information", | |
"components": [ | |
{ | |
"title": "Agency code", | |
"placeholder_text": "Agency code, please make sure the code is unique", | |
"input_type": "FREE_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 au.edu.uac.apply.services | |
import au.edu.uac.agentportal.model.channel.InstitutionChannel | |
import grails.gorm.transactions.Transactional | |
import groovy.sql.GroovyRowResult | |
import groovy.sql.Sql | |
import java.util.concurrent.ConcurrentHashMap | |
import static grails.async.Promises.task |
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
import java.time.Duration | |
class AppMain { | |
static final def day_hours = [ | |
[h:7, m:20], | |
[h:4, m:35], | |
[h:2, m:15], | |
[h:4, m:50], | |
[h:5, m:55], |
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":"UW", | |
"name":"University of Wollongong", | |
"locationGroups":[ | |
{ | |
"id":21, | |
"description":"Wollongong Campus", | |
"institution":"UW", | |
"locations":[ | |
{ |
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":"UW", | |
"name":"University of Wollongong", | |
"locationGroups":[ | |
{ | |
"id":21, | |
"description":"Wollongong Campus", | |
"institution":"UW", | |
"locations":[ | |
{ |
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
{ | |
"email_address": "[email protected]", | |
"recommendations_input_hash": "c108424f556b8f3e53630cda40d6b2637311ed8c47f40071715e464cf28a68d7", | |
"eligibility_input_hash": "89e44503fd455c990da10066637f9c3069bdeb69b9afb8ad4c1640ea0603fb8e", | |
"status": "INDETERMINATE", | |
"subjects": [ | |
{ | |
"subject_num": 15020, | |
"name": "Ancient History", | |
"code": "AHIST", |
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
import io.netty.bootstrap.ServerBootstrap | |
import io.netty.channel.EventLoopGroup | |
import io.netty.channel.epoll.Epoll | |
import io.netty.channel.epoll.EpollEventLoopGroup | |
import io.netty.channel.epoll.EpollServerSocketChannel | |
import io.netty.channel.kqueue.KQueue | |
import io.netty.channel.kqueue.KQueueEventLoopGroup | |
import io.netty.channel.kqueue.KQueueServerSocketChannel | |
import io.netty.channel.nio.NioEventLoopGroup | |
import io.netty.channel.socket.ServerSocketChannel |
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
{ | |
"email_address": "[email protected]", | |
"recommendations_input_hash": null, | |
"eligibility_input_hash": "eec27cb2d30ec8f6b2f9c853c6bb39ec8560378646eefd0e1e641e86345ac3eb", | |
"eligible": false, | |
"subjects": [ | |
{ | |
"subject_num": 15030, | |
"name": "Biology", | |
"code": "BIOLO", |
NewerOlder