$ python3 -m venv py3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this code is released under creative common license (CC0), | |
// meaning you are free to use/modify/distribute it in any way you see fit | |
// and I am not responsible for anything that happens | |
trait Graph { | |
type Node; | |
type Edge; | |
fn add_node(self: &mut Self, node: Self::Node); | |
fn add_edge(self: &mut Self, edge: Self::Edge); | |
fn incident_edges(self: &Self, node: Self::Node) -> Vec<Self::Edge>; |
Here is an idea: how about we drastically modify the way the coloring is done in terminals and in text in general?
Reasoning:
- Right now it is really hard to make the text you write colorful.
- The control flow for the terminal is quite convoluted - most programs stop coloring output if the pipe doesn't lead to tty, so your bash scripts end up looking like a mess.
- External highlighters (or absence thereof) can change the coloring (of your code for example), which may be not desired.
What do we have?
- ANSI codes. Works only in terminals with color support (which is like 100% of them), works even better with terminals with true color support (which is a bit less than 100% of them). By the way, this gist and many of its forks contain a list of terminals supporting true color.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a config file that maps caps-lock key to yet another ctrl key. | |
# It works pretty much on any Linux system with XKb, the X Keyboard extention, | |
# so anything that has Xorg would probably work. | |
# The file goes to /etc/X11/xorg.conf.d/ folder. | |
Section "InputClass" | |
Identifier "keyboard defaults" | |
MatchIsKeyboard "on" | |
Option "XKbOptions" "caps:ctrl_modifier" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// here is similar list for fish-shell - https://fishshell.com/docs/2.2/commands.html | |
source | |
alias | |
bg | |
bind | |
break | |
builtin | |
caller | |
cd | |
command |