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
class Control: | |
def terminate_program(): | |
pass | |
def terminate_all(): | |
pass | |
def get_global_timer(): | |
pass |
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
// Usage e.g.: f := check(os.Create(filePath)) | |
func check[T any] (result T, err error) (output T) { | |
if err == nil { | |
return result | |
} | |
fmt.Println(err) | |
panic(err) | |
} |
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
FROM ubuntu:latest | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y git | |
RUN apt-get install -y gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y cmake | |
RUN apt-get install -y python3 python3-pip |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", ":8452") |