Skip to content

Instantly share code, notes, and snippets.

View 80sVectorz's full-sized avatar

80sVectorz 80sVectorz

View GitHub Profile
@80sVectorz
80sVectorz / bits_in_bytes_visualization.py
Last active October 3, 2023 12:58
Python script to understand working with bits in byte arrays.
import math
byte = "|------|"
display_length = 10
bit_i=16
byte_i_a = math.floor(bit_i/8)
byte_i_b = math.ceil(bit_i/8)
print("bit_i:",bit_i)
print("byte_i",byte_i_a, byte_i_b)
@80sVectorz
80sVectorz / parse_goblin.js
Last active June 1, 2023 12:58
Library script to support complex command line argument parsing.
/*
-- Parse Goblin --
VERSION 1.0
Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/
Library script to support complex command line argument parsing.
Features:
- full names with optional short forms: foo --bar / foo -b
- value argument: count --target 10
- boolean flags: cool_script --help
@80sVectorz
80sVectorz / rscan.js
Last active August 3, 2023 11:07
Recursive scan terminal command for outputing an ascii tree representation of the network.
/*
-- RSCAN --
VERSION 2.5
Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/
Recursive scan terminal command for displaying an ascii art tree representation of the full network:
rscan --detailed
-------------------Network Tree-------------------|-|Balance|-|Hack Chance|-|Security LVL|-|Hacking LVL|-|Root?|
home----------------------------------------------| $701.293m 100% 1% 1 [X]
├─n00dles | $2.984k 18% 83% 1 [X]