I hereby claim:
- I am saghm on github.
- I am saghm (https://keybase.io/saghm) on keybase.
- I have a public key ASAJXcRPOri_48aGmOt4Z_Jk3oIouIlS7UR8atbxNNmaVAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "key": "ctrl+x o", | |
| "command": "workbench.action.navigateEditorGroups", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+x k", | |
| "command": "workbench.action.closeActiveEditor" | |
| }, |
| extern crate mongodb; | |
| #[macro_use] extern crate bson; | |
| use mongodb::{Client, ClientOptions, ThreadedClient}; | |
| use mongodb::db::ThreadedDatabase; | |
| fn main(){ | |
| let options = ClientOptions::with_log_file("/tmp/mongo-commands"); | |
| let client = Client::connect_with_options("domain.name", 27017, options).expect("Couldn't connect to mongodb database"); | |
| let database = client.db("db"); |
| network={ | |
| ssid="AirPennNet" | |
| key_mgmt=WPA-EAP | |
| eap=TTLS | |
| identity="your pennkey" | |
| password="your pennkey password" | |
| phase2="auth=PAP" | |
| } |
| #[macro_use] extern crate derive_builder; | |
| #[derive(Debug, Default, Builder)] | |
| struct SomeOptions { | |
| allow_a: Option<bool>, | |
| } | |
| impl SomeOptions { | |
| pub fn allowed(&self) -> bool { | |
| self.allow_a |
| #[cfg(all(feature = "tokio-runtime", feature = "async-std-runtime"))] | |
| compile_error!( | |
| "exactly one of the `tokio-runtime` and `async-std-runtime` features must be chosen" | |
| ); | |
| #[cfg(all(not(feature = "tokio-runtime"), not(feature = "async-std-runtime")))] | |
| compile_error!( | |
| "exactly one of the `tokio-runtime` and `async-std-runtime` features must be chosen" | |
| ); |
| WARNING: ThreadSanitizer: data race (pid=94179) | |
| Write of size 8 at 0x7b0800000060 by main thread: | |
| #0 free /rustc/llvm/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:706:3 (rust-scratch+0x11d58) | |
| #1 alloc::alloc::dealloc::h99b6371ef57874e8 /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/alloc.rs:103:5 (rust-scratch+0x94188) | |
| #2 _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..AllocRef$GT$::dealloc::he32cdae226ac0a18 /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/alloc.rs:179:13 (rust-scratch+0x95105) | |
| #3 alloc::sync::Arc$LT$T$GT$::drop_slow::hea1049624e02cfe9 /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/sync.rs:743:13 (rust-scratch+0x9916d) | |
| #4 _$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h26b5cd67741187fa /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/src/liballoc/sync.rs:1249:13 (rust-scratch+0x9974e) | |
| #5 core::ptr::drop_in_place::h2b3ee6f7ae695029 /rustc/f509b26a7730d721ef87423a72b3fdf8724b4afa/sr |
| <html> | |
| <head> | |
| <title>Bookmarks</title> | |
| </head> | |
| <body style="background: black; color: white"> | |
| <div id="bookmarks"/> | |
| <script> | |
| const bookmark_dict = {}; |
| trait Nested<T> { | |
| fn unnest(self) -> T; | |
| } | |
| impl<T> Nested<Self> for Option<T> { | |
| fn unnest(self) -> T { | |
| self | |
| } | |
| } |