README
author Christian Urban <urbanc@in.tum.de>
Fri, 17 Aug 2018 11:58:55 +0100
changeset 191 f78b18c4c886
parent 178 fdf77ee57cdc
child 194 060b081523de
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
191
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     1
given two lists, is one a sublist of the other except one
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     2
element
167
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
     3
191
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     4
check Graham's Haskell book
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     5
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     6
five-in-a-row as a spiral
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     7
(Tic-Tac-Toe on steriods or Go for the weak mind)
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     8
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
     9
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    10
----------
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    11
CokeBottle cokeBottle = new CokeBottle();
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    12
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    13
joke from...
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    14
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    15
https://www.youtube.com/watch?v=9e_oEE72d3U
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 178
diff changeset
    16
----------
167
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
    17
CW8A
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
    18
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
    19
(1) There is an ontime submission (with full marks) by
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
    20
    assignment20178-fahim1997, but no late submission?
117
d3bd321ee7cc updated
Christian Urban <urbanc@in.tum.de>
parents: 116
diff changeset
    21
116
Christian Urban <urbanc@in.tum.de>
parents: 113
diff changeset
    22
178
fdf77ee57cdc updated
Christian Urban <urbanc@in.tum.de>
parents: 167
diff changeset
    23
---------------
fdf77ee57cdc updated
Christian Urban <urbanc@in.tum.de>
parents: 167
diff changeset
    24
Hepec...generating static pages
fdf77ee57cdc updated
Christian Urban <urbanc@in.tum.de>
parents: 167
diff changeset
    25
https://sake92.github.io/hepek/quick-start.html
113
b8ba08170d79 hook test
Christian Urban <urbanc@in.tum.de>
parents: 112
diff changeset
    26
167
349d706586ef updated
Christian Urban <urbanc@in.tum.de>
parents: 117
diff changeset
    27
==================================
78
85f2f75abeeb updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
Calling ediff from the command line
85f2f75abeeb updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
85f2f75abeeb updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
85f2f75abeeb updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
emacs --eval "(ediff-files \"k1502472/drumb.scala\" \"k1502752/drumb.scala\")"
85
fd3f8581ce85 updated
Christian Urban <urbanc@in.tum.de>
parents: 78
diff changeset
    32
fd3f8581ce85 updated
Christian Urban <urbanc@in.tum.de>
parents: 78
diff changeset
    33
fd3f8581ce85 updated
Christian Urban <urbanc@in.tum.de>
parents: 78
diff changeset
    34
deleting comments from scala files
fd3f8581ce85 updated
Christian Urban <urbanc@in.tum.de>
parents: 78
diff changeset
    35
89
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    36
find . -name '*.scala' -print0 | xargs -0 perl -n -p -0 -i.bak -e 's%/\*([^*].*?)?\*/%%gs;s%^([^\"\n\r]*(\"[^\"\n\r]*\"[^\"\n\r]*?)*?)//([^*\n\r].*)?$%$1%gm'
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    37
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    38
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    39
find . -name '*.scala' -print0 | sed -i.2 's|def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|//def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|g'
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    40
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    41
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    42
LC_ALL=C sed -i.2 -- 's|def ordered_moves(dim: Int, path: Path, x: Pos): List\[Pos\] = \.\.|//def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|g' k*/knight3.scala.bak
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    43
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    44
LC_ALL=C sed -i.2 -- 's|def first_closed_tour_heuristic(dim: Int, path: Path): Option\[Path\] = \.\.\.|//def first_closed_tour_heuristic(dim: Int, path: Path): Option[Path] = ...|g' k*/knight3.scala.bak
fac25de665d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 85
diff changeset
    45
90
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    46
LC_ALL=C sed -i.2 -- 's|def first_tour_heuristic(dim: Int, path: Path): Option\[Path\] = \.\.\.|//def first_tour_heuristic(dim: Int, path: Path): Option[Path] = ...|g' k*/knight3.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    47
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    48
LC_ALL=C sed -i.2 -- 's|def nullable (r: Rexp) : Boolean = \.\.\.|//def nullable (r: Rexp) : Boolean = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    49
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    50
LC_ALL=C sed -i.2 -- 's|def der (c: Char, r: Rexp) : Rexp = \.\.\.|//def der (c: Char, r: Rexp) : Rexp = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    51
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    52
LC_ALL=C sed -i.2 -- 's|def simp(r: Rexp) : Rexp = \.\.\.|//def simp(r: Rexp) : Rexp = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    53
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    54
LC_ALL=C sed -i.2 -- 's|def ders (s: List[Char], r: Rexp) : Rexp = \.\.\.|//def ders (s: List[Char], r: Rexp) : Rexp = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    55
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    56
LC_ALL=C sed -i.2 -- 's|def matcher(r: Rexp, s: String): Boolean = \.\.\.|//def matcher(r: Rexp, s: String): Boolean = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    57
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    58
LC_ALL=C sed -i.2 -- 's|def replace(r: Rexp, s1: String, s2: String): String = \.\.\.|//def replace(r: Rexp, s1: String, s2: String): String = ...|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    59
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    60
LC_ALL=C sed -i.2 -- 's|println(matcher(EVIL,|//println(matcher(EVIL,|g' k*/re.scala.bak
d77af4aca939 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 89
diff changeset
    61
99
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    62
LC_ALL=C sed -i.2 -- 's|for (i <- 1 to 5000001 by 500000)|for (i <- 1 to 11 by 10)|g' k*/re.scala.bak
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    63
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    64
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    65
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    66
ontime:
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    67
k1502660
e10a9b2fd35a updated
Christian Urban <urbanc@in.tum.de>
parents: 90
diff changeset
    68
k1502705
111
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    69
k1502679
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    70
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    71
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    72
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    73
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    74
-----------------------
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    75
"Mounty, Jonathan" jonathan.mounty@kcl.ac.uk
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    76
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    77
Task 1: Ok  (1%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    78
Task 2: Ok  (2%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    79
Task 3: OK  (1%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    80
Task 4: Ok  (1%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    81
Task 5: Ok  (1%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    82
Task 6: Not implemented (-2%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    83
Task 7: OK  (1%)
cd6b9fe4bce5 updated
Christian Urban <urbanc@in.tum.de>
parents: 99
diff changeset
    84
Task 8: Not ok (-1%)
112
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    85
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    86
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    87
----------------------
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    88
Sharpe, Simone simone.sharpe@kcl.ac.uk
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    89
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    90
Task 1: Ok  (1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    91
Task 2: Ok  (2%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    92
Task 3: OK  (1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    93
Task 4: Ok  (1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    94
Task 5: Not implemented (-1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    95
Task 6: Not implemented (-2%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    96
Task 7: Not implemented (-1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    97
Task 8: Not implemented (-1%)
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    98
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
    99
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
   100
--------------------------------
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
   101
Hasebe, Nina,   nina.hasebe@kcl.ac.uk
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
   102
3252fd0c0dd2 updated
Christian Urban <urbanc@in.tum.de>
parents: 111
diff changeset
   103
All fine except task 6. (-2%)