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
/* | |
Aside from the panics, and the fact that the API currently requires first a call to new, then select_entry(), | |
how do I fix the lifetime issues: | |
error: lifetime may not live long enough | |
--> src/sigmf.rs:226:43 | |
| | |
221 | pub fn select_entry(&mut self, filename: &str) -> Result<()> { | |
| - let's call the lifetime of this reference `'1` | |
... |
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
#!/usr/bin/python3 | |
""" | |
Mostly written by GPT-4 using prompt: | |
'Write python script to HDLC escape a packet' | |
""" | |
def hdlc_escape(packet): | |
FLAG_BYTE = 0x7E | |
ESCAPE_BYTE = 0x7D |
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 ( | |
"context" | |
"log" | |
"net/http" | |
"sync" | |
"time" | |
"github.com/gorilla/websocket" |