author | Christian Urban <urbanc@in.tum.de> |
Wed, 04 Jul 2018 14:48:05 +0100 | |
changeset 188 | 937c995b047a |
parent 178 | fdf77ee57cdc |
child 191 | f78b18c4c886 |
permissions | -rw-r--r-- |
167 | 1 |
|
2 |
CW8A |
|
3 |
||
4 |
(1) There is an ontime submission (with full marks) by |
|
5 |
assignment20178-fahim1997, but no late submission? |
|
117 | 6 |
|
116 | 7 |
|
178 | 8 |
--------------- |
9 |
Hepec...generating static pages |
|
10 |
https://sake92.github.io/hepek/quick-start.html |
|
113 | 11 |
|
167 | 12 |
================================== |
78 | 13 |
Calling ediff from the command line |
14 |
||
15 |
||
16 |
emacs --eval "(ediff-files \"k1502472/drumb.scala\" \"k1502752/drumb.scala\")" |
|
85 | 17 |
|
18 |
||
19 |
deleting comments from scala files |
|
20 |
||
89
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
21 |
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
|
22 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
23 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
24 |
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
|
25 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
26 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
27 |
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
|
28 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
29 |
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
|
30 |
|
90
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
31 |
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
|
32 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
33 |
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
|
34 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
35 |
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
|
36 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
37 |
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
|
38 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
39 |
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
|
40 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
41 |
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
|
42 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
43 |
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
|
44 |
|
d77af4aca939
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
89
diff
changeset
|
45 |
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
|
46 |
|
99 | 47 |
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 |
48 |
||
49 |
||
50 |
||
51 |
ontime: |
|
52 |
k1502660 |
|
53 |
k1502705 |
|
111 | 54 |
k1502679 |
55 |
||
56 |
||
57 |
||
58 |
||
59 |
----------------------- |
|
60 |
"Mounty, Jonathan" jonathan.mounty@kcl.ac.uk |
|
61 |
||
62 |
Task 1: Ok (1%) |
|
63 |
Task 2: Ok (2%) |
|
64 |
Task 3: OK (1%) |
|
65 |
Task 4: Ok (1%) |
|
66 |
Task 5: Ok (1%) |
|
67 |
Task 6: Not implemented (-2%) |
|
68 |
Task 7: OK (1%) |
|
69 |
Task 8: Not ok (-1%) |
|
112 | 70 |
|
71 |
||
72 |
---------------------- |
|
73 |
Sharpe, Simone simone.sharpe@kcl.ac.uk |
|
74 |
||
75 |
Task 1: Ok (1%) |
|
76 |
Task 2: Ok (2%) |
|
77 |
Task 3: OK (1%) |
|
78 |
Task 4: Ok (1%) |
|
79 |
Task 5: Not implemented (-1%) |
|
80 |
Task 6: Not implemented (-2%) |
|
81 |
Task 7: Not implemented (-1%) |
|
82 |
Task 8: Not implemented (-1%) |
|
83 |
||
84 |
||
85 |
-------------------------------- |
|
86 |
Hasebe, Nina, nina.hasebe@kcl.ac.uk |
|
87 |
||
88 |
All fine except task 6. (-2%) |