This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
using int64 = int64_t; | |
int f(int x, int y){ | |
int mx = max(x, y); | |
int mn = min(x, y); | |
if (mx == mn) return x; | |
return f(mn, mx-mn) + 2 * mn; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose down | |
if (!$?) { | |
return 'failed docker-compose down' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
WORKDIR /app | |
ENV LLDB_VERSION=11 | |
RUN apt-get update && apt-get install -y \ | |
lsb-release \ | |
apt-utils \ | |
gnupg \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init: | |
terraform init | |
.PHONY: fmt | |
fmt: | |
terraform fmt | |
.PHONY: validate | |
validate: | |
terraform validate |