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 std::io::Read; | |
use std::io::Write; | |
use std::net::TcpStream; | |
use tokio::io::{AsyncReadExt, AsyncWriteExt}; | |
use tokio::net::TcpListener; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error>> { | |
let listener = TcpListener::bind("127.0.0.1:8080").await?; |
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
type MyResponseWriter struct { | |
http.ResponseWriter | |
} | |
func (m MyResponseWriter) Header() Header { | |
return m.ResponseWriter.Header() | |
} | |
func (m MyResponseWriter) Write(d []byte) (int, error) { | |
return m.ResponseWriter.Write(d) |
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
set $mod Mod4 | |
exec_always --no-startup-id cadence-session-start -s && cadence-pulse2jack | |
font pango:Hack 8 | |
floating_modifier $mod | |
bindsym $mod+Return exec termite |
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
{ | |
"segments": { | |
"left": [ | |
{ | |
"function": "mode", | |
"exclude_modes": ["nc"] | |
}, | |
{ | |
"function": "visual_range", | |
"include_modes": ["v", "V", "^V", "s", "S", "^S"], |