.. rst-class:: lead
COMPAS 2 introduced a number of breaking changes with respect to COMPAS 1. This page summarises the changes that are most likely to affect existing code, and shows how to update it.
| @import url(https://fonts.googleapis.com/css2?family=Lato); | |
| body, p, div, span, h1, h2, h3, h4, h5, h6 { font-family:Lato } | |
| /* Show event graphic, hiding detail info on event page */ | |
| .jumbotron.event-info * { display:none } | |
| .jumbotron.event-info { background:url(https://blog.datalets.ch/workshops/2020/ipdet/IPDET_Hackathon-C.jpg) no-repeat center; background-size: contain; height:240px; width: 100% } | |
| /* Customize the top navigation */ | |
| .navbar.navbar-light { background: #f7e94a; } |
Windows users: the only Windows version that supports many of the requirements is Windows 10, making it a pre-requisite for everything else.
| #!/bin/bash | |
| # Stop on the first sign of trouble | |
| set -e | |
| if [ $UID != 0 ]; then | |
| echo "ERROR: Operation not permitted. Forgot sudo?" | |
| exit 1 | |
| fi |
(Based on http://make.opendata.ch/wiki/information:rules)
A team should consist of at least two and a maximum of eight people.
| require 'socket' | |
| require 'uri' | |
| def fire_and_forget_post(url, body) | |
| uri = URI.parse(url) | |
| req = [] | |
| port = ":#{uri.port}" if uri.port != 80 | |
| req << "POST #{uri.request_uri} HTTP/1.1" | |
| req << "Host: #{uri.host}#{port}" |