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
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
mkdir -p ~/.local/bin | |
echo 'export PATH=$PATH:/home/deck/.local/bin' >> ~/.bashrc | |
curl -o ~/.local/bin/podman https://github.com/89luca89/podman-launcher/releases/latest/download/podman-launcher-amd64 | |
chmod +x ~/.local/bin/podman | |
echo "${GREEN}Put a new password for your steamdeck that you can remember${NC}" | |
passwd | |
echo "${GREEN}Enter that password when prompted${NC}" |
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
let defaultIfEmpty func string = | |
match string with | |
| "" -> func () | |
| _ -> string | |
let rec fizzBuzz acc curr endNum rules = | |
if curr = endNum then | |
acc | |
else | |
rules |
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 nannou_osc::Type; | |
fn main() { | |
// Establish the connection | |
let addr = format!("{}:{}", "127.0.0.1", 9000); | |
let sender = nannou_osc::sender().unwrap().connect(addr).unwrap(); | |
// Send the messages | |
sender.send(("/test", vec![Type::Float(0.4)])).ok(); | |
sender.send(("/test/other", vec![Type::Bool(false)])).ok(); |