From c8deb3dace83653acb19b44310dad73019463135 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 30 Aug 2016 18:45:41 +0200 Subject: [PATCH 01/24] fix autoprefixer --- Rules | 1 + 1 file changed, 1 insertion(+) diff --git a/Rules b/Rules index b894eac..cad8089 100644 --- a/Rules +++ b/Rules @@ -140,6 +140,7 @@ ignore '/assets/stylesheets/includes/**/*' compile '/assets/stylesheets/**/*.scss' do filter :sass, syntax: :scss + filter :autoprefixer end passthrough '/assets/images/*.{png}' From 3b265aa28d52df6f517c94d3afab522b55e441bb Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Tue, 30 Aug 2016 22:11:33 +0200 Subject: [PATCH 02/24] fix autoprefixing --- Rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rules b/Rules index cad8089..cd47a6d 100644 --- a/Rules +++ b/Rules @@ -4,6 +4,9 @@ require 'json' require 'icalendar' +# Please @NoctuaNivalis +require 'socket' + # # # PREPROCESS @@ -140,7 +143,7 @@ ignore '/assets/stylesheets/includes/**/*' compile '/assets/stylesheets/**/*.scss' do filter :sass, syntax: :scss - filter :autoprefixer + filter :autoprefixer if Socket.gethostname == 'abysm' end passthrough '/assets/images/*.{png}' From 923851a697c2f9d3a3b9b2ec931258abfa0648b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Wed, 21 Sep 2016 17:53:32 +0200 Subject: [PATCH 03/24] idk? --- Rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rules b/Rules index bb85efe..0c8c881 100644 --- a/Rules +++ b/Rules @@ -28,11 +28,13 @@ preprocess do academic_years.each do |year| @items.create( '', - { academic_year: year }, + { academic_year: year, title: "Blog" }, "/archives/#{year}-#{year + 1}.html", binary: false ) end + + academic_years_items[academic_years.max][:navigable] = true end # From 91b64afaa10dccab6c17c3b20a9e4e16c7d82270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Thu, 22 Sep 2016 21:13:46 +0200 Subject: [PATCH 04/24] blog enzo --- .../assets/stylesheets/includes/blogpost.scss | 11 +++++ content/posts/16-17/moar-review.md | 7 +++ content/posts/16-17/review-c.md | 1 + layouts/archive_page.erb | 47 ++++++++++++------- lib/helpers/archives.rb | 2 +- 5 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 content/posts/16-17/moar-review.md diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index bd7ee28..a23d397 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -3,3 +3,14 @@ font-size: 4em; } } + +.padbox{ + margin-bottom:10px; +} + +.bolder a{ + color:#565C5E; + font-weight: bold; + font-size: 20pt; + font-family: 'Avenir'; +} diff --git a/content/posts/16-17/moar-review.md b/content/posts/16-17/moar-review.md new file mode 100644 index 0000000..bbdd7d5 --- /dev/null +++ b/content/posts/16-17/moar-review.md @@ -0,0 +1,7 @@ +--- +title: moar review +description: blub +banner: https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg +created_at: 24-10-2016 +--- +blub diff --git a/content/posts/16-17/review-c.md b/content/posts/16-17/review-c.md index 7bdbd4d..ed38a66 100644 --- a/content/posts/16-17/review-c.md +++ b/content/posts/16-17/review-c.md @@ -1,4 +1,5 @@ --- +banner: http://dailydropcap.com/images/C-9.jpg title: C review description: We hebben even wat dingen in C geschreven, en dit zijn onze meningen created_at: 23-10-2016 diff --git a/layouts/archive_page.erb b/layouts/archive_page.erb index 7b8cfc2..54a28a5 100644 --- a/layouts/archive_page.erb +++ b/layouts/archive_page.erb @@ -1,19 +1,32 @@ -<% posts_in_year(item[:academic_year]).each do |post| %> - - - -<% end %> +
+
    + <% academic_years_items.each do |year, item| %> +
  • + <%= link_to pretty_year(year), item %> +
  • + <% end %> +
+
+ diff --git a/lib/helpers/archives.rb b/lib/helpers/archives.rb index f11d29f..0af010a 100644 --- a/lib/helpers/archives.rb +++ b/lib/helpers/archives.rb @@ -11,7 +11,7 @@ module ArchiveHelper end def academic_years_items - academic_years.map { |y| [y, items["/archives/#{y}-#{y + 1}.html"]] }.to_h + academic_years.to_a.reverse.map { |y| [y, items["/archives/#{y}-#{y + 1}.html"]] }.to_h end def pretty_year(year) From de0b47e4dfebd4922d78d92a2168f9ee7400d94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Thu, 22 Sep 2016 21:23:40 +0200 Subject: [PATCH 05/24] bibi archive --- Rules | 4 ++-- content/archives.erb | 11 ----------- lib/helpers/archives.rb | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 content/archives.erb diff --git a/Rules b/Rules index 0c8c881..f94b07b 100644 --- a/Rules +++ b/Rules @@ -29,7 +29,7 @@ preprocess do @items.create( '', { academic_year: year, title: "Blog" }, - "/archives/#{year}-#{year + 1}.html", + "/blog/#{year}-#{year + 1}.html", binary: false ) end @@ -50,7 +50,7 @@ end # # ARCHIVES # -compile '/archives/*' do +compile '/blog/*' do layout '/archive_page.*' layout '/generic.*' layout '/default.*' diff --git a/content/archives.erb b/content/archives.erb deleted file mode 100644 index de70590..0000000 --- a/content/archives.erb +++ /dev/null @@ -1,11 +0,0 @@ ---- -navigable: true -title: Archieven ---- -
    - <% academic_years_items.each do |year, item| %> -
  • - <%= link_to pretty_year(year), item %> -
  • - <% end %> -
diff --git a/lib/helpers/archives.rb b/lib/helpers/archives.rb index 0af010a..fc4ed24 100644 --- a/lib/helpers/archives.rb +++ b/lib/helpers/archives.rb @@ -11,7 +11,7 @@ module ArchiveHelper end def academic_years_items - academic_years.to_a.reverse.map { |y| [y, items["/archives/#{y}-#{y + 1}.html"]] }.to_h + academic_years.to_a.reverse.map { |y| [y, items["/blog/#{y}-#{y + 1}.html"]] }.to_h end def pretty_year(year) From 252d796993226e3c7707e9dc9b153f9609103be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Thu, 22 Sep 2016 21:28:01 +0200 Subject: [PATCH 06/24] fix img --- content/posts/16-17/review-c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/16-17/review-c.md b/content/posts/16-17/review-c.md index ed38a66..aa9b25f 100644 --- a/content/posts/16-17/review-c.md +++ b/content/posts/16-17/review-c.md @@ -1,5 +1,5 @@ --- -banner: http://dailydropcap.com/images/C-9.jpg +banner: https://thumbs.dreamstime.com/z/letter-c-cat-4240140.jpg title: C review description: We hebben even wat dingen in C geschreven, en dit zijn onze meningen created_at: 23-10-2016 From c219735145cb3783dbb2f7d8d24cc52afeec55a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Fri, 23 Sep 2016 18:14:18 +0200 Subject: [PATCH 07/24] fix info links --- content/index.erb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/content/index.erb b/content/index.erb index 512a76c..c340f11 100644 --- a/content/index.erb +++ b/content/index.erb @@ -20,25 +20,33 @@
From 92f7b845d0ebadde0b937e7d37810614b8435e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Tue, 27 Sep 2016 23:17:38 +0200 Subject: [PATCH 08/24] catify home page --- content/index.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/index.erb b/content/index.erb index c340f11..149c909 100644 --- a/content/index.erb +++ b/content/index.erb @@ -15,7 +15,7 @@
- IDK LOL +
From 7cc771d8bec5fb9b0f4e5e47f4e32478eeab3adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Mon, 3 Oct 2016 14:19:19 +0200 Subject: [PATCH 09/24] fix slash --- content/events/16-17/datacenter.md | 14 ++++++++++++++ content/index.erb | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 content/events/16-17/datacenter.md diff --git a/content/events/16-17/datacenter.md b/content/events/16-17/datacenter.md new file mode 100644 index 0000000..8ba7cc1 --- /dev/null +++ b/content/events/16-17/datacenter.md @@ -0,0 +1,14 @@ +--- +title: Bezoek datacenter +banner: http://www.dcd-converged.com/wp-content/uploads/2016/08/datacenter.jpg +description: Zeus bezoekt het datacenter en de supercomputer in S10! +created_at: 3-10-2016 +time: 10-10-2016 +location: hpc gent +locationlink: Sterre,Ghent Belgium +--- + +Zeus WPI organiseert in samenwerking met de medewerkers van de HPC een rondleiding in de S10. +Hier bevindt zich het datacenter en sinds enkele jaren de supercomputer. +Een echte must-see voor elke informaticus. +Inschrijven is verplicht en kunt u doen op https://scontent.xx.fbcdn.net/v/t1.0-9/13903431_1277596932251344_3927837466166230371_n.jpg?oh=bdda0d18a635c49893a097fba6aa99b9&oe=587C7886 diff --git a/content/index.erb b/content/index.erb index 149c909..0f81bb8 100644 --- a/content/index.erb +++ b/content/index.erb @@ -30,7 +30,7 @@
From 3e738e1216f1728821ee83eb77d7eb7330a5c53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Mon, 3 Oct 2016 14:34:35 +0200 Subject: [PATCH 10/24] hopefully fix stuff --- content/events/16-17/datacenter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/events/16-17/datacenter.md b/content/events/16-17/datacenter.md index 8ba7cc1..29f564d 100644 --- a/content/events/16-17/datacenter.md +++ b/content/events/16-17/datacenter.md @@ -1,6 +1,6 @@ --- title: Bezoek datacenter -banner: http://www.dcd-converged.com/wp-content/uploads/2016/08/datacenter.jpg +banner: https://www.dcd-converged.com/wp-content/uploads/2016/08/datacenter.jpg description: Zeus bezoekt het datacenter en de supercomputer in S10! created_at: 3-10-2016 time: 10-10-2016 From 06cc8a514aa22b6825d695eea7e3b9cd137c4677 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 14:41:36 +0200 Subject: [PATCH 11/24] fix some more stuff --- content/assets/scripts/gamification.coffee | 8 +++ content/index.erb | 71 ++++++++-------------- 2 files changed, 35 insertions(+), 44 deletions(-) create mode 100644 content/assets/scripts/gamification.coffee diff --git a/content/assets/scripts/gamification.coffee b/content/assets/scripts/gamification.coffee new file mode 100644 index 0000000..33d55b8 --- /dev/null +++ b/content/assets/scripts/gamification.coffee @@ -0,0 +1,8 @@ +$ -> + $.getJSON 'https://zeus.ugent.be/game/top4/show.json', (data) -> + str = "
    " + for x in data + str += "
  1. #{x.github_name} (#{x.score} Z$)
  2. " + str += "
" + + $('#gamification-coders').html(str) diff --git a/content/index.erb b/content/index.erb index 149c909..f3d059e 100644 --- a/content/index.erb +++ b/content/index.erb @@ -19,36 +19,36 @@
-
- -
-
@@ -63,29 +63,11 @@
-

- Numero uno: @werthen -

-

- Numero dos: @myncke -

-

- Numero tres: @iepoev -

-

- Numero quatro: @becousae -

-
-
-
-
-
- GITHUB -
-
-
-
- GITHUB +
@@ -93,3 +75,4 @@
+<%= asset :js, :gamification %> From 26136597744dbb7de82843974ec055938b85edd3 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 14:45:31 +0200 Subject: [PATCH 12/24] fix mixed content --- content/index.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/index.erb b/content/index.erb index f3d059e..860cf3e 100644 --- a/content/index.erb +++ b/content/index.erb @@ -15,7 +15,7 @@
- +
From 5b57603d2cdb1e262f594825d6411c618eec2c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Mon, 3 Oct 2016 14:47:31 +0200 Subject: [PATCH 13/24] fix image --- content/events/16-17/datacenter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/events/16-17/datacenter.md b/content/events/16-17/datacenter.md index 29f564d..3148f7a 100644 --- a/content/events/16-17/datacenter.md +++ b/content/events/16-17/datacenter.md @@ -1,6 +1,6 @@ --- title: Bezoek datacenter -banner: https://www.dcd-converged.com/wp-content/uploads/2016/08/datacenter.jpg +banner: https://emergingtechblog.emc.com/wp-content/uploads/2015/10/AdobeStock_86289688.jpeg description: Zeus bezoekt het datacenter en de supercomputer in S10! created_at: 3-10-2016 time: 10-10-2016 @@ -11,4 +11,4 @@ locationlink: Sterre,Ghent Belgium Zeus WPI organiseert in samenwerking met de medewerkers van de HPC een rondleiding in de S10. Hier bevindt zich het datacenter en sinds enkele jaren de supercomputer. Een echte must-see voor elke informaticus. -Inschrijven is verplicht en kunt u doen op https://scontent.xx.fbcdn.net/v/t1.0-9/13903431_1277596932251344_3927837466166230371_n.jpg?oh=bdda0d18a635c49893a097fba6aa99b9&oe=587C7886 +Inschrijven is verplicht en kunt u doen op https://event.fkgent.be/events/111 . From 7b8ba0b95ca61285b00965235dfce6a919965778 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 15:15:48 +0200 Subject: [PATCH 14/24] many stuffs --- Rules | 4 +++ content/assets/scripts/cammie.coffee | 4 +-- content/events.erb | 17 ++++++++++- content/events/15-16/bottlebats/intro.md | 6 ---- content/events/15-16/bottlebats/main.md | 3 -- content/events/15-16/bottlebats/test.md | 6 ---- content/events/16-17/LAN.md | 2 +- content/index.erb | 4 +-- content/posts/16-17/moar-review.md | 7 ----- content/posts/16-17/review-c.md | 37 ------------------------ content/projects.erb | 2 +- content/search.erb | 2 +- lib/helpers/events.rb | 10 ++++++- lib/helpers/ical.rb | 2 +- 14 files changed, 37 insertions(+), 69 deletions(-) delete mode 100644 content/events/15-16/bottlebats/intro.md delete mode 100644 content/events/15-16/bottlebats/main.md delete mode 100644 content/events/15-16/bottlebats/test.md delete mode 100644 content/posts/16-17/moar-review.md delete mode 100644 content/posts/16-17/review-c.md diff --git a/Rules b/Rules index bd757cf..38937e4 100644 --- a/Rules +++ b/Rules @@ -38,6 +38,10 @@ preprocess do end academic_years_items[academic_years.max][:navigable] = true + + all_events.each do |event| + event[:time] = Date.parse(event[:time]) + end end # diff --git a/content/assets/scripts/cammie.coffee b/content/assets/scripts/cammie.coffee index 912d754..9356a82 100644 --- a/content/assets/scripts/cammie.coffee +++ b/content/assets/scripts/cammie.coffee @@ -25,8 +25,8 @@ $ "#cammie-ctrls" $ '.ctrl' .click -> $context = $ this - $.ajax "//kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi", + $.ajax "https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi", data: command: $context.data 'command' posX: $context.data 'x' - posY: $context.data 'y' \ No newline at end of file + posY: $context.data 'y' diff --git a/content/events.erb b/content/events.erb index 01c0757..348e064 100644 --- a/content/events.erb +++ b/content/events.erb @@ -8,7 +8,22 @@ title: Events

Upcoming events

- <% all_events.each do |event| %> + <% upcoming_events.each do |event| %> + + <% if (sub_events(event)).empty? %> + <%= render '/partials/_event_preview.*', event: event %> + <% else %> + <% sub_events(event).each do |sub_event| %> + <%= render '/partials/_event_preview.*', event: sub_event, main_event: event %> + <% end %> + <% end %> + <% end %> + +
+

Past events

+
+ + <% past_events.each do |event| %> <% if (sub_events(event)).empty? %> <%= render '/partials/_event_preview.*', event: event %> diff --git a/content/events/15-16/bottlebats/intro.md b/content/events/15-16/bottlebats/intro.md deleted file mode 100644 index c410563..0000000 --- a/content/events/15-16/bottlebats/intro.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Bottle Bats Introductie -time: 12-3-16 -location: Grace Hopper -description: Dit is een description! ---- diff --git a/content/events/15-16/bottlebats/main.md b/content/events/15-16/bottlebats/main.md deleted file mode 100644 index c321015..0000000 --- a/content/events/15-16/bottlebats/main.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Bottle Bats ---- diff --git a/content/events/15-16/bottlebats/test.md b/content/events/15-16/bottlebats/test.md deleted file mode 100644 index 9c05546..0000000 --- a/content/events/15-16/bottlebats/test.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: test -time: 12-3-16 -location: Grace Hopper -description: Dit is een description! ---- diff --git a/content/events/16-17/LAN.md b/content/events/16-17/LAN.md index 6cb52d9..8b63afe 100644 --- a/content/events/16-17/LAN.md +++ b/content/events/16-17/LAN.md @@ -3,7 +3,7 @@ title: Geeks, Attack! V banner: https://scontent.xx.fbcdn.net/v/t1.0-9/13903431_1277596932251344_3927837466166230371_n.jpg?oh=bdda0d18a635c49893a097fba6aa99b9&oe=587C7886 description: Zeus' vijfde LAN-Party created_at: 13-09-2016 -time: 4-11-2016 +time: 04-11-2016 location: Therminal, Hoveniersberg 24 9000 Gent locationlink: Therminal,Ghent Belgium description: Zeus' vijfde LAN-Party diff --git a/content/index.erb b/content/index.erb index 860cf3e..64f5bce 100644 --- a/content/index.erb +++ b/content/index.erb @@ -53,12 +53,12 @@
diff --git a/content/posts/16-17/moar-review.md b/content/posts/16-17/moar-review.md deleted file mode 100644 index bbdd7d5..0000000 --- a/content/posts/16-17/moar-review.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: moar review -description: blub -banner: https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg -created_at: 24-10-2016 ---- -blub diff --git a/content/posts/16-17/review-c.md b/content/posts/16-17/review-c.md deleted file mode 100644 index aa9b25f..0000000 --- a/content/posts/16-17/review-c.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -banner: https://thumbs.dreamstime.com/z/letter-c-cat-4240140.jpg -title: C review -description: We hebben even wat dingen in C geschreven, en dit zijn onze meningen -created_at: 23-10-2016 ---- - -> *Ben ik nu echt de enige die C echt niet leuk vindt?* -> -> — Ilion Iasoon Beyst - -C is een toffe taal enal - -~~~ -Individual *genetic_algo(Area *area, StationCol *stations, double lo, double hi) { - // Initialize global variables - init_coverage_polygon(area); - MAX_POWER = power_to_energy_usage(43); - - Population* p = generate_initial_population(POPULATION_SIZE, stations); - recalculate_fitness(area, stations, p, lo, hi); - - Individual* best = genetic_algo_exec(p, area, stations, POPULATION_SIZE, lo, hi, clock()); - for (size_t i = 0; i < best->size; i++) { - printf("%d\n", best->distribution[i]); - } - printf("%f\n", calculate_energy_usage(stations, best)); - printf("%f\n", calculate_station_coverage(area, stations, best, NULL)); - - for (size_t i = 0; i < p->size; i++) { - individual__free(p->elems[i]); - } - population__free(p); - - return best; -} -~~~ diff --git a/content/projects.erb b/content/projects.erb index f5ef627..3001dfc 100644 --- a/content/projects.erb +++ b/content/projects.erb @@ -1,5 +1,5 @@ --- -navigable: true +navigable: false title: Projecten ---
diff --git a/content/search.erb b/content/search.erb index 499adea..ce4c1fa 100644 --- a/content/search.erb +++ b/content/search.erb @@ -1,5 +1,5 @@ --- -navigable: true +navigable: false title: Search ---
diff --git a/lib/helpers/events.rb b/lib/helpers/events.rb index e278544..a627daa 100644 --- a/lib/helpers/events.rb +++ b/lib/helpers/events.rb @@ -1,7 +1,15 @@ require 'uri' module EventsHelper def all_events - @items.find_all('/events/*/*') + grouped_events + @items.find_all('/events/*/*').sort_by { |x| x[:time] } + end + + def upcoming_events + all_events.reject { |x| x[:time] < Date.today } + end + + def past_events + all_events.reject { |x| x[:time] >= Date.today } end def grouped_events diff --git a/lib/helpers/ical.rb b/lib/helpers/ical.rb index 69004ef..6520084 100644 --- a/lib/helpers/ical.rb +++ b/lib/helpers/ical.rb @@ -11,7 +11,7 @@ module IcalHelper def event_for(item) event = Icalendar::Event.new - event.dtstart = Date.parse(item[:time]) + event.dtstart = item[:time] event.summary = 'A great event!' event From 67b56ad2e3374e4a22f9da7140e472fef69d458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Mon, 3 Oct 2016 15:24:17 +0200 Subject: [PATCH 15/24] links en content ofzo --- content/events/16-17/datacenter.md | 2 +- content/index.erb | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/content/events/16-17/datacenter.md b/content/events/16-17/datacenter.md index 3148f7a..a00a6a9 100644 --- a/content/events/16-17/datacenter.md +++ b/content/events/16-17/datacenter.md @@ -11,4 +11,4 @@ locationlink: Sterre,Ghent Belgium Zeus WPI organiseert in samenwerking met de medewerkers van de HPC een rondleiding in de S10. Hier bevindt zich het datacenter en sinds enkele jaren de supercomputer. Een echte must-see voor elke informaticus. -Inschrijven is verplicht en kunt u doen op https://event.fkgent.be/events/111 . +Inschrijven is verplicht en kunt u [hier](https://event.fkgent.be/events/111) doen . diff --git a/content/index.erb b/content/index.erb index 0f81bb8..dcbe45c 100644 --- a/content/index.erb +++ b/content/index.erb @@ -15,7 +15,7 @@
- +
@@ -53,12 +53,7 @@
-
-
-

<%= sorted_articles.first[:title] %>

- <%= sorted_articles.first[:description] %> -
-
+ <%= render '/partials/_tile.*', article: sorted_articles.first %>
From 086ea4eeb7f5d7279711bbe84c4954aff85f54cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Piret?= Date: Mon, 3 Oct 2016 15:30:48 +0200 Subject: [PATCH 16/24] httpS --- content/index.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/index.erb b/content/index.erb index 670d50e..d24e560 100644 --- a/content/index.erb +++ b/content/index.erb @@ -15,7 +15,7 @@
- +
From 0f245d57a965076ba61e17007ece9702513d9878 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 16:35:44 +0200 Subject: [PATCH 17/24] re-add projects --- content/projects.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/projects.erb b/content/projects.erb index 3001dfc..f5ef627 100644 --- a/content/projects.erb +++ b/content/projects.erb @@ -1,5 +1,5 @@ --- -navigable: false +navigable: true title: Projecten ---
From cf89b368adde312a23e6850a41e069e2dac0d982 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 16:39:22 +0200 Subject: [PATCH 18/24] updates --- Gemfile | 2 +- Gemfile.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index ee3c8a5..4fb03c8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ # frozen_string_literal: true source 'https://rubygems.org' -gem 'nanoc', '~>4.3.1' +gem 'nanoc', '~>4.3.3' gem 'kramdown' gem 'coffee-script' # Needed for relativize_urls diff --git a/Gemfile.lock b/Gemfile.lock index 4dabb4d..45c0ef0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,7 @@ GEM specs: adsf (1.2.1) rack (>= 1.0.0) - autoprefixer-rails (6.4.0.3) + autoprefixer-rails (6.5.0.1) execjs builder (3.2.2) coderay (1.1.1) @@ -35,7 +35,7 @@ GEM hamster (3.0.0) concurrent-ruby (~> 1.0) highline (1.7.8) - icalendar (2.4.0) + icalendar (2.4.1) json (2.0.2) kramdown (1.12.0) listen (3.1.5) @@ -45,7 +45,7 @@ GEM lumberjack (1.0.10) method_source (0.8.2) mini_portile2 (2.1.0) - nanoc (4.3.2) + nanoc (4.3.4) cri (~> 2.3) hamster (~> 3.0) ref (~> 2.0) @@ -87,10 +87,10 @@ DEPENDENCIES highline icalendar kramdown - nanoc (~> 4.3.1) + nanoc (~> 4.3.3) nokogiri sass w3c_validators BUNDLED WITH - 1.12.5 + 1.13.0 From ea2753e4fe68e8863873d84364e4838e92e1831f Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 16:41:33 +0200 Subject: [PATCH 19/24] --target is no longer neccessary --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5935693..cf474fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,4 @@ script: after_success: - mv deploy_key ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa -- '[[ $TRAVIS_BRANCH == "master" ]] && bundle exec nanoc deploy --target public' +- '[[ $TRAVIS_BRANCH == "master" ]] && bundle exec nanoc deploy public' From 2c6018bb8b175d527cca1bcb5057fea879bf6671 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 16:56:56 +0200 Subject: [PATCH 20/24] improvements --- .../assets/stylesheets/includes/tiles.scss | 7 ++++- content/events/15-16/awk.md | 16 ------------ content/index.erb | 8 +++--- layouts/archive_page.erb | 5 ---- layouts/partials/_tile.erb | 26 +++++++++---------- 5 files changed, 22 insertions(+), 40 deletions(-) delete mode 100644 content/events/15-16/awk.md diff --git a/content/assets/stylesheets/includes/tiles.scss b/content/assets/stylesheets/includes/tiles.scss index 4e95000..694dc4a 100644 --- a/content/assets/stylesheets/includes/tiles.scss +++ b/content/assets/stylesheets/includes/tiles.scss @@ -11,10 +11,15 @@ a.box { color: $highlighted-text-colour; .content { - h1 { + h1, h2 { color: white; } } } } } + +.centering { + display: flex; + justify-content: center; +} diff --git a/content/events/15-16/awk.md b/content/events/15-16/awk.md deleted file mode 100644 index 5207aba..0000000 --- a/content/events/15-16/awk.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: AWK-les -banner: https://zeus.ugent.be/wp-content/uploads/2016/02/awkles-768x1007.jpg -description: Een AWK-les voor AWK gerelateerde dingen -created_at: 01-02-2016 -time: 23-02-2016 -location: Auditorium A1, Campus Sterre, Gebouw S9 -locationlink: Zeus WPI,Ghent Belgium -description: Dit is een description van het awk event! ---- - -Op **dinsdag 23 februari 18:00** (na de les Scriptingtalen) in **Auditorium A1** organiseren we een **AWK-les** gegeven door **professor Peter Dawyndt**. - -**AWK** is een scriptingtaal, bedoeld om lijn per lijn tekstbestanden te verwerken. Zo wordt AWK vaak gebruikt voor de ingebouwde werking met delimiters om CSV bestanden en dergelijke te verwerken. AWK staat tevens bekend om de talloze [one-liners](http://www.pement.org/awk/awk1line.txt) die in de command line gebruikt kunnen worden. - -Sinds vorig jaar wordt AWK (samen met sed) niet meer gegeven in het vak Scriptingtalen, om meer te kunnen concentreren op Python en JavaScript. Hoewel deze zeer goede general purpose talen zijn, blijft AWK ongeƫvenaard voor razendsnelle tekstverwerking en transformaties. diff --git a/content/index.erb b/content/index.erb index 72ba838..5799926 100644 --- a/content/index.erb +++ b/content/index.erb @@ -7,14 +7,14 @@
- <%= render '/partials/_tile.*', article: all_events[0] %> + <%= render '/partials/_tile.*', article: all_events[0], htmlclass: "highlighted", small_text: "Upcoming event" %>
- <%= render '/partials/_tile.*', article: all_events[1], htmlclass: "highlighted" %> + <%= render '/partials/_tile.*', article: all_events[1], small_text: "Upcoming event" %>
-
+
@@ -53,7 +53,7 @@
- <%= render '/partials/_tile.*', article: sorted_articles.first %> + <%= render '/partials/_tile.*', article: sorted_articles.first, small_text: "Latest blogpost" %>
diff --git a/layouts/archive_page.erb b/layouts/archive_page.erb index 54a28a5..f8d0e93 100644 --- a/layouts/archive_page.erb +++ b/layouts/archive_page.erb @@ -4,11 +4,6 @@
-
-

- -

-

<%= post[:title] %>

diff --git a/layouts/partials/_tile.erb b/layouts/partials/_tile.erb index 49cb075..9808a7b 100644 --- a/layouts/partials/_tile.erb +++ b/layouts/partials/_tile.erb @@ -1,19 +1,17 @@
-
-
-
-
-

- <%= @article[:title] %> -

-
-
- - <%= @article[:created_at] %> - -
+
+
+
+

+ <%= @article[:title] %> +

+
+
+ + <%= @small_text %> +
- <%= @article[:description] %>
+ <%= @article[:description] %>
From 21dc9929f63aa96523cb698646884794d29c908e Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 19:21:29 +0200 Subject: [PATCH 21/24] tetten --- .../assets/stylesheets/includes/general.scss | 4 +++ .../assets/stylesheets/includes/tiles.scss | 8 +++--- .../stylesheets/includes/variables.scss | 4 +++ content/assets/stylesheets/main.scss | 2 +- layouts/eventpost.erb | 27 +++++++++---------- package.json | 2 +- 6 files changed, 25 insertions(+), 22 deletions(-) diff --git a/content/assets/stylesheets/includes/general.scss b/content/assets/stylesheets/includes/general.scss index bc8d330..8946297 100644 --- a/content/assets/stylesheets/includes/general.scss +++ b/content/assets/stylesheets/includes/general.scss @@ -48,3 +48,7 @@ footer.footer { vertical-align: inherit; } } + +::selection { + background: $zeus-orange; /* WebKit/Blink Browsers */ +} diff --git a/content/assets/stylesheets/includes/tiles.scss b/content/assets/stylesheets/includes/tiles.scss index 694dc4a..cef3dbe 100644 --- a/content/assets/stylesheets/includes/tiles.scss +++ b/content/assets/stylesheets/includes/tiles.scss @@ -1,6 +1,3 @@ -a.box { - color: #000; -} #homepage { .box { @@ -8,11 +5,12 @@ a.box { &.highlighted { background-color: $highlighted-box-colour; - color: $highlighted-text-colour; .content { + color: $highlighted-text-colour; + h1, h2 { - color: white; + color: $highlighted-text-colour; } } } diff --git a/content/assets/stylesheets/includes/variables.scss b/content/assets/stylesheets/includes/variables.scss index f8b9d48..d66f101 100644 --- a/content/assets/stylesheets/includes/variables.scss +++ b/content/assets/stylesheets/includes/variables.scss @@ -1,10 +1,14 @@ // Colours $zeus-orange: #FF7F00; +$zeus-blue: #00C4FF; + $navbar-border-color: #CCC; $event-border-color: #DDD; $orange: $zeus-orange; +$blue: $zeus-blue; $primary: $orange; + $link-visited: inherit; $box-colour: #EEE; diff --git a/content/assets/stylesheets/main.scss b/content/assets/stylesheets/main.scss index d3f019c..59d0825 100644 --- a/content/assets/stylesheets/main.scss +++ b/content/assets/stylesheets/main.scss @@ -29,4 +29,4 @@ body.site { @import "includes/general"; @import "includes/eventpage"; @import "includes/404"; -@import "includes/projects"; \ No newline at end of file +@import "includes/projects"; diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index d895d83..d80bf83 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -5,36 +5,33 @@ <% end %> -
+
<%= render '/partials/_navbar.*', zeus_logo_color: :white %>
-
- +
-

- - <%= item[:title] %> - + + <%= item[:title] %> +

- <%= item[:description] %> + <%= item[:description] %>

-

    -
  • <%= fa 'clock-o', li: true %><%= item[:time] %>
  • -
  • <%= fa 'globe', li: true %><%= item[:location] %>
  • -
+
    +
  • <%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y' %>
  • +
  • <%= fa 'globe', li: true %><%= item[:location] %>
  • +

-
@@ -43,7 +40,7 @@
-
+
<%= yield %>
diff --git a/package.json b/package.json index d102a9e..86c54e5 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,6 @@ "license": "MIT", "repository": "https://github.com/ZeusWPI/zeus.ugent.be", "dependencies": { - "bulma": "^0.1.2" + "bulma": "^0.2.1" } } From 059b827ad045c286e4626b0d5482ede876f41010 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 20:21:17 +0200 Subject: [PATCH 22/24] selected --- content/assets/stylesheets/includes/general.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/assets/stylesheets/includes/general.scss b/content/assets/stylesheets/includes/general.scss index 8946297..0aeee4a 100644 --- a/content/assets/stylesheets/includes/general.scss +++ b/content/assets/stylesheets/includes/general.scss @@ -50,5 +50,6 @@ footer.footer { } ::selection { - background: $zeus-orange; /* WebKit/Blink Browsers */ + color: white; + background: rgba(255, 127, 0, 0.99); } From 6b5cfa3916f008c3469f2c4b0d36b1a3ef61dfa6 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 20:52:01 +0200 Subject: [PATCH 23/24] so much css --- .../assets/stylesheets/includes/projects.css | 25 ------------------- .../assets/stylesheets/includes/projects.scss | 15 +++++------ .../assets/stylesheets/includes/tiles.scss | 19 +++++--------- .../stylesheets/includes/variables.scss | 2 ++ layouts/eventpost.erb | 2 +- 5 files changed, 15 insertions(+), 48 deletions(-) delete mode 100644 content/assets/stylesheets/includes/projects.css diff --git a/content/assets/stylesheets/includes/projects.css b/content/assets/stylesheets/includes/projects.css deleted file mode 100644 index 7d8a5da..0000000 --- a/content/assets/stylesheets/includes/projects.css +++ /dev/null @@ -1,25 +0,0 @@ -/*# sourceMappingURL=projects.css.map */ -/* line 4, /Users/mehmet/Projects/zeus.ugent.be/content/assets/stylesheets/includes/projects.scss */ -.imgspace { - display: flex; - justify-content: space-around; - width: 100%; - text-align: center; } - -/* line 11, /Users/mehmet/Projects/zeus.ugent.be/content/assets/stylesheets/includes/projects.scss */ -.imgcenter { - display: flex; - justify-content: center; - /* align horizontal */ - align-items: center; - /* align vertical */ } - -/* line 18, /Users/mehmet/Projects/zeus.ugent.be/content/assets/stylesheets/includes/projects.scss */ -.padbot { - padding-bottom: 15px; } - -/* line 24, /Users/mehmet/Projects/zeus.ugent.be/content/assets/stylesheets/includes/projects.scss */ -.padtop { - padding-top: 25px; } - -/*# sourceMappingURL=projects.css.map */ \ No newline at end of file diff --git a/content/assets/stylesheets/includes/projects.scss b/content/assets/stylesheets/includes/projects.scss index c2bd649..bd80dec 100644 --- a/content/assets/stylesheets/includes/projects.scss +++ b/content/assets/stylesheets/includes/projects.scss @@ -1,6 +1,3 @@ - -/*# sourceMappingURL=projects.css.map */ - .imgspace { display: flex; justify-content: space-around; @@ -12,17 +9,17 @@ display: flex; justify-content: center; /* align horizontal */ align-items: center; /* align vertical */ - + } .padbot { - + padding-bottom: 15px; - + } .padtop { - + padding-top: 25px; - -} \ No newline at end of file + +} diff --git a/content/assets/stylesheets/includes/tiles.scss b/content/assets/stylesheets/includes/tiles.scss index cef3dbe..8f8d27a 100644 --- a/content/assets/stylesheets/includes/tiles.scss +++ b/content/assets/stylesheets/includes/tiles.scss @@ -1,19 +1,12 @@ +a.box { + &:hover { + box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $blue + } +} #homepage { .box { - background-color: $box-colour; - - &.highlighted { - background-color: $highlighted-box-colour; - - .content { - color: $highlighted-text-colour; - - h1, h2 { - color: $highlighted-text-colour; - } - } - } + border-radius: 0; } } diff --git a/content/assets/stylesheets/includes/variables.scss b/content/assets/stylesheets/includes/variables.scss index d66f101..b832aff 100644 --- a/content/assets/stylesheets/includes/variables.scss +++ b/content/assets/stylesheets/includes/variables.scss @@ -11,6 +11,8 @@ $primary: $orange; $link-visited: inherit; +$border_hover: $blue; + $box-colour: #EEE; $highlighted-box-colour: $zeus-orange; $highlighted-text-colour: white; diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index d80bf83..1875e0a 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -5,7 +5,7 @@ <% end %> -
+
<%= render '/partials/_navbar.*', zeus_logo_color: :white %>
From 367b2a6a17412f76beb9dde4f58a353edac18dbb Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 22:33:52 +0200 Subject: [PATCH 24/24] we're getting there --- Rules | 7 ++++++- content/about.erb | 1 + content/assets/scripts/quote.coffee | 4 ++++ content/events.erb | 1 + content/events/16-17/datacenter.md | 2 +- content/index.erb | 18 ++++++++++++------ content/projects.erb | 1 + content/quotes.json | 1 + layouts/eventpost.erb | 2 +- lib/helpers/nav.rb | 2 +- 10 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 content/assets/scripts/quote.coffee create mode 100644 content/quotes.json diff --git a/Rules b/Rules index 38937e4..86dac6b 100644 --- a/Rules +++ b/Rules @@ -37,7 +37,10 @@ preprocess do ) end - academic_years_items[academic_years.max][:navigable] = true + academic_years_items[academic_years.max].update_attributes( + navigable: true, + order: 10 + ) all_events.each do |event| event[:time] = Date.parse(event[:time]) @@ -54,6 +57,8 @@ compile '/feed.xml' do write '/feed.xml' end +passthrough '/quotes.json' + # # ARCHIVES # diff --git a/content/about.erb b/content/about.erb index 7309f09..cc269a9 100644 --- a/content/about.erb +++ b/content/about.erb @@ -1,6 +1,7 @@ --- navigable: true title: About +order: 0 ---

Over Zeus WPI

diff --git a/content/assets/scripts/quote.coffee b/content/assets/scripts/quote.coffee new file mode 100644 index 0000000..43121e0 --- /dev/null +++ b/content/assets/scripts/quote.coffee @@ -0,0 +1,4 @@ +$ -> + $.getJSON 'http://localhost:3000/quotes.json', (data) -> + quote = data[Math.floor(Math.random()*data.length)] + $('#quote').append("

#{quote.title}

#{quote.description}

") diff --git a/content/events.erb b/content/events.erb index 348e064..699ea84 100644 --- a/content/events.erb +++ b/content/events.erb @@ -1,6 +1,7 @@ --- navigable: true title: Events +order: 20 ---
diff --git a/content/events/16-17/datacenter.md b/content/events/16-17/datacenter.md index a00a6a9..61dfcf9 100644 --- a/content/events/16-17/datacenter.md +++ b/content/events/16-17/datacenter.md @@ -5,7 +5,7 @@ description: Zeus bezoekt het datacenter en de supercomputer in S10! created_at: 3-10-2016 time: 10-10-2016 location: hpc gent -locationlink: Sterre,Ghent Belgium +locationlink: 51.023650, 3.712018 --- Zeus WPI organiseert in samenwerking met de medewerkers van de HPC een rondleiding in de S10. diff --git a/content/index.erb b/content/index.erb index 5799926..e615d44 100644 --- a/content/index.erb +++ b/content/index.erb @@ -14,21 +14,26 @@ <%= render '/partials/_tile.*', article: all_events[1], small_text: "Upcoming event" %>
-
- +
+ +
+
+ +
+
-
+
<%= fa 'wikipedia-w' %>
-
+
<%= fa 'video-camera' %>
@@ -37,14 +42,14 @@
<%= asset :js, :gamification %> +<%= asset :js, :quote %> diff --git a/content/projects.erb b/content/projects.erb index f5ef627..584a37e 100644 --- a/content/projects.erb +++ b/content/projects.erb @@ -1,6 +1,7 @@ --- navigable: true title: Projecten +order: 30 ---
diff --git a/content/quotes.json b/content/quotes.json new file mode 100644 index 0000000..14e75b7 --- /dev/null +++ b/content/quotes.json @@ -0,0 +1 @@ +[{"title":"Care About Your Craft","description":"Why spend your life developing software unless you care about doing it well"},{"title":"Think! About Your Work","description":"Turn off the autopilot and take control. Constantly critique and appraise your work"},{"title":"Provide Options, Don't Make Lame Excuses","description":"Instead of excuses, provide options. Don't say it can't be done; explain what can be done"},{"title":"Don't Live with Broken Windows","description":"Fix bad designs, wrong decisions, and poor code when you see them"},{"title":"Be a Catalyst for Change","description":"You can't force change on people. Instead, show them how the future might be and help them participate in creating it"},{"title":"Remember the Big Picture","description":"Don't get so engrossed in the details that you forget to check what's happening around you"},{"title":"Make Quality a Requirements Issue","description":"Involve your users in determining the project's real quality requirements"},{"title":"Invest Regularly in Your Knowledge Portfolio","description":"Make learning a habit"},{"title":"Critically Analyze What You Read and Hear","description":"Don't be swayed by vendors, media hype, or dogma. Analyze information in terms of you and your project"},{"title":"It's Both What You Say and the Way You Say It","description":"There's no point in having great ideas if you don't communicate them effectively"},{"title":"DRY - Don't Repeat Yourself","description":"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system"},{"title":"Make It Easy to Reuse","description":"If it's easy to reuse, people will. Create an environment that supports reuse"},{"title":"Eliminate Effects Between Unrelated Things","description":"Design components that are self-contained. independent, and have a single, well-defined purpose"},{"title":"There Are No Final Decisions","description":"No decision is cast in stone. Instead, consider each as being written in the sand at the beach, and plan for change"},{"title":"Use Tracer Bullets to Find the Target","description":"Tracer bullets let you home in on your target by trying things and seeing how close they land"},{"title":"Prototype to Learn","description":"Prototyping is a learning experience. Its value lies not in the code you produce, but in the lessons you learn"},{"title":"Program Close to the Problem Domain","description":"Design and code in your user's language"},{"title":"Estimate to Avoid Surprises","description":"Estimate before you start. You'll spot potential problems up front"},{"title":"Iterate the Schedule with the Code","description":"Use experience you gain as you implement to refine the project time scales"},{"title":"Keep Knowledge in Plain Text","description":"Plain text won't become obsolete. It helps leverage your work and simplifies debugging and testing"},{"title":"Use the Power of Command Shells","description":"Use the shell when graphical user interfaces don't cut it"},{"title":"Use a Single Editor Well","description":"The editor should be an extension of your hand; make sure your editor is configurable, extensible, and programmable"},{"title":"Always Use Source Code Control","description":"Source code control is a time machine for your work - you can go back"},{"title":"Fix the Problem, Not the Blame","description":"It doesn't really matter whether the bug is your fault or someone else's - it is still your problem, and it still needs to be fixed"},{"title":"Don't Panic When Debugging","description":"Take a deep breath and THINK! about what could be causing the bug"},{"title":"\"select\" Isn't Broken.","description":"It is rare to find a bug in the OS or the compiler, or even a third-party product or library. The bug is most likely in the application"},{"title":"Don't Assume It - Prove It","description":"Prove your assumptions in the actual environment-- with real data and boundary conditions"},{"title":"Learn a Text Manipulation Language","description":"You spend a large part of each day working with text. Why not have the computer do some of it for you?"},{"title":"Write Code That Writes Code","description":"Code generators increase your productivity and help avoid duplication"},{"title":"You Can't Write Perfect Software","description":"Software can't be perfect. Protect your code and users from the inevitable errors"},{"title":"Design with Contracts","description":"Use contracts to document and verify that code does no more and no less than it claims to do"},{"title":"Crash Early","description":"A dead program normally does a lot less damage than a crippled one"},{"title":"Use Assertions to Prevent the Impossible","description":"Assertions validate your assumptions. Use them to protect your code from an uncertain world"},{"title":"Use Exceptions for Exceptional Problems","description":"Exceptions can suffer from all the readability and maintainability problems of classic spaghetti code. Reserve exceptions for exceptional things"},{"title":"Finish What You Start","description":"Where possible, the routine or object that allocates a resource should be responsible for deallocating it"},{"title":"Minimize Coupling Between Modules","description":"Avoid coupling by writing \"shy\" code and applying the Law of Demeter"},{"title":"Configure, Don't Integrate","description":"Implement technology choices for an application as configuration options, not through integration or engineering"},{"title":"Put Abstractions in Code, Details in Metadata","description":"Program for the general case, and put the specifics outside the compiled code base"},{"title":"Analyze Workflow to Improve Concurrency","description":"Exploit concurrency in your user's workflow"},{"title":"Design Using Services","description":"Design in terms of services - independent, concurrent objects behind well-defined, consistent interfaces"},{"title":"Always Design for Concurrency","description":"Allow for concurrency, and you'll design cleaner interfaces with fewer assumptions"},{"title":"Separate Views from Models","description":"Gain flexibility at low cost by designing your application in terms of models and views"},{"title":"Use Blackboards to Coordinate Workflow","description":"Use blackboards to coordinate disparate facts and agents, while maintaining independence and isolation among participants"},{"title":"Don't Program by Coincidence","description":"Rely only on reliable things. Beware of accidental complexity, and don't confuse a happy coincidence with a purposeful plan"},{"title":"Estimate the Order of Your Algorithms","description":"Get a feel for how long things are likely to take before you write code"},{"title":"Test Your Estimates","description":"Mathematical analysis of algorithms doesn't tell you everything. Try timing your code in its target environment"},{"title":"Refactor Early, Refactor Often","description":"Just as you might weed and rearrange a garden, rewrite, rework, and re-architect code when it needs it. Fix the root of the problem"},{"title":"Design to Test","description":"Start thinking about testing before you write a line of code"},{"title":"Test Your Software, or Your Users Will","description":"Test ruthlessly. Don't make your users find bugs for you"},{"title":"Don't Use Wizard Code You Don't Understand","description":"Wizards can generate reams of code. Make sure you understand all of it before you incorporate it into your project"},{"title":"Don't Gather Requirements - Dig for Them","description":"Requirements rarely lie on the surface. They're buried deep beneath layers of assumptions, misconceptions, and politics"},{"title":"Work with a User to Think Like a User","description":"It's the best way to gain insight into how the system will really be used"},{"title":"Abstractions Live Longer than Details","description":"Invest in the abstraction, not the implementation. Abstractions can survive the barrage of changes from different implementations and new technologies"},{"title":"Use a Project Glossary","description":"Create and maintain a single source of all the specific terms and vocabulary for a project"},{"title":"Don't Think Outside the Box - Find the Box","description":"When faced with an impossible problem, identify the real constraints. Ask yourself: \"Does it have to be done this way? Does it have to be done at all?\""},{"title":"Start When You're Ready","description":"You've been building experience all your life. Don't ignore niggling doubts"},{"title":"Some Things Are Better Done than Described","description":"Don't fall into the specification spiral - at some point you need to start coding"},{"title":"Don't Be a Slave to Formal Methods","description":"Don't blindly adopt any technique without putting it into the context of your development practices and capabilities"},{"title":"Costly Tools Don't Produce Better Designs","description":"Beware of vendor hype, industry dogma, and the aura of the price tag. Judge tools on their merits"},{"title":"Organize Teams Around Functionality","description":"Don't separate designers from coders, testers from data modelers. Build teams the way you build code"},{"title":"Don't Use Manual Procedures","description":"A shell script or batch file will execute the same instructions, in the same order, time after time"},{"title":"Test Early. Test Often. Test Automatically","description":"Tests that run with every build are much more effective than test plans that sit on a shelf"},{"title":"Coding Ain't Done 'Til All the Tests Run","description":"'Nuff said"},{"title":"Use Saboteurs to Test Your Testing","description":"Introduce bugs on purpose in a separate copy of the source to verify that testing will catch them"},{"title":"Test State Coverage, Not Code Coverage","description":"Identify and test significant program states. Just testing lines of code isn't enough"},{"title":"Find Bugs Once","description":"Once a human tester finds a bug, it should be the last time a human tester finds that bug. Automatic tests should check for it from then on"},{"title":"English is Just a Programming Language","description":"Write documents as you would write code: honor the DRY principle, use metadata, MVC, automatic generation, and so on"},{"title":"Build Documentation In, Don't Bolt It On","description":"Documentation created separately from code is less likely to be correct and up to date"},{"title":"Gently Exceed Your Users' Expectations","description":"Come to understand your users' expectations, then deliver just that little bit more"},{"title":"Sign Your Work","description":"Craftsmen of an earlier age were proud to sign their work. You should be, too"}] diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index 1875e0a..99635ed 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -24,7 +24,7 @@

  • <%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y' %>
  • -
  • <%= fa 'globe', li: true %><%= item[:location] %>
  • +
  • <%= fa 'map-marker', li: true %><%= item[:location] %>

diff --git a/lib/helpers/nav.rb b/lib/helpers/nav.rb index ec6a8fb..d8dae5c 100644 --- a/lib/helpers/nav.rb +++ b/lib/helpers/nav.rb @@ -1,6 +1,6 @@ module NavigationHelper def nav_items - navigables = items.select { |i| i[:navigable] } + navigables = items.select { |i| i[:navigable] }.sort_by { |x| x[:order] || 10000 } navigables.each do |item| is_active = @item_rep && @item_rep.path == item.path