Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
data = [ | |
'Desktop', | |
('Downloads', [ | |
'ubuntu.iso', | |
'abc.txt', | |
('photos', [ | |
'001.jpg', | |
'002.jpg' | |
]) |
// This gist contains the code from the blog post | |
// https://hurryabit.github.io/blog/stack-safety-for-free/ | |
// We need Rust nightly to run the code. | |
#![feature(generators, generator_trait)] | |
use std::ops::{Generator, GeneratorState}; | |
use std::pin::Pin; | |
fn triangular(n: u64) -> u64 { | |
if n == 0 { | |
0 |
# make sure to replace `<hash>` with your gist's hash
git clone https://gist.github.com/<hash>.git # with https
git clone git@gist.github.com:<hash>.git # or with ssh
#ifdef DEBUG | |
#define _DEBUG(fmt, args...) printf("%s:%s:%d: "fmt, __FILE__, __FUNCTION__, __LINE__, args) | |
#else | |
#define _DEBUG(fmt, args...) | |
#endif |