Cyber vector notation
Project description
cyber-vector-notation
This is a "NOTATION" for those who use computers.
Commentary by author:
๐ ้ป่ณ่จๆฐๆณ (Cyber Number Notation)
Two prior knowledge
๐ dictionary-ordinal-number-notation
๐ beads-vector-notation
Install
# pip install dicordnum
# pip install beadsvec
pip install cybervec
Methods
trail_zero() operation
With trailing zero
๐ Append ,0
cn = CyberVec.trail_zero((1, 2))
print(f"{cn.elements}") # (1, 2, 0)
cn = CyberVec.trail_zero(3)
print(f"{cn.elements}") # (3, 0)
๐ Same
cn = CyberVec((1, 2, 0))
print(f"{cn.elements}") # (1, 2, 0)
cn = CyberVec((3, 0))
print(f"{cn.elements}") # (3, 0)
Let's give an example
Cons
- It's eccentric
๐ Pre-zero cannot be used
# Normal
0001
# Cyber
O1o0
๐ Hexadecimal cannot be used
# Normal
0xFF
# Cyber
O255o0 # Use decimal
Pros
- It is considered to be used for variable names, class names, method names, file names, folder names, URLs, etc.
- Use as dictionary ordinal number
๐ For Version number
# Normal
Version1.0.1
# Cyber
VersionO1o0o1o0 # Default
VersionO1o0o1o0 # PascalCase
versionO1o0o1o0 # lowerCamelCase
version_o1o0o1o0 # snake_case
version-o1o0o1o0 # kebab-case
VERSION_O1O0O1O0 # UPPER_SNAKE_CASE
๐ For IPv4
# Normal
128.0.0.1
# Cyber
OAA128o0o0o1o0 # Default
Oaa128o0o0o1o0 # PascalCase
oaa128o0o0o1o0 # lowerCamelCase
oaa128o0o0o1o0 # snake_case
oaa128o0o0o1o0 # kebab-case
OAA128O0O0O1O0 # UPPER_SNAKE_CASE
๐ Negative number included
# Normal
20, 18, -1, -14, 5
# Cyber
OA20oA18o_9o__86o5 # Default
Oa20oa18o_9o__86o5 # PascalCase (Bad)
oa20oa18o_9o__86o5 # lowerCamelCase (Bad)
oa20oa18o_9o__86o5 # snake_case
oa20oa18o_9o__86o5 # kebab-case (Bad)
OA20OA18O_9O__86O5 # UPPER_SNAKE_CASE
๐ Folder
# Normal
๐ 00
โโโ ๐ 01
โโโ ๐ 99
# Normal Flat by "/"
00/01/99
# Cyber
๐ O0o0 # Not O00o0
โโโ ๐ O1o0
โโโ ๐ OA99o0
// # **TODO** Cyber Flat by "x1x"
// O0o0x1xO1o0x1xOA99o0
๐ Chapter
# Normal
1. Food
1.1. Fruits
1.1.1. Apple
1.1.2. Banana
1.1.11. Kiwi
# Cyber
O1o0. Food
O1o1o0. Fruits
O1o1o1o0. Apple
O1o1o2o0. Banana
O1o1oA11o0. Kiwi
Now you have mastered cyber vector notation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cybervec-1.0.0.tar.gz
(4.6 kB
view hashes)