Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/bin/env ruby | |
# Copyright (c) 2020 Alan Wu | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in | |
# all copies or substantial portions of the Software. |
def foo | |
-2.itself ** 2 | |
end | |
def foo2 | |
(-2.itself) ** 2 | |
end | |
def bar | |
-2 ** 2 |
綾󠄀 | |
天 <- without selector | |
㆝󠄀 | |
角 <- without selector | |
角󠄀 |
// Borrowing 101. Easy to see that the borrows don't overlap | |
// because everything is explicit and has a mapping to a | |
// lexical range in the source. | |
#[derive(Debug)] | |
struct NotCopy; | |
fn main() { | |
// owner (can move the value if it wants, responsible for calling destructor) | |
let mut obj = NotCopy {}; |
div[aria-label="Timeline: Trending now"] { | |
visibility: hidden; | |
} |