cargo install systemfd cargo-watch
systemfd --no-pid -s http::PORT -- cargo watch -x run
cargo install systemfd cargo-watch
systemfd --no-pid -s http::PORT -- cargo watch -x run
| fn main() { | |
| let mut v: Vec<(&str, i32)> = vec![("a", 2), ("b", 1), ("c", 3)]; | |
| v.sort_by(|a, b| a.1.cmp(&b.1)); // increasing order | |
| v.sort_by(|a, b| b.1.cmp(&a.1)); // decreasing order | |
| println!("{:?}", v); | |
| } |
| use chrono; | |
| use chrono::offset::TimeZone; | |
| let birth_date = chrono::Utc.from_local_date(&chrono::NaiveDate::parse_from_str("1995-07-05", "%Y-%m-%d")).unwrap(); | |
| let duration_since_birth = chrono::Utc::today().signed_duration_since(birth_date); | |
| let age = duration_since_birth.num_days() / 365 |
certbot -d DOMAINNAME --manual --logs-dir certbot --config-dir certbot --work-dir certbot --preferred-challenges dns certonly
| 10minutemail.com | |
| remove.bg | |
| unscreen.com | |
| hemingwayapp.com | |
| idphoto4you.com | |
| myairbridge.com | |
| loader.to | |
| informationisbeautiful.net | |
| nek.istanbul.edu.tr | |
| spik.ai |
| .one-line-overflow { | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .multi-line-overflow { | |
| white-space: normal; | |
| display: -webkit-box; | |
| -webkit-box-orient: vertical; |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "attach", | |
| "name": "Node: Nodemon", | |
| "processId": "${command:PickProcess}", | |
| "restart": true, | |
| "protocol": "inspector", |