Skip to content

Instantly share code, notes, and snippets.

@mgladdish
mgladdish / NestingMultipleChoiceV1.scala
Created June 12, 2018 12:38
First draft of a nesting multiple choice trait
trait NestingMultipleChoice[C <: Messages[C]] extends WidgetGroup {
def nestedWidgets: Map[String, Widget]
def nestingMultipleChoiceWidget: MultipleChoice[C]
override lazy val widgets: Seq[Widget] = nestingMultpleChoiceWidget +: nestedWidgets.values.toSeq
}
@mgladdish
mgladdish / Job.java
Created October 10, 2014 06:59
Concurrent Distinct Job Executor
package uk.co.odum.sky;
public class Job {
private String jobName;
public Job(String jobName) {
this.jobName = jobName;
}