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 futures_util::StreamExt; | |
use tokio_tungstenite::{connect_async, tungstenite::client::IntoClientRequest}; | |
use url::Url; | |
#[tokio::main] | |
async fn main() { | |
// Include file servers.txt from current directory | |
let urls = include_str!("servers.txt") | |
.split("\n") | |
.filter(|s| !s.is_empty()) |
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
{} |
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
/* Parts taken from SPCSS | |
License: Copyright (c) 2020-2021 Susam Pal | |
https://github.com/susam/spcss/blob/master/LICENSE.md | |
*/ | |
#menu { | |
border-right: 8px dashed; | |
border-radius: 10px; | |
border-image: linear-gradient(45deg, red, blue) 1; | |
width: 10px; | |
margin-right: 25px; |
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
/* | |
* This defines a custom widget which displays number of words and characters in a current text note. | |
* To be activated for a given note, add label 'wordCount' to the note, you can also make it inheritable and thus activate it for the whole subtree. | |
* | |
* See it in action in "Books" and its subtree. | |
*/ | |
const TPL = `<div style="padding: 10px; border-top: 1px solid var(--main-border-color); contain: none;"> | |
<i>Word count: </i> | |
<strong><span class="word-count"></span></strong> |
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
/* | |
* This defines a custom widget which displays number of words and characters in a current text note. | |
* To be activated for a given note, add label 'wordCount' to the note, you can also make it inheritable and thus activate it for the whole subtree. | |
* | |
* See it in action in "Books" and its subtree. | |
*/ | |
const TPL = `<div style="contain: none; padding: 10px; border-top: 1px solid var(--main-border-color);"> | |
<i>Word count: </i> | |
<strong><span class="word-count"></span></strong> |