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-- |
191 | 1 |
given two lists, is one a sublist of the other except one |
2 |
element |
|
167 | 3 |
|
191 | 4 |
check Graham's Haskell book |
5 |
||
6 |
five-in-a-row as a spiral |
|
7 |
(Tic-Tac-Toe on steriods or Go for the weak mind) |
|
8 |
||
9 |
||
10 |
---------- |
|
11 |
CokeBottle cokeBottle = new CokeBottle(); |
|
12 |
||
13 |
joke from... |
|
14 |
||
15 |
https://www.youtube.com/watch?v=9e_oEE72d3U |
|
16 |
---------- |
|
167 | 17 |
CW8A |
18 |
||
19 |
(1) There is an ontime submission (with full marks) by |
|
20 |
assignment20178-fahim1997, but no late submission? |
|
117 | 21 |
|
116 | 22 |
|
178 | 23 |
--------------- |
24 |
Hepec...generating static pages |
|
25 |
https://sake92.github.io/hepek/quick-start.html |
|
113 | 26 |
|
167 | 27 |
================================== |
78 | 28 |
Calling ediff from the command line |
29 |
||
30 |
||
31 |
emacs --eval "(ediff-files \"k1502472/drumb.scala\" \"k1502752/drumb.scala\")" |
|
85 | 32 |
|
33 |
||
34 |
deleting comments from scala files |
|
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 | 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 |
63 |
||
64 |
||
65 |
||
66 |
ontime: |
|
67 |
k1502660 |
|
68 |
k1502705 |
|
111 | 69 |
k1502679 |
70 |
||
71 |
||
72 |
||
73 |
||
74 |
----------------------- |
|
75 |
"Mounty, Jonathan" jonathan.mounty@kcl.ac.uk |
|
76 |
||
77 |
Task 1: Ok (1%) |
|
78 |
Task 2: Ok (2%) |
|
79 |
Task 3: OK (1%) |
|
80 |
Task 4: Ok (1%) |
|
81 |
Task 5: Ok (1%) |
|
82 |
Task 6: Not implemented (-2%) |
|
83 |
Task 7: OK (1%) |
|
84 |
Task 8: Not ok (-1%) |
|
112 | 85 |
|
86 |
||
87 |
---------------------- |
|
88 |
Sharpe, Simone simone.sharpe@kcl.ac.uk |
|
89 |
||
90 |
Task 1: Ok (1%) |
|
91 |
Task 2: Ok (2%) |
|
92 |
Task 3: OK (1%) |
|
93 |
Task 4: Ok (1%) |
|
94 |
Task 5: Not implemented (-1%) |
|
95 |
Task 6: Not implemented (-2%) |
|
96 |
Task 7: Not implemented (-1%) |
|
97 |
Task 8: Not implemented (-1%) |
|
98 |
||
99 |
||
100 |
-------------------------------- |
|
101 |
Hasebe, Nina, nina.hasebe@kcl.ac.uk |
|
102 |
||
103 |
All fine except task 6. (-2%) |