This file contains hidden or 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 sk.upjs.ics.novotnyr.taskr; | |
import java.util.Date; | |
public class Task { | |
private Long id; | |
private String name; | |
private Date deadline; |
This file contains hidden or 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 sk.upjs.ics.novotnyr.taskr; | |
public class Task { | |
private Long id; | |
private String name; | |
private boolean isDone; | |
public Long getId() { |
This file contains hidden or 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 sk.upjs.ics.novotnyr.taskr; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; | |
public class TaskDao { | |
public static final TaskDao INSTANCE = new TaskDao(); | |
private List<Task> tasks = new LinkedList<Task>(); |
This file contains hidden or 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
module Main where | |
import Debug.Trace | |
threshold = 0.5 | |
learningRate = 0.1 | |
weights = [0, 0, 0] :: [Double] | |
trainingSet = [ | |
([1, 0, 0], 1), | |
([1, 0, 1], 1), |
This file contains hidden or 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
@Grab(group='org.codehaus.jackson', module='jackson-mapper-asl', version='1.9.13') | |
@Controller | |
@RequestMapping("/chocolates") | |
class ChocolateController { | |
def chocolates = [ | |
[ id: 1, name: "Lindt", percentage: "70%" ], | |
[ id: 2, name: "Liedl", percentage: "15%" ] | |
] |
NewerOlder