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
Mix.install([:libgraph]) | |
{valves, graph} = | |
File.read!("input2.txt") | |
|> String.trim() | |
|> String.split("\n") | |
|> Enum.reduce({%{}, Graph.new(type: :undirected)}, fn line, {vs, g} -> | |
[v, e] = line |> String.split(";") | |
[v, f] = v |> String.split("=") | |
f = String.to_integer(f) |
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
use std::{collections::HashSet, env, fmt::Write, fs, path::Path}; | |
use walkdir::WalkDir; | |
type Res = Result<(), Box<dyn std::error::Error>>; | |
// replace: | |
// "ROOT DIR": root dir of proto files to generate | |
// "INCLUDE DIR": where all "package" specifier based on | |
// "REPO DIR": where to monitor change for build.rs rerun |
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
SPECIFICATION Spec | |
\* Add statements after this line. | |
CONSTANTS | |
OUTDATED = "outdated" | |
UPDATING = "updating" | |
UPDATED = "updated" | |
INVARIANTS | |
SameVersion |
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
WinGetActiveTitle, LastActiveWindowTitle | |
Run, babun | |
!`:: | |
IfWinActive, Yukinoshita | |
{ | |
WinHide, Yukinoshita | |
WinActivate, %LastActiveWindowTitle% | |
} | |
else |