#!/bin/bash
screenpid=`ps x|grep -E '(.*)SCREEN(.*)selector-screenrc\$'|awk '{print \$1}'|head -1`
if [ $screenpid -gt 0 ]; then
screen -x $screenpid -c selector-screenrc
else
screen -c selector-screenrc
fi
BASH
/// An asynchronous function that completes quickly.
async fn quick_task() -> Result<&'static str> {
println!("START quick_task");
await!(delay(10)).context("delay failed")?;
println!("END quick_task");
Ok("quick_task result")
}
/// An asynchronous function that completes very slowly.
async fn slow_task() -> Result<&'static str> {
println!("START slow_task");
await!(delay(10_000)).context("delay failed")?;
println!("END slow_task");
Ok("slow_task result")
}
RUST
.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
CSS