Merge pull request #197 from ZeusWPI/event/hydra-codenight
Event/hydra codenight
This commit is contained in:
commit
0e89f41b43
4 changed files with 47 additions and 4 deletions
|
@ -10,16 +10,19 @@ description 'Fetch an event from facebook'
|
|||
|
||||
run do |_opts, args, _cmd|
|
||||
fb_token = File.read('.fb_token')
|
||||
uri = URI("https://graph.facebook.com/v2.10/#{args[0]}?fields=cover,name,description,start_time,place,end_time&access_token=#{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']}
|
||||
location: #{o['place']['name']}
|
||||
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']}
|
||||
|
|
|
@ -35,8 +35,16 @@ a.box {
|
|||
.event-text {
|
||||
display: inline-block;
|
||||
font-size: 1.1em;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
|
||||
.event-time-loc {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.is-divider {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
|
32
content/events/17-18/hydra-codenight.md
Normal file
32
content/events/17-18/hydra-codenight.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: "Hydra Introsessie & Codenight"
|
||||
time: 2017-10-16T18:00:00+0200
|
||||
end: 2017-10-16T23:59:00+0200
|
||||
location: Zeus WPI
|
||||
description: Word een Hydra-held in no time
|
||||
created_at: '13-10-2017'
|
||||
color: '#3454b4'
|
||||
---
|
||||
|
||||
Join het team van de coolste app van de UGent!
|
||||
|
||||
# Wat
|
||||
|
||||
Zin om mee te werken? Op de Hydra codenight wordt je persoonlijk begeleid en geholpen door de developers achter de app. Zo fix je in no-time je eerste issue leer je op 1 avond door de volledige codebase wandelen. We maken er samen een productieve maar ook plezante avond van, en wie weet ben jij tegen volgend jaar 1 van de core-devs!
|
||||
|
||||
# Waarom
|
||||
|
||||
- Een cool team
|
||||
- Een relevant project voor jou en je vrienden
|
||||
- Ideale intro tot app-development
|
||||
- Ideale ervaring voor app-development
|
||||
|
||||
# Praktisch
|
||||
We beginnen officieel om **18u**, maar je mag komen wanneer je wilt. Alles gebeurt in de **Zeus kelder**. Probeer het project al eens werkende te krijgen op voorhand, of installeer de relevante programma's toch al (Android Studio en XCode (voor iOS)).
|
||||
Er wordt achter eten gegaan door Zeusleden.
|
||||
|
||||
[<i class="fa fa-github"></i> Android ](https://github.com/ZeusWPI/hydra-android/)
|
||||
|
||||
[<i class="fa fa-github"></i> iOS ](https://github.com/ZeusWPI/hydra-iOS/)
|
||||
|
||||
~~ We proberen productieve coders wat in de watten te leggen ~~
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
<div class="is-divider"></div>
|
||||
|
||||
<div class="">
|
||||
<div class="event-time-loc">
|
||||
<%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B, %H:%M') %>
|
||||
<br>
|
||||
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
|
||||
|
|
Loading…
Reference in a new issue