Merge branch 'master' into privacy
This commit is contained in:
commit
d6f475efa4
5 changed files with 52 additions and 42 deletions
11
README.md
11
README.md
|
@ -73,17 +73,6 @@ Once you've submitted a PR, it will automatically be deployed to (PR#).pr.zeus.g
|
|||
|
||||
Analytics are powered by [Fathom](https://usefathom.com) and are available on <https://stats.zeus.gent>. These are only available to administrators with proper rights. These analytics are self hosted and provide only simple statistics for our information, without breaching your privacy.
|
||||
|
||||
## Import event from Facebook
|
||||
|
||||
You can import events from Facebook with `bundle exec nanoc fetch #{event_id}`.
|
||||
You will need to create a `.fb_token` file and request an API token to put in there, see [FB graph API](https://developers.facebook.com/tools/explorer/).
|
||||
|
||||
You will probably need to make a new app (see navbar, it's quite trivial), unless you already have a Zeus site app.
|
||||
|
||||
You need to create a User Token with `user_events` permission.
|
||||
|
||||
We currently request from v2.10, details about the code can be found in [./commands/fetch].
|
||||
|
||||
## Built With
|
||||
|
||||
* [nanoc](https://github.com/nanoc/nanoc), static site generator
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'net/http'
|
||||
require 'json'
|
||||
|
||||
usage 'fetch [facebook event id]'
|
||||
aliases :f
|
||||
summary 'Fetch an event from facebook'
|
||||
description 'Fetch an event from facebook'
|
||||
|
||||
run do |_opts, args, _cmd|
|
||||
fb_token = File.read('.fb_token')
|
||||
event_id = args[0]
|
||||
uri = URI("https://graph.facebook.com/v2.10/#{event_id}?fields=cover,name,description,start_time,place,end_time&access_token=#{fb_token}")
|
||||
o = JSON.parse(Net::HTTP.get(uri))
|
||||
puts <<~EOS
|
||||
---
|
||||
title: "#{o['name']}"
|
||||
description: #Fill in
|
||||
time: #{o['start_time']}
|
||||
end: #{o['end_time']}
|
||||
location: #{o['place']['name']}
|
||||
banner: #{o['cover']['source']}
|
||||
created_at: #Fill in
|
||||
facebook: 'https://www.facebook.com/events/#{event_id}/'
|
||||
---
|
||||
|
||||
#{o['description']}
|
||||
EOS
|
||||
end
|
|
@ -3,7 +3,7 @@
|
|||
margin-bottom: 10px;
|
||||
z-index: 100;
|
||||
|
||||
.logo-wrapper {
|
||||
#logo-link {
|
||||
padding-bottom: 0;
|
||||
position: relative;
|
||||
|
||||
|
|
34
content/events/19-20/hashcode.md
Normal file
34
content/events/19-20/hashcode.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
title: Hashcode
|
||||
description: Zeus organiseert een UGent Hashcode Hub
|
||||
created_at: 05-12-2019
|
||||
time: '20-02-2020 18:30'
|
||||
end: '20-02-2020 23:00'
|
||||
location: 'Campus Sterre, Gebouw S9, Auditorium A3'
|
||||
locationlink: 'Zeus WPI'
|
||||
banner: 'https://hashcode.withgoogle.com/resources/images/hero_2.jpg'
|
||||
image: 'https://zeus.ugent.be/zeuswpi/I9GAh7iy.png'
|
||||
header_text_background: true
|
||||
---
|
||||
|
||||
# Google Hashcode
|
||||
|
||||
Ook dit jaar organiseren we een hub voor de Google Hashcode. Dit is een jaarlijkse programmeerwedstrijd van Google waarin je in een team van 2 tot 4 personen een probleem voorgeschoteld krijgt die je mag oplossen in een programmeertaal naar keuze. De wedstrijd is gericht op studenten en professionals.
|
||||
|
||||
De online kwalificatieronde vindt plaats op **20 februari** om 18:30. Je kan deelnemen met je team in onze hub _Ghent University_ in gebouw S9 op Campus Sterre, lokaal A3.
|
||||
|
||||
De best scorende teams worden uitgenodigd bij Google Dublin op 25 april om mee te doen aan de finale ronde van de competitie.
|
||||
|
||||
## Registratie
|
||||
|
||||
Registreer je **voor 10 februari** op [g.co/hashcode](https://g.co/hashcode) en selecteer **onze hub _Ghent University_**. Hoe meer teams zich registreren bij onze hub, hoe meer goodies we kunnen uitdelen!
|
||||
|
||||
## Benodigdheden
|
||||
|
||||
Om alles optimaal te laten verlopen willen we jullie vragen om je eigen verdeelstekker mee te brengen. Wij zorgen voor drank en snacks.
|
||||
|
||||
## Begint het al te kriebelen?
|
||||
|
||||
Bereid je optimaal voor op de wedstrijd door het voorbeeldprobleem op te lossen, die kan je zien zodra je je hebt geregistreerd. Opgaven van de vorige jaren kan je [hier](https://hashcode.withgoogle.com/past_editions.html) vinden.
|
||||
|
||||
Tot dan!
|
17
content/events/19-20/pannenkoeken-jenever-codenight.md
Normal file
17
content/events/19-20/pannenkoeken-jenever-codenight.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: 'Pannenkoeken en Jenever Codenight'
|
||||
description: In winterthema wordt ons ge-code begeleid door jenever en pannenkoeken. Gezellig, losjes, Ballmer-peak.
|
||||
created_at: 27-11-2019
|
||||
time: '17-12-2019 18:00'
|
||||
end: '17-12-2019 23:59'
|
||||
banner: 'https://zeus.ugent.be/zeuswpi/bdbwpUDj.png'
|
||||
location: 'De kelder'
|
||||
locationlink: 'Zeus WPI'
|
||||
---
|
||||
|
||||
> Ballmer-peak: The theory that computer programmers obtain quasi-magical, superhuman coding ability when they have a blood alcohol concentration percentage between 0.129% and 0.138%.
|
||||
|
||||
|
||||
We komen allemaal gezellig in de kelder samen, drinken wat jenever, eten wat pannekoeken, en sleutelen aan wat Zeus-projecten. Veel meer is daar niet aan.
|
||||
|
||||
Vrije bijdrage voor de geconsumeerde zaken.
|
Loading…
Reference in a new issue