Skip to content

Instantly share code, notes, and snippets.

View kirumbik's full-sized avatar

Kirill kirumbik

View GitHub Profile
@kirumbik
kirumbik / DynamicFile.java
Created April 30, 2023 14:51
DynamicFile
public class DynamicFile {
private static final String DOWNLOAD_SUFFIX = ".download";
private static final String ACCESS_MODE_RW = "rw";
private static final String ACCESS_MODE_R = "r";
private static final int READ_LOCK_TIME_MS = 50;
private static final int WAIT_FOR_BYTES_MS = 350;
private File mStableFile;
private File mTempFile;
@kirumbik
kirumbik / run_tests.sh
Last active February 12, 2024 07:27
Check tests for Route 365 contest
#!/bin/bash
COLOR_BLACK=0
COLOR_RED=1
COLOR_GREEN=2
COLOR_YELLOW=3
COLOR_GREY=8
reset_color="$(tput sgr0)"