-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkshops.html
186 lines (174 loc) · 8.65 KB
/
workshops.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
---
title: "Workshops"
layout: page-wide
---
{% assign upcomingEvents = 0 %}
{% for post in site.posts %}
{% if post.url and post.event_date %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture posttime %}{{post.event_date | date: '%s'}}{% endcapture %}
{% if posttime >= nowunix %}
{% assign upcomingEvents=upcomingEvents | plus:1 %}
{% endif %}
{% endif %}
{% endfor %}
<div class="container">
<div class="row" style="margin: 5px">
<h1>Workshops</h1>
</div>
</div>
<div class="container">
<div class="row" style="margin: 5px">
<div>
<p>Participate or organise any of the below workshops yourself by starting with
<a href="https://socialgorithm.org/docs">our documentation</a> and using our
<a href="https://tournaments.socialgorithm.org">server</a>.</p>
</div>
</div>
</div>
<div>
<div class="container">
<div class="row" style="margin: 5px">
<div class="media" style="margin-top: 2em">
<div class="media-left">
<div class="media-object">
<img class="img img-thumbnail" style="max-width: initial; width: 100px" src="https://socialgorithm.org/docs/assets/uttt.gif" alt="Ultimate TTT">
</div>
</div>
<div class="media-body">
<a href="https://socialgorithm.org/docs/sections/participate/ultimate-tic-tac-toe.html">
<h3 style="margin-top: 0">Ultimate Tic-Tac-Toe</h3>
</a>
<p>Ultimate TicTacToe is a game of tic tac toe on steroids. Originally popular in Mathematics circles, it involves playing nine games of
tic-tac-toe on a single board, simultaneously!
</p>
</div>
</div>
<div class="media" style="margin-top: 2em">
<div class="media-left">
<div class="media-object">
<img class="img img-thumbnail" style="max-width: initial; width: 100px" src="{{ site.baseurl }}/img/tech/battleships.jpg" alt="Battleships">
</div>
</div>
<div class="media-body">
<a href="https://socialgorithm.org/docs/sections/participate/battleships.html">
<h3 style="margin-top: 0">
Battleships
</h3>
</a>
<p>Battleships with a twist - participants can place a variety of non-linear ships, and must avoid islands.</p>
</div>
</div>
<div class="media" style="margin-top: 2em">
<div class="media-left">
<div class="media-object">
<img class="img img-thumbnail" style="max-width: initial; width: 100px" src="https://socialgorithm.org/docs/sections/participate/tic-tac-toe.gif" alt="Tic Tac Toe Game">
</div>
</div>
<div class="media-body">
<a href="https://socialgorithm.org/docs/sections/participate/tic-tac-toe.html">
<h3 style="margin-top: 0">TicTacToe</h3>
</a>
<p>Tic-Tac-Toe is the classic game (you may know it as noughts and crosses) - a simpler form of Ultimate Tic-Tac-Toe that is suitable for beginner programmers
</p>
</div>
</div>
<div class="media" style="margin-top: 2em">
<div class="media-left">
<div class="media-object">
<img class="img img-thumbnail" style="max-width: initial; width: 100px" src="{{ site.baseurl }}/img/tech/elon.jpg" alt="Elon">
</div>
</div>
<div class="media-body">
<a href="https://github.com/socialgorithm/elon-server">
<h3 style="margin-top: 0">
Self-Driving Simulator
<span class="badge">Coming soon</span>
</h3>
</a>
<p>Students will develop their own self driving algorithms to drive a simulated car, avoid pedestrians and
obstacles in the road and ultimately be the first to get their passengers safely to their destination.</p>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="row" style="margin: 5px">
<div>
{% if upcomingEvents > 0 %}
<h2>Upcoming Events</h2>
<ul class="list-group">
{% assign postCount = 0 %}
{% for post in site.categories.events %}
{% if post.url and post.event_date %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture posttime %}{{post.event_date | date: '%s'}}{% endcapture %}
{% if posttime >= nowunix %}
{% assign postCount = postCount | plus:1 %}
<li class="list-group-item">
<a href="{{ post.url }}">
<span class="badge badge-default pull-right">
{{ post.event_date | date: "%B %-d, %Y" }}
</span>
<h4 style="margin: 0">{{ post.title }}</h4>
<small>{{ post.event_location }}</small>
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
<hr>
<h2>Past Events</h2>
<ul class="list-group">
{% assign postCount = 0 %}
{% for post in site.categories.events %}
{% if post.url and post.event_date %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture posttime %}{{post.event_date | date: '%s'}}{% endcapture %}
{% if posttime < nowunix %}
{% assign postCount = postCount | plus:1 %}
<li class="list-group-item">
<div class="media">
<div class="media-left">
<div class="media-object">
<img class="img img-thumbnail" style="max-width: initial; width: 160px" src="{{ site.baseurl }}/{{ post.header-img }}" alt="{{ post.title }}">
</div>
</div>
<div class="media-body">
<a href="{{ post.url }}">
<h3 style="margin-top: 0">
{{ post.title }}
</h3>
</a>
<p style="font-size: 0.9em">
{{ post.event_abstract }}
</p>
<div style="text-align: right">
<small class="text-muted">
<span style="margin-right: 1em">
<i class="fa fa-map-marker"></i>
{{ post.event_location }}
</span>
<i class="fa fa-calendar" style="margin-right: 0.1em;"></i>
{{ post.event_date | date: "%B %-d, %Y" }}
</small>
</div>
</div>
</div>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% if postCount == 0 %}
<div class="alert alert-info">
No past events yet!
</div>
{% endif %}
</div>
</div>
</div>