diff --git a/Makefile b/Makefile deleted file mode 100644 index bfe14e4..0000000 --- a/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -index: pages/index.md styles/index.css - mkdir -p build - cp styles/index.css build/index.css - discount-theme pages/index.md \ - -o build/index.html \ - -t templates/index.theme diff --git a/README.md b/README.md index 4f0ef32..7010e76 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,3 @@ # AfKollektor.de AfKollektor.de git repository. This is where the magic happens. - -## Building - -- You will need the `discount` program for markdown generation. It should be available in your distros package db. -- For building the index file, run `make index` (this will create index.html in `build/`). -- The build server will run `make` on every push and copy everything from `build/` to the webroot of afkollektor.de. diff --git a/styles/index.css b/index.css similarity index 86% rename from styles/index.css rename to index.css index 3619d44..de2ff17 100644 --- a/styles/index.css +++ b/index.css @@ -1,6 +1,6 @@ body { - font-family: Helvetica, Arial, sans-serif; - line-height: 1.5em; + font-family: 'Source Sans Pro', Helvetica, sans-serif; + line-height: 1.4em; background-color: #181818; color: #f8f8f8; } diff --git a/index.html b/index.html new file mode 100644 index 0000000..8588299 --- /dev/null +++ b/index.html @@ -0,0 +1,122 @@ + + + + + Der AfKollektor. + + + +
+

Der AfKollektor

+

3. Fachsemester

+ + +

Grundlagen der Wahrscheinlichkeitsrechnung und Statistik für Informatiker (GWSI)

+
+

ILIAS

+
+ + +

Rechnerorganisation (TI2)

+
+

TI Homepage

+
+ + +

Betriebssysteme (OS)

+
+

ILIAS

+
+ + +

Theoretische Grundlagen der Informatik (TGI)

+
+

TGI Homepage des ITI

+
+ +

Klausurenübersicht

+
+

Siehe auch: KitInfo Timers

+
+ +

Mitschriebe

+

Mitschriebe von Informatik-Vorlesungen sind unter Lukes Github verfügbar. Mitarbeit immer gerne gesehen.

+
+ + + diff --git a/k.js b/k.js new file mode 100644 index 0000000..068460e --- /dev/null +++ b/k.js @@ -0,0 +1,104 @@ +(function () { + /* + * A map of key codes so that you dont have to use them directly. + */ + var k = { + UP: 38, + DOWN: 40, + LEFT: 37, + RIGHT: 39, + B: 66, + A: 65 + }; + + /* + * These are the keys of the konami code (according to wikipedia). + */ + var konamiCode = [ k.UP, k.UP, k.DOWN, k.DOWN, k.LEFT, k.RIGHT, k.LEFT, k.RIGHT, k.B, k.A ]; + + /* + * In case someone enters the konami code, unleash the seven hells. + */ + onKeyStreak(konamiCode, unleashTheSevenHells); + + /* + * Keep a record of keystrokes and call a function when a certain streak is entered. + */ + function onKeyStreak (streak, callback) { + var keysPressed = []; + var eventToListenFor = 'keydown'; + + var listener = function (e) { + keysPressed.push(e.keyCode); + + if (isSuffix(streak, keysPressed)) { + window.removeEventListener(eventToListenFor, listener); + callback(); + } + }; + + window.addEventListener(eventToListenFor, listener); + } + + /* + * Check whether listA is a suffix of listB. + */ + function isSuffix (listA, listB) { + if (listA.length > listB.length) { + return false; + } + + var index = 0; + + for (; index < listA.length; index++) { + if (listA[index] !== listB[listB.length - listA.length + index]) { + console.log(index); + return false; + } + } + + return true; + } + + /* + * Commit some chaos and make sure to do so at the next frame too. + */ + function unleashTheSevenHells () { + angery(); + + window.requestAnimationFrame(unleashTheSevenHells); + } + + /* + * Be an angry website. + */ + function angery () { + // This returns a list of all elements that match the CSS selector * (which are all). + var allElements = document.querySelectorAll('*'); + + // Since querySelectorAll doesn't return an array, but something zero-indexed that has a length property, we can use Array's forEach here. + // Welcome to the world of duck typing. + Array.prototype.forEach.call(allElements, makeItPretty); + } + + /* + * Makes an element pretty. + */ + function makeItPretty (element) { + element.style.color = randomColour(); + element.style.backgroundColor = randomColour(); + element.style.textAlign = randomChoice([ 'left', 'center', 'right' ]); + } + + function randomChoice (choices) { + return choices[Math.floor(Math.random() * choices.length)]; + } + + function randomColour () { + var r = Math.floor(Math.random() * 256); + var g = Math.floor(Math.random() * 256); + var b = Math.floor(Math.random() * 256); + + return 'rgb(' + r + ',' + g + ',' + b + ')'; + } +})(); diff --git a/pages/index.md b/pages/index.md deleted file mode 100644 index 1df7b0b..0000000 --- a/pages/index.md +++ /dev/null @@ -1,76 +0,0 @@ -# Der AfKollektor - -## 3. Fachsemester - -- [Grundlagen der Wahrscheinlichkeitsrechnung und Statistik für Informatiker / GWSI](#Grundlagen-der-Wahrscheinlichkeitsrechnung-und-Statistik-f-c3--bc-r-Informatiker--2f--GWSI) -- [Rechnerorganisation / TI2](#Rechnerorganisation--2f--TI2) -- [Betriebssysteme / OS](#Betriebssysteme--2f--OS) -- [Theoretische Grundlagen der Informatik / TGI](#Theoretische-Grundlagen-der-Informatik--2f--TGI) - -### Grundlagen der Wahrscheinlichkeitsrechnung und Statistik für Informatiker / GWSI - -> [ILIAS](https://ilias.studium.kit.edu/ilias.php?ref_id=736987&cmdClass=ilrepositorygui&cmdNode=75&baseClass=ilrepositorygui) - -- Modulprüfung: Nur Klausur -- Übungsbetrieb: - - Übungsblätter: Wöchentlich, freiwillig, Besprechung in Übung - - Übungsschein: Keiner -- Klausur: 12. Februar 2018, erlaubt: - - Skript, Folien - - "Alle Taschenrechner [...], die nicht vernetzbar sind." - -### Rechnerorganisation / TI2 - -> [TI Homepage](http://ti.ira.uka.de/TI-2/) - -- Modulprüfung: Nur Klausur -- Übungsbetrieb: - - Übungsblätter: Wöchentlich, freiwillig, >50% d. Pkt. benötigt für Übungsschein - - Abgabe: Infobau (50.34), Briefkästen im Untergeschoss - - Übungsschein: 2 Extrapunkte bei Bestehen der Klausur (zusätzlich zu DT/TI1) -- Klausur: 23. Februar 2018 - -### Betriebssysteme / OS - -> [ILIAS](https://ilias.studium.kit.edu/ilias.php?ref_id=710820&cmdClass=ilrepositorygui&cmdNode=75&baseClass=ilrepositorygui) - -- Modulprüfung: Klausur + Schein -- Übungsbetrieb: - - Übungsblätter: Wöchentlich, freiwillig - - Bearbeitung & Abgabe: ILIAS - - Tutoriumsblätter: Werden im Tutorium bearbeitet - - Übungsschein: Durch Scheinklausur -- Klausur: 02. März 2018 -- Scheinklausur: 22. März 2018 - -### Theoretische Grundlagen der Informatik / TGI - -> [TGI Homepage des ITI](https://i11www.iti.kit.edu/teaching/winter2017/tgi/index) - -- Modulprüfung: Nur Klausur -- Übungsbetrieb: - - Übungsblätter: Alle zwei Wochen, freiwillig, Bonuspunkte: - - mind. 25%: 1 Bonuspunkt - - mind. 50%: 2 Bonuspunkte - - mind. 75%: 3 Bonuspunkte - - Abgabe: Infobau (50.34), Briefkästen im Untergeschoss - - Übungsschein: Keiner -- Klausur: 13. März 2018 - -## Klausurkalender - -Montag | Dienstag | Mittwoch | Donnerstag | Freitag | Samstag | Sonntag ----|---|---|---|---|---|--- - | | | _01._ (Februar)
  | _02._
  | _03._
  | _04._
  - _05._
  | _06._
  | _07._
  | _08._
  | _09._
  | _10._
  | _11._ Ende der
Vorlesungen - _12._
**GWSI** | _13._
  | _14._
  | _15._
  | _16._
  | _17._
  | _18._
  - _19._
  | _20._
  | _21._
  | _22._
  | _23._
**TI** | _24._
  | _25._
  - _26._
  | _27._
  | _28._
  | _01._ (März)
  | _02._
**OS** | _03._
  | _04._
  - _05._
  | _06._
  | _07._
  | _08._
  | _09._
  | _10._
  | _11._
  - _12._
  | _13._
**TGI** | _14._
  | _15._
  | _16._
  | _17._
  | _18._
  - _19._
  | _20._
  | _21._
  | _22._ **OS**
**Schein** | _23._
  | _24._
  | _25._
  - _26._
  | _27._
**LA** | _28._
  | _29._
  | _30._
  | _31._
  | - -## Mitschriebe - -Mitschriebe von Informatik-Vorlesungen sind unter [Lukes Github](https://github.com/luk3b/kit-lecture-notes) verfügbar. Mitarbeit immer gerne gesehen! diff --git a/templates/index.theme b/templates/index.theme deleted file mode 100644 index 819251f..0000000 --- a/templates/index.theme +++ /dev/null @@ -1,13 +0,0 @@ - - - - - Der AfKollektor. - - - -
- -
- -