This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """Convert a KRISTAL.air KML challenge into an SDVFR-compatible GPX route. | |
| KRISTAL.air stores navigation targets such as balloons and islands as KML | |
| Points, but stores the entry/exit gates as Polygons. Navigation applications | |
| therefore tend to import only the targets. This converter turns every gate | |
| into a route point located at the polygon centroid and orders all points by | |
| challenge box: | |
| entry gate -> Points contained in the same Box -> exit gate |
This file contains hidden or 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
| set -e | |
| export VOLTA_HOME="$PWD/.volta" | |
| export VOLTA_FEATURE_PNPM=1 | |
| PATH_add "$VOLTA_HOME/bin" | |
| if ! [ -f "$VOLTA_HOME/bin/volta" ]; then | |
| curl https://get.volta.sh/ | bash | |
| fi |
This file contains hidden or 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
| resource "random_password" "random_password_for_root_user" { | |
| length = 32 | |
| special = false | |
| } | |
| resource "aws_secretsmanager_secret" "secret_db_root_password" { | |
| name = "${var.project}-db-root-password" | |
| } | |
| resource "aws_secretsmanager_secret_version" "db_branching_root_password_value" { |
This file contains hidden or 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
| import { describe, expect, test } from "vitest"; | |
| import { url as urlWithoutRoot } from "@/utils/url"; | |
| const url = (path: string) => | |
| urlWithoutRoot(path, "src/utils/url/__tests__/pages"); | |
| describe("Check if url exist", () => { | |
| test("Index at the root", () => { | |
| expect(url("/")).toEqual("/"); | |
| }); |
This file contains hidden or 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 <stdio.h> | |
| #include <unistd.h> | |
| #include <strings.h> | |
| void my_put_char(char c) | |
| { | |
| write(1, &c, 1); | |
| } | |
| void my_put_nbr_base(int nb, const char *base) |
This file contains hidden or 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
| #ifndef CPP_OBSERVABLE_H | |
| #define CPP_OBSERVABLE_H | |
| #include <unordered_map> | |
| #include <functional> | |
| namespace Design { | |
| typedef unsigned long long Subscriber; |
This file contains hidden or 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
| concurrent = 1 | |
| check_interval = 0 | |
| [session_server] | |
| session_timeout = 1800 | |
| [[runners]] | |
| name = "My custom Gitlab runner" | |
| url = "https://gitlab.com" | |
| token = "<runner_token>" |
This file contains hidden or 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
| Put all files into .vscode | |
| - Build: Ctrl+Shift+B | |
| - Launch: Ctrl+F5 |