Skip to content

Instantly share code, notes, and snippets.

@ChronosWS
ChronosWS / README.md
Last active March 12, 2020 15:03
Rust References, Lifetimes, and Futures

Rust References, Lifetimes and Futures

This Gist will examine how lifetimes and futures interact in Rust.

The basics - a refresher

Consider the following program, and in particular, the lifetime of the numbers vector in main():

fn do_stuff(numbers: Vec) -> () {
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 24, 2024 12:19
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname