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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="file:///C:/Ongoing%20Projects/IssueTracker/cssLoginPage.css"> | |
| <title>Issue Tracker</title> | |
| </head> | |
| <body> | |
| <h1>Welcome to Issue Tracker</h1> |
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
| import java.net._ | |
| import java.io._ | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.io.File | |
| import java.io.{ BufferedReader, InputStreamReader, File, FileInputStream, InputStream, OutputStream, FileOutputStream, FileReader } | |
| import javax.swing.ImageIcon; | |
| import scala.util.parsing.combinator.{ Parsers, RegexParsers } | |
| import scala.util.parsing.input._ |
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
| import java.net._ | |
| import java.io._ | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.io.File | |
| import java.io.{ BufferedReader, InputStreamReader, File, FileInputStream, InputStream, OutputStream, FileOutputStream, FileReader } | |
| import javax.swing.ImageIcon; | |
| class Request(method: String, version: String, pathway: String) { |
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
| object Listen { | |
| import java.net._ | |
| import java.io._ | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| def Listen(): Unit = { | |
| val doorbell = new Thread(new Runnable { |
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
| object Listen { | |
| import java.net._ | |
| import java.io._ | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| def Listen(): Unit = { | |
| val doorbell = new Thread(new Runnable { |
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
| import java.io.{BufferedReader, InputStreamReader} | |
| import scala.collection.mutable.Map | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("Welcome. What key shall we use?") | |
| val key = readLine() | |
| //val key2 = key + \n | |
| println("And what shall it unlock?") | |
| val unlock = readLine() | |
| val treasureMap = Map[String, String]() |
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
| def removeAt[A](n: Int, input: List[A]): (List[A], A) = { | |
| def removeAtHelper(input: List[A], p: Int = n): List[A] = input match{ | |
| case Nil => Nil | |
| case h :: t => if(p > 0) h :: removeAtHelper(t, p - 1) else t | |
| } | |
| def symbol(input: List[A], q: Int): Option[A] = input match { | |
| case Nil => Nothing | |
| case h :: t => if(q > 0) symbol(t, q - 1) else t.headOption.getOrElse(Nothing) | |
| } | |
| (removeAtHelper(input), symbol(input)) |
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
| def encodeDirect[A](input: List[A]): List(Int, A) = input match { | |
| case Nil => Nil | |
| case h :: t => collapse(collate(input)) | |
| } | |
| def collate(input: List[A]): List[A] = input match { | |
| case Nil => Nil | |
| case h :: t => if(t.headOption.map(_==h).getThisOr(false)) h :: collate(t) else list(h) :: collate(t) | |
| } |
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
| def encode[A](input: List[A]): List[(Int, A)] = input match { | |
| case Nil => Nil | |
| case h :: t => (pack(input)).map(shorten) | |
| } | |
| def shorten[A](input: List[A]): List[(Int, A)] = input match { | |
| case Nil => Nil | |
| case h :: t => (input.length, h) | |
| } |
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
| def pack[A](input: List[A]): List[List[A]] = input match { | |
| case Nil => Nil | |
| case h :: t => input.filter(_ == input.head) :: pack(packHelper(input.tail)) | |
| } | |
| def packHelper[A](input: List[A]): List[A] = input match { | |
| case Nil => Nil | |
| case h :: t => input.filterNot(_ == input.head) | |
| } |