Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cybervec-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cybervec-1.0.0.tar.gz.

File metadata

  • Download URL: cybervec-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13

File hashes

Hashes for cybervec-1.0.0.tar.gz
Algorithm Hash digest
SHA256 51516ebe6f8fb5e553f6677451b6f387e94e65abc59876c1133ba4bf65c653ef
MD5 da0939f0d7dea721b87725fb51725e58
BLAKE2b-256 a89b94796784a8615c986a1f1568af01c0f59239c4ce922a4193286cb2caa8b2

See more details on using hashes here.

File details

Details for the file cybervec-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cybervec-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13

File hashes

Hashes for cybervec-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 821b274ea187268431f0f83439557f72dfb23a1e07c5cf141d5adc4f5f0d2c9e
MD5 dbfea407de5eab7d6b94a72d4fa80dc8
BLAKE2b-256 fab7e327c0873e1f57b106aa04b53e4dba98b74713d20957844c6d513a30b770

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page