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 | |
| """ | |
| Docker management script for GCC 15.2.0 builder. | |
| Replaces docker-compose with simple Python commands. | |
| """ | |
| import subprocess | |
| import sys | |
| import argparse |
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
| [profile.dev.package."*"] | |
| opt-level = 3 |
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 React from "react"; | |
| import CSS from "csstype"; | |
| import { GREEN_COLOR_THEME, RUSTY_COLOR_THEME } from "../constant"; | |
| const getBsonType = (value: any) => { | |
| if (typeof value === "object" && value === null) { | |
| return "null"; | |
| } else if (typeof value === "object" && value !== null) { | |
| if (typeof value["$oid"] === "string") { | |
| return "ObjectID"; |
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
| #[macro_export] | |
| macro_rules! impl_enum_asfrom_str { | |
| ($name:ident, $($next_variant:ident),+) => { | |
| #[derive(::std::clone::Clone, Copy, Debug, Deserialize, Serialize)] | |
| #[allow(clippy::upper_case_acronyms)] | |
| #[allow(non_camel_case_types)] | |
| pub enum $name { | |
| $($next_variant),+ | |
| } |
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
| class MaybeNumber { | |
| constructor(private readonly value?: number) { | |
| } | |
| // We could have used the constructor but it's not really nice to | |
| // write `new` everywhere. | |
| static create(n: number): MaybeNumber { | |
| return new MaybeNumber(n); | |
| } | |
| static empty(): MaybeNumber { |
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
| // Basically need to satisfy this constraint | |
| // f(list_one + list_two) === homo_list(f(list_one), f(list_two)); | |
| // The function 'f' is a list homomorphism if there exists a function `homo_list` that satisfy the above equation | |
| type IntermediateState = { | |
| mss: number, // the actual MSS of a given array | |
| mss_from_left: number, // the MSS if we force subarray to include the first element | |
| mss_from_right: number, // the MSS if we force the subarray to include the last element | |
| total_sum: number // simply the total sum of the array | |
| } |
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
| # Docker configurations | |
| image: ubuntu:latest | |
| test: | |
| except: | |
| - tags | |
| script: | |
| # Configure TZ | |
| - export TZ=Europe/Kiev | |
| - ln -snf /usr/share/zoneinfo/$TZ /etc/localtime |
This file has been truncated, but you can view the full file.
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
| 2021-02-19T01:05:38.6554830Z ##[section]Starting: Request a runner to run this job | |
| 2021-02-19T01:05:39.1605904Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest' | |
| 2021-02-19T01:05:39.1606001Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest' | |
| 2021-02-19T01:05:39.1606206Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest' | |
| 2021-02-19T01:05:39.2767053Z ##[section]Finishing: Request a runner to run this job | |
| 2021-02-19T01:05:44.1181915Z Current runner version: '2.277.1' | |
| 2021-02-19T01:05:44.1210483Z ##[group]Operating System | |
| 2021-02-19T01:05:44.1211536Z Ubuntu | |
| 2021-02-19T01:05:44.1212064Z 20.04.2 | |
| 2021-02-19T01:05:44.1212487Z LTS |
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
| lupinas-lullaby on master [!] is 📦 v0.1.8 via ⬢ v14.15.2 via 🦀 v1.50.0 | |
| ❯ cargo build --release | |
| Finished release [optimized] target(s) in 0.04s |
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
| \begin{figure}[H] | |
| \center{\includegraphics[width=\textwidth] | |
| {figures/biotensor.png}} | |
| \caption{\label{fig:my-label} My figure. An example of a cool figure} | |
| \end{figure} |
NewerOlder