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
| use std::fs::File; | |
| use std::io::{self, BufRead}; | |
| use std::path::Path; | |
| use itertools::iproduct; | |
| fn main() { | |
| if let Ok(lines) = read_lines("./input.txt") { | |
| let nums : Vec<i32> = lines.map(|l| l.unwrap().parse::<i32>().unwrap()).collect(); | |
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 -S /Users/v/orbitals/orbitals-godot/tools/.venv/bin/python | |
| """Forward the USB controller's serial lines as UDP packets to the Godot | |
| editor's SerialController autoload. | |
| The web export reads Web Serial directly and does not need this bridge. | |
| In the editor / desktop builds, run this alongside Godot: | |
| ./tools/serial_bridge.py | |
| It auto-reopens the serial port on disconnect and just blasts UDP packets; |
OlderNewer