#compsoc Code of Conduct
#compsoc aims at being a nice place to chat about computer related things for anyone involved with Edinburgh University.
With that in mind, there is a single rule:
- Be nice
Not being nice could include:
FROM --platform=$TARGETPLATFORM eclipse-temurin:18-jdk as jre-build | |
ARG jar | |
ARG docs | |
WORKDIR /app | |
RUN mkdir build | |
ADD $jar build/service.jar | |
RUN jdeps \ | |
--ignore-missing-deps \ | |
--multi-release 18 \ |
package sponsor.api.fetcher | |
import io.ktor.client.HttpClient | |
import io.ktor.client.call.receive | |
import io.ktor.client.request.header | |
import io.ktor.client.request.parameter | |
import io.ktor.client.request.request | |
import io.ktor.client.statement.HttpResponse | |
import io.ktor.http.HttpMethod | |
import kotlinx.serialization.SerialName |
FROM openjdk:16-jdk-buster | |
LABEL org.opencontainers.image.source="https://github.com/KaleCharity/snip" | |
ARG jar | |
ADD $jar /service.jar | |
RUN curl -sS "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem" > rds-combined-ca-bundle.pem | |
RUN awk 'split_after == 1 {n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "rds-ca-" n ".pem"}' < rds-combined-ca-bundle.pem | |
RUN for CERT in rds-ca-*; do \ |
# To update to a new version of Nomad: | |
# Download and calculate checksums: | |
# http --download https://releases.hashicorp.com/nomad/0.8.4/nomad_0.8.4_linux_amd64.zip | |
# shasum --algorithm 256 --binary nomad_0.8.4_linux_amd64.zip | |
# unzip nomad_0.8.4_linux_amd64.zip | |
# shasum --algorithm 256 --binary nomad | |
# Update facts in this script | |
# Only run on one hashimaster at a time! | |
- name: Set nomad version |
fun extractGraphemeClusters(input: String): List<String> { | |
val characters = mutableListOf<String>() | |
val iterator = BreakIterator.getCharacterInstance() | |
iterator.setText(input) | |
var start = iterator.first() | |
var iterated = false | |
while (!iterated) { | |
val next = iterator.next() |
#compsoc aims at being a nice place to chat about computer related things for anyone involved with Edinburgh University.
With that in mind, there is a single rule:
Not being nice could include:
I hereby claim:
To claim this, I am signing this object:
The following terms are used throughout this agreement:
The following terms are used throughout this agreement:
// Data classes | |
data class Something(val something: String) | |
val output = Something("test").toString() // Something(something=test) | |
val equal = Something("test2") == Something("test2") // true | |
val notEqual = Something("test3") == Something("test4") // false |