Skip to content

Instantly share code, notes, and snippets.

View import-yuefeng's full-sized avatar
🤠
今天你为乌干达儿童捐款了吗?

Yuefeng Zhu import-yuefeng

🤠
今天你为乌干达儿童捐款了吗?
View GitHub Profile
@Zhaojing-Wang
Zhaojing-Wang / buyWatch.py
Last active November 4, 2021 13:26
buy a  watch
from json import JSONDecodeError
import requests
from datetime import datetime
import time
def queryQuote(a, b):
cookie = "xx"
headers = {
@yanickxia
yanickxia / anync.rs
Created September 4, 2020 10:05
Rust Async
#![allow(unused)]
use {
futures::{
future::{BoxFuture, FutureExt},
task::{ArcWake, waker_ref},
},
std::{
future::Future,
pin::Pin,
@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: