Skip to content

Instantly share code, notes, and snippets.

@v21
v21 / one.rs
Created December 2, 2020 00:36
advent of code 2020, day 1
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();
#!/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;