https://github.com/nervosnetwork/ckb/pull/3928/commits
https://github.com/nervosnetwork/ckb-sdk-rust/pull/62/commits
| { | |
| "input": { | |
| "blocklist": [], | |
| "compressor#0": { | |
| "attack": 5.0, | |
| "boost-amount": 6.0, | |
| "boost-threshold": -72.0, | |
| "bypass": false, | |
| "dry": -100.0, | |
| "hpf-frequency": 10.0, |
| example |
| ```elisp | |
| 34594 89% - command-execute | |
| 34234 88% - funcall-interactively | |
| 34234 88% - execute-extended-command | |
| 34234 88% - apply | |
| 34234 88% - ad-Advice-execute-extended-command | |
| 34234 88% - #<native-comp-function execute-extended-command> | |
| 34232 88% - command-execute | |
| 34232 88% - funcall-interactively | |
| 34232 88% - exec/rust-index-project |
| // snippet of code @ 2024-04-16 10:58:15 | |
| // === Rust Playground === | |
| // This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/ | |
| use crossbeam_channel::{after, Sender}; | |
| use std::{io::Error, sync::mpsc}; | |
| // Execute the snippet: C-c C-c | |
| // Delete the snippet completely: C-c k |
| // snippet of code @ 2024-04-16 10:58:15 | |
| // === Rust Playground === | |
| // This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/ | |
| use crossbeam_channel::{after, Sender}; | |
| use std::{io::Error, sync::mpsc}; | |
| // Execute the snippet: C-c C-c | |
| // Delete the snippet completely: C-c k |
| // snippet of code @ 2024-04-16 10:58:15 | |
| // === Rust Playground === | |
| // This snippet is in: /tmp/rust-playground/at-2024-04-16-105815/ | |
| use crossbeam_channel::{after, Sender}; | |
| use std::{io::Error, sync::mpsc}; | |
| // Execute the snippet: C-c C-c | |
| // Delete the snippet completely: C-c k |
| #!/bin/sh | |
| # | |
| # Setup a work space called `work` with two windows | |
| # first window has 3 panes. | |
| # The first pane set at 65%, split horizontally, set to api root and running vim | |
| # pane 2 is split at 25% and running redis-server | |
| # pane 3 is set to api root and bash prompt. | |
| # note: `api` aliased to `cd ~/path/to/work` | |
| # | |
| session="work" |
| use std::sync::atomic::{AtomicU64, Ordering}; | |
| use std::sync::Arc; | |
| use std::thread; | |
| fn work() { | |
| let a: Arc<AtomicU64> = Arc::new(AtomicU64::new(0)); | |
| let b: Arc<AtomicU64> = Arc::new(AtomicU64::new(0)); | |
| let j1 = thread::spawn({ | |
| let (a, b) = (Arc::clone(&a), Arc::clone(&b)); | |
| move || { |
| use serial_test::serial; | |
| use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; | |
| // Store faketime timestamp here | |
| #[cfg(test)] | |
| static FAKETIME: AtomicU64 = AtomicU64::new(0); | |
| // Indicate whether faketime is enabled | |
| #[cfg(test)] | |
| static ENABLE_FAKETIME: AtomicBool = AtomicBool::new(false); |